|
@@ -28,10 +28,13 @@
|
|
|
<div class="order-num app-color-3">订单号: {{ option.orderSn }}</div>
|
|
<div class="order-num app-color-3">订单号: {{ option.orderSn }}</div>
|
|
|
</block>
|
|
</block>
|
|
|
<!-- 待支付 - 订单支付成功 -->
|
|
<!-- 待支付 - 订单支付成功 -->
|
|
|
- <block v-else-if="pagestatus == 3 && payDiscountPrice">
|
|
|
|
|
|
|
+ <block v-else-if="pagestatus == 3 && payDiscountPrice >0">
|
|
|
<div>
|
|
<div>
|
|
|
- <span class="app-color-2">使用优惠券为您</span>
|
|
|
|
|
- <span class="app-price">节省 {{ payDiscountPrice }}元</span>
|
|
|
|
|
|
|
+ <span v-if="payDiscountType == 0" class="app-color-2">使用优惠券为您省</span>
|
|
|
|
|
+ <span v-else-if="payDiscountType == 1" class="app-color-2">会员身份为您省</span>
|
|
|
|
|
+ <span v-else-if="payDiscountType == 2" class="app-color-2">随机优惠为您省</span>
|
|
|
|
|
+ <span v-else class="app-color-2">随机优惠为您省</span>
|
|
|
|
|
+ <span class="app-price">{{ payDiscountPrice }}元</span>
|
|
|
</div>
|
|
</div>
|
|
|
</block>
|
|
</block>
|
|
|
<!-- 评价成功 -->
|
|
<!-- 评价成功 -->
|
|
@@ -66,11 +69,11 @@
|
|
|
orderSn: option.orderSn,
|
|
orderSn: option.orderSn,
|
|
|
id: option.id
|
|
id: option.id
|
|
|
}
|
|
}
|
|
|
- })">查看订单</button>
|
|
|
|
|
|
|
+ })">查看订单11{{payDiscountType}}{{payDiscountPrice}}</button>
|
|
|
<button class="button-com" @click="pageTo({
|
|
<button class="button-com" @click="pageTo({
|
|
|
url: '/pages/home/index',
|
|
url: '/pages/home/index',
|
|
|
type: 4
|
|
type: 4
|
|
|
- })">返回首页</button>
|
|
|
|
|
|
|
+ })">返回首页22</button>
|
|
|
</div>
|
|
</div>
|
|
|
</block>
|
|
</block>
|
|
|
</div>
|
|
</div>
|
|
@@ -138,6 +141,7 @@
|
|
|
pagestatus: 1,
|
|
pagestatus: 1,
|
|
|
contentClass: '',
|
|
contentClass: '',
|
|
|
payDiscountPrice: null,
|
|
payDiscountPrice: null,
|
|
|
|
|
+ payDiscountType:0,
|
|
|
// 支付相关 ============
|
|
// 支付相关 ============
|
|
|
passwordModal: false,
|
|
passwordModal: false,
|
|
|
form: {
|
|
form: {
|
|
@@ -166,6 +170,7 @@
|
|
|
init() {
|
|
init() {
|
|
|
this.pagestatus = this.option.pagestatus
|
|
this.pagestatus = this.option.pagestatus
|
|
|
this.payDiscountPrice = this.option.payDiscountPrice
|
|
this.payDiscountPrice = this.option.payDiscountPrice
|
|
|
|
|
+ this.payDiscountType = this.option.payDiscountType
|
|
|
this.initClass(this.pagestatus)
|
|
this.initClass(this.pagestatus)
|
|
|
getShopUser()
|
|
getShopUser()
|
|
|
// 商户信息
|
|
// 商户信息
|
|
@@ -217,7 +222,8 @@
|
|
|
...this.option,
|
|
...this.option,
|
|
|
pagestatus: 3,
|
|
pagestatus: 3,
|
|
|
// orderSn: this.option.orderSn,
|
|
// orderSn: this.option.orderSn,
|
|
|
- payDiscountPrice: this.payCallData.discountAmount
|
|
|
|
|
|
|
+ payDiscountPrice: this.payCallData.discountAmount,
|
|
|
|
|
+ payDiscountType:this.payCallData.discountType
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|