Browse Source

首页设置跳转

ribao
jyt 2 years ago
parent
commit
c5a62e7647
2 changed files with 28 additions and 8 deletions
  1. +26
    -6
      pages/index/index.vue
  2. +2
    -2
      utils/domain.js

+ 26
- 6
pages/index/index.vue View File

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


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


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


@@ -436,9 +439,26 @@
} }
this.initworkThisWeek() this.initworkThisWeek()
this.initrealTimeStatistics() this.initrealTimeStatistics()
this.sendLog()
// this.sendLog()
}, },
methods: { 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(){ sendLog(){
uni.request({ uni.request({
url: config.service.addLog, url: config.service.addLog,


+ 2
- 2
utils/domain.js View File

@@ -1,8 +1,8 @@
// const base = 'http://39.97.167.65' ;// 测试站 // const base = 'http://39.97.167.65' ;// 测试站
// const base = 'http://8kdmng.natappfree.cc' ;// 佳豪 // const base = 'http://8kdmng.natappfree.cc' ;// 佳豪
// const base = 'http://192.168.31.134:9999' ;// 佳豪 // 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使用 // http.js使用
const baseUrl = `${base}/autoSR/api`; const baseUrl = `${base}/autoSR/api`;


Loading…
Cancel
Save