Commit 3765f84b authored by liwei's avatar liwei

liwei

parent a166e3b4
...@@ -238,6 +238,7 @@ ...@@ -238,6 +238,7 @@
}, },
// 分享 // 分享
enableShare: function() { enableShare: function() {
debugger;
let that = this; let that = this;
getwechatParam({ getwechatParam({
api_list: 'onMenuShareAppMessage,onMenuShareTimeline', api_list: 'onMenuShareAppMessage,onMenuShareTimeline',
......
This diff is collapsed.
...@@ -81,7 +81,36 @@ export default { ...@@ -81,7 +81,36 @@ export default {
return { return {
earnings: 0, earnings: 0,
userNum: 0, userNum: 0,
records: [], records: [
{
nickname: "test1111111111",
pay_at: "2019.07.08 14:28:50"
},
{
nickname: "test1111111111",
pay_at: "2019.07.08 14:28:50"
},
{
nickname: "test1111111111",
pay_at: "2019.07.08 14:28:50"
},
{
nickname: "test1111111111",
pay_at: "2019.07.08 14:28:50"
},
{
nickname: "test1111111111",
pay_at: "2019.07.08 14:28:50"
},
{
nickname: "test1111111111",
pay_at: "2019.07.08 14:28:50"
},
{
nickname: "test1111111111",
pay_at: "2019.07.08 14:28:50"
}
],
shareTitle: "钜惠来袭!唱唱21天英语训练营,全勤学习返66元现金", shareTitle: "钜惠来袭!唱唱21天英语训练营,全勤学习返66元现金",
shareDesc: "21天让宝宝爱上说英语,报课即送教具礼盒,包邮送到家!", shareDesc: "21天让宝宝爱上说英语,报课即送教具礼盒,包邮送到家!",
invite_code: "", invite_code: "",
...@@ -104,7 +133,10 @@ export default { ...@@ -104,7 +133,10 @@ export default {
lookMyInviteRecords() { lookMyInviteRecords() {
this.$refs.inviteRecord.scrollIntoView(); this.$refs.inviteRecord.scrollIntoView();
}, },
lookMoreRecord() {}, lookMoreRecord() {
let query = { shopId: this.shopId };
this.$router.push({ name: "inviteRecordList", query: query });
},
getInviteResult() { getInviteResult() {
getInviteResultApi({}, this.shopId).then(res => { getInviteResultApi({}, this.shopId).then(res => {
this.earnings = res.earnings; this.earnings = res.earnings;
...@@ -200,43 +232,24 @@ export default { ...@@ -200,43 +232,24 @@ export default {
let ownDetail = JSON.parse(localStorage.getItem("userDesc")); let ownDetail = JSON.parse(localStorage.getItem("userDesc"));
let URL = `${process.env.BUY_URL}shopId=${this.shopId}&groupId=${this.groupId}&invite_code=${this.invite_code}&nickname=${ownDetail.nickname}`; let URL = `${process.env.BUY_URL}shopId=${this.shopId}&groupId=${this.groupId}&invite_code=${this.invite_code}&nickname=${ownDetail.nickname}`;
if (!this.invite_code) { if (!this.invite_code) {
// debugger
this.user_id = JSON.parse(localStorage.getItem("userDesc")).user_id; this.user_id = JSON.parse(localStorage.getItem("userDesc")).user_id;
this.invite_code = "CC-USER-" + this.user_id; this.invite_code = "CC-USER-" + this.user_id;
URL = `${process.env.BUY_URL}shopId=${this.shopId}&invite_code=${this.invite_code}&nickname=${ownDetail.nickname}`; URL = `${process.env.BUY_URL}shopId=${this.shopId}&invite_code=${this.invite_code}&nickname=${ownDetail.nickname}`;
this.enableShare({
shareUrl: URL
});
console.log(194);
} else { } else {
console.log(196);
URL = `${process.env.BUY_URL}shopId=${this.shopId}&invite_code=${this.invite_code}&nickname=${ownDetail.nickname}`; URL = `${process.env.BUY_URL}shopId=${this.shopId}&invite_code=${this.invite_code}&nickname=${ownDetail.nickname}`;
this.enableShare({
shareUrl: URL
});
} }
// if(type === 1 ){ // if(type === 1 ){
// } // }
this.enableShare({
shareUrl: URL
});
} }
},
onShare: function(type) {
let ownDetail = JSON.parse(localStorage.getItem("userDesc"));
let URL = `${process.env.BUY_URL}shopId=${this.shopId}&groupId=${this.groupId}&invite_code=${this.invite_code}&nickname=${ownDetail.nickname}`;
if (!this.invite_code) {
// debugger
this.user_id = JSON.parse(localStorage.getItem("userDesc")).user_id;
this.invite_code = "CC-USER-" + this.user_id;
URL = `${process.env.BUY_URL}shopId=${this.shopId}&invite_code=${this.invite_code}&nickname=${ownDetail.nickname}`;
this.enableShare({
shareUrl: URL
});
console.log(194);
} else {
console.log(196);
URL = `${process.env.BUY_URL}shopId=${this.shopId}&invite_code=${this.invite_code}&nickname=${ownDetail.nickname}`;
this.enableShare({
shareUrl: URL
});
}
// if(type === 1 ){
// }
} }
}; };
</script> </script>
......
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