Commit c9cc2ac6 by sunchao

微信中支付宝支付

parent 6cd51240
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<text style="color:#F15A1F" v-else>0</text> <text style="color:#F15A1F" v-else>0</text>
</view> </view>
</view> </view>
<view class="confirmOrder" @click="pay()">提交订单</view> <view class="confirmOrder" :class="{'gray':paymentBtnDisabled}" @click="pay()">提交订单</view>
</view> </view>
<view v-html="payForm"> <view v-html="payForm">
...@@ -214,6 +214,7 @@ ...@@ -214,6 +214,7 @@
// #ifdef APP-PLUS // #ifdef APP-PLUS
param.paymentType = 1; param.paymentType = 1;
api.unifiedPay(param).then(res=>{ api.unifiedPay(param).then(res=>{
this.paymentBtnDisabled = false;
if(res['success']){ if(res['success']){
const aliOrderString = res['data']['aliOrderString']; const aliOrderString = res['data']['aliOrderString'];
let _this = this let _this = this
...@@ -241,7 +242,6 @@ ...@@ -241,7 +242,6 @@
} }
}else{ }else{
this.paymentBtnDisabled = false;
uni.showModal({ uni.showModal({
content: res['message'], content: res['message'],
success: function (res) { success: function (res) {
...@@ -606,6 +606,9 @@ ...@@ -606,6 +606,9 @@
padding: 14rpx 38rpx; padding: 14rpx 38rpx;
border-radius: 80rpx; border-radius: 80rpx;
} }
.gray{
background: #666;
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment