浏览代码

分享增加

vaecebyZ 9 月之前
父节点
当前提交
218a97e516
共有 1 个文件被更改,包括 14 次插入1 次删除
  1. 14 1
      study/studyGoodsDetail.vue

+ 14 - 1
study/studyGoodsDetail.vue

@@ -154,6 +154,7 @@ export default {
 			selected: [],
 			reserveTime: "",
 			selectDate: "",
+			id:'',
 		}
 	},
 	methods: {
@@ -404,9 +405,21 @@ export default {
 		} catch (error) {
 			console.log("未读取到对应缓存")
 		}
+		this.id = option.id
 		this.detail(option.id)
 	},
-
+	onShareTimeline() {
+		return {
+			title: "慧研学惠生活-" + this.info.goodsName,
+			query: "id=" + this.id,
+		};
+	},
+	onShareAppMessage() {
+		return {
+			title: "慧研学惠生活-" + this.info.goodsName,
+			path: "/study/studyGoodsDetail?id=" + this.id,
+		};
+	},
 }
 </script>