样式修改
This commit is contained in:
parent
d8c7d2f95e
commit
feee3428d3
10
pages.json
10
pages.json
|
|
@ -109,7 +109,7 @@
|
|||
{
|
||||
"path": "pages/Site/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "站点管理",
|
||||
"navigationBarTitleText": "监测站点",
|
||||
"navigationStyle": "default",
|
||||
"navigationBarBackgroundColor":"#0F6EFF"
|
||||
}
|
||||
|
|
@ -117,7 +117,7 @@
|
|||
{
|
||||
"path": "pages/Site/detail",
|
||||
"style": {
|
||||
"navigationBarTitleText": "站点管理",
|
||||
"navigationBarTitleText": "监测站点",
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarBackgroundColor":"#0F6EFF"
|
||||
}
|
||||
|
|
@ -125,7 +125,7 @@
|
|||
{
|
||||
"path": "pages/Site/sjdetail",
|
||||
"style": {
|
||||
"navigationBarTitleText": "站点管理",
|
||||
"navigationBarTitleText": "监测站点",
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarBackgroundColor":"#0F6EFF"
|
||||
}
|
||||
|
|
@ -133,7 +133,7 @@
|
|||
{
|
||||
"path": "pages/vidio/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "设备管理",
|
||||
"navigationBarTitleText": "土壤监测",
|
||||
"navigationStyle": "default",
|
||||
"navigationBarBackgroundColor":"#0F6EFF"
|
||||
}
|
||||
|
|
@ -141,7 +141,7 @@
|
|||
{
|
||||
"path": "pages/vidio/detail",
|
||||
"style": {
|
||||
"navigationBarTitleText": "设备管理",
|
||||
"navigationBarTitleText": "土壤监测",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -178,7 +178,9 @@
|
|||
list: [],
|
||||
weather: '',
|
||||
weatherimg: '',
|
||||
bjnumber: ''
|
||||
bjnumber: '',
|
||||
lastClickTime: 0,
|
||||
throttleDelay: 1000 // 节流时间1秒
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
|
|
@ -1188,10 +1190,19 @@
|
|||
return false;
|
||||
},
|
||||
todetail(item, index) {
|
||||
// uni.navigateTo({
|
||||
// url: '/packDetail/pages/Site/detail?item=' + encodeURIComponent(JSON.stringify(item))
|
||||
// })
|
||||
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({
|
||||
|
|
|
|||
Loading…
Reference in New Issue