achao 1 year ago
parent
commit
49e3e7ec75
1 changed files with 16 additions and 0 deletions
  1. 16 0
      uni_applet/pages/find/find.vue

+ 16 - 0
uni_applet/pages/find/find.vue

@@ -137,6 +137,22 @@
 				this.isdingwei()
 			}
 		},
+		onShareAppMessage(res) {
+			debugger
+			let path = `/pages/find/find?id=${this.searchVal}`
+			if (res.from === 'button') {
+				return {
+					title: "本地生活一键搜索",
+					path: path,
+				};
+			}
+			if (res.from === 'menu') {
+				return {
+					title: "本地生活一键搜索",
+					path: path,
+				};
+			}
+		},
 		methods: {
 			search() {
 				// if (this.userInfo.phone) {