|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
-<view>
|
|
|
+<view class="product" :class="[info.status ==2?'sold-out':'']">
|
|
|
<view class="item-cmd_bx">
|
|
|
<view class="img_bx">
|
|
|
<app-img :src="info.cover" alt="花材" mode="aspectFit" :height="160" />
|
|
|
@@ -10,7 +10,8 @@
|
|
|
<view class="num-open_bx">
|
|
|
<template>
|
|
|
<view class="open-bx">
|
|
|
- 库存 <text style="margin-left: 10rpx;font-size: 23rpx">{{ parseFloat(info.stock) }}</text> <text v-if="info.status ==2" style="margin-left:20rpx;font-size:23rpx">已下架</text>
|
|
|
+ 库存 <text style="margin-left: 10rpx;font-size: 23rpx">{{ parseFloat(info.stock) }}</text>
|
|
|
+ <text v-if="info.status ==2" style="margin-left:30rpx;font-size:23rpx;color:#999999;">已下架</text>
|
|
|
</view>
|
|
|
</template>
|
|
|
</view>
|
|
|
@@ -74,6 +75,12 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
+.product{
|
|
|
+ height:230rpx;
|
|
|
+}
|
|
|
+.sold-out{
|
|
|
+ background:#F5F5F5;
|
|
|
+}
|
|
|
.bottom-button{
|
|
|
font-weight:normal;
|
|
|
border:2rpx solid #cccccc;
|
|
|
@@ -121,7 +128,7 @@ export default {
|
|
|
overflow: hidden;
|
|
|
white-space: nowrap;
|
|
|
text-overflow: ellipsis;
|
|
|
- width:360rpx;
|
|
|
+ width:350rpx;
|
|
|
}
|
|
|
& .kc {
|
|
|
color: red;
|