|
@@ -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,
|