Commit c543ece3 by 赵艳波

update

parent 06e8f4b8
Showing with 13 additions and 6 deletions
......@@ -234,7 +234,15 @@ export default {
"loadPayUrl"
]),
toPay() {
this.setPageNavState({headerColor='#fff',isShowClose=true,isShowBack=true,isCloseLeft=true,isShowTitle=true,isShowNav=true,isCloseWebView=true,})
this.setPageNavState({
headerColor: "#fff",
isShowClose: true,
isShowBack: true,
isCloseLeft: true,
isShowTitle: true,
isShowNav: true,
isCloseWebView: true
});
const failUrl = encodeURIComponent(
"https://pay.qinqinxiaobao.com/callback/fail"
);
......@@ -246,7 +254,7 @@ export default {
const selected = 0;
const fee = this.data.waitPay;
let payUrl = `${this.payUrl}&accountType=1&periodId=${this.currentPerId}&payMethod=${payMethod}&payType=${payType}&fee=${fee}&selected=0&failUrl=${failUrl}&successUrl=${successUrl}`;
window.location.href = payUrl;
},
toPage(flag) {
......@@ -472,7 +480,7 @@ export default {
console.log("closeWebView is error");
}
},
setPageNavStateShow(){
setPageNavStateShow() {
window.WebViewJavascriptBridge.callHandler(
"setPageNavState",
{
......@@ -483,7 +491,7 @@ export default {
isShowNav: true,
isCloseWebView: true
},
function (response) {
function(response) {
console.log("setPageNavState来自 ios/android的回传数据: ", response);
}
);
......@@ -505,9 +513,8 @@ export default {
this.setBarHeightLowBee();
this.globalNavLeftArrowClick(this.navLeftArrowClick);
await this.loadPeriodData();
},
async created(){
async created() {
this.payUrl = await this.loadPayUrl();
}
};
......
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 sign in to comment