zs 2 年之前
父节点
当前提交
56b308dc6f
共有 1 个文件被更改,包括 7 次插入5 次删除
  1. 7 5
      pagesHome/group/share.vue

+ 7 - 5
pagesHome/group/share.vue

@@ -62,11 +62,7 @@
 				user: {},
 				info: {},
 				// 分享
-				share: {
-					title: '测试商品',
-					path: `/pagesHome/group/share`,
-					imageUrl: '',
-				}
+				share: {}
 			};
 		},
 		onLoad: function(e) {
@@ -95,6 +91,12 @@
 					let res = await that.$api(`/group/${that.id}`, `GET`);
 					if (res.errcode == '0') {
 						that.$set(that, `info`, res.data);
+						let share = {
+							title: res.data.goods.name,
+							path: `/pagesHome/group/share?id=${that.id}`,
+							imageUrl: '',
+						}
+						that.$set(that, `share`, share);
 					} else {
 						uni.showToast({
 							title: res.errmsg,