فهرست منبع

邀请与分享

shish 5 سال پیش
والد
کامیت
849d6c02cd

+ 12 - 0
ghsApp/src/pagesClient/official/index.vue

@@ -127,6 +127,18 @@ export default {
     // 隐藏返回首页按钮。
     // 隐藏返回首页按钮。
     // uni.hideHomeButton()
     // uni.hideHomeButton()
   },
   },
+  onShareAppMessage(res) {
+    
+    //查看分享的路径,不要删除 shish 20210517
+    console.log("pagesClient/official/index?ghsShopAdminId="+this.getLoginInfo.shopAdminId+"&hdShopAdminId="+this.option.hdShopAdminId)
+
+    return {
+      title: "更懂您的销花宝",
+      desc: "",
+      imgUrl: "",
+      path: "pagesClient/official/index?ghsShopAdminId="+this.getLoginInfo.shopAdminId+"&hdShopAdminId="+this.option.hdShopAdminId,
+    }
+	},
   methods: {
   methods: {
 			...mapActions(['setUserShopAll']),
 			...mapActions(['setUserShopAll']),
 			register(){
 			register(){

+ 6 - 22
ghsApp/src/pagesInvite/list.vue

@@ -119,38 +119,22 @@ export default {
 			uni.stopPullDownRefresh();
 			uni.stopPullDownRefresh();
 		}
 		}
 	},
 	},
-	onShareAppMessage(res) {
-		return
-		if (res.target.id === "shareGhs") {
-			return {
-				title: "更懂您的花卉宝",
-				desc: "",
-				imgUrl: this.constant.imgUrl + "/retail/official/banner-1.png",
-				path: `/pagesClient/official/index?introMerchantId=${this.userInfo.id}&form=2&style=2&shopAdminId=${this.getLoginInfo.shopAdminId}`
-			};
-		} else if (res.target.id === "sharekh") {
-			return {
-				title: "更懂您的花卉宝",
-				desc: "",
-				imgUrl: this.constant.imgUrl + "/retail/official/banner-1.png",
-				path: `/pagesClient/official/apply?introMerchantId=${this.userInfo.id}&form=2&style=1`
-			};
-		} else {
-			return {};
-		}
-	},
 	mounted(){
 	mounted(){
 	},
 	},
 	methods: {
 	methods: {
 		inviteHd(){
 		inviteHd(){
+			
+			//查看分享的路径,不要删除 shish 20210517
+			console.log('pagesClient/official/index','ghsShopAdminId='+ this.loginInfo.shopAdminId)
+
 			getWeixinId().then(res => {
 			getWeixinId().then(res => {
 				uni.navigateToMiniProgram({
 				uni.navigateToMiniProgram({
 					appId: res.data.hd.miniAppId,
 					appId: res.data.hd.miniAppId,
-					path: 'pagesClient/official/index',
+					path: 'pagesClient/official/index?ghsShopAdminId='+this.loginInfo.shopAdminId,
 					//develop 开发板 trial 体验版 release 正式版
 					//develop 开发板 trial 体验版 release 正式版
 					envVersion: process.env.NODE_ENV === 'development' ? 'develop' : 'release',
 					envVersion: process.env.NODE_ENV === 'development' ? 'develop' : 'release',
 					extraData: {
 					extraData: {
-						'ghsShopAdminId': this.loginInfo.shopAdminId
+						//'ghsShopAdminId': this.loginInfo.shopAdminId
 					},
 					},
 					success(res) {
 					success(res) {
 						// 打开成功
 						// 打开成功

+ 1 - 1
hdApp/src/mixins/globalMixins.js

@@ -17,7 +17,7 @@ export default {
       pageTo: pageTo,
       pageTo: pageTo,
       AUTHORITY_SHOW: false,
       AUTHORITY_SHOW: false,
       shopAdminId: null,
       shopAdminId: null,
-      MODEL_TITLE: '您还没有店哦',
+      MODEL_TITLE: '您还没有店哦',
       MODEL_BTN_TEXT: '免费申请'
       MODEL_BTN_TEXT: '免费申请'
 		}
 		}
 	},
 	},

+ 20 - 12
hdApp/src/pagesClient/official/index.vue

@@ -1,6 +1,5 @@
 <template>
 <template>
   <div class="app-content">
   <div class="app-content">
-			<!-- <view class="experience" v-if="getLoginInfo.showDemo==1" @tap="experienceFun">体验</view> -->
     <div class="tab-wrap">
     <div class="tab-wrap">
       <div class="logo-img">
       <div class="logo-img">
         <img :src="`${constant.imgUrl}/retail/official/logo.png`" alt />
         <img :src="`${constant.imgUrl}/retail/official/logo.png`" alt />
@@ -134,24 +133,33 @@ export default {
   computed: {
   computed: {
     ...mapGetters(["getLoginInfo"])
     ...mapGetters(["getLoginInfo"])
   },
   },
-  onLoad() {
-    this.jweixinFn({
+  onShareAppMessage(res) {
+    
+    console.log('option',this.options)
+    console.log('option1',this.option)
+    console.log('option2',res)
+
+    //查看分享的路径,不要删除 shish 20210517
+    console.log("pagesClient/official/index?ghsShopAdminId="+this.option.ghsShopAdminId+"&hdShopAdminId="+this.getLoginInfo.shopAdminId)
+
+    return {
       title: "更懂您的花卉宝",
       title: "更懂您的花卉宝",
-      pagePath: "pagesClient/official/index",
-      imageUrl: ""
-    });
-  },
+      desc: "",
+      imgUrl: "",
+      path: "pagesClient/official/index?ghsShopAdminId="+this.option.ghsShopAdminId+"&hdShopAdminId="+this.getLoginInfo.shopAdminId,
+    }
+	},
   mounted() {
   mounted() {
     // 隐藏返回首页按钮。
     // 隐藏返回首页按钮。
     // uni.hideHomeButton()
     // uni.hideHomeButton()
   },
   },
   methods: {
   methods: {
 			...mapActions(['setUserShopAll']),
 			...mapActions(['setUserShopAll']),
-    contactFn() {
-      uni.makePhoneCall({
-        phoneNumber: "05923272000"
-      });
-    },
+      contactFn() {
+        uni.makePhoneCall({
+          phoneNumber: "05923272000"
+        });
+      },
 			experienceFun(){
 			experienceFun(){
 				/**姜枫 2021.04.30  小程序审核体验账号**/
 				/**姜枫 2021.04.30  小程序审核体验账号**/
 				postWxCode().then(subRes => {
 				postWxCode().then(subRes => {

+ 3 - 10
hdApp/src/pagesInvite/list.vue

@@ -119,29 +119,22 @@ export default {
 			uni.stopPullDownRefresh();
 			uni.stopPullDownRefresh();
 		}
 		}
 	},
 	},
-	onShareAppMessage(res) {
-		return {
-			title: "",
-			desc: "",
-			imgUrl:'',
-			path: ''
-		}	
-	},
 	mounted(){
 	mounted(){
 	},
 	},
 	methods: {
 	methods: {
 		inviteGhs(){
 		inviteGhs(){
 
 
+			//查看分享的路径,不要删除 shish 20210517
 			console.log('pagesClient/official/index?hdShopAdminId='+this.loginInfo.shopAdminId)
 			console.log('pagesClient/official/index?hdShopAdminId='+this.loginInfo.shopAdminId)
 
 
 			getWeixinId().then(res => {
 			getWeixinId().then(res => {
 				uni.navigateToMiniProgram({
 				uni.navigateToMiniProgram({
 					appId: res.data.ghs.miniAppId,
 					appId: res.data.ghs.miniAppId,
-					path: 'pagesClient/official/index',
+					path: 'pagesClient/official/index?hdShopAdminId='+this.loginInfo.shopAdminId,
 					//develop 开发版 trial 体验版 release 正式版
 					//develop 开发版 trial 体验版 release 正式版
 					envVersion: process.env.NODE_ENV === 'development' ? 'develop' : 'release',
 					envVersion: process.env.NODE_ENV === 'development' ? 'develop' : 'release',
 					extraData: {
 					extraData: {
-						'hdShopAdminId': this.loginInfo.shopAdminId
+						//'hdShopAdminId': this.loginInfo.shopAdminId
 					},
 					},
 					success(res) {
 					success(res) {
 						// 打开成功
 						// 打开成功