From 03d26aca1b656c03dc4280f85acb1132bd87639d Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期一, 09 九月 2024 23:57:43 +0800
Subject: [PATCH] update 会员信息、兑换商品等

---
 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