fix
This commit is contained in:
parent
48c16665e8
commit
c0c78d7abd
14
src/App.vue
14
src/App.vue
@ -10,12 +10,7 @@ const state = reactive({
|
|||||||
});
|
});
|
||||||
const loading = ref(false);
|
const loading = ref(false);
|
||||||
export default {
|
export default {
|
||||||
onLaunch: function () {},
|
onLaunch: function () {
|
||||||
onShow: function () {
|
|
||||||
console.log("2222222");
|
|
||||||
// const token = window?.plus?.storage.getItem("token");
|
|
||||||
// uni.setStorageSync("token", token);
|
|
||||||
// console.log("App Show", uni.getStorageSync("token"));
|
|
||||||
const params = new URLSearchParams(window.location.search); //属性包含当前 URL 的查询字符串部分
|
const params = new URLSearchParams(window.location.search); //属性包含当前 URL 的查询字符串部分
|
||||||
state.id = params.get("id");
|
state.id = params.get("id");
|
||||||
state.pid = params.get("pid");
|
state.pid = params.get("pid");
|
||||||
@ -34,7 +29,7 @@ export default {
|
|||||||
console.log("boxRelBucketStatus", state.boxRelBucketStatus);
|
console.log("boxRelBucketStatus", state.boxRelBucketStatus);
|
||||||
if (res.data.pbStatus == 1) {
|
if (res.data.pbStatus == 1) {
|
||||||
console.log("成功拉2");
|
console.log("成功拉2");
|
||||||
uni.navigateTo({
|
uni.redirectTo({
|
||||||
url: "/pages/index/index?id=" + state.id + "&pid=" + state.pid,
|
url: "/pages/index/index?id=" + state.id + "&pid=" + state.pid,
|
||||||
success: () => {
|
success: () => {
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
@ -49,7 +44,7 @@ export default {
|
|||||||
res.data.boxRelBucketStatus == 3 &&
|
res.data.boxRelBucketStatus == 3 &&
|
||||||
res.data.locateAddress == "公司内"
|
res.data.locateAddress == "公司内"
|
||||||
) {
|
) {
|
||||||
uni.navigateTo({
|
uni.redirectTo({
|
||||||
url: "/pages/painting/index?id=" + state.id + "&pid=" + state.pid,
|
url: "/pages/painting/index?id=" + state.id + "&pid=" + state.pid,
|
||||||
success: () => {
|
success: () => {
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
@ -62,7 +57,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
uni.setStorageSync("data", res.data);
|
uni.setStorageSync("data", res.data);
|
||||||
console.log();
|
console.log();
|
||||||
uni.navigateTo({
|
uni.redirectTo({
|
||||||
url:
|
url:
|
||||||
"/pages/detail/index?id=" +
|
"/pages/detail/index?id=" +
|
||||||
state.id +
|
state.id +
|
||||||
@ -95,6 +90,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}, 200);
|
}, 200);
|
||||||
},
|
},
|
||||||
|
onShow: function () {},
|
||||||
onHide: function () {
|
onHide: function () {
|
||||||
console.log("App Hide");
|
console.log("App Hide");
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user