Commit c543ece3 by 赵艳波

update

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