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
1e81c54d
Commit
1e81c54d
authored
Sep 16, 2019
by
IvyXia123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
502
parent
2914abbf
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
8 deletions
+15
-8
index.vue
src/components/buy/index.vue
+4
-2
index.vue
src/components/newLesson/index.vue
+4
-1
share.vue
src/components/newLesson/share.vue
+2
-2
video.vue
src/components/newLesson/video.vue
+2
-2
index.js
src/service/index.js
+3
-1
No files found.
src/components/buy/index.vue
View file @
1e81c54d
...
@@ -218,7 +218,8 @@ import {
...
@@ -218,7 +218,8 @@ import {
getCouponListApi
,
getCouponListApi
,
getAutomationCouponApi
,
getAutomationCouponApi
,
getInvitedCouponApi
,
getInvitedCouponApi
,
getReceiveCouponApi
getReceiveCouponApi
,
getPassGoodInfoApi
}
from
"../../service/api"
;
}
from
"../../service/api"
;
import
refBg
from
"../../assets/refBg.png"
;
import
refBg
from
"../../assets/refBg.png"
;
import
moreUrl
from
"../../assets/moreIcon.png"
;
import
moreUrl
from
"../../assets/moreIcon.png"
;
...
@@ -483,7 +484,8 @@ export default {
...
@@ -483,7 +484,8 @@ export default {
if
(
window
.
location
.
href
.
indexOf
(
"shopId"
)
>
-
1
)
{
if
(
window
.
location
.
href
.
indexOf
(
"shopId"
)
>
-
1
)
{
this
.
shopId
=
this
.
$route
.
query
.
shopId
;
this
.
shopId
=
this
.
$route
.
query
.
shopId
;
getGoodsDetailApi
(
this
.
shopId
).
then
(
res
=>
{
getPassGoodInfoApi
(
this
.
shopId
).
then
(
res
=>
{
// getGoodsDetailApi(this.shopId).then(res => {
res
.
desc
=
JSON
.
parse
(
res
.
desc
);
res
.
desc
=
JSON
.
parse
(
res
.
desc
);
res
.
goods_desc
=
JSON
.
parse
(
res
.
goods_desc
);
res
.
goods_desc
=
JSON
.
parse
(
res
.
goods_desc
);
res
.
share_desc
=
JSON
.
parse
(
res
.
share_desc
);
res
.
share_desc
=
JSON
.
parse
(
res
.
share_desc
);
...
...
src/components/newLesson/index.vue
View file @
1e81c54d
...
@@ -41,7 +41,8 @@
...
@@ -41,7 +41,8 @@
subUserLessonApi
,
subUserLessonApi
,
getUserWatchApi
,
getUserWatchApi
,
getwechatParam
,
getwechatParam
,
getCountTimeApi
getCountTimeApi
,
postErrorLogApi
}
from
"../../service/api"
;
}
from
"../../service/api"
;
import
{
Toast
}
from
"vant"
;
import
{
Toast
}
from
"vant"
;
import
lookBlock
from
"./look"
;
import
lookBlock
from
"./look"
;
...
@@ -140,6 +141,7 @@
...
@@ -140,6 +141,7 @@
page_id
:
6
,
page_id
:
6
,
stay_time
:
0
stay_time
:
0
};
};
subUserLessonApi
(
subUserLessonApi
(
that
.
elementId
,
that
.
elementId
,
that
.
category_id
,
that
.
category_id
,
...
@@ -174,6 +176,7 @@
...
@@ -174,6 +176,7 @@
page_id
:
6
,
page_id
:
6
,
stay_time
:
0
stay_time
:
0
};
};
subUserLessonApi
(
subUserLessonApi
(
that
.
elementId
,
that
.
elementId
,
that
.
category_id
,
that
.
category_id
,
...
...
src/components/newLesson/share.vue
View file @
1e81c54d
...
@@ -230,9 +230,9 @@
...
@@ -230,9 +230,9 @@
let
query
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"classQuery"
));
let
query
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"classQuery"
));
this
.
timeout
=
setTimeout
(()
=>
{
this
.
timeout
=
setTimeout
(()
=>
{
// minute
// minute
postErrorLogApi
({
'routes_url'
:
new
Date
().
toString
(),
'result_text'
:
this
.
userDetail
.
user_id
}).
then
((
res
)
=>
{
/*
postErrorLogApi({'routes_url':new Date().toString(),'result_text':this.userDetail.user_id}).then((res)=>{
console.log(res)
console.log(res)
})
})
*/
this
.
$sa
.
track
(
"watchClick"
,
{
this
.
$sa
.
track
(
"watchClick"
,
{
dayModule
:
JSON
.
parse
(
dayModule
:
JSON
.
parse
(
localStorage
.
getItem
(
"lessonDetail"
)
localStorage
.
getItem
(
"lessonDetail"
)
...
...
src/components/newLesson/video.vue
View file @
1e81c54d
...
@@ -231,7 +231,7 @@
...
@@ -231,7 +231,7 @@
},
},
methods
:
{
methods
:
{
errorLog
(
e
){
errorLog
(
e
){
/*
this.userDetail = JSON.parse(localStorage.getItem("userDesc"));
this
.
userDetail
=
JSON
.
parse
(
localStorage
.
getItem
(
"userDesc"
));
// console.log(e.target.error,229)
// console.log(e.target.error,229)
let
str
=
'code:'
+
e
.
target
.
error
.
code
+
',msg:'
+
e
.
target
.
error
.
message
+
',url:'
+
let
str
=
'code:'
+
e
.
target
.
error
.
code
+
',msg:'
+
e
.
target
.
error
.
message
+
',url:'
+
this
.
showObj
.
video
[
this
.
videoIndex
].
url
+
',UserAgent:'
+
navigator
.
userAgent
+
',currentTime:'
+
this
.
$refs
.
videoDom
.
currentTime
this
.
showObj
.
video
[
this
.
videoIndex
].
url
+
',UserAgent:'
+
navigator
.
userAgent
+
',currentTime:'
+
this
.
$refs
.
videoDom
.
currentTime
...
@@ -241,7 +241,7 @@
...
@@ -241,7 +241,7 @@
'result_text'
:
str
'result_text'
:
str
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
// console.log(res)
// console.log(res)
})
*/
})
},
},
sliceUrl
()
{
sliceUrl
()
{
localStorage
.
setItem
(
"clarityType"
,
this
.
clarityType
);
localStorage
.
setItem
(
"clarityType"
,
this
.
clarityType
);
...
...
src/service/index.js
View file @
1e81c54d
...
@@ -239,8 +239,10 @@ export function post(url, data = {}) {
...
@@ -239,8 +239,10 @@ export function post(url, data = {}) {
reject
(
response
.
data
);
reject
(
response
.
data
);
}
else
{
}
else
{
reject
(
response
.
data
);
reject
(
response
.
data
);
if
(
response
.
data
.
code
!=
502
)
{
Toast
(
response
.
data
.
msg
)
Toast
(
response
.
data
.
msg
)
}
}
}
},
err
=>
{
},
err
=>
{
reject
(
err
);
reject
(
err
);
})
})
...
...
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