|
@@ -417,25 +417,26 @@
|
|
|
</view>
|
|
|
<view class="list-cell-btn">
|
|
|
<view class="icon-used">
|
|
|
- <template v-if="coupon.moneyCouponFlag == 1">
|
|
|
- <view class="icon-used-text">购买</view>
|
|
|
- <view
|
|
|
- class="icon-used-btn receive"
|
|
|
- @click="toPayCoupon(coupon)"
|
|
|
- >¥{{ coupon.moneyCouponPrice }}</view
|
|
|
- >
|
|
|
- </template>
|
|
|
- <template v-else>
|
|
|
- <view
|
|
|
- class="icon-used-btn receive"
|
|
|
- v-if="coupon.couponBtnType == 0"
|
|
|
- @click="receiveCoupon(coupon)"
|
|
|
- >领取</view
|
|
|
- >
|
|
|
- <view class="icon-used-btn make" v-if="coupon.couponBtnType == 1"
|
|
|
- >已领取</view
|
|
|
- >
|
|
|
+ <template v-if="coupon.couponBtnType == 0">
|
|
|
+ <template v-if="coupon.moneyCouponFlag == 1">
|
|
|
+ <view class="icon-used-text">购买</view>
|
|
|
+ <view
|
|
|
+ class="icon-used-btn receive"
|
|
|
+ @click="toPayCoupon(coupon)"
|
|
|
+ >¥{{ coupon.moneyCouponPrice }}</view
|
|
|
+ >
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <view
|
|
|
+ class="icon-used-btn receive"
|
|
|
+ @click="receiveCoupon(coupon)"
|
|
|
+ >领取</view
|
|
|
+ >
|
|
|
+ </template>
|
|
|
</template>
|
|
|
+ <view class="icon-used-btn make" v-if="coupon.couponBtnType == 1"
|
|
|
+ >已领取</view
|
|
|
+ >
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -817,6 +818,7 @@ export default {
|
|
|
this.buyRetailPriceStep = this.product.step
|
|
|
this.number = this.product.minBuyNumber
|
|
|
this.minBuyNumber = this.product.minBuyNumber
|
|
|
+
|
|
|
//处理商品图片列表
|
|
|
this.product.imageList.forEach(item => {
|
|
|
this.productImage.push(item.image)
|
|
@@ -830,7 +832,6 @@ export default {
|
|
|
this.retailPrice = this.product.price.toFixed(2)
|
|
|
this.buyRetailPrice = this.product.price
|
|
|
}
|
|
|
-
|
|
|
//处理下架商品和售罄商品
|
|
|
if (this.product.validFlag == 3 || this.stock == 0) {
|
|
|
this.isNoneDisabled = true
|
|
@@ -901,9 +902,13 @@ export default {
|
|
|
? this.$api.adaptRichTextImg(product.productDetail.detailInfo)
|
|
|
: defaulHtml
|
|
|
} else {
|
|
|
- html = product.productDetail
|
|
|
- ? this.$api.adaptRichTextImg(product.productDetail.commonDetailInfo)
|
|
|
- : defaulHtml
|
|
|
+ if(product.productDetail.commonDetailInfo){
|
|
|
+ html = product.productDetail
|
|
|
+ ? this.$api.adaptRichTextImg(product.productDetail.commonDetailInfo)
|
|
|
+ : defaulHtml
|
|
|
+ }else{
|
|
|
+ html = defaulHtml
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
return html
|
|
@@ -1013,7 +1018,8 @@ export default {
|
|
|
userId: this.userId,
|
|
|
couponId: coupon.couponId,
|
|
|
payWay: 'WEIXIN',
|
|
|
- code: wechatcode
|
|
|
+ code: wechatcode,
|
|
|
+ source: 1 //支付来源 1 小程序 2 WWW
|
|
|
}
|
|
|
)
|
|
|
.then(response => {
|
|
@@ -1149,7 +1155,6 @@ export default {
|
|
|
}
|
|
|
this.isBtnType = type
|
|
|
this.popupShow3 = true
|
|
|
- console.log('1313123113121')
|
|
|
} else {
|
|
|
this.$api.navigateTo('/pages/login/login?type=1')
|
|
|
}
|