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
4d2c50a2
Commit
4d2c50a2
authored
Aug 01, 2019
by
chenyishuai@singsingenglish.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
81
parent
ce8fbd7e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
1 deletion
+35
-1
index.vue
src/components/youbang/index.vue
+2
-0
ybOrderRender.vue
src/components/youbang/ybOrderRender.vue
+14
-0
ybPaySuccess.vue
src/components/youbang/ybPaySuccess.vue
+19
-1
No files found.
src/components/youbang/index.vue
View file @
4d2c50a2
...
@@ -45,6 +45,8 @@ export default {
...
@@ -45,6 +45,8 @@ export default {
'redeem_code'
'redeem_code'
// invite_code
// invite_code
this
.
onShare
()
this
.
onShare
()
this
.
$sa
.
track
(
"GetCourseAIA"
,
{
});
},
},
goEdit
(){
goEdit
(){
this
.
$router
.
push
({
name
:
'addressEdit'
})
this
.
$router
.
push
({
name
:
'addressEdit'
})
...
...
src/components/youbang/ybOrderRender.vue
View file @
4d2c50a2
...
@@ -338,8 +338,22 @@ export default {
...
@@ -338,8 +338,22 @@ export default {
}
}
})
})
let
invite
=
this
.
invite_code
;
getGoodsDetailApi
(
50
).
then
(
res
=>
{
getGoodsDetailApi
(
50
).
then
(
res
=>
{
this
.
groupDetail
=
res
this
.
groupDetail
=
res
this
.
$sa
.
track
(
"ViewDetailPageAIA"
,
{
goodsID
:
this
.
groupDetail
.
id
.
toString
(),
courseCate
:
this
.
groupDetail
.
course_type
===
1
?
"体验课"
:
"正式课"
,
lessonNumber
:
this
.
groupDetail
.
watch_num
,
goodsName
:
this
.
groupDetail
.
name
,
coursePrice
:
Number
(
this
.
groupDetail
.
original_price
/
100
),
discountPrice
:
Number
(
this
.
groupDetail
.
current_price
/
100
),
courseID
:
this
.
groupDetail
.
course_id
,
courseName
:
""
,
salesType
:
invite
?
invite
.
split
(
"-"
)[
1
]
:
"null"
,
salesID
:
invite
?
Number
(
invite
.
split
(
"-"
)[
2
])
:
0
});
})
})
this
.
user_id
=
JSON
.
parse
(
localStorage
.
getItem
(
"userDesc"
)).
user_id
;
this
.
user_id
=
JSON
.
parse
(
localStorage
.
getItem
(
"userDesc"
)).
user_id
;
this
.
onShare
()
this
.
onShare
()
...
...
src/components/youbang/ybPaySuccess.vue
View file @
4d2c50a2
...
@@ -25,7 +25,8 @@ export default {
...
@@ -25,7 +25,8 @@ export default {
qr
:
''
,
qr
:
''
,
img1
:
img1
,
img1
:
img1
,
icon_yes
:
icon_yes
,
icon_yes
:
icon_yes
,
logo
:
logo
logo
:
logo
,
groupDetail
:{}
};
};
},
},
mounted
()
{
mounted
()
{
...
@@ -42,6 +43,23 @@ export default {
...
@@ -42,6 +43,23 @@ export default {
})
})
this
.
user_id
=
JSON
.
parse
(
localStorage
.
getItem
(
"userDesc"
)).
user_id
;
this
.
user_id
=
JSON
.
parse
(
localStorage
.
getItem
(
"userDesc"
)).
user_id
;
this
.
onShare
()
this
.
onShare
()
let
invite
=
this
.
invite_code
;
getGoodsDetailApi
(
50
).
then
(
res
=>
{
this
.
groupDetail
=
res
this
.
$sa
.
track
(
"GetCourseAIA"
,
{
goodsID
:
this
.
groupDetail
.
id
.
toString
(),
courseCate
:
this
.
groupDetail
.
course_type
===
1
?
"体验课"
:
"正式课"
,
lessonNumber
:
this
.
groupDetail
.
watch_num
,
goodsName
:
this
.
groupDetail
.
name
,
coursePrice
:
Number
(
this
.
groupDetail
.
original_price
/
100
),
discountPrice
:
Number
(
this
.
groupDetail
.
current_price
/
100
),
courseID
:
this
.
groupDetail
.
course_id
,
courseName
:
""
,
salesType
:
invite
?
invite
.
split
(
"-"
)[
1
]
:
"null"
,
salesID
:
invite
?
Number
(
invite
.
split
(
"-"
)[
2
])
:
0
});
})
},
},
goEdit
(){
goEdit
(){
this
.
$router
.
push
({
name
:
'addressEdit'
})
this
.
$router
.
push
({
name
:
'addressEdit'
})
...
...
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