多规格选择购买页面数量赋值问题处理

This commit is contained in:
2022-10-13 14:36:32 +08:00
parent 60c2738592
commit d9d9516984
6 changed files with 165 additions and 166 deletions

View File

@@ -37,7 +37,7 @@
})
} else {
console.log('back........', this.task_id)
if (this.task_id != '') {
if (this.task_id && this.task_id != '') {
uni.showModal({
title: '温馨提示',
content: '是否确认将该商品发货到这个位置',
@@ -47,7 +47,6 @@
cancelText: '再想想',
success: (res) => {
if (res.confirm) {
console.log('调用该接口。。。。');
uni.navigateBack();
}
if (res.cancel) {

View File

@@ -82,9 +82,9 @@
},
onShow() {
if (JSON.stringify(this.$store.getters.getAddress) !== '{}') this.address = this.$store.getters.getAddress
this.qty = this.$Route.query.qty;
},
onLoad() {
this.qty = this.$Route.query.qty;
if (this.$Route.query.type === 'pin') {
this.type = 'pin'
}