Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 

1056 Zeilen
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+"&tit="+this.tit
  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. this.initPopup()
  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.first(res.data.data.id)
  393. this.content = res.data.data.content
  394. this.tit = res.data.data.title
  395. this.aid = res.data.data.accountId
  396. this.id = res.data.data.id
  397. this.isShowUpdate = res.data.data.readFlag==0?true:false;
  398. }
  399. })
  400. },
  401. first(id){
  402. uni.request({
  403. url: config.service.firstShowPopup,
  404. method: "GET",
  405. header: {
  406. 'content-type': 'application/json',
  407. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  408. },
  409. data:{id},
  410. success: (res) => {
  411. }
  412. })
  413. },
  414. updateInit() {
  415. uni.request({
  416. url: config.service.updateList,
  417. method: "GET",
  418. data: {
  419. id: uni.getStorageSync('weapp_session_userInfo_data').accountId
  420. },
  421. header: {
  422. 'content-type': 'application/json',
  423. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  424. },
  425. success: (res) => {
  426. this.count = res.data.data.count
  427. this.tabbarList[3].count = res.data.data.count
  428. }
  429. })
  430. },
  431. //获取权限
  432. getMenu(){
  433. this.$u.get("/user/getMenu").then(data => {
  434. uni.setStorageSync("weapp_session_Menu_data", data)
  435. this.Menulist = uni.getStorageSync('weapp_session_Menu_data');
  436. console.log(this.Menulist, 'adasdasds123')
  437. })
  438. },
  439. //自定义时间
  440. totalTimeChange(e) {
  441. this.statDateStart=e.startDate;
  442. this.statDateEnd=e.endDate;
  443. this.zhixingcenterindex=7;
  444. this.initworkThisWeek()
  445. },
  446. //时间选择
  447. tabtimeclick(i){
  448. if(i==7){
  449. this.totalTimeShow = true;
  450. }else{
  451. this.zhixingcenterindex=i;
  452. this.initworkThisWeek()
  453. }
  454. },
  455. //获取概览数据
  456. initworkThisWeek() {
  457. uni.request({
  458. url: config.service.workThisWeek,
  459. method: "POST",
  460. header: {
  461. 'content-type': 'application/json',
  462. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  463. },
  464. data: {
  465. houseId: this.buildingID,
  466. dateType:this.zhixingcenterindex==7?null:this.zhixingcenterindex,
  467. statDateStart:this.statDateStart,
  468. statDateEnd:this.statDateEnd
  469. },
  470. success: (data) => {
  471. if (data.data.data == null) {
  472. return
  473. } else {
  474. this.Thisweekobj = {
  475. sumCustomer: data.data.data.sumCustomer,
  476. receivingCustomer: data.data.data.receivingCustomer,
  477. activeCustomer: data.data.data.activeCustomer,
  478. prohibitedCustomer: data.data.data.prohibitedCustomer,
  479. avgDuration: Math.floor(data.data.data.avgDuration/60) ||0,
  480. tagCustomer: data.data.data.tagCustomer,
  481. fraction: data.data.data.fraction,
  482. receptionCount:data.data.data.receptionCount
  483. }
  484. }
  485. }
  486. })
  487. },
  488. //实时统计
  489. initrealTimeStatistics() {
  490. uni.request({
  491. url: config.service.realTimeStatistics,
  492. method: "POST",
  493. header: {
  494. 'content-type': 'application/json',
  495. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  496. },
  497. data: {
  498. houseId: this.buildingID
  499. },
  500. success: (data) => {
  501. if (data.data.data == null) {
  502. return
  503. } else {
  504. this.realtimeobj = {
  505. sumCustomer: data.data.data.sumCustomer,
  506. receivingCustomer: data.data.data.receivingCustomer,
  507. activeCustomer: data.data.data.activeCustomer,
  508. prohibitedCustomer: data.data.data.prohibitedCustomer,
  509. avgDuration: Math.floor(data.data.data.avgDuration/60) ||0,
  510. tagCustomer: data.data.data.tagCustomer,
  511. fraction: data.data.data.fraction,
  512. receptionCount:data.data.data.receptionCount
  513. }
  514. }
  515. }
  516. })
  517. },
  518. //设备
  519. initequipment() {
  520. uni.request({
  521. url: config.service.findEquipmentState,
  522. method: "POST",
  523. header: {
  524. 'content-type': 'application/json',
  525. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  526. },
  527. data: {
  528. propertyId: this.buildingID
  529. },
  530. success: (data) => {
  531. if (data.data.data == null) {
  532. return
  533. } else {
  534. this.equipmentobj = {
  535. totalNum: data.data.data.totalNum,
  536. onlineNum: data.data.data.onlineNum,
  537. activeNum: data.data.data.activeNum,
  538. lowPowerNum: data.data.data.lowPowerNum,
  539. }
  540. }
  541. }
  542. })
  543. },
  544. //我的工牌
  545. iniodianloang() {
  546. uni.request({
  547. url: config.service.findElectricity,
  548. method: "POST",
  549. header: {
  550. 'content-type': 'application/json',
  551. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  552. },
  553. data: {},
  554. success: (data) => {
  555. if (data.data.data == null) {
  556. return
  557. } else {
  558. if (data.data.data > 100) {
  559. this.percentage = 100;
  560. } else {
  561. if (data.data.data.onLine == 0) {
  562. this.Whetheroffline = false;
  563. } else {
  564. this.Whetheroffline = true;
  565. this.percentage = data.data.data.electricity;
  566. this.signalDevice = data.data.data.signalDevice / 1;
  567. console.log(this.signalDevice)
  568. this.audioStatus = data.data.data.audioStatus;
  569. if (this.signalDevice > 80) {
  570. this.signalDevicetext = '高';
  571. } else {
  572. if (this.signalDevice == 0) {
  573. this.signalDevicetext = '无';
  574. } else {
  575. this.signalDevicetext = '低';
  576. }
  577. }
  578. }
  579. }
  580. }
  581. }
  582. })
  583. },
  584. //选择项目弹框
  585. piskbuilding() {
  586. // this.Showhiddenunits = true;
  587. uni.navigateTo({
  588. url:"../mine/selectBuilding"
  589. })
  590. },
  591. // 项目选择确认
  592. confirm(e) {
  593. this.buildingname = e[0].label;
  594. this.buildingID = e[0].value;
  595. let lopan = {
  596. id: e[0].value,
  597. name: e[0].label
  598. }
  599. uni.setStorageSync("buildingID", lopan); //项目id写入缓存
  600. this.initworkThisWeek()
  601. this.initrealTimeStatistics()
  602. this.initequipment()
  603. this.iniodianloang()
  604. },
  605. // 项目选择取消
  606. cancel() {
  607. this.Showhiddenunits = false;
  608. },
  609. tapjumpequipment(i){
  610. this.Menulist.forEach(item=>{
  611. if(item.name=='设备管理'){
  612. uni.navigateTo({
  613. url: '/pages/mine/equipment/index?active='+i
  614. });
  615. }
  616. })
  617. },
  618. prohibitedtap(i){
  619. if(i==1){
  620. uni.navigateTo({
  621. url: '/pages/center/prohibited/index?refresh='+'refresh'+'&activeTotal='+'0'
  622. });
  623. }else{
  624. if(this.zhixingcenterindex==2){
  625. uni.navigateTo({
  626. url: '/pages/center/prohibited/index?refresh='+'refresh'+'&activeTotal='+'2'
  627. });
  628. }else if(this.zhixingcenterindex==6){
  629. uni.navigateTo({
  630. url: '/pages/center/prohibited/index?refresh='+'refresh'+'&activeTotal='+'3'
  631. });
  632. }else{
  633. uni.navigateTo({
  634. url: '/pages/center/prohibited/index?refresh='+'refresh'+'&activeTotal='+'4'+'&staTime='+this.statDateStart+'&endtime='+this.statDateEnd
  635. });
  636. }
  637. }
  638. },
  639. tapjumpreception(i){
  640. this.Menulist.forEach(item=>{
  641. if(item.name=='接待记录'){
  642. if(i==1){
  643. uni.navigateTo({
  644. url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'0'
  645. });
  646. }else if(i==2){
  647. uni.switchTab({
  648. url: '/pages/index/customer'
  649. });
  650. }else if(i==3){
  651. if(this.zhixingcenterindex==2){
  652. uni.navigateTo({
  653. url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'2'
  654. });
  655. }else if(this.zhixingcenterindex==6){
  656. uni.navigateTo({
  657. url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'3'
  658. });
  659. }else{
  660. uni.navigateTo({
  661. url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'4'+'&staTime='+this.statDateStart+'&endtime='+this.statDateEnd
  662. });
  663. }
  664. }else if(i==6){
  665. uni.navigateTo({
  666. url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'0'+'&validInvalid=0'
  667. });
  668. }else if(i==7){
  669. if(this.zhixingcenterindex==2){
  670. uni.navigateTo({
  671. url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'2'+'&validInvalid=0'
  672. });
  673. }else if(this.zhixingcenterindex==6){
  674. uni.navigateTo({
  675. url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'3'+'&validInvalid=0'
  676. });
  677. }else{
  678. uni.navigateTo({
  679. url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal='+'4'+'&staTime='+this.statDateStart+'&endtime='+this.statDateEnd+'&validInvalid=0'
  680. });
  681. }
  682. }else{
  683. uni.navigateTo({
  684. url: '/pages/center/records/index?refresh='+'refresh'+'&activeTotal=0'+'&markAdvisor=0'
  685. });
  686. }
  687. }
  688. })
  689. },
  690. Piabodata(item) {
  691. if (item == '销讲数据') {
  692. uni.navigateTo({
  693. url: '/pages/center/Piabodata/index'
  694. });
  695. } else if (item == '接待记录') {
  696. uni.navigateTo({
  697. url: '/pages/center/records/index?refresh='+'refresh'
  698. });
  699. } else if (item == '值班顾问') {
  700. uni.navigateTo({
  701. url: '/pages/mine/consultanonduty/index'
  702. });
  703. } else if (item == '设备管理') {
  704. uni.navigateTo({
  705. url: '/pages/mine/equipment/index'
  706. });
  707. } else if(item == '顾问排名') {
  708. uni.navigateTo({
  709. url: '/pages/center/Piabodata/Employeesstatistics'
  710. });
  711. }else if(item == '违禁记录'){
  712. uni.navigateTo({
  713. url: '/pages/center/prohibited/index?refresh='+'refresh'
  714. });
  715. }else{
  716. uni.navigateTo({
  717. url: '/pages/center/consumer/index?refresh='+'refresh'
  718. });
  719. }
  720. },
  721. },
  722. };
  723. </script>
  724. <style lang="scss" scoped>
  725. .update{
  726. width: 100%;
  727. height: 100%;
  728. background: rgba(0, 0, 0, 0.5);
  729. position: fixed;
  730. top: 0;
  731. left: 0;
  732. bottom: 0;
  733. right: 0;
  734. z-index: 9999;
  735. .updateBox{
  736. width: 80%;
  737. background: #FFFFFF;
  738. position: relative;
  739. left: 50%;
  740. margin-left: -40%;
  741. padding: 20rpx;
  742. border-radius: 10rpx;
  743. top: 140rpx;
  744. .top{
  745. width: 350rpx;
  746. height: 220rpx;
  747. margin: 0 auto;
  748. image{
  749. width: 100%;
  750. height: 100%;
  751. }
  752. }
  753. .btn{
  754. width: 510rpx;
  755. height: 88rpx;
  756. background: #2671E2;
  757. margin: 0 auto;
  758. display: flex;
  759. justify-content: center;
  760. align-items: center;
  761. font-size: 36rpx;
  762. border-radius: 8rpx;
  763. color: #FFFFFF;
  764. }
  765. .content{
  766. height: 268rpx;
  767. overflow-y: auto;
  768. margin: 46rpx 0;
  769. }
  770. .tit{
  771. font-size: 40rpx;
  772. text-align: center;
  773. font-weight: bold;
  774. }
  775. .close{
  776. position: absolute;
  777. bottom: -100rpx;
  778. left: 50%;
  779. margin-left: -50rpx;
  780. }
  781. }
  782. }
  783. .activecllasscet{
  784. font-size: 28rpx;
  785. font-weight: 400;
  786. color: #008ef2;
  787. }
  788. .cet{
  789. font-size: 28rpx;
  790. font-weight: 400;
  791. color: #333333;
  792. .cetview{
  793. margin-left: 20rpx;
  794. }
  795. }
  796. .cented-box {
  797. padding: 30rpx;
  798. background: #F8F8F8;
  799. width: 100%;
  800. height: 100%;
  801. }
  802. .Switchingbox {
  803. width: 100%;
  804. height: 44rpx;
  805. display: flex;
  806. align-items: center;
  807. .Switching1 {
  808. width: 44rpx;
  809. height: 44rpx;
  810. .Switching1-img {
  811. width: 44rpx;
  812. height: 44rpx;
  813. }
  814. }
  815. .Switching2 {
  816. margin-left: 12rpx;
  817. font-size: 32rpx;
  818. color: #303030;
  819. font-weight: 500;
  820. }
  821. .Switching3 {
  822. width: calc(100% - 280rpx);
  823. font-size: 32rpx;
  824. color: #303030;
  825. font-weight: 500;
  826. }
  827. .Switching4 {
  828. width: 112rpx;
  829. font-size: 28rpx;
  830. color: #303030;
  831. font-weight: 400;
  832. text-align: right;
  833. text-decoration: underline
  834. }
  835. }
  836. .Workcard {
  837. width: 100%;
  838. background: #FFFFFF;
  839. height: 154rpx;
  840. box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
  841. border-radius: 12rpx;
  842. display: flex;
  843. .Workcard-box {
  844. flex: 1;
  845. height: 100%;
  846. .Workcardimg {
  847. width: 100%;
  848. display: flex;
  849. justify-content: center;
  850. margin-top: 42rpx;
  851. .Workcardimg1 {
  852. width: 64rpx;
  853. height: 36rpx;
  854. background-image: url(../../static/images/battery.png);
  855. background-size: 100% 100%;
  856. padding: 8rpx;
  857. .bar {
  858. background-color: #43CD80;
  859. height: 100%;
  860. border-radius: 4rpx;
  861. }
  862. .bar1 {
  863. background-color: red;
  864. height: 100%;
  865. border-radius: 4rpx;
  866. }
  867. }
  868. .Workcardimg2 {
  869. width: 56rpx;
  870. height: 36rpx;
  871. }
  872. .Workcardimg3 {
  873. width: 34rpx;
  874. height: 36rpx;
  875. }
  876. .Workcardimg4 {
  877. width: 50rpx;
  878. height: 40rpx;
  879. }
  880. }
  881. .Workcardtext {
  882. width: 100%;
  883. text-align: center;
  884. font-size: 24rpx;
  885. font-weight: 400;
  886. color: #666666;
  887. margin-top: 20rpx;
  888. }
  889. }
  890. }
  891. .title {
  892. width: 100%;
  893. height: 30rpx;
  894. font-size: 30rpx;
  895. font-weight: 600;
  896. color: #333333;
  897. margin-top: 40rpx;
  898. margin-bottom: 24rpx;
  899. }
  900. .shebenbox {
  901. width: 100%;
  902. height: 156rpx;
  903. background: #FFFFFF;
  904. box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
  905. border-radius: 12rpx;
  906. display: flex;
  907. .shebenche {
  908. width: 25%;
  909. height: 100%;
  910. .shebenchenum {
  911. width: 100%;
  912. font-size: 36rpx;
  913. font-weight: 600;
  914. color: #333333;
  915. text-align: center;
  916. margin-top: 28rpx;
  917. }
  918. .shebenchetext {
  919. width: 100%;
  920. font-size: 24rpx;
  921. font-weight: 400;
  922. color: #666666;
  923. text-align: center;
  924. margin-top: 24rpx;
  925. }
  926. }
  927. }
  928. .real-timebox {
  929. width: 100%;
  930. background: #FFFFFF;
  931. box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
  932. border-radius: 12rpx;
  933. padding-bottom: 36rpx;
  934. .timebox {
  935. width: 100%;
  936. display: flex;
  937. .real {
  938. flex: 1;
  939. height: 100%;
  940. .realnum {
  941. width: 100%;
  942. font-size: 36rpx;
  943. font-weight: 600;
  944. color: #333333;
  945. text-align: center;
  946. margin-top: 36rpx;
  947. }
  948. .realtext {
  949. width: 100%;
  950. font-size: 24rpx;
  951. font-weight: 400;
  952. color: #666666;
  953. text-align: center;
  954. margin-top: 24rpx;
  955. }
  956. }
  957. }
  958. }
  959. .commonly-box {
  960. width: 100%;
  961. background: #FFFFFF;
  962. box-shadow: 0px 0px 12px 0px rgba(224, 224, 224, 0.3);
  963. border-radius: 12rpx;
  964. display: flex;
  965. flex-wrap: wrap;
  966. padding-bottom: 36rpx;
  967. .commonly {
  968. width: 25%;
  969. margin-top: 36rpx;
  970. .commonly-img {
  971. width: 100%;
  972. height: 68rpx;
  973. text-align: center;
  974. .commonly-img1 {
  975. width: 68rpx;
  976. height: 68rpx;
  977. border-radius: 50%;
  978. }
  979. }
  980. .commonly-text {
  981. width: 100%;
  982. text-align: center;
  983. font-size: 24rpx;
  984. font-weight: 400;
  985. color: #333333;
  986. margin-top: 16rpx;
  987. }
  988. }
  989. }
  990. </style>