From 81b833a5c49d7e13b12a022d9ee4c8eca9f603a4 Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期二, 10 九月 2024 18:18:22 +0800
Subject: [PATCH] 1.收货地址新增手机号码校验
---
sub_pages/customer/coupon/good-self.vue | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/sub_pages/customer/coupon/good-self.vue b/sub_pages/customer/coupon/good-self.vue
index 547ac56..a2abe80 100644
--- a/sub_pages/customer/coupon/good-self.vue
+++ b/sub_pages/customer/coupon/good-self.vue
@@ -104,7 +104,7 @@
methods: {
isIngood(item) {
for (var tmp of this.cache_goods) {
- if (tmp.id == item.id) {
+ if (tmp.goodsId == item.goodsId) {
return true
}
}
@@ -114,7 +114,7 @@
async updateSelectGood(item) {
var has = false
for (var tmp of this.cache_goods) {
- if (tmp.id == item.id) {
+ if (tmp.goodsId == item.goodsId) {
has = true
break
}
@@ -125,7 +125,7 @@
//移除
var arr = []
for (var tmp of this.cache_goods) {
- if (tmp.id == item.id) {} else {
+ if (tmp.goodsId == item.goodsId) {} else {
arr.push(tmp)
}
}
@@ -136,7 +136,7 @@
}
arr.push(item)
}
- await this.$store.dispatch('cache_coupon_select', arr)
+ await this.$store.dispatch('cache_goods_select', arr)
this.$forceUpdate()
},
@@ -147,7 +147,7 @@
},
getPointGood(item) {
uni.navigateTo({
- url: `/sub_pages/customer/coupon/good-detail?id=${item.id}`
+ url: `/sub_pages/customer/coupon/good-detail?id=${item.goodsId}`
})
},
toGoodAll() {
--
Gitblit v1.9.3