Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
h5-base
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
new-sing
h5-base
Commits
5bbc20ff
Commit
5bbc20ff
authored
Jul 05, 2019
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
liwei
parent
2d6c0aa9
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
492 additions
and
469 deletions
+492
-469
activity.vue
src/components/buy/activity.vue
+479
-429
inviteFriends.vue
src/components/buy/inviteFriends.vue
+12
-34
inviteRecordList.vue
src/components/buy/inviteRecordList.vue
+1
-6
No files found.
src/components/buy/activity.vue
View file @
5bbc20ff
This diff is collapsed.
Click to expand it.
src/components/buy/inviteFriends.vue
View file @
5bbc20ff
...
...
@@ -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
;
...
...
src/components/buy/inviteRecordList.vue
View file @
5bbc20ff
...
...
@@ -36,12 +36,7 @@ export default {
page
:
1
,
loading
:
true
,
finished
:
false
,
list
:
[
{
nickname
:
"test111111111111"
,
pay_at
:
"2019.7.5"
}
]
list
:
[]
};
},
mounted
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment