選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

index.vue 23 KiB

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