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