AI营销辅助 普强使用
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.
 
 
 

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