Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

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