Commit 5bbc20ff authored by liwei's avatar liwei

liwei

parent 2d6c0aa9
This diff is collapsed.
...@@ -74,23 +74,15 @@ export default { ...@@ -74,23 +74,15 @@ export default {
return { return {
earnings: 0, earnings: 0,
userNum: 0, userNum: 0,
records: [ shopId: "",
{ shareTitle: "钜惠来袭!唱唱21天英语训练营,全勤学习返66元现金",
nickname: "test", shareDesc: "21天让宝宝爱上说英语,报课即送教具礼盒,包邮送到家!",
pay_at: "2019.7.5" records: []
},
{
nickname: "test1111111",
pay_at: "2019.7.5"
},
{
nickname: "test222222222222",
pay_at: "2019.7.5"
}
]
}; };
}, },
mounted() { mounted() {
let shopId = this.$route.query.shopId;
this.shopId = shopId;
this.getInviteResult(); this.getInviteResult();
this.getInviteList(); this.getInviteList();
this.enableShare(); this.enableShare();
...@@ -124,8 +116,7 @@ export default { ...@@ -124,8 +116,7 @@ export default {
"_trackEvent", "_trackEvent",
"分享", "分享",
"商品页好友分享", "商品页好友分享",
`id${that.shopId}`, `id${that.shopId}`
that.invite_code
]); //百度统计 ]); //百度统计
}, },
cancel: function() { cancel: function() {
...@@ -144,8 +135,7 @@ export default { ...@@ -144,8 +135,7 @@ export default {
"_trackEvent", "_trackEvent",
"分享", "分享",
"商品页朋友圈分享", "商品页朋友圈分享",
`id${that.shopId}`, `id${that.shopId}`
that.invite_code
]); //百度统计 ]); //百度统计
}, },
cancel: function() {} cancel: function() {}
...@@ -153,25 +143,12 @@ export default { ...@@ -153,25 +143,12 @@ export default {
}); });
}); });
}, },
onShare: function(type) {
let URL = `${process.env.BUY_URL}?shopId=${this.shopId}&groupId=${this.groupId}&invite_code=${this.invite_code}`;
if (type === 1) {
URL = `${process.env.BUY_URL}?shopId=${this.shopId}&invite_code=${this.invite_code}`;
}
// this.enableShare({
// product_title: this.groupDetail.share_desc.title,
// desc: this.groupDetail.share_desc.content,
// shareIcon:this.groupDetail.share_desc.img[0].url,
// shareUrl:URL
// })
},
lookMyInviteRecords() { lookMyInviteRecords() {
this.$refs.inviteRecord.scrollIntoView(); this.$refs.inviteRecord.scrollIntoView();
}, },
lookMoreRecord() {}, lookMoreRecord() {},
getInviteResult() { getInviteResult() {
let id = this.$route.query.shopId; getInviteResultApi({}, this.shopId).then(res => {
getInviteResultApi({}, id).then(res => {
this.earnings = res.earnings; this.earnings = res.earnings;
this.userNum = res.user_num; this.userNum = res.user_num;
}); });
...@@ -181,8 +158,9 @@ export default { ...@@ -181,8 +158,9 @@ export default {
page: 1, page: 1,
limit: 6 limit: 6
}; };
let id = this.$route.query.shopId; let shopId = this.$route.query.shopId;
getInviteListApi(json, id).then(res => { this.shopId = shopId;
getInviteListApi(json, shopId).then(res => {
if (res) { if (res) {
if (res.list && res.list.length > 0) { if (res.list && res.list.length > 0) {
this.records = res.list; this.records = res.list;
......
...@@ -36,12 +36,7 @@ export default { ...@@ -36,12 +36,7 @@ export default {
page: 1, page: 1,
loading: true, loading: true,
finished: false, finished: false,
list: [ list: []
{
nickname: "test111111111111",
pay_at: "2019.7.5"
}
]
}; };
}, },
mounted() { mounted() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment