页面优化
This commit is contained in:
@@ -2,8 +2,8 @@
|
|||||||
"name" : "灿能物联",
|
"name" : "灿能物联",
|
||||||
"appid" : "__UNI__88BC25B",
|
"appid" : "__UNI__88BC25B",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.2.8",
|
"versionName" : "1.2.9",
|
||||||
"versionCode" : 127,
|
"versionCode" : 129,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
@@ -16,9 +16,10 @@
|
|||||||
"nvueStyleCompiler" : "uni-app",
|
"nvueStyleCompiler" : "uni-app",
|
||||||
"compilerVersion" : 3,
|
"compilerVersion" : 3,
|
||||||
"splashscreen" : {
|
"splashscreen" : {
|
||||||
"alwaysShowBeforeRender" : true,
|
"useOriginalMsgbox" : true,
|
||||||
|
"alwaysShowBeforeRender" : false,
|
||||||
"waiting" : true,
|
"waiting" : true,
|
||||||
"autoclose" : true,
|
"autoclose" : false,
|
||||||
"delay" : 0
|
"delay" : 0
|
||||||
},
|
},
|
||||||
/* 模块配置 */
|
/* 模块配置 */
|
||||||
@@ -107,9 +108,6 @@
|
|||||||
"spotlight@3x" : "unpackage/res/icons/120x120.png"
|
"spotlight@3x" : "unpackage/res/icons/120x120.png"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"splashscreen" : {
|
|
||||||
"useOriginalMsgbox" : true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -4,7 +4,8 @@
|
|||||||
{
|
{
|
||||||
"path": "pages/index/index",
|
"path": "pages/index/index",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom",
|
||||||
|
"enablePullDownRefresh": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -480,8 +481,9 @@
|
|||||||
"navigationBarTextStyle": "black",
|
"navigationBarTextStyle": "black",
|
||||||
"navigationBarTitleText": "灿能电力",
|
"navigationBarTitleText": "灿能电力",
|
||||||
"navigationBarBackgroundColor": "#ffffff",
|
"navigationBarBackgroundColor": "#ffffff",
|
||||||
"backgroundColor": "#f3f4f5",
|
"backgroundColor": "#f3f4f5"
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
|
,
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
// #endif
|
// #endif
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -74,6 +74,9 @@ export default {
|
|||||||
timer: null,
|
timer: null,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
onPullDownRefresh() {
|
||||||
|
console.log('onPullDownRefresh')
|
||||||
|
},
|
||||||
computed: {
|
computed: {
|
||||||
emptyEngineeringName() {
|
emptyEngineeringName() {
|
||||||
if (this.userInfo.authorities === 'tourist') {
|
if (this.userInfo.authorities === 'tourist') {
|
||||||
@@ -141,6 +144,7 @@ export default {
|
|||||||
this.$refs.device && this.$refs.device.init()
|
this.$refs.device && this.$refs.device.init()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
this.$refs.gongCheng?.init()
|
||||||
},
|
},
|
||||||
getDevCount() {
|
getDevCount() {
|
||||||
if (!this.select.engineeringId) return
|
if (!this.select.engineeringId) return
|
||||||
@@ -196,7 +200,18 @@ export default {
|
|||||||
if (!uni.getStorageSync(this.$cacheKey.access_token)) {
|
if (!uni.getStorageSync(this.$cacheKey.access_token)) {
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url: '/pages/user/login',
|
url: '/pages/user/login',
|
||||||
|
success: () => {
|
||||||
|
// #ifdef APP-PLUS
|
||||||
|
plus.navigator.closeSplashscreen()
|
||||||
|
// #endif
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
setTimeout(() => {
|
||||||
|
// #ifdef APP-PLUS
|
||||||
|
plus.navigator.closeSplashscreen()
|
||||||
|
// #endif
|
||||||
|
}, 1000)
|
||||||
}
|
}
|
||||||
this.timer = setInterval(this.getDevCount, 3000) // 定时请求
|
this.timer = setInterval(this.getDevCount, 3000) // 定时请求
|
||||||
this.store = this.DataSource('/cs-device-boot/EquipmentDelivery/queryEquipmentByProject')
|
this.store = this.DataSource('/cs-device-boot/EquipmentDelivery/queryEquipmentByProject')
|
||||||
@@ -216,14 +231,13 @@ export default {
|
|||||||
onShow() {
|
onShow() {
|
||||||
this.userInfo = uni.getStorageSync(this.$cacheKey.userInfo)
|
this.userInfo = uni.getStorageSync(this.$cacheKey.userInfo)
|
||||||
let access_token = uni.getStorageSync(this.$cacheKey.access_token)
|
let access_token = uni.getStorageSync(this.$cacheKey.access_token)
|
||||||
|
console.log(access_token)
|
||||||
if (!access_token) {
|
if (!access_token) {
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url: `/pages/user/login`,
|
url: `/pages/user/login`,
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.init()
|
this.init()
|
||||||
console.log(this.$refs.gongCheng);
|
|
||||||
this.$refs.gongCheng?.init()
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user