xuxueyang
2024-08-02 1b78e33e0d0340f3d45f87160abcb0f13f013774
sub_pages/customer/shopping/shopping.vue
@@ -28,7 +28,8 @@
                  <u-swipe-action-item :options="options1" @click="(e)=>{clickSwipeButton(dto,true)}">
                     <view class="item-each flex">
                        <radio :checked="ids.indexOf(dto.id)>=0" @click="changeItem(dto,'flower')"></radio>
                        <image class="img img100 m-r-6 br-4" :class="[!dto.stock?'component-stock-zero-tmp':'']" :src="dto.url||dto.cover"></image>
                        <image class="img img100 m-r-6 br-4" :class="[!dto.stock?'component-stock-zero':'']"
                           :src="dto.url||dto.cover"></image>
                        <view class="flex1">
                           <view class="title" @click.stop="toDetail(dto)"><span class="m-r-5"
                                 style="display: inline-block;">{{dto.categoryStr||''}}</span><span
@@ -157,13 +158,16 @@
                  flowers: arr,
               }
            })
            this.$message.hideLoading()
            let that = this
            setTimeout(() => {
               that.$message.hideLoading()
            if (code === 0) {
               this.$storage.setItem('_cache_shopping_dto', JSON.stringify(data))
                  that.$storage.setItem('_cache_shopping_dto', JSON.stringify(data))
               uni.navigateTo({
                  url: '/sub_pages/customer/shopping/confirm'
               })
            }
            }, 300)
         },
         async clickSwipeButton(item, check) {
            //删除商品,重新加载数据?