diff --git a/config/index.js b/config/index.js index 029c2cfb..e241b113 100644 --- a/config/index.js +++ b/config/index.js @@ -19,7 +19,7 @@ module.exports = { }, '/api/m1/sys': { - target: 'http://192.168.0.103:7015', + target: 'http://localhost:7015', changeOrigin: true, pathRewrite: { '^/api/m1/sys': '/sys' @@ -27,7 +27,7 @@ module.exports = { }, '/api/m1/pay': { - target: 'http://192.168.0.103:7125', + target: 'http://localhost:7125', changeOrigin: true, pathRewrite: { '^/api/m1/pay': '/pay' diff --git a/package.json b/package.json index d7632c75..0874e812 100644 --- a/package.json +++ b/package.json @@ -52,6 +52,7 @@ "vue-i18n": "7.3.2", "vue-okr-tree": "^1.0.10", "vue-print-nb": "^1.7.5", + "vue-qriously": "^1.1.1", "vue-router": "3.0.1", "vuedraggable": "2.15.0", "vuex": "3.0.1", diff --git a/src/api/mdp/pay/pay.js b/src/api/mdp/pay/pay.js index 6df3bf22..7add026d 100644 --- a/src/api/mdp/pay/pay.js +++ b/src/api/mdp/pay/pay.js @@ -4,3 +4,4 @@ let base = config.getPayBasePath(); export const aliPay = params => { return axios.post(`${base}/alipay/uniOrder`, params) } export const weixinPay = params => { return axios.post(`${base}/wxpay/uniOrder/native`, params) } +export const checkWxPayStatus = params => { return axios.get(`${base}/wxpay/uniOrder/checkOrderStatus`, {params}) } diff --git a/src/main.js b/src/main.js index caf9e7dc..a2c62b7b 100644 --- a/src/main.js +++ b/src/main.js @@ -19,7 +19,8 @@ import './permission' // permission control import * as echarts from 'echarts' import * as filters from './filters' // global filters import Print from 'vue-print-nb' - +import VueQriously from 'vue-qriously' +Vue.use(VueQriously) import DateRange from '@/components/dateRange/index' diff --git a/src/views/login/index2.vue b/src/views/login/index2.vue index 0fc0a62b..0e4ae6a6 100644 --- a/src/views/login/index2.vue +++ b/src/views/login/index2.vue @@ -40,7 +40,6 @@ export default { methods: { }, - created() { }, destroyed() { diff --git a/src/views/order/createOrder.vue b/src/views/order/createOrder.vue index 86e5035d..2c955683 100644 --- a/src/views/order/createOrder.vue +++ b/src/views/order/createOrder.vue @@ -21,7 +21,7 @@ 企业版 谢家豪 - {{data.payWay == 'aliPay' ? '支付宝' : '微信'}} + {{data.payway == 'aliPay' ? '支付宝' : '微信'}}
@@ -50,21 +50,6 @@ label="账号数量" width="120"> -
@@ -73,8 +58,8 @@ 总金额: {{data.amount}}¥ - 上一步 - 确认支付 + 上一步 + 确认支付 @@ -82,26 +67,39 @@ + + + +