You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

421 lines
9.9 KiB

  1. <template>
  2. <view class="cented-box">
  3. <view class="Switchingbox">
  4. <view class="Switching1">
  5. <image class="Switching1-img" src="../../static/images/building.png" mode=""></image>
  6. </view>
  7. <view class="Switching2">楼盘:</view>
  8. <view class="Switching3">{{buildingname}}</view>
  9. <view class="Switching4" v-if="buildingishow" @click="piskbuilding()">切换楼盘</view>
  10. </view>
  11. <view class="title" style="margin-top: 30rpx;">我的工牌</view>
  12. <view class="Workcard">
  13. <view class="Workcard-box">
  14. <view class="Workcardimg">
  15. <image class="Workcardimg1" src="../../static/images/battery.png" mode=""></image>
  16. </view>
  17. <view class="Workcardtext">电量:96%</view>
  18. </view>
  19. <view class="Workcard-box">
  20. <view class="Workcardimg">
  21. <image class="Workcardimg1" src="../../static/images/signal5.png" mode=""></image>
  22. </view>
  23. <view class="Workcardtext">信号:弱</view>
  24. </view>
  25. <view class="Workcard-box">
  26. <view class="Workcardimg">
  27. <image class="Workcardimg3" src="../../static/images/Thtapedrive2.png" mode=""></image>
  28. </view>
  29. <view class="Workcardtext">录音:未开启</view>
  30. </view>
  31. </view>
  32. <view class="title">设备</view>
  33. <view class="shebenbox">
  34. <view class="shebenche">
  35. <view class="shebenchenum">158</view>
  36. <view class="shebenchetext">设备总数</view>
  37. </view>
  38. <view class="shebenche">
  39. <view class="shebenchenum">5</view>
  40. <view class="shebenchetext">在线</view>
  41. </view>
  42. <view class="shebenche">
  43. <view class="shebenchenum">2</view>
  44. <view class="shebenchetext">活跃</view>
  45. </view>
  46. <view class="shebenche">
  47. <view class="shebenchenum" style="color: red;">5</view>
  48. <view class="shebenchetext">急需充电</view>
  49. </view>
  50. </view>
  51. <view class="title">实时统计</view>
  52. <view class="real-timebox">
  53. <view class="timebox">
  54. <view class="real">
  55. <view class="realnum">44</view>
  56. <view class="realtext">接待量</view>
  57. </view>
  58. <view class="real">
  59. <view class="realnum">44</view>
  60. <view class="realtext">正在接待</view>
  61. </view>
  62. <view class="real">
  63. <view class="realnum">44</view>
  64. <view class="realtext">接待客户</view>
  65. </view>
  66. <view class="real">
  67. <view class="realnum">44</view>
  68. <view class="realtext">录音时长</view>
  69. </view>
  70. </view>
  71. <view class="timebox">
  72. <view class="real">
  73. <view class="realnum">44</view>
  74. <view class="realtext">未标顾问</view>
  75. </view>
  76. <view class="real">
  77. <view class="realnum">44</view>
  78. <view class="realtext">平均执行率</view>
  79. </view>
  80. <view class="real">
  81. <view class="realnum">44</view>
  82. <view class="realtext">平均得分</view>
  83. </view>
  84. <view class="real">
  85. <!-- <view class="realnum" style="color: red;">44</view>
  86. <view class="realtext">违禁提醒</view> -->
  87. </view>
  88. </view>
  89. </view>
  90. <view class="title">本周工作</view>
  91. <view class="real-timebox">
  92. <view class="timebox">
  93. <view class="real">
  94. <view class="realnum">44</view>
  95. <view class="realtext">接待量</view>
  96. </view>
  97. <view class="real">
  98. <view class="realnum">44</view>
  99. <view class="realtext">接待客户</view>
  100. </view>
  101. <view class="real">
  102. <view class="realnum">44</view>
  103. <view class="realtext">录音时长</view>
  104. </view>
  105. </view>
  106. <view class="timebox">
  107. <view class="real">
  108. <view class="realnum">44</view>
  109. <view class="realtext">平均执行率</view>
  110. </view>
  111. <view class="real">
  112. <view class="realnum">44</view>
  113. <view class="realtext">平均得分</view>
  114. </view>
  115. <view class="real">
  116. <!-- <view class="realnum">44</view>
  117. <view class="realtext">违禁预警</view> -->
  118. </view>
  119. </view>
  120. </view>
  121. <view class="title">常用功能</view>
  122. <view class="commonly-box">
  123. <view class="commonly" @click="Piabodata()">
  124. <view class="commonly-img">
  125. <image class="commonly-img1" src="../../static/images/building.png" mode=""></image>
  126. </view>
  127. <view class="commonly-text">销讲数据</view>
  128. </view>
  129. <view class="commonly">
  130. <view class="commonly-img">
  131. <image class="commonly-img1" @click="record" src="../../static/images/building.png" mode=""></image>
  132. </view>
  133. <view class="commonly-text">接待记录</view>
  134. </view>
  135. <view class="commonly">
  136. <view class="commonly-img">
  137. <image class="commonly-img1" src="../../static/images/building.png" mode=""></image>
  138. </view>
  139. <view class="commonly-text">客户管理</view>
  140. </view>
  141. <view class="commonly">
  142. <view class="commonly-img">
  143. <image class="commonly-img1" src="../../static/images/building.png" mode=""></image>
  144. </view>
  145. <view class="commonly-text">客户管理</view>
  146. </view>
  147. <view class="commonly">
  148. <view class="commonly-img">
  149. <image class="commonly-img1" src="../../static/images/building.png" mode=""></image>
  150. </view>
  151. <view class="commonly-text">客户管理</view>
  152. </view>
  153. <view class="commonly">
  154. <view class="commonly-img">
  155. <image class="commonly-img1" src="../../static/images/building.png" mode=""></image>
  156. </view>
  157. <view class="commonly-text">客户管理</view>
  158. </view>
  159. <view class="commonly">
  160. <view class="commonly-img">
  161. <image class="commonly-img1" src="../../static/images/building.png" mode=""></image>
  162. </view>
  163. <view class="commonly-text">客户管理</view>
  164. </view>
  165. </view>
  166. <!-- 楼盘切换 -->
  167. <view v-if="Showhiddenunits">
  168. <u-select :mask-close-able="false" v-model="Showhiddenunits" mode="single-column" :list="lpanlist" @cancel="cancel" @confirm="confirm"></u-select>
  169. </view>
  170. </view>
  171. </template>
  172. <script>
  173. export default {
  174. data() {
  175. return {
  176. userInfo:{},
  177. Showhiddenunits:false,
  178. lpanlist:[],
  179. buildingname:'',
  180. buildingID:'',
  181. buildingishow:false
  182. };
  183. },
  184. components: {},
  185. onShow() {
  186. this.userInfo = uni.getStorageSync('weapp_session_userInfo_data');
  187. if(this.userInfo.zkProperties.length==1){
  188. this.buildingID=uni.getStorageSync('buildingID').id;
  189. this.buildingname=uni.getStorageSync('buildingID').name;
  190. this.buildingishow=false;
  191. }else{
  192. this.buildingishow=true;
  193. this.buildingname=uni.getStorageSync('buildingID').name;
  194. this.buildingID=uni.getStorageSync('buildingID').id;
  195. this.userInfo.zkProperties.forEach(item=>{
  196. item.label=item.propertyName;
  197. item.value=item.id
  198. })
  199. this.lpanlist=this.userInfo.zkProperties
  200. }
  201. },
  202. methods: {
  203. //选择楼盘弹框
  204. piskbuilding(){
  205. this.Showhiddenunits=true;
  206. },
  207. // 楼盘选择确认
  208. confirm(e) {
  209. this.buildingname=e[0].label;
  210. this.buildingID=e[0].value;
  211. let lopan={
  212. id:e[0].value,
  213. name:e[0].label
  214. }
  215. uni.setStorageSync("buildingID", lopan); //楼盘id写入缓存
  216. },
  217. // 楼盘选择取消
  218. cancel(){
  219. this.Showhiddenunits=false;
  220. },
  221. //销讲数据
  222. Piabodata(){
  223. uni.navigateTo({
  224. url: '/pages/center/Piabodata/index'
  225. });
  226. },
  227. record(){
  228. // 接待记录
  229. uni.navigateTo({
  230. url: '/pages/center/records/index'
  231. });
  232. }
  233. },
  234. };
  235. </script>
  236. <style lang="scss" scoped>
  237. .cented-box{
  238. padding: 30rpx;
  239. background: #F8F8F8;
  240. width: 100%;
  241. height: 100%;
  242. }
  243. .Switchingbox{
  244. width: 100%;
  245. height: 44rpx;
  246. display: flex;
  247. align-items: center;
  248. .Switching1{
  249. width: 44rpx;
  250. height: 44rpx;
  251. .Switching1-img{
  252. width: 44rpx;
  253. height: 44rpx;
  254. }
  255. }
  256. .Switching2{
  257. margin-left: 12rpx;
  258. font-size: 32rpx;
  259. color: #303030;
  260. font-weight: 500;
  261. }
  262. .Switching3{
  263. width: calc(100% - 280rpx);
  264. font-size: 32rpx;
  265. color: #303030;
  266. font-weight: 500;
  267. }
  268. .Switching4{
  269. width: 112rpx;
  270. font-size: 28rpx;
  271. color: #303030;
  272. font-weight: 400;
  273. text-align: right;
  274. text-decoration:underline
  275. }
  276. }
  277. .Workcard{
  278. width: 100%;
  279. background: #FFFFFF;
  280. height: 154rpx;
  281. box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
  282. border-radius: 12rpx;
  283. display: flex;
  284. .Workcard-box{
  285. flex: 1;
  286. height: 100%;
  287. .Workcardimg{
  288. width: 100%;
  289. text-align: center;
  290. margin-top: 42rpx;
  291. .Workcardimg1{
  292. width: 46rpx;
  293. height: 28rpx;
  294. }
  295. .Workcardimg3{
  296. width: 28rpx;
  297. height: 32rpx;
  298. }
  299. }
  300. .Workcardtext{
  301. width: 100%;
  302. text-align: center;
  303. font-size: 24rpx;
  304. font-weight: 400;
  305. color: #666666;
  306. margin-top: 20rpx;
  307. }
  308. }
  309. }
  310. .title{
  311. width: 100%;
  312. height: 30rpx;
  313. font-size: 30rpx;
  314. font-weight: 600;
  315. color: #333333;
  316. margin-top: 40rpx;
  317. margin-bottom: 24rpx;
  318. }
  319. .shebenbox{
  320. width: 100%;
  321. height: 156rpx;
  322. background: #FFFFFF;
  323. box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
  324. border-radius: 12rpx;
  325. display: flex;
  326. .shebenche{
  327. width: 25%;
  328. height: 100%;
  329. .shebenchenum{
  330. width: 100%;
  331. font-size: 36rpx;
  332. font-weight: 600;
  333. color: #333333;
  334. text-align: center;
  335. margin-top: 36rpx;
  336. }
  337. .shebenchetext{
  338. width: 100%;
  339. font-size: 24rpx;
  340. font-weight: 400;
  341. color: #666666;
  342. text-align: center;
  343. margin-top: 24rpx;
  344. }
  345. }
  346. }
  347. .real-timebox{
  348. width: 100%;
  349. background: #FFFFFF;
  350. box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
  351. border-radius: 12rpx;
  352. padding-bottom: 36rpx;
  353. .timebox{
  354. width: 100%;
  355. display: flex;
  356. .real{
  357. flex: 1;
  358. height: 100%;
  359. .realnum{
  360. width: 100%;
  361. font-size: 36rpx;
  362. font-weight: 600;
  363. color: #333333;
  364. text-align: center;
  365. margin-top: 36rpx;
  366. }
  367. .realtext{
  368. width: 100%;
  369. font-size: 24rpx;
  370. font-weight: 400;
  371. color: #666666;
  372. text-align: center;
  373. margin-top: 24rpx;
  374. }
  375. }
  376. }
  377. }
  378. .commonly-box{
  379. width: 100%;
  380. background: #FFFFFF;
  381. box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
  382. border-radius: 12rpx;
  383. display: flex;
  384. flex-wrap: wrap;
  385. padding-bottom: 36rpx;
  386. .commonly{
  387. width: 25%;
  388. margin-top: 36rpx;
  389. .commonly-img{
  390. width: 100%;
  391. height: 68rpx;
  392. text-align: center;
  393. .commonly-img1{
  394. width: 68rpx;
  395. height: 68rpx;
  396. border-radius: 50%;
  397. }
  398. }
  399. .commonly-text{
  400. width: 100%;
  401. text-align: center;
  402. font-size: 24rpx;
  403. font-weight: 400;
  404. color: #333333;
  405. margin-top: 16rpx;
  406. }
  407. }
  408. }
  409. </style>