Commit 6213df3f by 展昭

payurl

parent b69eff64
Showing with 15 additions and 5 deletions
...@@ -234,7 +234,8 @@ export default { ...@@ -234,7 +234,8 @@ export default {
"loadPayUrl" "loadPayUrl"
]), ]),
toPay() { toPay() {
this.$bridge.setPageNavState({ this.$bridge
.setPageNavState({
headerColor: "#fff", headerColor: "#fff",
isShowClose: false, isShowClose: false,
isShowBack: true, isShowBack: true,
...@@ -242,8 +243,9 @@ export default { ...@@ -242,8 +243,9 @@ export default {
isShowTitle: true, isShowTitle: true,
isShowNav: true, isShowNav: true,
isCloseWebView: false isCloseWebView: false
}).then(res=>{ })
console.log('setPageNavState in bill index'); .then(res => {
console.log("setPageNavState in bill index");
}); });
// this.$bridge // this.$bridge
...@@ -252,8 +254,12 @@ export default { ...@@ -252,8 +254,12 @@ export default {
// }) // })
// .then(res => {}); // .then(res => {});
const failUrl = encodeURIComponent("https://pay.qinqinxiaobao.com/callback/fail"); const failUrl = encodeURIComponent(
const successUrl = encodeURIComponent("https://pay.qinqinxiaobao.com/callback/success"); "https://pay.qinqinxiaobao.com/callback/fail"
);
const successUrl = encodeURIComponent(
"https://pay.qinqinxiaobao.com/callback/success"
);
const payMethod = 0; const payMethod = 0;
const payType = 4; const payType = 4;
const selected = 0; const selected = 0;
...@@ -506,7 +512,11 @@ export default { ...@@ -506,7 +512,11 @@ export default {
await this.loadPeriodData(); await this.loadPeriodData();
}, },
async created() { async created() {
this.payUrl = localStorage.getItem("payUrl");
if (!this.payUrl) {
this.payUrl = await this.loadPayUrl(); this.payUrl = await this.loadPayUrl();
localStorage.setItem("payUrl", payUrl);
}
} }
}; };
</script> </script>
......
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