| xqd
@@ -29,7 +29,7 @@
|
|
|
<text>{{productDetail.price}}</text>
|
|
|
</view>
|
|
|
<view class="price-top" v-if="produceType == 2">
|
|
|
- <text>{{productDetail.price}}</text>
|
|
|
+ <text>{{productDetail.integral}}</text>
|
|
|
<text>积分</text>
|
|
|
</view>
|
|
|
<text class="price-text">{{productDetail.name}}</text>
|
| xqd
@@ -115,7 +115,7 @@
|
|
|
<text>{{productDetail.price}}</text>
|
|
|
</view>
|
|
|
<view class="pop-price-left-money" v-if="produceType == 2">
|
|
|
- <text>{{productDetail.price}}</text>
|
|
|
+ <text>{{productDetail.integral}}</text>
|
|
|
<text>积分</text>
|
|
|
</view>
|
|
|
</view>
|
| xqd
@@ -288,7 +288,15 @@
|
|
|
},
|
|
|
selectedHotelId: function() {
|
|
|
return this.$store.state.tab.selectedHotelId;
|
|
|
- }
|
|
|
+ },
|
|
|
+ showProductAttr: function() {
|
|
|
+ if (this.flavorIsActive.length <= 0) return false;
|
|
|
+ let text = '';
|
|
|
+ for (const k in this.flavorIsActive) {
|
|
|
+ text += `${this.flavorIsActive[k]}-`
|
|
|
+ }
|
|
|
+ return text.substr(0, text.length - 1);
|
|
|
+ },
|
|
|
},
|
|
|
methods: {
|
|
|
//显示所选规格
|
| xqd
@@ -484,8 +492,9 @@
|
|
|
for(let k in this.productDetail.product_attr){
|
|
|
if(this.productDetail.product_attr[k].attr == attr){
|
|
|
const price = this.productDetail.product_attr[k].price;
|
|
|
+ const integral = this.productDetail.product_attr[k].integral;
|
|
|
this.productDetail.price = price;
|
|
|
- this.productDetail.integral = price;
|
|
|
+ this.productDetail.integral = integral;
|
|
|
break;
|
|
|
}
|
|
|
}
|
| xqd
@@ -521,7 +530,7 @@
|
|
|
const selectedIds = resArr.join(':');
|
|
|
console.log(this.productDetail.integral);
|
|
|
uni.navigateTo({
|
|
|
- url: `/pages/my/integral/integralOrder?product_id=${this.productDetail.id}&attr=${selectedIds}&integral=${this.productDetail.integral}&attrName=${this.showAttr}`
|
|
|
+ url: `/pages/my/integral/integralOrder?product_id=${this.productDetail.id}&attr=${selectedIds}&integral=${this.productDetail.integral}&attrName=${this.showProductAttr}`
|
|
|
})
|
|
|
this.Recipientclose()
|
|
|
},
|