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
bfc8c62b
Commit
bfc8c62b
authored
Sep 17, 2019
by
IvyXia123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
20ce5301
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
11 deletions
+35
-11
passShop.vue
src/components/buy/passShop.vue
+22
-7
index.vue
src/components/map/index.vue
+5
-2
promptTime.vue
src/components/map/promptTime.vue
+7
-0
index.js
src/router/index.js
+1
-2
No files found.
src/components/buy/passShop.vue
View file @
bfc8c62b
...
@@ -341,11 +341,11 @@ export default {
...
@@ -341,11 +341,11 @@ export default {
// this.
// this.
},
},
goToBuyPage
()
{
goToBuyPage
()
{
if
(
this
.
groupDetail
.
is_real
){
if
(
this
.
groupDetail
.
is_real
){
let
query
=
{
shopId
:
this
.
shopId
,
invite_code
:
this
.
invite_code
};
let
query
=
{
shopId
:
this
.
shopId
,
invite_code
:
this
.
invite_code
};
let
invite
=
this
.
invite_code
;
let
invite
=
this
.
invite_code
;
this
.
$sa
.
track
(
"buyCourse"
,
{
/*this.$sa.track("buyCourse", {
buyType:
buyType:
this.groupDetail.goods_type === 2 && this.buyType === 0
this.groupDetail.goods_type === 2 && this.buyType === 0
? "团购"
? "团购"
...
@@ -353,12 +353,12 @@ export default {
...
@@ -353,12 +353,12 @@ export default {
goodsID: this.shopId,
goodsID: this.shopId,
salesType: invite ? invite.split("-")[1] : "null",
salesType: invite ? invite.split("-")[1] : "null",
salesID: invite ? Number(invite.split("-")[2]) : 0
salesID: invite ? Number(invite.split("-")[2]) : 0
});
});
*/
if
(
this
.
groupId
)
{
if
(
this
.
groupId
)
{
query
.
group_order_id
=
this
.
groupId
;
query
.
group_order_id
=
this
.
groupId
;
}
}
console
.
log
(
this
.
buyType
);
if
(
this
.
buyType
===
0
&&
!
this
.
groupId
)
{
if
(
this
.
buyType
===
0
&&
!
this
.
groupId
)
{
query
.
type
=
"single"
;
query
.
type
=
"single"
;
this
.
buyType
=
"single"
;
this
.
buyType
=
"single"
;
...
@@ -387,7 +387,20 @@ export default {
...
@@ -387,7 +387,20 @@ export default {
// console.log(comment.getUrlParam())
// console.log(comment.getUrlParam())
query
.
cct_user_id
=
comment
.
getParamhref
().
cct_user_id
;
query
.
cct_user_id
=
comment
.
getParamhref
().
cct_user_id
;
}
}
console
.
log
(
query
);
console
.
log
(
comment
.
getParamhref
(),
76
);
this
.
$sa
.
track
(
"buyCourse"
,
{
buyType
:
this
.
groupDetail
.
goods_type
===
2
&&
this
.
buyType
===
0
?
"团购"
:
"直购"
,
goodsID
:
this
.
shopId
,
salesType
:
invite
?
invite
.
split
(
"-"
)[
1
]
:
"null"
,
salesID
:
invite
?
Number
(
invite
.
split
(
"-"
)[
2
])
:
0
,
gdt_vid
:
query
.
gdt_vid
,
cct_user_id
:
query
.
cct_user_id
});
// debugger
// debugger
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
"buy"
,
name
:
"buy"
,
...
@@ -420,7 +433,9 @@ export default {
...
@@ -420,7 +433,9 @@ export default {
paymentAmount
:
Number
(
this
.
priceTotal
),
paymentAmount
:
Number
(
this
.
priceTotal
),
goodsID
:
this
.
shopId
.
toString
(),
goodsID
:
this
.
shopId
.
toString
(),
salesType
:
invite
?
invite
.
split
(
'-'
)[
1
]:
'null'
,
salesType
:
invite
?
invite
.
split
(
'-'
)[
1
]:
'null'
,
salesID
:
invite
?
Number
(
invite
.
split
(
'-'
)[
2
]):
0
salesID
:
invite
?
Number
(
invite
.
split
(
'-'
)[
2
]):
0
,
gdt_vid
:
this
.
$route
.
query
.
gdt_vid
,
cct_user_id
:
this
.
$route
.
query
.
cct_user_id
});
});
if
(
window
.
location
.
href
.
indexOf
(
'gdt_vid'
)
>-
1
){
if
(
window
.
location
.
href
.
indexOf
(
'gdt_vid'
)
>-
1
){
json
.
gdt_vid
=
this
.
$route
.
query
.
gdt_vid
json
.
gdt_vid
=
this
.
$route
.
query
.
gdt_vid
...
@@ -758,7 +773,7 @@ export default {
...
@@ -758,7 +773,7 @@ export default {
tabTitle
:
"商品"
,
tabTitle
:
"商品"
,
moduleTitle
:
"详情页"
,
moduleTitle
:
"详情页"
,
buttonType
:
buttonType
,
buttonType
:
buttonType
,
buttonName
:
buttonName
buttonName
:
buttonName
,
});
});
},
},
groupPay
(
type
,
status
)
{
groupPay
(
type
,
status
)
{
...
...
src/components/map/index.vue
View file @
bfc8c62b
...
@@ -449,6 +449,7 @@
...
@@ -449,6 +449,7 @@
// 进入课程
// 进入课程
goDetail
(){
goDetail
(){
// 神策埋点 开始课程
// 神策埋点 开始课程
console
.
log
(
this
.
thisLesson
)
this
.
$sa
.
track
(
'StartCourse'
,{
this
.
$sa
.
track
(
'StartCourse'
,{
elementID
:
this
.
thisLesson
.
id
.
toString
(),
elementID
:
this
.
thisLesson
.
id
.
toString
(),
dayModule
:
this
.
thisLesson
.
domTitle
.
slice
(
0
,
9
),
dayModule
:
this
.
thisLesson
.
domTitle
.
slice
(
0
,
9
),
...
@@ -517,6 +518,7 @@
...
@@ -517,6 +518,7 @@
},
},
// 显示课程弹窗
// 显示课程弹窗
showDia
(
data
,
i
){
showDia
(
data
,
i
){
if
(
data
.
push_time
!==
'0000-00-00'
){
if
(
data
.
push_time
!==
'0000-00-00'
){
getLessonDetailApi
(
this
.
secActions
.
id
,
data
.
id
,
data
.
ele_id
).
then
(
res
=>
{
getLessonDetailApi
(
this
.
secActions
.
id
,
data
.
id
,
data
.
ele_id
).
then
(
res
=>
{
res
.
content
=
JSON
.
parse
(
res
.
content
);
res
.
content
=
JSON
.
parse
(
res
.
content
);
...
@@ -541,13 +543,14 @@
...
@@ -541,13 +543,14 @@
this
.
popupVisible
=
true
;
this
.
popupVisible
=
true
;
this
.
push_time
=
data
.
push_time
;
this
.
push_time
=
data
.
push_time
;
// 神策埋点 选择课时
// 神策埋点 选择课时
console
.
log
(
this
.
parent_category_id
.
toString
(),
9999
)
this
.
$sa
.
track
(
'selectElement'
,{
this
.
$sa
.
track
(
'selectElement'
,{
elementID
:
data
.
ele_id
.
toString
(),
elementID
:
data
.
ele_id
.
toString
(),
dayModule
:
data
.
name
.
slice
(
0
,
9
),
dayModule
:
data
.
name
.
slice
(
0
,
9
),
weekName
:
data
.
name
.
slice
(
10
,
data
.
name
.
length
),
weekName
:
data
.
name
.
slice
(
10
,
data
.
name
.
length
),
elementName
:
data
.
name
.
slice
(
0
,
9
)
+
'-'
+
data
.
name
.
slice
(
10
,
data
.
name
.
length
),
elementName
:
data
.
name
.
slice
(
0
,
9
)
+
'-'
+
data
.
name
.
slice
(
10
,
data
.
name
.
length
),
themeID
:
this
.
parent_category_id
.
toString
()
,
themeID
:
this
.
parent_category_id
?
this
.
parent_category_id
.
toString
()
:
''
,
themeName
:
this
.
parent_category_id
.
toString
()
,
themeName
:
this
.
parent_category_id
?
this
.
parent_category_id
.
toString
()
:
''
,
goodsID
:
this
.
goodsID
,
goodsID
:
this
.
goodsID
,
classID
:
this
.
classID
,
classID
:
this
.
classID
,
courseID
:
this
.
course_id
.
toString
()
courseID
:
this
.
course_id
.
toString
()
...
...
src/components/map/promptTime.vue
View file @
bfc8c62b
...
@@ -44,6 +44,13 @@
...
@@ -44,6 +44,13 @@
[
DatetimePicker
.
name
]:
DatetimePicker
,
[
DatetimePicker
.
name
]:
DatetimePicker
,
[
Popup
.
name
]:
Popup
,
[
Popup
.
name
]:
Popup
,
},
},
watch
:
{
dateShow
(
val
)
{
if
(
!
val
)
{
this
.
contentFn
()
}
}
},
methods
:
{
methods
:
{
dateShowClick
()
{
dateShowClick
()
{
this
.
dateShow
=
true
;
this
.
dateShow
=
true
;
...
...
src/router/index.js
View file @
bfc8c62b
...
@@ -616,12 +616,11 @@ router.beforeEach((to, from, next) => {
...
@@ -616,12 +616,11 @@ router.beforeEach((to, from, next) => {
};
};
if
(
window
.
location
.
href
.
indexOf
(
'gdt_vid'
)
>
-
1
)
{
if
(
window
.
location
.
href
.
indexOf
(
'gdt_vid'
)
>
-
1
)
{
localStorage
.
setItem
(
'gdt_vid'
,
common
.
getParamhref
().
gdt_vid
);
localStorage
.
setItem
(
'gdt_vid'
,
common
.
getParamhref
().
gdt_vid
);
console
.
log
(
query
.
gdt_vid
)
}
}
// extensionV1Shop
// extensionV1Shop
// extensionV1
// extensionV1
// mpShop
// mpShop
if
(
to
.
name
===
'spcShop'
||
to
.
name
===
'mpShop'
||
to
.
name
===
'extensionV1Shop'
||
to
.
name
===
'extensionV1'
||
to
.
name
===
'author'
||
to
.
name
===
'bindMobile'
||
to
.
name
===
'noWechat'
||
to
.
name
===
'inspectorActivit'
||
to
.
name
===
'passShop'
||
to
.
name
===
'buyDetail'
||
to
.
name
===
'ybIndex'
)
{
if
(
to
.
name
===
'spcShop'
||
to
.
name
===
'mpShop'
||
to
.
name
===
'extensionV1Shop'
||
to
.
name
===
'extensionV1'
||
to
.
name
===
'author'
||
to
.
name
===
'bindMobile'
||
to
.
name
===
'noWechat'
||
to
.
name
===
'inspectorActivit'
||
to
.
name
===
'buyDetail'
||
to
.
name
===
'ybIndex'
)
{
// 无需登录的页面
// 无需登录的页面
console
.
log
(
488
)
console
.
log
(
488
)
next
()
next
()
...
...
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