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