|
|
@ -38,7 +38,7 @@ |
|
|
|
<text v-else style="color: #8F8F8F;">请设置</text> |
|
|
|
<text v-else style="color: #8F8F8F;">请设置</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="rangeInput fix"> |
|
|
|
<view class="rangeInput fix"> |
|
|
|
<input type="text" :min="5" style="border: none;" @input="onRate($event,index_1,index_2)" |
|
|
|
<input type="text" style="border: none;" @input="onRate($event,index_1,index_2)" |
|
|
|
placeholder="请设置" v-model="val.add_price_rate" /> |
|
|
|
placeholder="请设置" v-model="val.add_price_rate" /> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="profit"> |
|
|
|
<view class="profit"> |
|
|
@ -58,8 +58,19 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="ruleText" v-if="type==1"> |
|
|
|
<view class="price_rat" v-if="type==0"> |
|
|
|
备注:利润低于_元的商品不展示在商城里。 |
|
|
|
<view class="price_set"> |
|
|
|
|
|
|
|
<view class="price_txt"> |
|
|
|
|
|
|
|
<text>最低利润:</text><input type="text" :min="5" style="border: none;" placeholder="请输入最低利润" |
|
|
|
|
|
|
|
v-model="add_price_rate" /> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="price_bnt"> |
|
|
|
|
|
|
|
确认 |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="ruleText" v-if="type==0"> |
|
|
|
|
|
|
|
备注:利润低于_元的商品不展示在商城里。 |
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="price-fd"> |
|
|
|
<view class="price-fd"> |
|
|
@ -92,6 +103,9 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoad(op) { |
|
|
|
onLoad(op) { |
|
|
|
|
|
|
|
uni.setNavigationBarTitle({ |
|
|
|
|
|
|
|
title: op.type == 0 ? '会员价' : '分销价' |
|
|
|
|
|
|
|
}) |
|
|
|
this.type = op.type |
|
|
|
this.type = op.type |
|
|
|
this.getCategory() |
|
|
|
this.getCategory() |
|
|
|
|
|
|
|
|
|
|
@ -251,9 +265,9 @@ |
|
|
|
// 计算利润率 |
|
|
|
// 计算利润率 |
|
|
|
onRate(e, index_1, index_2) { |
|
|
|
onRate(e, index_1, index_2) { |
|
|
|
let rate = Number(e.detail.value) |
|
|
|
let rate = Number(e.detail.value) |
|
|
|
if (5 > rate) { |
|
|
|
if (0 > rate) { |
|
|
|
this.list[this.index_1].price_list[this.index_2].add_price_rate = '' |
|
|
|
this.list[this.index_1].price_list[this.index_2].add_price_rate = '' |
|
|
|
return this.$toast('最低利率不能低于5%') |
|
|
|
return this.$toast('最低利率不能低于0%') |
|
|
|
} |
|
|
|
} |
|
|
|
this.list[this.index_1].price_list[this.index_2].startProfit = Number((this.list[this.index_1].price_list[ |
|
|
|
this.list[this.index_1].price_list[this.index_2].startProfit = Number((this.list[this.index_1].price_list[ |
|
|
|
this |
|
|
|
this |
|
|
@ -390,8 +404,38 @@ |
|
|
|
padding-bottom: 60upx; |
|
|
|
padding-bottom: 60upx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.price_rat { |
|
|
|
|
|
|
|
margin-top: 20rpx; |
|
|
|
|
|
|
|
padding: 40rpx; |
|
|
|
|
|
|
|
background: #fff; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.price_set { |
|
|
|
|
|
|
|
display: flex; |
|
|
|
|
|
|
|
align-items: center; |
|
|
|
|
|
|
|
justify-content: space-between; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.price_bnt { |
|
|
|
|
|
|
|
width: 140upx; |
|
|
|
|
|
|
|
height: 60upx; |
|
|
|
|
|
|
|
background: linear-gradient(180deg, #FD5D06 0%, #F3211A 100%); |
|
|
|
|
|
|
|
border-radius: 20px; |
|
|
|
|
|
|
|
opacity: 1; |
|
|
|
|
|
|
|
font-size: 28upx; |
|
|
|
|
|
|
|
font-family: PingFang SC, PingFang SC; |
|
|
|
|
|
|
|
font-weight: 500; |
|
|
|
|
|
|
|
color: #FFFFFF; |
|
|
|
|
|
|
|
line-height: 60upx; |
|
|
|
|
|
|
|
text-align: center; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.price_txt{ |
|
|
|
|
|
|
|
display: flex; |
|
|
|
|
|
|
|
align-items: center; |
|
|
|
|
|
|
|
} |
|
|
|
.ruleText { |
|
|
|
.ruleText { |
|
|
|
margin: 30rpx 50rpx; |
|
|
|
margin-top: 10rpx; |
|
|
|
font-size: 28upx; |
|
|
|
font-size: 28upx; |
|
|
|
font-family: PingFang SC, PingFang SC; |
|
|
|
font-family: PingFang SC, PingFang SC; |
|
|
|
font-weight: 400; |
|
|
|
font-weight: 400; |
|
|
|