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
3765f84b
Commit
3765f84b
authored
Jul 08, 2019
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
liwei
parent
a166e3b4
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
137 additions
and
112 deletions
+137
-112
activity.vue
src/components/buy/activity.vue
+1
-0
index.vue
src/components/buy/index.vue
+94
-83
inviteFriends.vue
src/components/buy/inviteFriends.vue
+42
-29
No files found.
src/components/buy/activity.vue
View file @
3765f84b
...
...
@@ -238,6 +238,7 @@
},
// 分享
enableShare
:
function
()
{
debugger
;
let
that
=
this
;
getwechatParam
({
api_list
:
'onMenuShareAppMessage,onMenuShareTimeline'
,
...
...
src/components/buy/index.vue
View file @
3765f84b
This diff is collapsed.
Click to expand it.
src/components/buy/inviteFriends.vue
View file @
3765f84b
...
...
@@ -81,7 +81,36 @@ export default {
return
{
earnings
:
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元现金"
,
shareDesc
:
"21天让宝宝爱上说英语,报课即送教具礼盒,包邮送到家!"
,
invite_code
:
""
,
...
...
@@ -104,7 +133,10 @@ export default {
lookMyInviteRecords
()
{
this
.
$refs
.
inviteRecord
.
scrollIntoView
();
},
lookMoreRecord
()
{},
lookMoreRecord
()
{
let
query
=
{
shopId
:
this
.
shopId
};
this
.
$router
.
push
({
name
:
"inviteRecordList"
,
query
:
query
});
},
getInviteResult
()
{
getInviteResultApi
({},
this
.
shopId
).
then
(
res
=>
{
this
.
earnings
=
res
.
earnings
;
...
...
@@ -200,43 +232,24 @@ export default {
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 ){
// }
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
>
...
...
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