mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-06-12 10:00:57 +08:00
优化diamante
This commit is contained in:
parent
129647da64
commit
53eb18ce18
@ -47,6 +47,10 @@
|
|||||||
<button @click="onPayFee" :disabled="amount == 0"
|
<button @click="onPayFee" :disabled="amount == 0"
|
||||||
class="cu-btn bg-green shadow-blur round lg">确认缴费</button>
|
class="cu-btn bg-green shadow-blur round lg">确认缴费</button>
|
||||||
</view>
|
</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>
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
@ -149,6 +153,11 @@
|
|||||||
});
|
});
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
onReQuery:function(){
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/tempParkingFee/tempParkingFee?paId=' + _that.paId + "&appId=" + _that.appId + "&openId=" + this.openId
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@ -73,7 +73,9 @@
|
|||||||
import {
|
import {
|
||||||
refreshUserOpenId
|
refreshUserOpenId
|
||||||
} from '../../api/user/userApi.js'
|
} from '../../api/user/userApi.js'
|
||||||
import {isWxOrAli} from '../../utils/EnvUtil.js'
|
import {
|
||||||
|
isWxOrAli
|
||||||
|
} from '../../utils/EnvUtil.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -106,6 +108,14 @@
|
|||||||
this._refreshWechatOpenId();
|
this._refreshWechatOpenId();
|
||||||
return;
|
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: {
|
methods: {
|
||||||
showCarNumberKeyboard() {
|
showCarNumberKeyboard() {
|
||||||
@ -173,24 +183,24 @@
|
|||||||
}
|
}
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/tempCarFee/tempCarFee?paId=' + _that.paId + '&carNum=' + _that
|
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() {
|
_refreshWechatOpenId: function() {
|
||||||
if(isWxOrAli() == 'AliPay'){
|
if (isWxOrAli() == 'AliPay') {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon:'none',
|
icon: 'none',
|
||||||
title:'支付宝暂时未开通,敬请期待'
|
title: '支付宝暂时未开通,敬请期待'
|
||||||
})
|
})
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
let _redirectUrl = window.location.href;
|
let _redirectUrl = window.location.href;
|
||||||
refreshUserOpenId({
|
refreshUserOpenId({
|
||||||
redirectUrl: _redirectUrl,
|
redirectUrl: _redirectUrl,
|
||||||
wAppId: this.appId
|
wAppId: this.appId
|
||||||
}).then(_data => {
|
}).then(_data => {
|
||||||
console.log(_data,123)
|
console.log(_data, 123)
|
||||||
if (_data.code == 0) {
|
if (_data.code == 0) {
|
||||||
window.location.href = _data.data.openUrl;
|
window.location.href = _data.data.openUrl;
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user