diff --git a/src/router/routes_order.js b/src/router/routes_order.js
index bb43a5d..6f5ad4f 100644
--- a/src/router/routes_order.js
+++ b/src/router/routes_order.js
@@ -83,7 +83,18 @@ export default {
icon: 'component'
},
hidden:true,
+ },
+ {
+ path: 'alipay',
+ component: _import('order/alipay'),
+ name: '支付宝支付码页面',
+ meta: {
+ title: '支付宝支付码页面',
+ icon: 'component'
+ },
+ hidden:true,
}
+
]
},
diff --git a/src/views/mdp/mo/moOrder/Form.vue b/src/views/mdp/mo/moOrder/Form.vue
index 55e2212..08a9b96 100644
--- a/src/views/mdp/mo/moOrder/Form.vue
+++ b/src/views/mdp/mo/moOrder/Form.vue
@@ -310,10 +310,9 @@ export default {
}
aliPay(params).then(res => {
if(res.data.tips.isOk) {
- const div = document.createElement("divform");
- div.innerHTML = res.data.data.htmlStr;
- document.body.appendChild(div);
- document.forms[0].submit();
+ let routerData = this.$router.resolve({path:'/my/order/alipay',query: {htmlStr: res.data.data.htmlStr}})
+ // 打开新页面
+ window.open(routerData.href, '_blank')
}else {
this.$notify.error(res.data.tips.msg);
}
diff --git a/src/views/order/alipay.vue b/src/views/order/alipay.vue
new file mode 100644
index 0000000..e49d327
--- /dev/null
+++ b/src/views/order/alipay.vue
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
\ No newline at end of file