Fix(商品详情):[#2319]显示预计获得积分数
This commit is contained in:
@@ -29,13 +29,9 @@
|
||||
<image :src="webUrl+'/20210806121714655368.png'" mode="" style="width: 36rpx;height: 36rpx;"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="v12-mt-1 v12-mb-3">
|
||||
<view
|
||||
v-if="couponListLimit2ToShow.length > 0"
|
||||
class="cell flex jc-between ai-center"
|
||||
@click="changeCoupons()"
|
||||
>
|
||||
<view class="v12-justify-start">
|
||||
<view v-if="couponListLimit2ToShow.length > 0 || attr.productSelect.earnPoints" class="v12-mt-1 v12-mb-3">
|
||||
<view class="cell flex jc-between ai-center">
|
||||
<view v-if="couponListLimit2ToShow.length > 0" class="v12-justify-start">
|
||||
<view
|
||||
v-for="(item, index) in couponListLimit2ToShow"
|
||||
:key="index"
|
||||
@@ -47,10 +43,14 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="value value2 v12-font-24 v12-primary-text">
|
||||
<view v-if="attr.productSelect.earnPoints" class="value value2 v12-font-24 v12-primary-text">
|
||||
预计获得{{ attr.productSelect.earnPoints }}积分
|
||||
</view>
|
||||
<view class="value value2 v12-font-24 v12-primary-text">
|
||||
<view
|
||||
v-if="couponListLimit2ToShow.length > 0"
|
||||
class="value value2 v12-font-24 v12-primary-text"
|
||||
@click="changeCoupons()"
|
||||
>
|
||||
更多优惠
|
||||
<uni-icons type="right" size="14" color="#707070"></uni-icons>
|
||||
</view>
|
||||
@@ -1145,6 +1145,7 @@ export default {
|
||||
this.$set(this.attr.productSelect, 'otPrice', productSelect.otPrice)
|
||||
this.$set(this.attr.productSelect, 'stock', productSelect.stock)
|
||||
this.$set(this.attr.productSelect, 'unique', productSelect.unique)
|
||||
this.$set(this.attr.productSelect, 'earnPoints', productSelect.earnPoints)
|
||||
this.$set(this.attr.productSelect, 'cart_num', 1)
|
||||
// this.$set(this, 'attrValue', value.sort().join(','))
|
||||
this.$set(this, 'attrValue', skuKey)
|
||||
@@ -1160,6 +1161,7 @@ export default {
|
||||
this.$set(this.attr.productSelect, 'price', this.storeInfo.price)
|
||||
this.$set(this.attr.productSelect, 'otPrice', this.storeInfo.otPrice)
|
||||
this.$set(this.attr.productSelect, 'stock', 0)
|
||||
this.$set(this.attr.productSelect, 'earnPoints', 0)
|
||||
this.$set(this.attr.productSelect, 'unique', '')
|
||||
this.$set(this.attr.productSelect, 'cart_num', 0)
|
||||
this.$set(this, 'attrValue', '')
|
||||
@@ -1174,6 +1176,7 @@ export default {
|
||||
this.$set(this.attr.productSelect, 'price', this.storeInfo.price)
|
||||
this.$set(this.attr.productSelect, 'otPrice', this.storeInfo.otPrice)
|
||||
this.$set(this.attr.productSelect, 'stock', this.storeInfo.stock)
|
||||
this.$set(this.attr.productSelect, 'earnPoints', 0)
|
||||
this.$set(
|
||||
this.attr.productSelect,
|
||||
'unique',
|
||||
@@ -1263,6 +1266,7 @@ export default {
|
||||
this.$set(this.attr.productSelect, 'otPrice', productSelect.otPrice)
|
||||
this.$set(this.attr.productSelect, 'stock', productSelect.stock)
|
||||
this.$set(this.attr.productSelect, 'unique', productSelect.unique)
|
||||
this.$set(this.attr.productSelect, 'earnPoints', productSelect.earnPoints)
|
||||
this.$set(this.attr.productSelect, 'cart_num', 1)
|
||||
this.$set(this, 'attrValue', value)
|
||||
this.$set(this, 'attrTxt', '已选择')
|
||||
@@ -1273,6 +1277,7 @@ export default {
|
||||
this.$set(this.attr.productSelect, 'otPrice', this.storeInfo.otPrice)
|
||||
this.$set(this.attr.productSelect, 'stock', 0)
|
||||
this.$set(this.attr.productSelect, 'unique', '')
|
||||
this.$set(this.attr.productSelect, 'earnPoints', 0)
|
||||
this.$set(this.attr.productSelect, 'cart_num', 0)
|
||||
this.$set(this, 'attrValue', '')
|
||||
this.$set(this, 'attrTxt', '请选择')
|
||||
|
||||
Reference in New Issue
Block a user