|
|
|
@ -313,40 +313,13 @@ |
|
|
|
|
<u-line class="u-line"></u-line> |
|
|
|
|
</view> |
|
|
|
|
<view class="msp"> |
|
|
|
|
<text>原价格:</text> |
|
|
|
|
<text>成本价格:</text> |
|
|
|
|
<input type="text" disabled v-model="selectShop.price" class="inp" /> |
|
|
|
|
</view> |
|
|
|
|
<view class="msp"> |
|
|
|
|
<text>商品价格:</text> |
|
|
|
|
<input type="text" v-model="max_price" placeholder="商品价格" class="inp" /> |
|
|
|
|
</view> |
|
|
|
|
<view class="msp"> |
|
|
|
|
<text>划线价格:</text> |
|
|
|
|
<input type="text" v-model="markup_rate" placeholder="划线价格" class="inp" /> |
|
|
|
|
</view> |
|
|
|
|
<!-- <view class="qj"> |
|
|
|
|
<text class="msQj">秒杀区间:</text> |
|
|
|
|
<view class="date"> |
|
|
|
|
<view class="beginTime timeCommn"> |
|
|
|
|
开始时间 |
|
|
|
|
</view> |
|
|
|
|
- |
|
|
|
|
<view class="timeCommn endTime"> |
|
|
|
|
结束时间 |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> --> |
|
|
|
|
<!-- <view class="msLimit"> |
|
|
|
|
<text>秒杀限购:</text> |
|
|
|
|
<switch @change="switch1Change" /> |
|
|
|
|
</view> |
|
|
|
|
<view class="peoLimit"> |
|
|
|
|
<text>每人限购</text> |
|
|
|
|
<view class="num"> |
|
|
|
|
1 |
|
|
|
|
</view> |
|
|
|
|
<text>次</text> |
|
|
|
|
</view> --> |
|
|
|
|
<view class="operaBtn"> |
|
|
|
|
<view class="cancel btnComm" @click="shareCancel(1)"> |
|
|
|
|
取消 |
|
|
|
@ -356,50 +329,6 @@ |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- <view class="setMs" v-if="shareType=='setPrice'"> |
|
|
|
|
<view class="msprice"> |
|
|
|
|
设置秒杀价格 |
|
|
|
|
</view> |
|
|
|
|
<view class="msLine"> |
|
|
|
|
<u-line class="u-line"></u-line> |
|
|
|
|
</view> |
|
|
|
|
<view class="msp"> |
|
|
|
|
<text>秒杀价:</text> |
|
|
|
|
<input type="text" placeholder="秒杀价格可低于成本价" class="inp" /> |
|
|
|
|
</view> |
|
|
|
|
<view class="qj"> |
|
|
|
|
<text class="msQj">秒杀区间:</text> |
|
|
|
|
<view class="date"> |
|
|
|
|
<view class="beginTime timeCommn"> |
|
|
|
|
开始时间 |
|
|
|
|
</view> |
|
|
|
|
- |
|
|
|
|
<view class="timeCommn endTime"> |
|
|
|
|
结束时间 |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="msLimit"> |
|
|
|
|
<text>秒杀限购:</text> |
|
|
|
|
<switch @change="switch1Change" /> |
|
|
|
|
</view> |
|
|
|
|
<view class="peoLimit"> |
|
|
|
|
<text>每人限购</text> |
|
|
|
|
<view class="num"> |
|
|
|
|
1 |
|
|
|
|
</view> |
|
|
|
|
<text>次</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="operaBtn"> |
|
|
|
|
<view class="cancel btnComm"> |
|
|
|
|
取消 |
|
|
|
|
</view> |
|
|
|
|
<view class="sureBtn btnComm"> |
|
|
|
|
确定 |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> --> |
|
|
|
|
<!-- --> |
|
|
|
|
<view class="shareWechat" v-if="shareType=='share'"> |
|
|
|
|
<view class="shareGoods"> |
|
|
|
|
<image :src="goods.goods_image" mode="" class="shareImg"></image> |
|
|
|
@ -552,10 +481,10 @@ |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
getprice(e) { |
|
|
|
|
let that=this |
|
|
|
|
let that = this |
|
|
|
|
let params = { |
|
|
|
|
goods_id:that.goods.goods_id, |
|
|
|
|
sku_id:that.goods.skuList[0].id, |
|
|
|
|
goods_id: that.goods.goods_id, |
|
|
|
|
sku_id: that.goods.skuList[0].id, |
|
|
|
|
seckill_price: e.secondPrice, |
|
|
|
|
sec_start_time: e.startTime, |
|
|
|
|
sec_end_time: e.endTime, |
|
|
|
@ -592,20 +521,21 @@ |
|
|
|
|
//修改商品价格 |
|
|
|
|
async toUnpdatePrice() { |
|
|
|
|
const that = this; |
|
|
|
|
if (!that.max_price) { |
|
|
|
|
if (!that.selectShop) { |
|
|
|
|
uni.showToast({ |
|
|
|
|
icon: "none", |
|
|
|
|
title: "商品价格不能为空!" |
|
|
|
|
title: "成本价格不能为空!" |
|
|
|
|
}) |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (!that.markup_rate) { |
|
|
|
|
if (!that.max_price) { |
|
|
|
|
uni.showToast({ |
|
|
|
|
icon: "none", |
|
|
|
|
title: "划线价格不能为空!" |
|
|
|
|
title: "商品价格不能为空!" |
|
|
|
|
}) |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
let sku_id = "" |
|
|
|
|
if (that.goods.spec_type == 20) { |
|
|
|
|
sku_id = that.goods.skuList[0].id |
|
|
|
@ -999,7 +929,7 @@ |
|
|
|
|
bottom: 150rpx; |
|
|
|
|
right: 32rpx; |
|
|
|
|
width: 99rpx; |
|
|
|
|
height: 99rpx; |
|
|
|
|
height: 99rpx; |
|
|
|
|
border-radius: 50%; |
|
|
|
|
z-index: 19; |
|
|
|
|
display: flex; |
|
|
|
@ -2002,8 +1932,9 @@ |
|
|
|
|
color: #ffffff; |
|
|
|
|
transform: translate(40%, -20%); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
::v-deep .u-btn--primary { |
|
|
|
|
background-color: #FF6257 !important; |
|
|
|
|
border-color: #FF6257 !important; |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|
</style> |
|
|
|
|