Você não pode selecionar mais de 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.
 
 
 

897 linhas
25 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;" v-if="permissions.myisshebei">我的工牌</view>
  12. <view v-if="permissions.myisshebei">
  13. <view class="Workcard" v-if="Whetheroffline==true">
  14. <view class="Workcard-box">
  15. <view class="Workcardimg">
  16. <view class="Workcardimg1">
  17. <view v-if="percentage>20" class="bar" :style="{width : percentage + '%' }"></view>
  18. <view v-if="percentage<20" class="bar1" :style="{width : percentage + '%' }"></view>
  19. </view>
  20. </view>
  21. <view class="Workcardtext">电量:{{percentage}}%</view>
  22. </view>
  23. <view class="Workcard-box">
  24. <view class="Workcardimg">
  25. <image v-if="signalDevice==''" class="Workcardimg2" src="../../static/images/signal0.png"
  26. mode=""></image>
  27. <image v-else-if="signalDevice<20 && signalDevice>0" class="Workcardimg2"
  28. src="../../static/images/signal1.png" mode=""></image>
  29. <image v-else-if="signalDevice<50 && signalDevice>20" class="Workcardimg2"
  30. src="../../static/images/signal2.png" mode=""></image>
  31. <image v-else-if="signalDevice<70 && signalDevice>50" class="Workcardimg2"
  32. src="../../static/images/signal3.png" mode=""></image>
  33. <image v-else-if="signalDevice<90 && signalDevice>70" class="Workcardimg2"
  34. src="../../static/images/signal4.png" mode=""></image>
  35. <image v-else-if="signalDevice<=100 && signalDevice>90" class="Workcardimg2"
  36. src="../../static/images/signal5.png" mode=""></image>
  37. </view>
  38. <view class="Workcardtext">信号:{{signalDevicetext}}</view>
  39. </view>
  40. <view class="Workcard-box">
  41. <view class="Workcardimg">
  42. <image v-if="audioStatus=='true'" class="Workcardimg3"
  43. src="../../static/images/Thtapedrive1.png" mode=""></image>
  44. <image v-if="audioStatus=='false'" class="Workcardimg3"
  45. src="../../static/images/Thtapedrive2.png" mode=""></image>
  46. </view>
  47. <view v-if="audioStatus=='true'" class="Workcardtext">录音:已开启</view>
  48. <view v-if="audioStatus=='false'" class="Workcardtext">录音:未开启</view>
  49. </view>
  50. </view>
  51. <view class="Workcard" v-if="Whetheroffline==false">
  52. <view class="Workcard-box">
  53. <view class="Workcardimg">
  54. <image class="Workcardimg4" src="../../static/images/offline.png" mode=""></image>
  55. </view>
  56. <view class="Workcardtext">设备离线</view>
  57. </view>
  58. </view>
  59. </view>
  60. <view class="title" v-if="permissions.shebeinum">设备</view>
  61. <view class="shebenbox" v-if="permissions.shebeinum" >
  62. <view class="shebenche" @click="tapjumpequipment(0)">
  63. <view class="shebenchenum">{{equipmentobj.totalNum || 0}}</view>
  64. <view class="shebenchetext">设备总数</view>
  65. </view>
  66. <view class="shebenche" @click="tapjumpequipment(1)">
  67. <view class="shebenchenum">{{equipmentobj.onlineNum || 0}}</view>
  68. <view class="shebenchetext">在线</view>
  69. </view>
  70. <view class="shebenche" @click="tapjumpequipment(3)">
  71. <view class="shebenchenum">{{equipmentobj.activeNum || 0}}</view>
  72. <view class="shebenchetext">活跃</view>
  73. </view>
  74. <view class="shebenche" @click="tapjumpequipment(2)">
  75. <view class="shebenchenum" style="color: red;">{{equipmentobj.lowPowerNum || 0}}</view>
  76. <view class="shebenchetext">急需充电</view>
  77. </view>
  78. </view>
  79. <view class="title" v-if="permissions.shishinum">实时统计</view>
  80. <view class="real-timebox" v-if="permissions.shishinum">
  81. <view class="timebox">
  82. <view class="real" @click="tapjumpreception('1')">
  83. <view class="realnum">{{realtimeobj.receptionCount || 0}}</view>
  84. <view class="realtext">接待量</view>
  85. </view>
  86. <view class="real" @click="tapjumpreception('6')">
  87. <view class="realnum">{{realtimeobj.activeCustomer|| 0}}</view>
  88. <view class="realtext">有效接待</view>
  89. </view>
  90. <view class="real" @click="tapjumpreception('2')">
  91. <view class="realnum">{{realtimeobj.receivingCustomer || 0}}</view>
  92. <view class="realtext">正在接待</view>
  93. </view>
  94. <view class="real" @click="tapjumpreception('4')">
  95. <view class="realnum">{{realtimeobj.tagCustomer || 0}}</view>
  96. <view class="realtext">未标顾问</view>
  97. </view>
  98. </view>
  99. <view class="timebox">
  100. <view class="real" @click="tapjumpreception('1')">
  101. <view class="realnum">{{realtimeobj.avgDuration|| 0}}</view>
  102. <view class="realtext">平均接待时长</view>
  103. </view>
  104. <view class="real" @click="tapjumpreception('1')">
  105. <view class="realnum">{{realtimeobj.fraction || 0}}%</view>
  106. <view class="realtext">平均执行率</view>
  107. </view>
  108. <view class="real" >
  109. <view @click="prohibitedtap(1)" v-if="methodsisshow==true" class="realnum" style="color: red;" >{{realtimeobj.prohibitedCustomer || 0}}</view>
  110. <view @click="prohibitedtap(1)" v-if="methodsisshow==true" class="realtext">违禁预警</view>
  111. </view>
  112. <view class="real">
  113. <view class="realnum"></view>
  114. <view class="realtext"></view>
  115. </view>
  116. </view>
  117. </view>
  118. <view class="title" v-if="permissions.jileinum" style="display: flex;">
  119. <view style="width: 55%;">概览</view>
  120. <view class="cet" style="display: flex;">
  121. <view class="cetview" :class="{ activecllasscet: zhixingcenterindex == 2 }" @click="tabtimeclick(2)">近7天</view>
  122. <view class="cetview" :class="{ activecllasscet: zhixingcenterindex == 6 }" @click="tabtimeclick(6)">近30天</view>
  123. <view class="cetview" :class="{ activecllasscet: zhixingcenterindex == 7 }" @click="tabtimeclick(7)">自定义</view>
  124. </view>
  125. </view>
  126. <view class="real-timebox" v-if="permissions.jileinum">
  127. <view class="timebox">
  128. <view class="real" @click="tapjumpreception('3')">
  129. <view class="realnum">{{Thisweekobj.receptionCount || 0}}</view>
  130. <view class="realtext">接待量</view>
  131. </view>
  132. <view class="real" @click="tapjumpreception('7')">
  133. <view class="realnum">{{Thisweekobj.activeCustomer|| 0}}</view>
  134. <view class="realtext">有效接待</view>
  135. </view>
  136. <view class="real" @click="tapjumpreception('3')">
  137. <view class="realnum">{{Thisweekobj.fraction || 0}}%</view>
  138. <view class="realtext">平均执行率</view>
  139. </view>
  140. </view>
  141. <view class="timebox">
  142. <view class="real" @click="tapjumpreception('3')">
  143. <view class="realnum">{{Thisweekobj.avgDuration|| 0}}</view>
  144. <view class="realtext">平均接待时长</view>
  145. </view>
  146. <view class="real" @click="prohibitedtap(2)" v-if="methodsisshow==true">
  147. <view class="realnum" style="color: red;" >{{Thisweekobj.prohibitedCustomer || 0}}</view>
  148. <view class="realtext">违禁预警</view>
  149. </view>
  150. <view class="real" v-else>
  151. <view class="realnum"></view>
  152. <view class="realtext"></view>
  153. </view>
  154. <view class="real">
  155. <view class="realnum"></view>
  156. <view class="realtext"></view>
  157. </view>
  158. </view>
  159. </view>
  160. <view class="title">常用功能</view>
  161. <view class="commonly-box">
  162. <view class="commonly" @click="Piabodata('客户管理')" v-if="permissions.commonly1">
  163. <view class="commonly-img">
  164. <image class="commonly-img1" src="../../static/images/function1.png" mode=""></image>
  165. </view>
  166. <view class="commonly-text">客户管理</view>
  167. </view>
  168. <view class="commonly" @click="Piabodata('接待记录')" v-if="permissions.commonly2">
  169. <view class="commonly-img">
  170. <image class="commonly-img1" src="../../static/images/function2.png" mode=""></image>
  171. </view>
  172. <view class="commonly-text">接待记录</view>
  173. </view>
  174. <view class="commonly" @click="Piabodata('违禁记录')" v-if="permissions.commonly3">
  175. <view class="commonly-img">
  176. <image class="commonly-img1" src="../../static/images/prohibited.png" mode=""></image>
  177. </view>
  178. <view class="commonly-text">违禁记录</view>
  179. </view>
  180. <view class="commonly" @click="Piabodata('销讲分析')" v-if="permissions.commonly4">
  181. <view class="commonly-img">
  182. <image class="commonly-img1" src="../../static/images/function4.png" mode=""></image>
  183. </view>
  184. <view class="commonly-text">销讲分析</view>
  185. </view>
  186. <view class="commonly" @click="Piabodata('设备管理')" v-if="permissions.commonly5">
  187. <view class="commonly-img">
  188. <image class="commonly-img1" src="../../static/images/function5.png" mode=""></image>
  189. </view>
  190. <view class="commonly-text">设备管理</view>
  191. </view>
  192. <view class="commonly" @click="Piabodata('值班顾问')" v-if="permissions.commonly6">
  193. <view class="commonly-img">
  194. <image class="commonly-img1" src="../../static/images/function6.png" mode=""></image>
  195. </view>
  196. <view class="commonly-text">值班顾问</view>
  197. </view>
  198. <view class="commonly" @click="Piabodata('顾问排名')" v-if="permissions.commonly7">
  199. <view class="commonly-img">
  200. <image class="commonly-img1" src="../../static/images/rankingguwen.png" mode=""></image>
  201. </view>
  202. <view class="commonly-text">顾问排名</view>
  203. </view>
  204. </view>
  205. <!-- 楼盘切换 -->
  206. <view v-if="Showhiddenunits">
  207. <u-select :mask-close-able="false" v-model="Showhiddenunits" mode="single-column" :list="lpanlist"
  208. @cancel="cancel" @confirm="confirm"></u-select>
  209. </view>
  210. <u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar>
  211. </view>
  212. </template>
  213. <script>
  214. var config = require("../../config");
  215. export default {
  216. data() {
  217. return {
  218. userInfo: {},
  219. Showhiddenunits: false,
  220. lpanlist: [], //楼盘列表
  221. buildingname: '', //楼盘名
  222. buildingID: '', //楼盘id
  223. buildingishow: false, //是否选择楼盘
  224. // Myworkcard: false,
  225. percentage: '', //设备电量
  226. Whetheroffline: false, //是否离线
  227. signalDevice: 0, //信号
  228. signalDevicetext: "",
  229. audioStatus: false,
  230. equipmentisshow: false,
  231. equipmentobj: {
  232. totalNum: '',
  233. onlineNum: '',
  234. activeNum: '',
  235. lowPowerNum: '',
  236. },
  237. Menulist: [],
  238. realtimeobj: {
  239. sumCustomer: '',
  240. receivingCustomer: '',
  241. activeCustomer: '',
  242. prohibitedCustomer: '',
  243. tagCustomer: '',
  244. fraction: '',
  245. receptionCount:''
  246. },
  247. Thisweekobj: {
  248. sumCustomer: '',
  249. receivingCustomer: '',
  250. activeCustomer: '',
  251. prohibitedCustomer: '',
  252. tagCustomer: '',
  253. fraction: '',
  254. receptionCount:''
  255. },
  256. methodsisshow:false,
  257. zhixingcenterindex:2,
  258. totalTimeShow: false,
  259. statDateStart:'',
  260. statDateEnd:'',
  261. permissions:{
  262. commonly1:false,
  263. commonly2:false,
  264. commonly3:false,
  265. commonly4:false,
  266. commonly5:false,
  267. commonly6:false,
  268. commonly7:false,
  269. myisshebei:false,
  270. shebeinum:false,
  271. shishinum:false,
  272. jileinum:false
  273. },
  274. // 标记顾问 bjgw
  275. // 接待无效标记 jdwxbj
  276. // 设为优秀案例 swyxal
  277. // 常错词 ccc
  278. // 校准 xz
  279. // 查看违禁执行 ckwjzx
  280. };
  281. },
  282. components: {},
  283. onShow() {
  284. this.getMenu()
  285. this.userInfo = uni.getStorageSync('weapp_session_userInfo_data');
  286. if(this.userInfo.dataCode==6 || this.userInfo.dataCode==3){
  287. this.methodsisshow=false;
  288. }else{
  289. this.methodsisshow=true;
  290. }
  291. if (this.userInfo.zkProperties.length == 1) {
  292. this.buildingID = uni.getStorageSync('buildingID').id;
  293. this.buildingname = uni.getStorageSync('buildingID').name;
  294. this.buildingishow = false;
  295. } else {
  296. this.buildingishow = true;
  297. this.buildingname = uni.getStorageSync('buildingID').name;
  298. this.buildingID = uni.getStorageSync('buildingID').id;
  299. this.userInfo.zkProperties.forEach(item => {
  300. item.label = item.propertyName;
  301. item.value = item.id
  302. })
  303. this.lpanlist = this.userInfo.zkProperties
  304. }
  305. if (this.userInfo.dataCode == 6) {
  306. // this.Myworkcard = true;
  307. this.equipmentisshow = false;
  308. this.iniodianloang()
  309. } else {
  310. this.equipmentisshow = true;
  311. // this.Myworkcard = false;
  312. this.initequipment()
  313. }
  314. this.initworkThisWeek()
  315. this.initrealTimeStatistics()
  316. },
  317. methods: {
  318. //获取权限
  319. getMenu(){
  320. uni.request({
  321. url: config.service.getMenu,
  322. method: "POST",
  323. header: {
  324. 'content-type': 'application/json',
  325. 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token
  326. },
  327. success: (data) => {
  328. let rescor=data.data;
  329. if (rescor.code == 0) {
  330. uni.setStorageSync("weapp_session_Menu_data", rescor.data)
  331. let newmenulist= uni.getStorageSync('weapp_session_Menu_data');
  332. this.permissions.commonly1=newmenulist.khgl;
  333. this.permissions.commonly2=newmenulist.jdjl;
  334. this.permissions.commonly3=newmenulist.wjjl;
  335. this.permissions.commonly4=newmenulist.xjfx;
  336. this.permissions.commonly5=newmenulist.sbgl;
  337. this.permissions.commonly6=newmenulist.zbgw;
  338. this.permissions.commonly7=newmenulist.gwpm;
  339. this.permissions.myisshebei=newmenulist.wdsb;
  340. this.permissions.shebeinum=newmenulist.sbtj;
  341. this.permissions.shishinum=newmenulist.sstj;
  342. this.permissions.jileinum=newmenulist.gzlj;
  343. }
  344. }
  345. })
  346. },
  347. //自定义时间
  348. totalTimeChange(e) {
  349. this.statDateStart=e.startDate;
  350. this.statDateEnd=e.endDate;
  351. this.zhixingcenterindex=7;
  352. this.initworkThisWeek()
  353. },
  354. tabtimeclick(i){
  355. if(i==7){
  356. this.totalTimeShow = true;
  357. }else{
  358. this.zhixingcenterindex=i;
  359. this.initworkThisWeek()
  360. }
  361. },
  362. initworkThisWeek() {
  363. uni.request({
  364. url: config.service.workThisWeek,
  365. method: "POST",
  366. header: {
  367. 'content-type': 'application/json',
  368. 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token
  369. },
  370. data: {
  371. houseId: this.buildingID,
  372. dateType:this.zhixingcenterindex==7?null:this.zhixingcenterindex,
  373. statDateStart:this.statDateStart,
  374. statDateEnd:this.statDateEnd
  375. },
  376. success: (data) => {
  377. if (data.data.data == null) {
  378. return
  379. } else {
  380. this.Thisweekobj = {
  381. sumCustomer: data.data.data.sumCustomer,
  382. receivingCustomer: data.data.data.receivingCustomer,
  383. activeCustomer: data.data.data.activeCustomer,
  384. prohibitedCustomer: data.data.data.prohibitedCustomer,
  385. avgDuration: data.data.data.avgDuration ||0,
  386. tagCustomer: data.data.data.tagCustomer,
  387. fraction: data.data.data.fraction,
  388. receptionCount:data.data.data.receptionCount
  389. }
  390. }
  391. }
  392. })
  393. },
  394. //实时统计
  395. initrealTimeStatistics() {
  396. uni.request({
  397. url: config.service.realTimeStatistics,
  398. method: "POST",
  399. header: {
  400. 'content-type': 'application/json',
  401. 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token
  402. },
  403. data: {
  404. houseId: this.buildingID
  405. },
  406. success: (data) => {
  407. if (data.data.data == null) {
  408. return
  409. } else {
  410. this.realtimeobj = {
  411. sumCustomer: data.data.data.sumCustomer,
  412. receivingCustomer: data.data.data.receivingCustomer,
  413. activeCustomer: data.data.data.activeCustomer,
  414. prohibitedCustomer: data.data.data.prohibitedCustomer,
  415. avgDuration: data.data.data.avgDuration ||0,
  416. tagCustomer: data.data.data.tagCustomer,
  417. fraction: data.data.data.fraction,
  418. receptionCount:data.data.data.receptionCount
  419. }
  420. }
  421. }
  422. })
  423. },
  424. //设备
  425. initequipment() {
  426. uni.request({
  427. url: config.service.findEquipmentState,
  428. method: "POST",
  429. header: {
  430. 'content-type': 'application/json',
  431. 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token
  432. },
  433. data: {
  434. propertyId: this.buildingID
  435. },
  436. success: (data) => {
  437. if (data.data.data == null) {
  438. return
  439. } else {
  440. this.equipmentobj = {
  441. totalNum: data.data.data.totalNum,
  442. onlineNum: data.data.data.onlineNum,
  443. activeNum: data.data.data.activeNum,
  444. lowPowerNum: data.data.data.lowPowerNum,
  445. }
  446. }
  447. }
  448. })
  449. },
  450. //我的工牌
  451. iniodianloang() {
  452. uni.request({
  453. url: config.service.findElectricity,
  454. method: "POST",
  455. header: {
  456. 'content-type': 'application/json',
  457. 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token
  458. },
  459. data: {},
  460. success: (data) => {
  461. if (data.data.data == null) {
  462. return
  463. } else {
  464. if (data.data.data > 100) {
  465. this.percentage = 100;
  466. } else {
  467. if (data.data.data.onLine == 0) {
  468. this.Whetheroffline = false;
  469. } else {
  470. this.Whetheroffline = true;
  471. this.percentage = data.data.data.electricity;
  472. this.signalDevice = data.data.data.signalDevice / 1;
  473. console.log(this.signalDevice)
  474. this.audioStatus = data.data.data.audioStatus;
  475. if (this.signalDevice > 80) {
  476. this.signalDevicetext = '高';
  477. } else {
  478. if (this.signalDevice == 0) {
  479. this.signalDevicetext = '无';
  480. } else {
  481. this.signalDevicetext = '低';
  482. }
  483. }
  484. }
  485. }
  486. }
  487. }
  488. })
  489. },
  490. //选择楼盘弹框
  491. piskbuilding() {
  492. this.Showhiddenunits = true;
  493. },
  494. // 楼盘选择确认
  495. confirm(e) {
  496. this.buildingname = e[0].label;
  497. this.buildingID = e[0].value;
  498. let lopan = {
  499. id: e[0].value,
  500. name: e[0].label
  501. }
  502. uni.setStorageSync("buildingID", lopan); //楼盘id写入缓存
  503. this.initworkThisWeek()
  504. this.initrealTimeStatistics()
  505. this.initequipment()
  506. this.iniodianloang()
  507. },
  508. // 楼盘选择取消
  509. cancel() {
  510. this.Showhiddenunits = false;
  511. },
  512. tapjumpequipment(i){
  513. if(permissions.commonly5==true){
  514. uni.navigateTo({
  515. url: '/pages/mine/equipment/index?active='+i
  516. });
  517. }
  518. },
  519. prohibitedtap(i){
  520. if(i==1){
  521. uni.navigateTo({
  522. url: '/pages/center/prohibited/index?refresh='+'refresh'+'&activeTotal='+'0'
  523. });
  524. }else{
  525. if(this.zhixingcenterindex==2){
  526. uni.navigateTo({
  527. url: '/pages/center/prohibited/index?refresh='+'refresh'+'&activeTotal='+'2'
  528. });
  529. }else if(this.zhixingcenterindex==6){
  530. uni.navigateTo({
  531. url: '/pages/center/prohibited/index?refresh='+'refresh'+'&activeTotal='+'3'
  532. });
  533. }else{
  534. uni.navigateTo({
  535. url: '/pages/center/prohibited/index?refresh='+'refresh'+'&activeTotal='+'4'+'&staTime='+this.statDateStart+'&endtime='+this.statDateEnd
  536. });
  537. }
  538. }
  539. },
  540. tapjumpreception(i){
  541. if(this.permissions.commonly2==true){
  542. if(i==1){
  543. uni.navigateTo({
  544. url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'0'
  545. });
  546. }else if(i==2){
  547. uni.switchTab({
  548. url: '/pages/index/customer'
  549. });
  550. }else if(i==3){
  551. if(this.zhixingcenterindex==2){
  552. uni.navigateTo({
  553. url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'2'
  554. });
  555. }else if(this.zhixingcenterindex==6){
  556. uni.navigateTo({
  557. url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'3'
  558. });
  559. }else{
  560. uni.navigateTo({
  561. url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'4'+'&staTime='+this.statDateStart+'&endtime='+this.statDateEnd
  562. });
  563. }
  564. }else if(i==6){
  565. uni.navigateTo({
  566. url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'0'+'&validInvalid=0'
  567. });
  568. }else if(i==7){
  569. if(this.zhixingcenterindex==2){
  570. uni.navigateTo({
  571. url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'2'+'&validInvalid=0'
  572. });
  573. }else if(this.zhixingcenterindex==6){
  574. uni.navigateTo({
  575. url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'3'+'&validInvalid=0'
  576. });
  577. }else{
  578. uni.navigateTo({
  579. url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'4'+'&staTime='+this.statDateStart+'&endtime='+this.statDateEnd+'&validInvalid=0'
  580. });
  581. }
  582. }else{
  583. uni.navigateTo({
  584. url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal=0'+'&markAdvisor=0'
  585. });
  586. }
  587. }
  588. },
  589. Piabodata(item) {
  590. if (item == '销讲分析') {
  591. uni.navigateTo({
  592. url: '/pages/center/Piabodata/index'
  593. });
  594. } else if (item == '接待记录') {
  595. uni.navigateTo({
  596. url: '/pages/center/records/index?refresh='+'refresh'
  597. });
  598. } else if (item == '值班顾问') {
  599. uni.navigateTo({
  600. url: '/pages/mine/consultanonduty/index'
  601. });
  602. } else if (item == '设备管理') {
  603. uni.navigateTo({
  604. url: '/pages/mine/equipment/index'
  605. });
  606. } else if(item == '顾问排名') {
  607. uni.navigateTo({
  608. url: '/pages/center/Piabodata/Employeesstatistics'
  609. });
  610. }else if(item == '违禁记录'){
  611. uni.navigateTo({
  612. url: '/pages/center/prohibited/index?refresh='+'refresh'
  613. });
  614. }else{
  615. uni.navigateTo({
  616. url: '/pages/center/consumer/index?refresh='+'refresh'
  617. });
  618. }
  619. },
  620. },
  621. };
  622. </script>
  623. <style lang="scss" scoped>
  624. .activecllasscet{
  625. font-size: 28rpx;
  626. font-weight: 400;
  627. color: #008ef2;
  628. }
  629. .cet{
  630. font-size: 28rpx;
  631. font-weight: 400;
  632. color: #333333;
  633. .cetview{
  634. margin-left: 20rpx;
  635. }
  636. }
  637. .cented-box {
  638. padding: 30rpx;
  639. background: #F8F8F8;
  640. width: 100%;
  641. height: 100%;
  642. }
  643. .Switchingbox {
  644. width: 100%;
  645. height: 44rpx;
  646. display: flex;
  647. align-items: center;
  648. .Switching1 {
  649. width: 44rpx;
  650. height: 44rpx;
  651. .Switching1-img {
  652. width: 44rpx;
  653. height: 44rpx;
  654. }
  655. }
  656. .Switching2 {
  657. margin-left: 12rpx;
  658. font-size: 32rpx;
  659. color: #303030;
  660. font-weight: 500;
  661. }
  662. .Switching3 {
  663. width: calc(100% - 280rpx);
  664. font-size: 32rpx;
  665. color: #303030;
  666. font-weight: 500;
  667. }
  668. .Switching4 {
  669. width: 112rpx;
  670. font-size: 28rpx;
  671. color: #303030;
  672. font-weight: 400;
  673. text-align: right;
  674. text-decoration: underline
  675. }
  676. }
  677. .Workcard {
  678. width: 100%;
  679. background: #FFFFFF;
  680. height: 154rpx;
  681. box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
  682. border-radius: 12rpx;
  683. display: flex;
  684. .Workcard-box {
  685. flex: 1;
  686. height: 100%;
  687. .Workcardimg {
  688. width: 100%;
  689. display: flex;
  690. justify-content: center;
  691. margin-top: 42rpx;
  692. .Workcardimg1 {
  693. width: 64rpx;
  694. height: 36rpx;
  695. background-image: url(../../static/images/battery.png);
  696. background-size: 100% 100%;
  697. padding: 8rpx;
  698. .bar {
  699. background-color: #43CD80;
  700. height: 100%;
  701. border-radius: 4rpx;
  702. }
  703. .bar1 {
  704. background-color: red;
  705. height: 100%;
  706. border-radius: 4rpx;
  707. }
  708. }
  709. .Workcardimg2 {
  710. width: 56rpx;
  711. height: 36rpx;
  712. }
  713. .Workcardimg3 {
  714. width: 34rpx;
  715. height: 36rpx;
  716. }
  717. .Workcardimg4 {
  718. width: 50rpx;
  719. height: 40rpx;
  720. }
  721. }
  722. .Workcardtext {
  723. width: 100%;
  724. text-align: center;
  725. font-size: 24rpx;
  726. font-weight: 400;
  727. color: #666666;
  728. margin-top: 20rpx;
  729. }
  730. }
  731. }
  732. .title {
  733. width: 100%;
  734. height: 30rpx;
  735. font-size: 30rpx;
  736. font-weight: 600;
  737. color: #333333;
  738. margin-top: 40rpx;
  739. margin-bottom: 24rpx;
  740. }
  741. .shebenbox {
  742. width: 100%;
  743. height: 156rpx;
  744. background: #FFFFFF;
  745. box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
  746. border-radius: 12rpx;
  747. display: flex;
  748. .shebenche {
  749. width: 25%;
  750. height: 100%;
  751. .shebenchenum {
  752. width: 100%;
  753. font-size: 36rpx;
  754. font-weight: 600;
  755. color: #333333;
  756. text-align: center;
  757. margin-top: 28rpx;
  758. }
  759. .shebenchetext {
  760. width: 100%;
  761. font-size: 24rpx;
  762. font-weight: 400;
  763. color: #666666;
  764. text-align: center;
  765. margin-top: 24rpx;
  766. }
  767. }
  768. }
  769. .real-timebox {
  770. width: 100%;
  771. background: #FFFFFF;
  772. box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
  773. border-radius: 12rpx;
  774. padding-bottom: 36rpx;
  775. .timebox {
  776. width: 100%;
  777. display: flex;
  778. .real {
  779. flex: 1;
  780. height: 100%;
  781. .realnum {
  782. width: 100%;
  783. font-size: 36rpx;
  784. font-weight: 600;
  785. color: #333333;
  786. text-align: center;
  787. margin-top: 36rpx;
  788. }
  789. .realtext {
  790. width: 100%;
  791. font-size: 24rpx;
  792. font-weight: 400;
  793. color: #666666;
  794. text-align: center;
  795. margin-top: 24rpx;
  796. }
  797. }
  798. }
  799. }
  800. .commonly-box {
  801. width: 100%;
  802. background: #FFFFFF;
  803. box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
  804. border-radius: 12rpx;
  805. display: flex;
  806. flex-wrap: wrap;
  807. padding-bottom: 36rpx;
  808. .commonly {
  809. width: 25%;
  810. margin-top: 36rpx;
  811. .commonly-img {
  812. width: 100%;
  813. height: 68rpx;
  814. text-align: center;
  815. .commonly-img1 {
  816. width: 68rpx;
  817. height: 68rpx;
  818. border-radius: 50%;
  819. }
  820. }
  821. .commonly-text {
  822. width: 100%;
  823. text-align: center;
  824. font-size: 24rpx;
  825. font-weight: 400;
  826. color: #333333;
  827. margin-top: 16rpx;
  828. }
  829. }
  830. }
  831. </style>