您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

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