xuxueyang
2024-09-09 03d26aca1b656c03dc4280f85acb1132bd87639d
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() {