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.
 
 
 

1042 lines
28 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'>
  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 v-if="item.name=='标记有效无效接待'" class="commonly-text"></view>
  190. <view v-else class="commonly-text">{{item.name}}</view>
  191. </view>
  192. </view>
  193. <!-- 项目切换 -->
  194. <view v-if="Showhiddenunits">
  195. <u-select :mask-close-able="false" v-model="Showhiddenunits" mode="single-column" :list="lpanlist"
  196. @cancel="cancel" @confirm="confirm"></u-select>
  197. </view>
  198. <u-calendar v-model="totalTimeShow" mode="range" @change="totalTimeChange"></u-calendar>
  199. <u-tabbar activeColor="#1296db" inactiveColor="#999999" v-model="current" :list="tabbarList"></u-tabbar>
  200. <view class="update" v-if="isShowUpdate">
  201. <view class="updateBox">
  202. <view class="top">
  203. <image src="../../static/images/updateIcon.png"></image>
  204. </view>
  205. <view class="content">
  206. <view class="tit">{{tit}}</view>
  207. <u-parse class="ql-editor" :content="content" @preview="preview" @navigate="navigate"/>
  208. <!-- <rich-text :nodes="content"></rich-text> -->
  209. </view>
  210. <view class="btn" @click="lookDetail">查看详情</view>
  211. <view class="close" @click="close">
  212. <u-icon name="close-circle" size="80" color="#FFFFFF"></u-icon>
  213. </view>
  214. </view>
  215. </view>
  216. </view>
  217. </template>
  218. <script>
  219. var config = require("../../config");
  220. var util = require("../../utils/util.js");
  221. import tabbarList from '@/utils/tabbar.js'
  222. import uParse from '../../components/gaoyia-parse/parse.vue'
  223. export default {
  224. data() {
  225. return {
  226. id:"",
  227. isShowUpdate:false,
  228. tit:"",
  229. content:"",
  230. tabbarList:tabbarList,
  231. current: 0,
  232. userInfo: {},
  233. Showhiddenunits: false,
  234. lpanlist: [], //项目列表
  235. buildingname: '', //项目名
  236. buildingID: '', //项目id
  237. buildingishow: false, //是否选择项目
  238. Myworkcard: false,
  239. percentage: '', //设备电量
  240. Whetheroffline: false, //是否离线
  241. signalDevice: 0, //信号
  242. signalDevicetext: "",
  243. audioStatus: false,
  244. equipmentisshow: false,
  245. equipmentobj: {
  246. totalNum: '',
  247. onlineNum: '',
  248. activeNum: '',
  249. lowPowerNum: '',
  250. },
  251. Menulist: [],
  252. realtimeobj: {
  253. sumCustomer: '',
  254. receivingCustomer: '',
  255. activeCustomer: '',
  256. prohibitedCustomer: '',
  257. tagCustomer: '',
  258. fraction: '',
  259. receptionCount:''
  260. },
  261. Thisweekobj: {
  262. sumCustomer: '',
  263. receivingCustomer: '',
  264. activeCustomer: '',
  265. prohibitedCustomer: '',
  266. tagCustomer: '',
  267. fraction: '',
  268. receptionCount:''
  269. },
  270. methodsisshow:false,
  271. zhixingcenterindex:2,
  272. totalTimeShow: false,
  273. statDateStart:'',
  274. statDateEnd:'',
  275. };
  276. },
  277. components: {
  278. uParse
  279. },
  280. onShow() {
  281. this.getMenu()
  282. this.userInfo = uni.getStorageSync('weapp_session_userInfo_data');
  283. if(this.userInfo.dataCode==6 || this.userInfo.dataCode==3){
  284. this.methodsisshow=false;
  285. }else{
  286. this.methodsisshow=true;
  287. }
  288. if (this.userInfo.zkProperties.length == 1) {
  289. this.buildingID = uni.getStorageSync('buildingID').id;
  290. this.buildingname = uni.getStorageSync('buildingID').name;
  291. this.buildingishow = false;
  292. } else {
  293. this.buildingishow = true;
  294. this.buildingname = uni.getStorageSync('buildingID').name;
  295. this.buildingID = uni.getStorageSync('buildingID').id;
  296. this.userInfo.zkProperties.forEach(item => {
  297. item.label = item.propertyName;
  298. item.value = item.id
  299. })
  300. this.lpanlist = this.userInfo.zkProperties
  301. }
  302. if (this.userInfo.dataCode == 6) {
  303. this.Myworkcard = true;
  304. this.equipmentisshow = false;
  305. this.iniodianloang()
  306. } else {
  307. this.equipmentisshow = true;
  308. this.Myworkcard = false;
  309. this.initequipment()
  310. }
  311. this.initworkThisWeek()
  312. this.initrealTimeStatistics()
  313. this.updateInit()
  314. },
  315. onPullDownRefresh() {
  316. this.getMenu()
  317. this.userInfo = uni.getStorageSync('weapp_session_userInfo_data');
  318. if (this.userInfo.dataCode == 6 || this.userInfo.dataCode == 3) {
  319. this.methodsisshow = false;
  320. } else {
  321. this.methodsisshow = true;
  322. }
  323. if (this.userInfo.zkProperties.length == 1) {
  324. this.buildingID = uni.getStorageSync('buildingID').id;
  325. this.buildingname = uni.getStorageSync('buildingID').name;
  326. this.buildingishow = false;
  327. } else {
  328. this.buildingishow = true;
  329. this.buildingname = uni.getStorageSync('buildingID').name;
  330. this.buildingID = uni.getStorageSync('buildingID').id;
  331. this.userInfo.zkProperties.forEach(item => {
  332. item.label = item.propertyName;
  333. item.value = item.id
  334. })
  335. this.lpanlist = this.userInfo.zkProperties
  336. }
  337. if (this.userInfo.dataCode == 6) {
  338. // this.Myworkcard = true;
  339. this.equipmentisshow = false;
  340. this.iniodianloang()
  341. } else {
  342. this.equipmentisshow = true;
  343. // this.Myworkcard = false;
  344. this.initequipment()
  345. // this.waitForOperation()
  346. }
  347. this.initworkThisWeek()
  348. this.initrealTimeStatistics()
  349. setTimeout(() => {
  350. uni.stopPullDownRefresh()
  351. }, 3000)
  352. },
  353. onLoad() {
  354. this.initPopup()
  355. },
  356. methods: {
  357. close(){
  358. this.isShowUpdate = false;
  359. },
  360. lookDetail(){
  361. let link = encodeURIComponent(JSON.stringify(this.content))
  362. uni.navigateTo({
  363. url: "../mine/messageDetail?content=" + link + "&id=" + this.id
  364. })
  365. let data = {
  366. id:this.id,
  367. accountId:uni.getStorageSync('weapp_session_userInfo_data').accountId
  368. }
  369. uni.request({
  370. url: config.service.updateRead,
  371. method: "GET",
  372. header: {
  373. 'content-type': 'application/json',
  374. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  375. },
  376. data,
  377. success: (res) => {
  378. return;
  379. }
  380. })
  381. this.isShowUpdate = false;
  382. },
  383. initPopup(){
  384. uni.request({
  385. url: config.service.updatePopup,
  386. method: "GET",
  387. header: {
  388. 'content-type': 'application/json',
  389. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  390. },
  391. success: (res) => {
  392. this.content = res.data.data.content
  393. this.tit = res.data.data.title
  394. this.aid = res.data.data.accountId
  395. this.id = res.data.data.id
  396. this.isShowUpdate = res.data.data.readFlag==0?true:false
  397. }
  398. })
  399. },
  400. updateInit() {
  401. uni.request({
  402. url: config.service.updateList,
  403. method: "GET",
  404. data: {
  405. id: uni.getStorageSync('weapp_session_userInfo_data').accountId
  406. },
  407. header: {
  408. 'content-type': 'application/json',
  409. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  410. },
  411. success: (res) => {
  412. this.count = res.data.data.count
  413. this.tabbarList[3].count = res.data.data.count
  414. }
  415. })
  416. },
  417. //获取权限
  418. getMenu(){
  419. this.$u.get("/user/getMenu").then(data => {
  420. uni.setStorageSync("weapp_session_Menu_data", data)
  421. this.Menulist = uni.getStorageSync('weapp_session_Menu_data');
  422. console.log(this.Menulist, 'adasdasds123')
  423. })
  424. },
  425. //自定义时间
  426. totalTimeChange(e) {
  427. this.statDateStart=e.startDate;
  428. this.statDateEnd=e.endDate;
  429. this.zhixingcenterindex=7;
  430. this.initworkThisWeek()
  431. },
  432. //时间选择
  433. tabtimeclick(i){
  434. if(i==7){
  435. this.totalTimeShow = true;
  436. }else{
  437. this.zhixingcenterindex=i;
  438. this.initworkThisWeek()
  439. }
  440. },
  441. //获取概览数据
  442. initworkThisWeek() {
  443. uni.request({
  444. url: config.service.workThisWeek,
  445. method: "POST",
  446. header: {
  447. 'content-type': 'application/json',
  448. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  449. },
  450. data: {
  451. houseId: this.buildingID,
  452. dateType:this.zhixingcenterindex==7?null:this.zhixingcenterindex,
  453. statDateStart:this.statDateStart,
  454. statDateEnd:this.statDateEnd
  455. },
  456. success: (data) => {
  457. if (data.data.data == null) {
  458. return
  459. } else {
  460. this.Thisweekobj = {
  461. sumCustomer: data.data.data.sumCustomer,
  462. receivingCustomer: data.data.data.receivingCustomer,
  463. activeCustomer: data.data.data.activeCustomer,
  464. prohibitedCustomer: data.data.data.prohibitedCustomer,
  465. avgDuration: Math.floor(data.data.data.avgDuration/60) ||0,
  466. tagCustomer: data.data.data.tagCustomer,
  467. fraction: data.data.data.fraction,
  468. receptionCount:data.data.data.receptionCount
  469. }
  470. }
  471. }
  472. })
  473. },
  474. //实时统计
  475. initrealTimeStatistics() {
  476. uni.request({
  477. url: config.service.realTimeStatistics,
  478. method: "POST",
  479. header: {
  480. 'content-type': 'application/json',
  481. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  482. },
  483. data: {
  484. houseId: this.buildingID
  485. },
  486. success: (data) => {
  487. if (data.data.data == null) {
  488. return
  489. } else {
  490. this.realtimeobj = {
  491. sumCustomer: data.data.data.sumCustomer,
  492. receivingCustomer: data.data.data.receivingCustomer,
  493. activeCustomer: data.data.data.activeCustomer,
  494. prohibitedCustomer: data.data.data.prohibitedCustomer,
  495. avgDuration: Math.floor(data.data.data.avgDuration/60) ||0,
  496. tagCustomer: data.data.data.tagCustomer,
  497. fraction: data.data.data.fraction,
  498. receptionCount:data.data.data.receptionCount
  499. }
  500. }
  501. }
  502. })
  503. },
  504. //设备
  505. initequipment() {
  506. uni.request({
  507. url: config.service.findEquipmentState,
  508. method: "POST",
  509. header: {
  510. 'content-type': 'application/json',
  511. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  512. },
  513. data: {
  514. propertyId: this.buildingID
  515. },
  516. success: (data) => {
  517. if (data.data.data == null) {
  518. return
  519. } else {
  520. this.equipmentobj = {
  521. totalNum: data.data.data.totalNum,
  522. onlineNum: data.data.data.onlineNum,
  523. activeNum: data.data.data.activeNum,
  524. lowPowerNum: data.data.data.lowPowerNum,
  525. }
  526. }
  527. }
  528. })
  529. },
  530. //我的工牌
  531. iniodianloang() {
  532. uni.request({
  533. url: config.service.findElectricity,
  534. method: "POST",
  535. header: {
  536. 'content-type': 'application/json',
  537. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  538. },
  539. data: {},
  540. success: (data) => {
  541. if (data.data.data == null) {
  542. return
  543. } else {
  544. if (data.data.data > 100) {
  545. this.percentage = 100;
  546. } else {
  547. if (data.data.data.onLine == 0) {
  548. this.Whetheroffline = false;
  549. } else {
  550. this.Whetheroffline = true;
  551. this.percentage = data.data.data.electricity;
  552. this.signalDevice = data.data.data.signalDevice / 1;
  553. console.log(this.signalDevice)
  554. this.audioStatus = data.data.data.audioStatus;
  555. if (this.signalDevice > 80) {
  556. this.signalDevicetext = '高';
  557. } else {
  558. if (this.signalDevice == 0) {
  559. this.signalDevicetext = '无';
  560. } else {
  561. this.signalDevicetext = '低';
  562. }
  563. }
  564. }
  565. }
  566. }
  567. }
  568. })
  569. },
  570. //选择项目弹框
  571. piskbuilding() {
  572. // this.Showhiddenunits = true;
  573. uni.navigateTo({
  574. url:"../mine/selectBuilding"
  575. })
  576. },
  577. // 项目选择确认
  578. confirm(e) {
  579. this.buildingname = e[0].label;
  580. this.buildingID = e[0].value;
  581. let lopan = {
  582. id: e[0].value,
  583. name: e[0].label
  584. }
  585. uni.setStorageSync("buildingID", lopan); //项目id写入缓存
  586. this.initworkThisWeek()
  587. this.initrealTimeStatistics()
  588. this.initequipment()
  589. this.iniodianloang()
  590. },
  591. // 项目选择取消
  592. cancel() {
  593. this.Showhiddenunits = false;
  594. },
  595. tapjumpequipment(i){
  596. this.Menulist.forEach(item=>{
  597. if(item.name=='设备管理'){
  598. uni.navigateTo({
  599. url: '/pages/mine/equipment/index?active='+i
  600. });
  601. }
  602. })
  603. },
  604. prohibitedtap(i){
  605. if(i==1){
  606. uni.navigateTo({
  607. url: '/pages/center/prohibited/index?refresh='+'refresh'+'&activeTotal='+'0'
  608. });
  609. }else{
  610. if(this.zhixingcenterindex==2){
  611. uni.navigateTo({
  612. url: '/pages/center/prohibited/index?refresh='+'refresh'+'&activeTotal='+'2'
  613. });
  614. }else if(this.zhixingcenterindex==6){
  615. uni.navigateTo({
  616. url: '/pages/center/prohibited/index?refresh='+'refresh'+'&activeTotal='+'3'
  617. });
  618. }else{
  619. uni.navigateTo({
  620. url: '/pages/center/prohibited/index?refresh='+'refresh'+'&activeTotal='+'4'+'&staTime='+this.statDateStart+'&endtime='+this.statDateEnd
  621. });
  622. }
  623. }
  624. },
  625. tapjumpreception(i){
  626. this.Menulist.forEach(item=>{
  627. if(item.name=='接待记录'){
  628. if(i==1){
  629. uni.navigateTo({
  630. url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'0'
  631. });
  632. }else if(i==2){
  633. uni.switchTab({
  634. url: '/pages/index/customer'
  635. });
  636. }else if(i==3){
  637. if(this.zhixingcenterindex==2){
  638. uni.navigateTo({
  639. url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'2'
  640. });
  641. }else if(this.zhixingcenterindex==6){
  642. uni.navigateTo({
  643. url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'3'
  644. });
  645. }else{
  646. uni.navigateTo({
  647. url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'4'+'&staTime='+this.statDateStart+'&endtime='+this.statDateEnd
  648. });
  649. }
  650. }else if(i==6){
  651. uni.navigateTo({
  652. url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'0'+'&validInvalid=0'
  653. });
  654. }else if(i==7){
  655. if(this.zhixingcenterindex==2){
  656. uni.navigateTo({
  657. url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'2'+'&validInvalid=0'
  658. });
  659. }else if(this.zhixingcenterindex==6){
  660. uni.navigateTo({
  661. url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'3'+'&validInvalid=0'
  662. });
  663. }else{
  664. uni.navigateTo({
  665. url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'4'+'&staTime='+this.statDateStart+'&endtime='+this.statDateEnd+'&validInvalid=0'
  666. });
  667. }
  668. }else{
  669. uni.navigateTo({
  670. url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal=0'+'&markAdvisor=0'
  671. });
  672. }
  673. }
  674. })
  675. },
  676. Piabodata(item) {
  677. if (item == '销讲数据') {
  678. uni.navigateTo({
  679. url: '/pages/center/Piabodata/index'
  680. });
  681. } else if (item == '接待记录') {
  682. uni.navigateTo({
  683. url: '/pages/center/records/index?refresh='+'refresh'
  684. });
  685. } else if (item == '值班顾问') {
  686. uni.navigateTo({
  687. url: '/pages/mine/consultanonduty/index'
  688. });
  689. } else if (item == '设备管理') {
  690. uni.navigateTo({
  691. url: '/pages/mine/equipment/index'
  692. });
  693. } else if(item == '顾问排名') {
  694. uni.navigateTo({
  695. url: '/pages/center/Piabodata/Employeesstatistics'
  696. });
  697. }else if(item == '违禁记录'){
  698. uni.navigateTo({
  699. url: '/pages/center/prohibited/index?refresh='+'refresh'
  700. });
  701. }else{
  702. uni.navigateTo({
  703. url: '/pages/center/consumer/index?refresh='+'refresh'
  704. });
  705. }
  706. },
  707. },
  708. };
  709. </script>
  710. <style lang="scss" scoped>
  711. .update{
  712. width: 100%;
  713. height: 100%;
  714. background: rgba(0, 0, 0, 0.5);
  715. position: fixed;
  716. top: 0;
  717. left: 0;
  718. bottom: 0;
  719. right: 0;
  720. z-index: 9999;
  721. .updateBox{
  722. width: 80%;
  723. background: #FFFFFF;
  724. position: relative;
  725. left: 50%;
  726. margin-left: -40%;
  727. padding: 20rpx;
  728. border-radius: 10rpx;
  729. top: 140rpx;
  730. .top{
  731. width: 350rpx;
  732. height: 220rpx;
  733. margin: 0 auto;
  734. image{
  735. width: 100%;
  736. height: 100%;
  737. }
  738. }
  739. .btn{
  740. width: 510rpx;
  741. height: 88rpx;
  742. background: #2671E2;
  743. margin: 0 auto;
  744. display: flex;
  745. justify-content: center;
  746. align-items: center;
  747. font-size: 36rpx;
  748. border-radius: 8rpx;
  749. color: #FFFFFF;
  750. }
  751. .content{
  752. height: 268rpx;
  753. overflow-y: auto;
  754. margin: 46rpx 0;
  755. }
  756. .tit{
  757. font-size: 40rpx;
  758. text-align: center;
  759. font-weight: bold;
  760. }
  761. .close{
  762. position: absolute;
  763. bottom: -100rpx;
  764. left: 50%;
  765. margin-left: -50rpx;
  766. }
  767. }
  768. }
  769. .activecllasscet{
  770. font-size: 28rpx;
  771. font-weight: 400;
  772. color: #008ef2;
  773. }
  774. .cet{
  775. font-size: 28rpx;
  776. font-weight: 400;
  777. color: #333333;
  778. .cetview{
  779. margin-left: 20rpx;
  780. }
  781. }
  782. .cented-box {
  783. padding: 30rpx;
  784. background: #F8F8F8;
  785. width: 100%;
  786. height: 100%;
  787. }
  788. .Switchingbox {
  789. width: 100%;
  790. height: 44rpx;
  791. display: flex;
  792. align-items: center;
  793. .Switching1 {
  794. width: 44rpx;
  795. height: 44rpx;
  796. .Switching1-img {
  797. width: 44rpx;
  798. height: 44rpx;
  799. }
  800. }
  801. .Switching2 {
  802. margin-left: 12rpx;
  803. font-size: 32rpx;
  804. color: #303030;
  805. font-weight: 500;
  806. }
  807. .Switching3 {
  808. width: calc(100% - 280rpx);
  809. font-size: 32rpx;
  810. color: #303030;
  811. font-weight: 500;
  812. }
  813. .Switching4 {
  814. width: 112rpx;
  815. font-size: 28rpx;
  816. color: #303030;
  817. font-weight: 400;
  818. text-align: right;
  819. text-decoration: underline
  820. }
  821. }
  822. .Workcard {
  823. width: 100%;
  824. background: #FFFFFF;
  825. height: 154rpx;
  826. box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
  827. border-radius: 12rpx;
  828. display: flex;
  829. .Workcard-box {
  830. flex: 1;
  831. height: 100%;
  832. .Workcardimg {
  833. width: 100%;
  834. display: flex;
  835. justify-content: center;
  836. margin-top: 42rpx;
  837. .Workcardimg1 {
  838. width: 64rpx;
  839. height: 36rpx;
  840. background-image: url(../../static/images/battery.png);
  841. background-size: 100% 100%;
  842. padding: 8rpx;
  843. .bar {
  844. background-color: #43CD80;
  845. height: 100%;
  846. border-radius: 4rpx;
  847. }
  848. .bar1 {
  849. background-color: red;
  850. height: 100%;
  851. border-radius: 4rpx;
  852. }
  853. }
  854. .Workcardimg2 {
  855. width: 56rpx;
  856. height: 36rpx;
  857. }
  858. .Workcardimg3 {
  859. width: 34rpx;
  860. height: 36rpx;
  861. }
  862. .Workcardimg4 {
  863. width: 50rpx;
  864. height: 40rpx;
  865. }
  866. }
  867. .Workcardtext {
  868. width: 100%;
  869. text-align: center;
  870. font-size: 24rpx;
  871. font-weight: 400;
  872. color: #666666;
  873. margin-top: 20rpx;
  874. }
  875. }
  876. }
  877. .title {
  878. width: 100%;
  879. height: 30rpx;
  880. font-size: 30rpx;
  881. font-weight: 600;
  882. color: #333333;
  883. margin-top: 40rpx;
  884. margin-bottom: 24rpx;
  885. }
  886. .shebenbox {
  887. width: 100%;
  888. height: 156rpx;
  889. background: #FFFFFF;
  890. box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
  891. border-radius: 12rpx;
  892. display: flex;
  893. .shebenche {
  894. width: 25%;
  895. height: 100%;
  896. .shebenchenum {
  897. width: 100%;
  898. font-size: 36rpx;
  899. font-weight: 600;
  900. color: #333333;
  901. text-align: center;
  902. margin-top: 28rpx;
  903. }
  904. .shebenchetext {
  905. width: 100%;
  906. font-size: 24rpx;
  907. font-weight: 400;
  908. color: #666666;
  909. text-align: center;
  910. margin-top: 24rpx;
  911. }
  912. }
  913. }
  914. .real-timebox {
  915. width: 100%;
  916. background: #FFFFFF;
  917. box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
  918. border-radius: 12rpx;
  919. padding-bottom: 36rpx;
  920. .timebox {
  921. width: 100%;
  922. display: flex;
  923. .real {
  924. flex: 1;
  925. height: 100%;
  926. .realnum {
  927. width: 100%;
  928. font-size: 36rpx;
  929. font-weight: 600;
  930. color: #333333;
  931. text-align: center;
  932. margin-top: 36rpx;
  933. }
  934. .realtext {
  935. width: 100%;
  936. font-size: 24rpx;
  937. font-weight: 400;
  938. color: #666666;
  939. text-align: center;
  940. margin-top: 24rpx;
  941. }
  942. }
  943. }
  944. }
  945. .commonly-box {
  946. width: 100%;
  947. background: #FFFFFF;
  948. box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
  949. border-radius: 12rpx;
  950. display: flex;
  951. flex-wrap: wrap;
  952. padding-bottom: 36rpx;
  953. .commonly {
  954. width: 25%;
  955. margin-top: 36rpx;
  956. .commonly-img {
  957. width: 100%;
  958. height: 68rpx;
  959. text-align: center;
  960. .commonly-img1 {
  961. width: 68rpx;
  962. height: 68rpx;
  963. border-radius: 50%;
  964. }
  965. }
  966. .commonly-text {
  967. width: 100%;
  968. text-align: center;
  969. font-size: 24rpx;
  970. font-weight: 400;
  971. color: #333333;
  972. margin-top: 16rpx;
  973. }
  974. }
  975. }
  976. </style>