|
@@ -1,11 +1,16 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view class="product">
|
|
<view class="product">
|
|
|
<view class="item-cmd_bx">
|
|
<view class="item-cmd_bx">
|
|
|
- <button v-if="Number(info.discountPrice)>0 && info.presell == 0" @click.stop="cancelDiscountFn(info)" class="admin-button-com mini-btn blue"
|
|
|
|
|
- style="position:absolute;bottom:0upx;font-size:24upx;left:10upx;z-index:20;">取消特价</button>
|
|
|
|
|
|
|
+ <button v-if="info.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>
|
|
|
|
|
|
|
|
- <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>
|
|
|
|
|
<view class="img_bx">
|
|
<view class="img_bx">
|
|
|
<view v-if="info.status == 2" class="sold-out">
|
|
<view v-if="info.status == 2" class="sold-out">
|
|
|
<view class="sold-out-xj">已下架</view>
|
|
<view class="sold-out-xj">已下架</view>
|
|
@@ -18,7 +23,7 @@
|
|
|
v-if="info.presell == 1">预售</text>
|
|
v-if="info.presell == 1">预售</text>
|
|
|
{{ info.name || "" }}
|
|
{{ info.name || "" }}
|
|
|
</view>
|
|
</view>
|
|
|
- <text v-if="info.variety && info.variety ==1" class="show-color"></text>
|
|
|
|
|
|
|
+ <text v-if="info.frontHide == 1" class="front-hide-color">隐</text>
|
|
|
<view class="kc">¥{{ parseFloat(info.price) }}</view>
|
|
<view class="kc">¥{{ parseFloat(info.price) }}</view>
|
|
|
<view class="num-open_bx">
|
|
<view class="num-open_bx">
|
|
|
<view>
|
|
<view>
|
|
@@ -67,8 +72,8 @@ export default {
|
|
|
cancelPreSellFn(item){
|
|
cancelPreSellFn(item){
|
|
|
this.$emit("cancelPreSellFn",item)
|
|
this.$emit("cancelPreSellFn",item)
|
|
|
},
|
|
},
|
|
|
- cancelDiscountFn(item){
|
|
|
|
|
- this.$emit("cancelDiscountFn",item)
|
|
|
|
|
|
|
+ hideChangeFn(item,status){
|
|
|
|
|
+ this.$emit("hideChangeFn",item,status)
|
|
|
},
|
|
},
|
|
|
saveStock() {
|
|
saveStock() {
|
|
|
if(Number(this.modifyStock)>0){
|
|
if(Number(this.modifyStock)>0){
|
|
@@ -145,17 +150,19 @@ export default {
|
|
|
text-overflow: ellipsis;
|
|
text-overflow: ellipsis;
|
|
|
width:360upx;
|
|
width:360upx;
|
|
|
}
|
|
}
|
|
|
- .show-color{
|
|
|
|
|
|
|
+ .front-hide-color{
|
|
|
position:absolute;
|
|
position:absolute;
|
|
|
- top:84upx;
|
|
|
|
|
- right:190upx;
|
|
|
|
|
|
|
+ top:52upx;
|
|
|
|
|
+ right:206upx;
|
|
|
display:inline-block;
|
|
display:inline-block;
|
|
|
- width:25upx;
|
|
|
|
|
- height:25upx;
|
|
|
|
|
- background-color:rgb(9, 199, 9);
|
|
|
|
|
- border-radius:15upx;
|
|
|
|
|
|
|
+ width:56upx;
|
|
|
|
|
+ padding:10upx 0;
|
|
|
|
|
+ background-color:#3385FF;
|
|
|
border:none;
|
|
border:none;
|
|
|
margin-left:8upx;
|
|
margin-left:8upx;
|
|
|
|
|
+ color:white;
|
|
|
|
|
+ text-align:center;
|
|
|
|
|
+ border-radius:10upx;
|
|
|
}
|
|
}
|
|
|
& .kc {
|
|
& .kc {
|
|
|
color:red;
|
|
color:red;
|