Commit 6ab21063 by 展昭

payment

parent 10ceb282
...@@ -108,6 +108,5 @@ router.beforeEach((to, from, next) => { ...@@ -108,6 +108,5 @@ router.beforeEach((to, from, next) => {
router.beforeEach(vuexOidcCreateRouterMiddleware(store)); router.beforeEach(vuexOidcCreateRouterMiddleware(store));
//TODO: 把callBack中的app_register_id逻辑替换到这里
export default router export default router
...@@ -420,9 +420,7 @@ export default { ...@@ -420,9 +420,7 @@ export default {
setBarHeight() { setBarHeight() {
setTimeout(() => { setTimeout(() => {
const barHeight = localStorage.getItem("barHeight"); const barHeight = localStorage.getItem("barHeight");
console.log("bill barHeight=", barHeight);
const conHeight = 46 + parseInt(barHeight); const conHeight = 46 + parseInt(barHeight);
console.log("bill conHeight=", conHeight);
const dom = document.getElementsByClassName("iosStyle")[0]; const dom = document.getElementsByClassName("iosStyle")[0];
if (dom) { if (dom) {
dom.setAttribute( dom.setAttribute(
......
...@@ -75,15 +75,9 @@ export default { ...@@ -75,15 +75,9 @@ export default {
methods: { methods: {
...mapActions(["loadMoreList", "loadMoreSummary", "loadPayUrl"]), ...mapActions(["loadMoreList", "loadMoreSummary", "loadPayUrl"]),
toPay() { toPay() {
let payUrl = const failUrl=encodeURIComponent("https://pay.qinqinxiaobao.com/callback/fail");
this.payUrl + const successUrl=encodeURIComponent("https://pay.qinqinxiaobao.com/callback/success");
"&accountType=1&payType=3&selected=1&failUrl=" + let payUrl=`${this.payUrl}&accountType=19&failUrl=${failUrl}&successUrl=${successUrl}`;
encodeURIComponent("https://pay.qinqinxiaobao.com/callback/fail") +
"&successUrl=" +
encodeURIComponent("https://pay.qinqinxiaobao.com/callback/success") +
"" +
"&periodId=" +
this.currentPerId;
window.open(payUrl); window.open(payUrl);
}, },
toPage() { toPage() {
...@@ -123,7 +117,7 @@ export default { ...@@ -123,7 +117,7 @@ export default {
this.setPageNavState(); this.setPageNavState();
this.globalNavLeftArrowClick(this.navLeftArrowClick); this.globalNavLeftArrowClick(this.navLeftArrowClick);
await this.getData(); await this.getData();
//this.payUrl = await this.loadPayUrl(); this.payUrl = await this.loadPayUrl();
} }
}; };
</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