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(); paintingDetail();
}
} else {
if (uni.getStorageSync("store-token")) {
paintingDetail();
}
}
}, 200);
}, },
onHide: function () { onHide: function () {
console.log("App Hide"); console.log("App Hide");

View File

@ -9,13 +9,7 @@
} }
}, },
"pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages "pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages
{
"path": "pages/login/index",
"style": {
"navigationBarTitleText": "登录",
"enablePullDownRefresh": false
}
},
{ {
"path": "pages/index/index", "path": "pages/index/index",
"style": { "style": {
@ -23,7 +17,13 @@
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, },
{
"path": "pages/login/index",
"style": {
"navigationBarTitleText": "登录",
"enablePullDownRefresh": false
}
},
{ {
"path": "pages/painting/index", "path": "pages/painting/index",
"style": { "style": {

View File

@ -121,13 +121,17 @@ onLoad((options) => {
state.pid = options.pid; state.pid = options.pid;
// //
setTimeout(() => { setTimeout(() => {
if ( if (window.plus) {
window?.plus?.webview.getWebviewById("wv").tokenScan || if (plus?.webview.getWebviewById("wv").tokenScan) {
uni.getStorageSync("store-token")
) {
paintingDetail(); paintingDetail();
getBtngetRules(); getBtngetRules();
} }
} else {
if (uni.getStorageSync("store-token")) {
paintingDetail();
getBtngetRules();
}
}
}, 200); }, 200);
} }