|
|
@@ -2,13 +2,22 @@
|
|
|
<view class="product">
|
|
|
<view class="item-cmd_bx">
|
|
|
<view class="img_bx" @click.stop="pageTo({url: '/admin/item/detail',query: {id: info.id}})">
|
|
|
- <view v-if="info.status == 2" class="sold-out">
|
|
|
- <view class="sold-out-xj">已下架</view>
|
|
|
- </view>
|
|
|
+ <block v-if="info.status == 2">
|
|
|
+ <view class="sold-out">
|
|
|
+ <view class="sold-out-xj">已下架</view>
|
|
|
+ </view>
|
|
|
+ </block>
|
|
|
+ <block v-else>
|
|
|
+ <view class="sold-out" v-if="info.frontHide == 1">
|
|
|
+ <view class="hide">隐</view>
|
|
|
+ </view>
|
|
|
+ </block>
|
|
|
<image :src="info.cover" style="width:160upx;height:160upx;" lazy-load="true" :lazy-load-margin="0"></image>
|
|
|
</view>
|
|
|
<view class="cmd-info_bx" @click.stop="checkEvent">
|
|
|
<view class="tit">
|
|
|
+ <text style="font-size:22upx;border:1upx solid #3385ff;color:white;background-color:#3385ff;margin-right:5upx;padding-left:5upx;padding-right:5upx;"
|
|
|
+ v-if="frontHide == 1">隐</text>
|
|
|
<text style="font-size:22upx;border:1upx solid #3385ff;color:white;background-color:#3385ff;margin-right:5upx;padding-left:5upx;padding-right:5upx;"
|
|
|
v-if="info.presell == 1">预售</text>
|
|
|
{{ info.name || "" }}
|
|
|
@@ -84,7 +93,7 @@ export default {
|
|
|
left: 0upx;
|
|
|
top: 0upx;
|
|
|
.sold-out{
|
|
|
- z-index:998;
|
|
|
+ z-index:10;
|
|
|
width:160upx;
|
|
|
height:160upx;
|
|
|
background-color:black;
|
|
|
@@ -98,6 +107,10 @@ export default {
|
|
|
line-height:160upx;
|
|
|
font-size:28upx;
|
|
|
}
|
|
|
+ .hide{
|
|
|
+ line-height:160upx;
|
|
|
+ font-size:30upx;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
.cmd-info_bx {
|