achao 1 năm trước cách đây
mục cha
commit
49e3e7ec75
1 tập tin đã thay đổi với 16 bổ sung0 xóa
  1. 16 0
      uni_applet/pages/find/find.vue

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

@@ -137,6 +137,22 @@
 				this.isdingwei()
 				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: {
 		methods: {
 			search() {
 			search() {
 				// if (this.userInfo.phone) {
 				// if (this.userInfo.phone) {