feat(pay): 支付按钮添加disabled状态
This commit is contained in:
parent
8779a723cd
commit
6b2e35480b
|
@ -52,7 +52,6 @@ export default {
|
||||||
grade: this.userInfo.pkGradeId,
|
grade: this.userInfo.pkGradeId,
|
||||||
awards: this.userInfo.pkAwardsId,
|
awards: this.userInfo.pkAwardsId,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
console.log(res, '....resaaaa?')
|
|
||||||
if (res.code == "200") {
|
if (res.code == "200") {
|
||||||
let list = JSON.parse(localStorage.getItem("menuList"));
|
let list = JSON.parse(localStorage.getItem("menuList"));
|
||||||
let arr = res.data[0].publishLocation.split(",");
|
let arr = res.data[0].publishLocation.split(",");
|
||||||
|
|
|
@ -680,26 +680,30 @@
|
||||||
<view class="footer_f">
|
<view class="footer_f">
|
||||||
<view class="footer">
|
<view class="footer">
|
||||||
<view class="footer_r">
|
<view class="footer_r">
|
||||||
<u-button type="success"
|
<u-button
|
||||||
class="uBtn"
|
type="success"
|
||||||
shape="circle"
|
class="uBtn"
|
||||||
:loading="isLoading"
|
shape="circle"
|
||||||
loadingText="支付中"
|
:loading="isLoading"
|
||||||
@tap="quickPay(ifcz)"
|
loadingText="支付中"
|
||||||
color="linear-gradient(to right, #fb3024, #fb3024 )">{{'立即支付'}}
|
:disabled="payBtnDisabled"
|
||||||
|
@tap="quickPay(ifcz)"
|
||||||
|
color="linear-gradient(to right, #fb3024, #fb3024 )"
|
||||||
|
>
|
||||||
|
{{'立即支付'}}
|
||||||
</u-button>
|
</u-button>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 成功 -->
|
<!-- 成功 -->
|
||||||
<u-modal :show="showSucce"
|
<u-modal
|
||||||
showConfirmButton
|
:show="showSucce"
|
||||||
:content='content'
|
showConfirmButton
|
||||||
confirmColor='#DE3932'
|
:content='content'
|
||||||
@confirm="reset"
|
confirmColor='#DE3932'
|
||||||
ref="uModal"
|
@confirm="reset"
|
||||||
:asyncClose="true"></u-modal>
|
ref="uModal"
|
||||||
|
:asyncClose="true"></u-modal>
|
||||||
<!-- 二维码 -->
|
<!-- 二维码 -->
|
||||||
<u-popup :show="wxPopup"
|
<u-popup :show="wxPopup"
|
||||||
mode="center"
|
mode="center"
|
||||||
|
@ -753,7 +757,6 @@
|
||||||
<script>
|
<script>
|
||||||
import * as api from '@/config/pay.js'
|
import * as api from '@/config/pay.js'
|
||||||
import QRCode from 'qrcodejs2'
|
import QRCode from 'qrcodejs2'
|
||||||
|
|
||||||
import successDialog from '@/components/successDialog.vue'
|
import successDialog from '@/components/successDialog.vue'
|
||||||
import * as act from '@/config/activity.js'
|
import * as act from '@/config/activity.js'
|
||||||
var payStatus
|
var payStatus
|
||||||
|
@ -802,6 +805,14 @@ export default {
|
||||||
unBindCode: '',
|
unBindCode: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
payBtnDisabled() {
|
||||||
|
if (this.ifcz) {
|
||||||
|
return !Object.values(this.payList).some(val => val)
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
},
|
||||||
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
this.paramsPost = JSON.parse(options.paramsPost)
|
this.paramsPost = JSON.parse(options.paramsPost)
|
||||||
console.log(
|
console.log(
|
||||||
|
@ -930,7 +941,6 @@ export default {
|
||||||
},
|
},
|
||||||
payPw() {
|
payPw() {
|
||||||
let url, obj
|
let url, obj
|
||||||
console.log(this.paramsPost, '....%257B%2522ifcz%2522%253Atrue%257D')
|
|
||||||
// 银行卡
|
// 银行卡
|
||||||
if (this.isBank) {
|
if (this.isBank) {
|
||||||
if (this.isBank == 'hf') {
|
if (this.isBank == 'hf') {
|
||||||
|
|
Loading…
Reference in New Issue