Commit 6213df3f by 展昭

payurl

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