Commit 5bbc20ff authored by liwei's avatar liwei

liwei

parent 2d6c0aa9
This diff is collapsed.
......@@ -74,23 +74,15 @@ export default {
return {
earnings: 0,
userNum: 0,
records: [
{
nickname: "test",
pay_at: "2019.7.5"
},
{
nickname: "test1111111",
pay_at: "2019.7.5"
},
{
nickname: "test222222222222",
pay_at: "2019.7.5"
}
]
shopId: "",
shareTitle: "钜惠来袭!唱唱21天英语训练营,全勤学习返66元现金",
shareDesc: "21天让宝宝爱上说英语,报课即送教具礼盒,包邮送到家!",
records: []
};
},
mounted() {
let shopId = this.$route.query.shopId;
this.shopId = shopId;
this.getInviteResult();
this.getInviteList();
this.enableShare();
......@@ -124,8 +116,7 @@ export default {
"_trackEvent",
"分享",
"商品页好友分享",
`id${that.shopId}`,
that.invite_code
`id${that.shopId}`
]); //百度统计
},
cancel: function() {
......@@ -144,8 +135,7 @@ export default {
"_trackEvent",
"分享",
"商品页朋友圈分享",
`id${that.shopId}`,
that.invite_code
`id${that.shopId}`
]); //百度统计
},
cancel: function() {}
......@@ -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() {
this.$refs.inviteRecord.scrollIntoView();
},
lookMoreRecord() {},
getInviteResult() {
let id = this.$route.query.shopId;
getInviteResultApi({}, id).then(res => {
getInviteResultApi({}, this.shopId).then(res => {
this.earnings = res.earnings;
this.userNum = res.user_num;
});
......@@ -181,8 +158,9 @@ export default {
page: 1,
limit: 6
};
let id = this.$route.query.shopId;
getInviteListApi(json, id).then(res => {
let shopId = this.$route.query.shopId;
this.shopId = shopId;
getInviteListApi(json, shopId).then(res => {
if (res) {
if (res.list && res.list.length > 0) {
this.records = res.list;
......
......@@ -36,12 +36,7 @@ export default {
page: 1,
loading: true,
finished: false,
list: [
{
nickname: "test111111111111",
pay_at: "2019.7.5"
}
]
list: []
};
},
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