|
|
@@ -8,6 +8,19 @@
|
|
|
<button v-if="info.presell == 1" @click.stop="cancelPreSellFn(info)" class="admin-button-com mini-btn blue"
|
|
|
style="position:absolute;bottom:0upx;font-size:24upx;left:10upx;z-index:20;">取消预售</button>
|
|
|
|
|
|
+ <block v-if="info.frontHide && !$util.isEmpty(info.frontHide)">
|
|
|
+ <block v-if="Number(info.discountPrice)<=0 && info.presell == 0">
|
|
|
+ <button v-if="frontHide == 0" @click.stop="hideChangeFn(info,1)" class="admin-button-com mini-btn default"
|
|
|
+ style="width:141upx;position:absolute;bottom:0upx;font-size:24upx;left:10upx;z-index:20;padding-top:16upx;padding-bottom:16upx;">
|
|
|
+ 隐藏
|
|
|
+ </button>
|
|
|
+ <button v-else @click.stop="hideChangeFn(info,0)" class="admin-button-com mini-btn default"
|
|
|
+ style="width:141upx;position:absolute;bottom:0upx;font-size:24upx;left:10upx;z-index:20;padding-top:16upx;padding-bottom:16upx;">
|
|
|
+ 取消隐藏
|
|
|
+ </button>
|
|
|
+ </block>
|
|
|
+ </block>
|
|
|
+
|
|
|
<view class="img_bx" @click="pageTo({url: '/admin/item/detail',query: {id: info.id}})">
|
|
|
<view v-if="info.status == 2" class="sold-out">
|
|
|
<view class="sold-out-xj">已下架</view>
|
|
|
@@ -17,7 +30,7 @@
|
|
|
<view class="cmd-info_bx active" @click="pageTo({url: '/admin/item/detail',query: {id: info.id}})">
|
|
|
<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="info.frontHide && info.frontHide == 1">隐</text>
|
|
|
+ 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 }}
|
|
|
@@ -55,9 +68,18 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ frontHide:0
|
|
|
};
|
|
|
},
|
|
|
+ mounted(){
|
|
|
+ if(this.info){
|
|
|
+ this.frontHide = this.info.frontHide
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
+ hideChangeFn(item,status){
|
|
|
+ this.$emit("hideChangeFn",item,status)
|
|
|
+ },
|
|
|
cancelPreSellFn(item){
|
|
|
this.$emit("cancelPreSellFn",item)
|
|
|
},
|