lalala пре 6 година
родитељ
комит
dd4e46f2fd

+ 2 - 2
mobile-code/src/pages/home/shop.vue

@@ -74,8 +74,8 @@ export default {
 		},
 		_detail() {
 			let form = {}
-			if (this.option.id) {
-				this.form.introUserId = this.option.id
+			if (this.option.introUserId) {
+				form.introUserId = this.option.introUserId
 			}
 			getShop(form).then(res => {
 				this.data = res.data

+ 9 - 0
mobile-code/src/pages/interest/invite.vue

@@ -135,6 +135,15 @@
 		},
 		methods: {
 			init() {
+				// #ifdef H5
+				// 微信二次分享
+				let href = window.location.href
+				if (href.indexOf('from=singlemessage') > 0) {
+					location.href = `${this.$constant.formal}/#/pages/interest/invite${this.$util.parse(this.option)}`
+					return false
+				}
+				// #endif
+
 				this._getProfile()
 				this._getList()
 

+ 8 - 0
mobile-code/src/pages/pay/index.vue

@@ -178,6 +178,14 @@
 		methods: {
 			isWxBrowser: isWxBrowser,
 			specialInit() {
+				// #ifdef H5
+				// 微信二次分享
+				let href = window.location.href
+				if (href.indexOf('from=singlemessage') > 0) {
+					location.href = `${this.$constant.formal}/#/pages/pay/index${this.$util.parse(this.option)}`
+					return false
+				}
+				// #endif
 				// this.$util.getCheckLogin().then(res => {})
 				if (this.option.pageType) {
 					this.tabIndex = parseInt(this.option.pageType)