|
@@ -13,7 +13,7 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="container-footer" :style="{ paddingBottom: isIphoneX ? '68rpx' : '34rpx' }">
|
|
<view class="container-footer" :style="{ paddingBottom: isIphoneX ? '68rpx' : '34rpx' }">
|
|
- <view class="login-btn" @click.stop="btnConfirmPay">立即支付</view>
|
|
|
|
|
|
+ <view class="login-btn" v-if="btnState.isPay" @click.stop="btnConfirmPay">立即支付</view>
|
|
<view class="login-sub">
|
|
<view class="login-sub">
|
|
<view class="btn" @click.stop="goLogin(1)">账号登录查看</view>
|
|
<view class="btn" @click.stop="goLogin(1)">账号登录查看</view>
|
|
<view class="btn" @click.stop="goLogin(2)">使用分享码查看</view>
|
|
<view class="btn" @click.stop="goLogin(2)">使用分享码查看</view>
|
|
@@ -46,7 +46,13 @@ export default {
|
|
orderId: 0, //订单ID
|
|
orderId: 0, //订单ID
|
|
userId: 0, //机构用户ID
|
|
userId: 0, //机构用户ID
|
|
serviceProviderId: 0 //协销ID
|
|
serviceProviderId: 0 //协销ID
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ btnState: {
|
|
|
|
+ isPay:false
|
|
|
|
+ },
|
|
|
|
+ mapStateArr: [
|
|
|
|
+ { label: 'isPay', val: [11, 12, 13, 21, 22, 23, 111], status: true }
|
|
|
|
+ ]
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(e) {
|
|
onLoad(e) {
|
|
@@ -96,7 +102,15 @@ export default {
|
|
//查询订单商品信息s
|
|
//查询订单商品信息s
|
|
this.OrderService.OrderCommodityData({ orderId: this.params.orderId })
|
|
this.OrderService.OrderCommodityData({ orderId: this.params.orderId })
|
|
.then(response => {
|
|
.then(response => {
|
|
- this.productList = response.data
|
|
|
|
|
|
+ const data = response.data
|
|
|
|
+ this.productList = data.productList
|
|
|
|
+ this.mapStateArr.forEach(el => {
|
|
|
|
+ el.val.forEach(value => {
|
|
|
|
+ if (!data.payButton && data.orderStatus === value) {
|
|
|
|
+ this.btnState[el.label] = el.status
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
this.isShareStatus = true
|
|
this.isShareStatus = true
|
|
})
|
|
})
|
|
.catch(error => {
|
|
.catch(error => {
|
|
@@ -125,7 +139,6 @@ export default {
|
|
//监听根据付款状态做操作
|
|
//监听根据付款状态做操作
|
|
this.OrderService.OrderPaymentValidation({ orderId: orderId })
|
|
this.OrderService.OrderPaymentValidation({ orderId: orderId })
|
|
.then(response => {
|
|
.then(response => {
|
|
- this.payModelData = response.data
|
|
|
|
if(response.data.code == -1){
|
|
if(response.data.code == -1){
|
|
this.$util.modal('', '订单已申请全部退款,无需再付款!', '确定', '', false, () => {})
|
|
this.$util.modal('', '订单已申请全部退款,无需再付款!', '确定', '', false, () => {})
|
|
}else{
|
|
}else{
|