Commit ca1d27be by 赵艳波

tj

parent 749e6f06
Showing with 26 additions and 7 deletions
...@@ -75,16 +75,35 @@ export default { ...@@ -75,16 +75,35 @@ export default {
methods: { methods: {
...mapActions(["loadMoreList", "loadMoreSummary", "loadPayUrl"]), ...mapActions(["loadMoreList", "loadMoreSummary", "loadPayUrl"]),
toPay() { toPay() {
const failUrl=encodeURIComponent("https://pay.qinqinxiaobao.com/callback/fail"); this.$bridge.setPageNavState({
const successUrl=encodeURIComponent("https://pay.qinqinxiaobao.com/callback/success"); headerColor: "#fff",
let payUrl=`${this.payUrl}&accountType=19&selected=0&failUrl=${failUrl}&successUrl=${successUrl}`; isShowClose: false,
console.log('payUrl=',payUrl); isShowBack: true,
window.location.href=payUrl; isCloseLeft: true,
isShowTitle: true,
isShowNav: true,
isCloseWebView: false
});
this.$bridge
.setBarColor({
barColor: "#ffffff"
})
.then(res => {});
const failUrl = encodeURIComponent(
"https://pay.qinqinxiaobao.com/callback/fail"
);
const successUrl = encodeURIComponent(
"https://pay.qinqinxiaobao.com/callback/success"
);
let payUrl = `${this.payUrl}&accountType=19&selected=0&failUrl=${failUrl}&successUrl=${successUrl}`;
console.log("payUrl=", payUrl);
window.location.href = payUrl;
}, },
toPage() { toPage() {
this.$router.push({ this.$router.push({
name: "billrecord", name: "billrecord",
query: { accountId: this.summary.accountId,fromType:'more' } query: { accountId: this.summary.accountId, fromType: "more" }
}); });
}, },
toNextPage(index, name) { toNextPage(index, name) {
...@@ -119,7 +138,7 @@ export default { ...@@ -119,7 +138,7 @@ export default {
this.globalNavLeftArrowClick(this.navLeftArrowClick); this.globalNavLeftArrowClick(this.navLeftArrowClick);
await this.getData(); await this.getData();
}, },
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