Commit c9cc2ac6 by sunchao

微信中支付宝支付

parent 6cd51240
......@@ -48,7 +48,7 @@
<text style="color:#F15A1F" v-else>0</text>
</view>
</view>
<view class="confirmOrder" @click="pay()">提交订单</view>
<view class="confirmOrder" :class="{'gray':paymentBtnDisabled}" @click="pay()">提交订单</view>
</view>
<view v-html="payForm">
......@@ -214,6 +214,7 @@
// #ifdef APP-PLUS
param.paymentType = 1;
api.unifiedPay(param).then(res=>{
this.paymentBtnDisabled = false;
if(res['success']){
const aliOrderString = res['data']['aliOrderString'];
let _this = this
......@@ -241,7 +242,6 @@
}
}else{
this.paymentBtnDisabled = false;
uni.showModal({
content: res['message'],
success: function (res) {
......@@ -606,6 +606,9 @@
padding: 14rpx 38rpx;
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