wgl 4 роки тому
батько
коміт
775614667c

+ 1 - 1
src/projects/business/router/master.js

@@ -981,7 +981,7 @@ const routesMaster = [
 							requireAuth: false,
 							role: [],
 							title: '添加人员选择设备',
-							form: true
+							//form: true
 						}
 					},
 					//注册审核

+ 10 - 0
src/projects/home/router/index.js

@@ -13,6 +13,16 @@ const routes = [
 			title: '首页',
 		}
 	},
+	
+	//微信支付成功回跳处理页面
+	{
+		path: '/wxPayBack',
+		name: 'WxPayBack',
+		component: () => import('../views/WxPayBack.vue'),
+		meta: {
+			title: '微信支付成功回跳处理页面',
+		}
+	},
 
 	//用户基础页面
 	{

+ 46 - 0
src/projects/home/views/WxPayBack.vue

@@ -0,0 +1,46 @@
+<template>
+</template>
+
+<script>
+	import * as Dictionaries from '$project/utils/dictionaries'
+	import Common from '$project/components/Common.vue'
+	import {
+		mapGetters,
+		mapMutations
+	} from 'vuex'
+	export default {
+		name: 'WxPayBack',
+		components: {
+			Common,
+		},
+		data() {
+			return {}
+		},
+		created() {
+			if (this.wx_pay_back_url) {
+				window.location.href = this.wx_pay_back_url;
+			} else {
+				this.$router.push({
+					name: 'Home'
+				})
+			}
+		},
+		methods: {},
+		mounted() {},
+		destroyed() {
+
+		},
+		computed: {
+			...mapGetters({
+				openId: 'wx_openid',
+				token: 'token',
+				person_data: 'person_data',
+				person_popedom: 'person_popedom',
+				wx_pay_back_url: 'wx_pay_back_url'
+			})
+		}
+	}
+</script>
+
+<style>
+</style>