fix
This commit is contained in:
parent
0455590dfe
commit
b3ed9f2b8d
132
src/App.vue
132
src/App.vue
@ -16,74 +16,74 @@ export default {
|
|||||||
// const token = window?.plus?.storage.getItem("token");
|
// const token = window?.plus?.storage.getItem("token");
|
||||||
// uni.setStorageSync("token", token);
|
// uni.setStorageSync("token", token);
|
||||||
// console.log("App Show", uni.getStorageSync("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");
|
||||||
// console.log(state);
|
console.log(state);
|
||||||
|
|
||||||
// const paintingDetail = async () => {
|
const paintingDetail = async () => {
|
||||||
// loading.value = true;
|
loading.value = true;
|
||||||
// console.log("state", state);
|
console.log("state", state);
|
||||||
// const res = await pbDetail({
|
const res = await pbDetail({
|
||||||
// id: state.id,
|
id: state.id,
|
||||||
// pid: state.pid,
|
pid: state.pid,
|
||||||
// });
|
});
|
||||||
// if (res.status === 0) {
|
if (res.status === 0) {
|
||||||
// console.log("成功拉1");
|
console.log("成功拉1");
|
||||||
// state.boxRelBucketStatus = res.data.boxRelBucketStatus;
|
state.boxRelBucketStatus = res.data.boxRelBucketStatus;
|
||||||
// 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.navigateTo({
|
||||||
// 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;
|
||||||
// },
|
},
|
||||||
// fail: () => {
|
fail: () => {
|
||||||
// loading.value = false;
|
loading.value = false;
|
||||||
// showMessage({ type: "default", message: "跳转失败" });
|
showMessage({ type: "default", message: "跳转失败" });
|
||||||
// },
|
},
|
||||||
// });
|
});
|
||||||
// } else {
|
} else {
|
||||||
// if (
|
if (
|
||||||
// res.data.boxRelBucketStatus == 3 &&
|
res.data.boxRelBucketStatus == 3 &&
|
||||||
// res.data.locateAddress == "公司内"
|
res.data.locateAddress == "公司内"
|
||||||
// ) {
|
) {
|
||||||
// uni.navigateTo({
|
uni.navigateTo({
|
||||||
// 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;
|
||||||
// },
|
},
|
||||||
// fail: () => {
|
fail: () => {
|
||||||
// loading.value = false;
|
loading.value = false;
|
||||||
// showMessage({ type: "default", message: "跳转失败" });
|
showMessage({ type: "default", message: "跳转失败" });
|
||||||
// },
|
},
|
||||||
// });
|
});
|
||||||
// } else {
|
} else {
|
||||||
// uni.setStorageSync("data", res.data);
|
uni.setStorageSync("data", res.data);
|
||||||
// console.log();
|
console.log();
|
||||||
// uni.navigateTo({
|
uni.navigateTo({
|
||||||
// url:
|
url:
|
||||||
// "/pages/detail/index?id=" +
|
"/pages/detail/index?id=" +
|
||||||
// state.id +
|
state.id +
|
||||||
// "&pid=" +
|
"&pid=" +
|
||||||
// state.pid +
|
state.pid +
|
||||||
// "&boxRelBucketStatus=" +
|
"&boxRelBucketStatus=" +
|
||||||
// state.boxRelBucketStatus,
|
state.boxRelBucketStatus,
|
||||||
|
|
||||||
// success: () => {
|
success: () => {
|
||||||
// loading.value = false;
|
loading.value = false;
|
||||||
// },
|
},
|
||||||
// fail: () => {
|
fail: () => {
|
||||||
// loading.value = false;
|
loading.value = false;
|
||||||
// showMessage({ type: "default", message: "跳转失败" });
|
showMessage({ type: "default", message: "跳转失败" });
|
||||||
// },
|
},
|
||||||
// });
|
});
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// };
|
};
|
||||||
// paintingDetail();
|
paintingDetail();
|
||||||
},
|
},
|
||||||
onHide: function () {
|
onHide: function () {
|
||||||
console.log("App Hide");
|
console.log("App Hide");
|
||||||
|
Loading…
Reference in New Issue
Block a user