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.
 
 
 

415 lines
9.8 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" 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. },
  228. };
  229. </script>
  230. <style lang="scss" scoped>
  231. .cented-box{
  232. padding: 30rpx;
  233. background: #F8F8F8;
  234. width: 100%;
  235. height: 100%;
  236. }
  237. .Switchingbox{
  238. width: 100%;
  239. height: 44rpx;
  240. display: flex;
  241. align-items: center;
  242. .Switching1{
  243. width: 44rpx;
  244. height: 44rpx;
  245. .Switching1-img{
  246. width: 44rpx;
  247. height: 44rpx;
  248. }
  249. }
  250. .Switching2{
  251. margin-left: 12rpx;
  252. font-size: 32rpx;
  253. color: #303030;
  254. font-weight: 500;
  255. }
  256. .Switching3{
  257. width: calc(100% - 280rpx);
  258. font-size: 32rpx;
  259. color: #303030;
  260. font-weight: 500;
  261. }
  262. .Switching4{
  263. width: 112rpx;
  264. font-size: 28rpx;
  265. color: #303030;
  266. font-weight: 400;
  267. text-align: right;
  268. text-decoration:underline
  269. }
  270. }
  271. .Workcard{
  272. width: 100%;
  273. background: #FFFFFF;
  274. height: 154rpx;
  275. box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
  276. border-radius: 12rpx;
  277. display: flex;
  278. .Workcard-box{
  279. flex: 1;
  280. height: 100%;
  281. .Workcardimg{
  282. width: 100%;
  283. text-align: center;
  284. margin-top: 42rpx;
  285. .Workcardimg1{
  286. width: 46rpx;
  287. height: 28rpx;
  288. }
  289. .Workcardimg3{
  290. width: 28rpx;
  291. height: 32rpx;
  292. }
  293. }
  294. .Workcardtext{
  295. width: 100%;
  296. text-align: center;
  297. font-size: 24rpx;
  298. font-weight: 400;
  299. color: #666666;
  300. margin-top: 20rpx;
  301. }
  302. }
  303. }
  304. .title{
  305. width: 100%;
  306. height: 30rpx;
  307. font-size: 30rpx;
  308. font-weight: 600;
  309. color: #333333;
  310. margin-top: 40rpx;
  311. margin-bottom: 24rpx;
  312. }
  313. .shebenbox{
  314. width: 100%;
  315. height: 156rpx;
  316. background: #FFFFFF;
  317. box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
  318. border-radius: 12rpx;
  319. display: flex;
  320. .shebenche{
  321. width: 25%;
  322. height: 100%;
  323. .shebenchenum{
  324. width: 100%;
  325. font-size: 36rpx;
  326. font-weight: 600;
  327. color: #333333;
  328. text-align: center;
  329. margin-top: 36rpx;
  330. }
  331. .shebenchetext{
  332. width: 100%;
  333. font-size: 24rpx;
  334. font-weight: 400;
  335. color: #666666;
  336. text-align: center;
  337. margin-top: 24rpx;
  338. }
  339. }
  340. }
  341. .real-timebox{
  342. width: 100%;
  343. background: #FFFFFF;
  344. box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
  345. border-radius: 12rpx;
  346. padding-bottom: 36rpx;
  347. .timebox{
  348. width: 100%;
  349. display: flex;
  350. .real{
  351. flex: 1;
  352. height: 100%;
  353. .realnum{
  354. width: 100%;
  355. font-size: 36rpx;
  356. font-weight: 600;
  357. color: #333333;
  358. text-align: center;
  359. margin-top: 36rpx;
  360. }
  361. .realtext{
  362. width: 100%;
  363. font-size: 24rpx;
  364. font-weight: 400;
  365. color: #666666;
  366. text-align: center;
  367. margin-top: 24rpx;
  368. }
  369. }
  370. }
  371. }
  372. .commonly-box{
  373. width: 100%;
  374. background: #FFFFFF;
  375. box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
  376. border-radius: 12rpx;
  377. display: flex;
  378. flex-wrap: wrap;
  379. padding-bottom: 36rpx;
  380. .commonly{
  381. width: 25%;
  382. margin-top: 36rpx;
  383. .commonly-img{
  384. width: 100%;
  385. height: 68rpx;
  386. text-align: center;
  387. .commonly-img1{
  388. width: 68rpx;
  389. height: 68rpx;
  390. border-radius: 50%;
  391. }
  392. }
  393. .commonly-text{
  394. width: 100%;
  395. text-align: center;
  396. font-size: 24rpx;
  397. font-weight: 400;
  398. color: #333333;
  399. margin-top: 16rpx;
  400. }
  401. }
  402. }
  403. </style>