Parcourir la source

首页设置跳转

ribao
jyt il y a 2 ans
Parent
révision
c5a62e7647
2 fichiers modifiés avec 28 ajouts et 8 suppressions
  1. +26
    -6
      pages/index/index.vue
  2. +2
    -2
      utils/domain.js

+ 26
- 6
pages/index/index.vue Voir le fichier

@@ -70,15 +70,15 @@

<view class="title" v-if="permissions.shebeinum">待处理</view>
<view class="shebenbox" v-if="permissions.shebeinum" >
<view class="shebenche" @click="tapjumpequipment(0)">
<view class="shebenche" @click="indexStatus(0)">
<view class="shebenchenum">{{operation.receptionCount || 0}}</view>
<view class="shebenchetext">接待即将结束</view>
</view>
<view class="shebenche" @click="tapjumpequipment(1)">
<view class="shebenche" @click="indexStatus(1)">
<view class="shebenchenum">{{operation.accountCount || 0}}</view>
<view class="shebenchetext">未标顾问</view>
</view>
<view class="shebenche" @click="tapjumpequipment(3)">
<view class="shebenche" @click="indexStatus(3)">
<view class="shebenchenum">{{operation.forbiddenCount || 0}}</view>
<view class="shebenchetext">违禁提醒</view>
</view>
@@ -103,10 +103,10 @@
<view class="shebenchenum">{{equipmentobj.activeNum || 0}}</view>
<view class="shebenchetext">活跃</view>
</view>
<view class="shebenche" @click="tapjumpequipment(2)">
<!-- <view class="shebenche" @click="tapjumpequipment(2)">
<view class="shebenchenum" style="color: red;">{{equipmentobj.lowPowerNum || 0}}</view>
<view class="shebenchetext">急需充电</view>
</view>
</view> -->
</view>

@@ -401,6 +401,9 @@
};
},
components: {},
onLoad() {
this.sendLog()
},
onShow() {
this.getMenu()

@@ -436,9 +439,26 @@
}
this.initworkThisWeek()
this.initrealTimeStatistics()
this.sendLog()
// this.sendLog()
},
methods: {
indexStatus(i){
if (this.permissions.commonly5 == true) {
if(i==0){
uni.switchTab({
url:"/pages/index/customer"
})
}else if(i==1){
uni.navigateTo({
url: '/pages/center/records/index?refresh=refresh&markAdvisor=0'
});
}else if(i==3){
uni.navigateTo({
url: '/pages/center/prohibited/index?refresh=refresh'
});
}
}
},
sendLog(){
uni.request({
url: config.service.addLog,


+ 2
- 2
utils/domain.js Voir le fichier

@@ -1,8 +1,8 @@
// const base = 'http://39.97.167.65' ;// 测试站
// const base = 'http://8kdmng.natappfree.cc' ;// 佳豪
// const base = 'http://192.168.31.134:9999' ;// 佳豪
const base = 'http://192.168.31.167:9999' // 长龙
// const base = 'https://zanyong.hfju.com';// 正式
// const base = 'http://192.168.31.167:9999' // 长龙
const base = 'https://zanyong.hfju.com';// 正式

// http.js使用
const baseUrl = `${base}/autoSR/api`;


Chargement…
Annuler
Enregistrer