Commit ca1d27be by 赵艳波

tj

parent 749e6f06
Showing with 27 additions and 8 deletions
......@@ -75,16 +75,35 @@ export default {
methods: {
...mapActions(["loadMoreList", "loadMoreSummary", "loadPayUrl"]),
toPay() {
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;
this.$bridge.setPageNavState({
headerColor: "#fff",
isShowClose: false,
isShowBack: true,
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() {
this.$router.push({
name: "billrecord",
query: { accountId: this.summary.accountId,fromType:'more' }
query: { accountId: this.summary.accountId, fromType: "more" }
});
},
toNextPage(index, name) {
......@@ -117,9 +136,9 @@ export default {
async mounted() {
this.setPageNavState();
this.globalNavLeftArrowClick(this.navLeftArrowClick);
await this.getData();
await this.getData();
},
async created(){
async created() {
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