Commit 6213df3f by 展昭

payurl

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