This commit is contained in:
Aiden 2024-10-24 15:35:35 +08:00
parent b3ed9f2b8d
commit 48c16665e8
3 changed files with 29 additions and 15 deletions

View File

@ -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");

View File

@ -9,13 +9,7 @@
}
},
"pages": [ //pageshttps://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": {

View File

@ -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);
}