fix
This commit is contained in:
parent
b3ed9f2b8d
commit
48c16665e8
12
src/App.vue
12
src/App.vue
@ -83,7 +83,17 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
paintingDetail();
|
setTimeout(() => {
|
||||||
|
if (window.plus) {
|
||||||
|
if (plus?.webview.getWebviewById("wv").tokenScan) {
|
||||||
|
paintingDetail();
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (uni.getStorageSync("store-token")) {
|
||||||
|
paintingDetail();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}, 200);
|
||||||
},
|
},
|
||||||
onHide: function () {
|
onHide: function () {
|
||||||
console.log("App Hide");
|
console.log("App Hide");
|
||||||
|
@ -9,13 +9,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
|
"pages": [ //pages数组中第一项表示应用启动页,参考:https://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": {
|
||||||
|
@ -121,12 +121,16 @@ 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();
|
||||||
) {
|
getBtngetRules();
|
||||||
paintingDetail();
|
}
|
||||||
getBtngetRules();
|
} else {
|
||||||
|
if (uni.getStorageSync("store-token")) {
|
||||||
|
paintingDetail();
|
||||||
|
getBtngetRules();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}, 200);
|
}, 200);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user