achao 1 年之前
父节点
当前提交
49e3e7ec75
共有 1 个文件被更改,包括 16 次插入0 次删除
  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) {