Commit 6213df3f by 展昭

payurl

parent b69eff64
Showing with 24 additions and 14 deletions
...@@ -234,17 +234,19 @@ export default { ...@@ -234,17 +234,19 @@ export default {
"loadPayUrl" "loadPayUrl"
]), ]),
toPay() { toPay() {
this.$bridge.setPageNavState({ this.$bridge
headerColor: "#fff", .setPageNavState({
isShowClose: false, headerColor: "#fff",
isShowBack: true, isShowClose: false,
isCloseLeft: true, isShowBack: true,
isShowTitle: true, isCloseLeft: true,
isShowNav: true, isShowTitle: true,
isCloseWebView: false isShowNav: true,
}).then(res=>{ isCloseWebView: false
console.log('setPageNavState in bill index'); })
}); .then(res => {
console.log("setPageNavState in bill index");
});
// this.$bridge // this.$bridge
// .setBarColor({ // .setBarColor({
...@@ -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 = await this.loadPayUrl(); this.payUrl = localStorage.getItem("payUrl");
if (!this.payUrl) {
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