Compare commits
2 Commits
2e0242328c
...
ece95d3636
Author | SHA1 | Date | |
---|---|---|---|
ece95d3636 | |||
502d32d191 |
@ -120,18 +120,8 @@ onLoad((options) => {
|
||||
console.log("options", options);
|
||||
state.id = options.id;
|
||||
state.pid = options.pid;
|
||||
|
||||
if (!uni.getStorageSync("token")) {
|
||||
}
|
||||
console.log("token", uni.getStorageSync("token"));
|
||||
// 已经登录了
|
||||
if (
|
||||
uni.getStorageSync("token") ||
|
||||
window?.plus?.storage.getItemAsync("token") ||
|
||||
window?.plus?.webview.getWebviewById("wv").tokenScan ||
|
||||
uni.getStorageSync("store-token")
|
||||
) {
|
||||
console.log('获取到token拉')
|
||||
if (plus?.webview.getWebviewById("wv").tokenScan) {
|
||||
paintingDetail();
|
||||
getBtngetRules();
|
||||
}
|
||||
@ -153,11 +143,11 @@ const paintingDetail = async () => {
|
||||
pid: state.pid,
|
||||
});
|
||||
if (res.status === 0) {
|
||||
console.log('成功拉1')
|
||||
console.log("成功拉1");
|
||||
state.boxRelBucketStatus = res.data.boxRelBucketStatus;
|
||||
console.log("boxRelBucketStatus", state.boxRelBucketStatus);
|
||||
if (res.data.pbStatus == 1) {
|
||||
console.log('成功拉2')
|
||||
console.log("成功拉2");
|
||||
uni.navigateTo({
|
||||
url: "/pages/index/index?id=" + state.id + "&pid=" + state.pid,
|
||||
success: () => {
|
||||
|
Loading…
Reference in New Issue
Block a user