Jelajahi Sumber

活动订阅

DELL 3 tahun lalu
induk
melakukan
3f95661b80

+ 0 - 1
src/components/activity-help/activity-help.vue

@@ -96,7 +96,6 @@
 				$http.post('/api/v1/mp/user/marketing/help', {
 					inviteCode: this.inviteCode,
 					marketingId: this.marketingId,
-					appSource: appId
 				}).then(res => {
 					uni.hideLoading();
 					if (res.code == 0) {

+ 4 - 3
src/packageOperate/activity/index.vue

@@ -363,8 +363,9 @@
 				if (appId == 1) {
 					//微信盲票小程序
 					uni.requestSubscribeMessage({
-						tmplIds: ['9nEWOqAiu9VujgFyQT0jeGI2xTNHm9cbJB8d7cY_dVg',
-							'aRcsZ69DlAdXKml7ciXMFIX2BJFyXpiytI2sQyk4Dmw',
+						tmplIds: ['92xxL8XTRPLROyNUtmN04OT0kyq4iwSCH3sz-j6zbZs',
+							'FGcPOV1j9ApESr3VUlWjFr6E1vF4X_h0LLN82T2CLL0',
+							'3y_My-yRmqmGd3-f-vAwNaK4LQeehzXBSNDi_5wcnFI',
 						],
 						success(res) {}
 					})
@@ -381,7 +382,7 @@
 			},
 			//立即参与抽奖
 			exChangeCode() {
-				$http.post(`/api/v1/mp/user/marketing/generateCode/${this.id}`, { appSource: appId }).then(res => {
+				$http.post(`/api/v1/mp/user/marketing/generateCode/${this.id}`, {}).then(res => {
 					if (res.code == 0) {
 						this.getDetail()
 						setTimeout(() => {

+ 7 - 5
src/pages.json

@@ -8,12 +8,15 @@
 				"navigationBarTextStyle": "white"
 			}
 		},
+		{
+			"path": "pages/index/wxofficial"
+		},
 		{
 			"path": "pages/core/index",
 			"style": {
-				"titlePenetrate":"YES"
+				"titlePenetrate": "YES"
 			}
-			
+
 		},
 		{
 			"path": "pages/user/index",
@@ -42,8 +45,7 @@
 	],
 	"subPackages": [{
 			"root": "packageGoods",
-			"pages": [
-				{
+			"pages": [{
 					"path": "coupon/index"
 				},
 				{
@@ -79,7 +81,7 @@
 				{
 					"path": "recovery/detail"
 				}
-            ]
+			]
 		},
 		{
 			"root": "packagePrize",

+ 18 - 6
src/pages/index/index.vue

@@ -314,12 +314,24 @@
 			// 投诉建议
 			contactService() {
 				// #ifdef MP-WEIXIN
-				wx.openCustomerServiceChat({
-					extInfo: {
-						url: 'https://work.weixin.qq.com/kfid/kfc36c0d90028adbd24'
-					},
-					corpId: 'ww02da63d80c66284b',
-				})
+				if(appId == 1) {
+					// wx.openCustomerServiceChat({
+					// 	extInfo: {
+					// 		url: 'https://work.weixin.qq.com/kfid/kfc36c0d90028adbd24'
+					// 	},
+					// 	corpId: 'ww02da63d80c66284b',
+					// })
+					uni.navigateTo({
+						url: `/pages/index/wxofficial`
+					})
+				}else {
+					wx.openCustomerServiceChat({
+						extInfo: {
+							url: 'https://work.weixin.qq.com/kfid/kfcf9da505d4dc18c87'
+						},
+						corpId: 'ww8522e336cfe5045b',
+					})
+				}
 				// #endif
 			},
 

+ 22 - 0
src/pages/index/wxofficial.vue

@@ -0,0 +1,22 @@
+<template>
+	<view class="">
+		<web-view :src="viewUrl" bindmessage="getMessage"></web-view>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				viewUrl: 'https://mp.weixin.qq.com/s?__biz=MzkwODMzMjEyNw==&mid=2247483915&idx=1&sn=3da5b66a673cfe4ce7f7fd0975359f63&chksm=c0cadf3bf7bd562d8a1fedb14c638a538001052be7f497e7258176af8700050b0cf4b8163f11#rd'
+			}
+		},
+		methods: {
+			
+		}
+	}
+</script>
+
+<style>
+
+</style>

+ 18 - 6
src/pages/user/index.vue

@@ -220,12 +220,24 @@
 			// 联系客服
 			contactService() {
 				// #ifdef MP-WEIXIN
-				wx.openCustomerServiceChat({
-					extInfo: {
-						url: 'https://work.weixin.qq.com/kfid/kfc36c0d90028adbd24'
-					},
-					corpId: 'ww02da63d80c66284b',
-				})
+				if(appId == 1) {
+					// wx.openCustomerServiceChat({
+					// 	extInfo: {
+					// 		url: 'https://work.weixin.qq.com/kfid/kfc36c0d90028adbd24'
+					// 	},
+					// 	corpId: 'ww02da63d80c66284b',
+					// })
+					uni.navigateTo({
+						url: `/pages/index/wxofficial`
+					})
+				}else {
+					wx.openCustomerServiceChat({
+						extInfo: {
+							url: 'https://work.weixin.qq.com/kfid/kfcf9da505d4dc18c87'
+						},
+						corpId: 'ww8522e336cfe5045b',
+					})
+				}
 				// #endif
 			},
 		},