fix:bug修复

This commit is contained in:
黄泽群
2026-07-22 17:18:26 +08:00
parent 53f1ebba18
commit 17ab8beefa
6 changed files with 237 additions and 179 deletions
+14 -13
View File
@@ -1190,7 +1190,7 @@ export default {
};
console.log("selectTempl", selectTempl);
if (this.isShowCart == 1 || this.isCoupon) {
if (this.isShowCart == 1 || this.isCoupon || isBy) {
console.log("活动类型params---秦星星", params, this.isCoupon);
params["specsId"] = selectTempl;
let url = "";
@@ -1208,6 +1208,13 @@ export default {
)}&address=${this.selectAddress?.id}&isCoupon=${this.isCoupon}`
}
if (!url) {
url = `/pages/order_package/order_submit/order_submit?sed=${JSON.stringify(
params
)}&address=${this.selectAddress?.id}`;
this.specificationShow = false;
}
uni.navigateTo({
url: url
});
@@ -1215,18 +1222,12 @@ export default {
}
const resp = await addGoods(params);
if (resp && resp.bizcode === 100) {
if (isBy) {
uni.navigateTo({
url: `/pages/order_package/order_submit/order_submit?ids=${resp.data}&address=${this.selectAddress?.id}`,
});
} else {
this.specificationShow = false;
uni.showToast({
title: "成功加入购物车",
icon: "success", // 可选 success/loading/none
duration: 2000, // 持续时长,单位ms
});
}
this.specificationShow = false;
uni.showToast({
title: "成功加入购物车",
icon: "success", // 可选 success/loading/none
duration: 2000, // 持续时长,单位ms
});
}
},
// 跳转到分享页面