样式更新
This commit is contained in:
parent
d57f761001
commit
1db2949aa4
2
App.vue
2
App.vue
|
|
@ -192,7 +192,7 @@
|
|||
onLoad() {
|
||||
if(!uni.getStorageSync('third_session')){
|
||||
uni.reLaunch({
|
||||
url:'/pages/loginindex'
|
||||
url:'/packDetail/pages/login/login'
|
||||
})
|
||||
}else{
|
||||
uni.reLaunch({
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ http.interceptor.response(async (response) => { /* 请求之后拦截器 */
|
|||
uni.removeStorageSync('third_session')
|
||||
uni.removeStorageSync('constant')
|
||||
uni.reLaunch({
|
||||
url:'/pages/loginindex'
|
||||
url:'/packDetail/pages/login/login'
|
||||
})
|
||||
},2000)
|
||||
tip.error('拒绝访问');
|
||||
|
|
@ -113,7 +113,7 @@ http.interceptor.response(async (response) => { /* 请求之后拦截器 */
|
|||
uni.removeStorageSync('third_session')
|
||||
uni.removeStorageSync('constant')
|
||||
uni.reLaunch({
|
||||
url:'/pages/loginindex'
|
||||
url:'/packDetail/pages/login/login'
|
||||
})
|
||||
},2000)
|
||||
break
|
||||
|
|
@ -127,7 +127,7 @@ http.interceptor.response(async (response) => { /* 请求之后拦截器 */
|
|||
uni.removeStorageSync('third_session')
|
||||
uni.removeStorageSync('constant')
|
||||
uni.reLaunch({
|
||||
url:'/pages/loginindex'
|
||||
url:'/packDetail/pages/login/login'
|
||||
})
|
||||
},2000)
|
||||
break
|
||||
|
|
@ -141,7 +141,7 @@ http.interceptor.response(async (response) => { /* 请求之后拦截器 */
|
|||
uni.removeStorageSync('third_session')
|
||||
uni.removeStorageSync('constant')
|
||||
uni.reLaunch({
|
||||
url:'/pages/loginindex'
|
||||
url:'/packDetail/pages/login/login'
|
||||
})
|
||||
},2000)
|
||||
break
|
||||
|
|
@ -155,7 +155,7 @@ http.interceptor.response(async (response) => { /* 请求之后拦截器 */
|
|||
uni.removeStorageSync('third_session')
|
||||
uni.removeStorageSync('constant')
|
||||
uni.reLaunch({
|
||||
url:'/pages/loginindex'
|
||||
url:'/packDetail/pages/login/login'
|
||||
})
|
||||
},2000)
|
||||
break
|
||||
|
|
|
|||
|
|
@ -138,6 +138,7 @@
|
|||
getsssj(){
|
||||
let params = {}
|
||||
params.deployCode = this.item.deployCode
|
||||
params.deployId = this.item.id
|
||||
this.$http.get('/applet/wxclient/getSurvDataByDevice',{params:params}).then(res=>{
|
||||
this.list = res.data.data.dataList
|
||||
this.survItem = res.data.data.zhibiao
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@
|
|||
uni.showLoading({
|
||||
title: '加载中'
|
||||
});
|
||||
this.$http.get('/applet/survStationInfo/deviceList').then(res =>{
|
||||
this.$http.get('/applet/survStationInfo/fdeviceList').then(res =>{
|
||||
this.list = res.data.data
|
||||
uni.hideLoading();
|
||||
})
|
||||
|
|
|
|||
|
|
@ -150,9 +150,9 @@
|
|||
path: '/packDetail/pages/Site/index'
|
||||
},
|
||||
{
|
||||
name: '站点运维',
|
||||
img: require('../../static/home_icon_yunwei.png'),
|
||||
path: '/packDetail/pages/operations/index'
|
||||
name: '土壤监测',
|
||||
img: require('../../static/home_icon_shebei.png'),
|
||||
path: '/packDetail/pages/vidio/index'
|
||||
},
|
||||
{
|
||||
name: '视频监控',
|
||||
|
|
@ -160,9 +160,9 @@
|
|||
path: '/packDetail1/pages/device/index'
|
||||
},
|
||||
{
|
||||
name: '土壤监测',
|
||||
img: require('../../static/home_icon_shebei.png'),
|
||||
path: '/packDetail/pages/vidio/index'
|
||||
name: '站点运维',
|
||||
img: require('../../static/home_icon_yunwei.png'),
|
||||
path: '/packDetail/pages/operations/index'
|
||||
},
|
||||
{
|
||||
name: '农业废弃物',
|
||||
|
|
@ -721,7 +721,7 @@
|
|||
});
|
||||
} else if (!uni.getStorageSync('third_session')) {
|
||||
// uni.reLaunch({
|
||||
// url: '/pages/loginindex'
|
||||
// url: '/packDetail/pages/login/login'
|
||||
// })
|
||||
that.bigswiperList = [{
|
||||
"id": "1692474977070829569",
|
||||
|
|
@ -1182,7 +1182,7 @@
|
|||
});
|
||||
} else if (!uni.getStorageSync('third_session')) {
|
||||
uni.reLaunch({
|
||||
url: '/pages/loginindex'
|
||||
url: '/packDetail/pages/login/login'
|
||||
})
|
||||
}
|
||||
},
|
||||
|
|
@ -1190,19 +1190,19 @@
|
|||
return false;
|
||||
},
|
||||
todetail(item, index) {
|
||||
const now = Date.now();
|
||||
|
||||
// 如果距离上次点击时间小于节流时间,则忽略此次点击
|
||||
if (now - this.lastClickTime < this.throttleDelay) {
|
||||
console.log('点击过于频繁,请稍后再试');
|
||||
return;
|
||||
}
|
||||
|
||||
// 更新最后点击时间
|
||||
this.lastClickTime = now;
|
||||
|
||||
// 执行原逻辑
|
||||
this.isAathorize('/packDetail/pages/Site/detail?item=' + encodeURIComponent(JSON.stringify(item)));
|
||||
const now = Date.now();
|
||||
|
||||
// 如果距离上次点击时间小于节流时间,则忽略此次点击
|
||||
if (now - this.lastClickTime < this.throttleDelay) {
|
||||
console.log('点击过于频繁,请稍后再试');
|
||||
return;
|
||||
}
|
||||
|
||||
// 更新最后点击时间
|
||||
this.lastClickTime = now;
|
||||
|
||||
// 执行原逻辑
|
||||
this.isAathorize('/packDetail/pages/Site/detail?item=' + encodeURIComponent(JSON.stringify(item)));
|
||||
},
|
||||
tologin() {
|
||||
uni.reLaunch({
|
||||
|
|
@ -1229,7 +1229,7 @@
|
|||
getsssj() {
|
||||
this.$http.post('/applet/wxclient/getNewestData').then(res => {
|
||||
this.list = res.data.data
|
||||
if (this.list.length>0) {
|
||||
if (this.list.length > 0) {
|
||||
for (var i = 0; i < this.list.length; i++) {
|
||||
// console.log(Object.keys(this.list[i]),Object.keys(this.list[i]).length)
|
||||
this.list[i].wrwcode = []
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@
|
|||
onShow() {
|
||||
if (!uni.getStorageSync('third_session')) {
|
||||
uni.reLaunch({
|
||||
url: '/pages/loginindex'
|
||||
url: '/packDetail/pages/login/login'
|
||||
})
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -7,19 +7,19 @@
|
|||
<view class="zdxqitem" @click="switch2Change('团柏河')">
|
||||
<image src="../../static/zhandian_nongtian_dingwei.png" mode=""></image>
|
||||
<view class="textss">
|
||||
团柏河典型小流域监测站
|
||||
团柏河监测站
|
||||
</view>
|
||||
</view>
|
||||
<view class="zdxqitem" @click="switch2Change('对竹河')">
|
||||
<image src="../../static/zhandian_xuqin_dingwei.png" mode=""></image>
|
||||
<view class="textss">
|
||||
对竹河典型小流域监测站
|
||||
对竹河监测站
|
||||
</view>
|
||||
</view>
|
||||
<view class="zdxqitem" @click="switch2Change('土壤')">
|
||||
<image src="../../static/iconsheturangzs.png" mode=""></image>
|
||||
<view class="textss">
|
||||
土壤监测
|
||||
土壤监测点
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -57,7 +57,7 @@
|
|||
onShow() {
|
||||
if (!uni.getStorageSync('third_session')) {
|
||||
uni.reLaunch({
|
||||
url: '/pages/loginindex'
|
||||
url: '/packDetail/pages/login/login'
|
||||
})
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@
|
|||
});
|
||||
}else if(!uni.getStorageSync('third_session')){
|
||||
uni.reLaunch({
|
||||
url:'/pages/loginindex'
|
||||
url:'/packDetail/pages/login/login'
|
||||
})
|
||||
}
|
||||
this.getuserInfo()
|
||||
|
|
|
|||
Loading…
Reference in New Issue