From cd945be638125a2deb8211ba9d26d1bb63cf3f97 Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期三, 11 九月 2024 10:25:05 +0800
Subject: [PATCH] 304-小程序-花店-首页搜索 点击按花名店铺切换搜索输入框没有跟着切换 一直显示都是请输入花名
---
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