fix
This commit is contained in:
parent
b3ed9f2b8d
commit
48c16665e8
10
src/App.vue
10
src/App.vue
@ -83,7 +83,17 @@ export default {
|
||||
}
|
||||
}
|
||||
};
|
||||
setTimeout(() => {
|
||||
if (window.plus) {
|
||||
if (plus?.webview.getWebviewById("wv").tokenScan) {
|
||||
paintingDetail();
|
||||
}
|
||||
} else {
|
||||
if (uni.getStorageSync("store-token")) {
|
||||
paintingDetail();
|
||||
}
|
||||
}
|
||||
}, 200);
|
||||
},
|
||||
onHide: function () {
|
||||
console.log("App Hide");
|
||||
|
@ -9,13 +9,7 @@
|
||||
}
|
||||
},
|
||||
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
|
||||
{
|
||||
"path": "pages/login/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "登录",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
"path": "pages/index/index",
|
||||
"style": {
|
||||
@ -23,7 +17,13 @@
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
"path": "pages/login/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "登录",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/painting/index",
|
||||
"style": {
|
||||
|
@ -121,13 +121,17 @@ onLoad((options) => {
|
||||
state.pid = options.pid;
|
||||
// 已经登录了
|
||||
setTimeout(() => {
|
||||
if (
|
||||
window?.plus?.webview.getWebviewById("wv").tokenScan ||
|
||||
uni.getStorageSync("store-token")
|
||||
) {
|
||||
if (window.plus) {
|
||||
if (plus?.webview.getWebviewById("wv").tokenScan) {
|
||||
paintingDetail();
|
||||
getBtngetRules();
|
||||
}
|
||||
} else {
|
||||
if (uni.getStorageSync("store-token")) {
|
||||
paintingDetail();
|
||||
getBtngetRules();
|
||||
}
|
||||
}
|
||||
}, 200);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user