From af2a86dbbe05d74b00a6e7bdc426e26bb0453654 Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期三, 31 七月 2024 11:35:34 +0800 Subject: [PATCH] fix bug --- sub_pages/customer/self/collect.vue | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/sub_pages/customer/self/collect.vue b/sub_pages/customer/self/collect.vue index 68fd238..4d9fa5f 100644 --- a/sub_pages/customer/self/collect.vue +++ b/sub_pages/customer/self/collect.vue @@ -59,7 +59,7 @@ if (item.status == 'UP') { } else { - this.$message.showToast('已失效,无法查看详情') + this.$message.showToast('商品已下架,无法查看详情') return } uni.navigateTo({ @@ -130,7 +130,7 @@ if (!item.stock) { item.stock = 0 } - if (item.shopnum + addnum > item.stock) { + if (addnum > 0 & item.shopnum + addnum > item.stock) { this.$message.showToast('库存不足,无法修改') return } @@ -191,7 +191,7 @@ @cancel="order_show=false"></u-picker> <view class="trade-list-container"> - <view class="trade-info-container flex" v-for="(dto,index) of list" :key="index"> + <view class="trade-info-container flex" :class="[dto.status]" v-for="(dto,index) of list" :key="index"> <image class="img img100 br-4 m-r-10" :src="dto.url||dto.cover" @click.stop="toDetail(dto)"></image> <view class="flex1"> <view class="flex" @click.stop="toDetail(dto)"> @@ -269,6 +269,12 @@ } + .trade-info-container.UP { + .title { + color: #000000; + } + } + .trade-info-container { background-color: #fff; border-radius: 40rpx; @@ -285,7 +291,7 @@ font-weight: 600; font-size: 28rpx; - color: #000000; + color: #333; line-height: 40rpx; .level { -- Gitblit v1.9.3