优化diamante

This commit is contained in:
java110 2021-10-17 18:55:31 +08:00
parent 129647da64
commit 53eb18ce18
2 changed files with 26 additions and 7 deletions

View File

@ -47,6 +47,10 @@
<button @click="onPayFee" :disabled="amount == 0"
class="cu-btn bg-green shadow-blur round lg">确认缴费</button>
</view>
<view class="cu-bar btn-group" style="margin-top: 30px;">
<button @click="onReQuery()"
class="cu-btn bg-grey shadow-blur round lg">重新查询</button>
</view>
</view>
</scroll-view>
</view>
@ -149,6 +153,11 @@
});
})
},
onReQuery:function(){
uni.navigateTo({
url: '/pages/tempParkingFee/tempParkingFee?paId=' + _that.paId + "&appId=" + _that.appId + "&openId=" + this.openId
})
}
}
};

View File

@ -73,7 +73,9 @@
import {
refreshUserOpenId
} from '../../api/user/userApi.js'
import {isWxOrAli} from '../../utils/EnvUtil.js'
import {
isWxOrAli
} from '../../utils/EnvUtil.js'
export default {
data() {
return {
@ -106,6 +108,14 @@
this._refreshWechatOpenId();
return;
}
this.carNum = options.carNum;
if (isNotNull(this.carNum)) {
uni.navigateTo({
url: '/pages/tempCarFee/tempCarFee?paId=' + this.paId + '&carNum=' + this
.carNum + "&appId=" + this.appId + "&openId=" + this.openId
})
return;
}
},
methods: {
showCarNumberKeyboard() {
@ -173,24 +183,24 @@
}
uni.navigateTo({
url: '/pages/tempCarFee/tempCarFee?paId=' + _that.paId + '&carNum=' + _that
.carNum + "&appId=" + _that.appId+"&openId="+this.openId
.carNum + "&appId=" + _that.appId + "&openId=" + this.openId
})
})
},
_refreshWechatOpenId: function() {
if(isWxOrAli() == 'AliPay'){
if (isWxOrAli() == 'AliPay') {
uni.showToast({
icon:'none',
title:'支付宝暂时未开通,敬请期待'
icon: 'none',
title: '支付宝暂时未开通,敬请期待'
})
return ;
return;
}
let _redirectUrl = window.location.href;
refreshUserOpenId({
redirectUrl: _redirectUrl,
wAppId: this.appId
}).then(_data => {
console.log(_data,123)
console.log(_data, 123)
if (_data.code == 0) {
window.location.href = _data.data.openUrl;
return;