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
fb9f29a6
Commit
fb9f29a6
authored
Sep 12, 2019
by
IvyXia123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付调式
parent
ee3fee99
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
52 additions
and
48 deletions
+52
-48
buy.vue
src/components/buy/buy.vue
+5
-0
index.vue
src/components/map/index.vue
+2
-3
promptTime.vue
src/components/map/promptTime.vue
+6
-11
audio.vue
src/components/newLesson/audio.vue
+4
-2
index.vue
src/components/newLesson/index.vue
+3
-0
video.vue
src/components/newLesson/video.vue
+32
-31
bottomTab.vue
src/components/public/bottomTab.vue
+0
-1
No files found.
src/components/buy/buy.vue
View file @
fb9f29a6
...
...
@@ -382,6 +382,7 @@ export default {
let
data
=
{
pay_type
:
payTypeArr
[
this
.
payIndex
],
return_url
:
window
.
location
.
href
,
goods_id
:
json
.
goods_id
,
buy_type
:
this
.
groupDetail
.
goods_type
,
group_order_id
:
json
.
group_order_id
,
order_coupon_id
:
json
.
order_coupon_id
}
postPayBillApi
(
data
).
then
(
res
=>
{
if
(
this
.
payIndex
===
0
)
{
console
.
log
(
9999
)
this
.
orderNo
=
res
.
out_trade_no
;
if
(
res
.
out_trade_no
&&
!
res
.
appId
)
{
getCourseInfoApi
().
then
(
res
=>
{
...
...
@@ -393,6 +394,7 @@ export default {
this
.
navPage
(
res
);
});
}
else
{
console
.
log
(
8888
)
let
that
=
this
;
this
.
orderNo
=
res
.
out_trade_no
;
this
.
jsApiParameters
=
res
;
...
...
@@ -423,11 +425,14 @@ export default {
}
}
else
if
(
this
.
payIndex
===
1
){
this
.
payUrl
=
res
.
pay_url
;
}
else
if
(
this
.
payIndex
===
2
)
{
this
.
payUrl
=
res
.
pay_url
;
}
})
/*payApi(json).then(res => {
this.orderNo = res.out_trade_no;
console.log(res)
if (res.out_trade_no && !res.appId) {
getCourseInfoApi().then(res => {
this.userCourse = res;
...
...
src/components/map/index.vue
View file @
fb9f29a6
<
template
>
<div>
<div
class=
"model-n"
>
<div
class=
"model-n"
v-if=
"promp"
@
click=
"promp=false"
>
<div
class=
"model-n-image"
>
<img
:src=
"yinyin"
alt=
""
>
</div>
...
...
@@ -12,7 +12,7 @@
/>
<div
class=
"unit-block"
>
<div
class=
"course_title"
@
click=
"actionsheetShow=true"
>
{{
secActions
.
name
}}
<i
class=
"iconfont icon-below-s"
></i>
<router-link
v-show=
"promp"
:to=
"
{path: '/promptTime', query: { periods_id: secActions.id }}">
<router-link
:to=
"
{path: '/promptTime', query: { periods_id: secActions.id }}">
<div
class=
"zhongbian-kuang"
>
<img
class=
"zhongbian"
:src=
"zhong"
alt=
""
>
</div>
...
...
@@ -787,7 +787,6 @@
left: 0;
top: 0;
z-index: 5000;
display: none;
.model-n-image {
width: 100%;
img{
...
...
src/components/map/promptTime.vue
View file @
fb9f29a6
...
...
@@ -30,7 +30,7 @@
name
:
"promptTime"
,
data
()
{
return
{
currentTime
:
''
,
currentTime
:
'
07:00
'
,
dateVal
:
''
,
dateShow
:
false
,
selectedValue
:
''
,
...
...
@@ -69,16 +69,11 @@
}
},
preservationClick
()
{
if
(
this
.
currentTime
)
{
let
pushAtData
=
{
time
:
this
.
currentTime
,
periods_id
:
this
.
$route
.
query
.
periods_id
}
postNotifySettingApi
(
pushAtData
).
then
(
res
=>
{
Toast
(
"时间设定完成"
);
this
.
$router
.
go
(
-
1
);
})
}
else
{
Toast
(
"请先设定时间"
);
this
.
$refs
.
timeSetting
.
style
.
borderBottom
=
'1px solid red'
}
let
pushAtData
=
{
time
:
this
.
currentTime
,
periods_id
:
this
.
$route
.
query
.
periods_id
}
postNotifySettingApi
(
pushAtData
).
then
(
res
=>
{
Toast
(
"时间设定完成"
);
this
.
$router
.
go
(
-
1
);
})
}
}
}
...
...
src/components/newLesson/audio.vue
View file @
fb9f29a6
<
template
>
<div
class=
"audio-page"
>
{{
showObj
.
audio
[
index
].
image
}}
<div
class=
"content"
v-if=
"showObj.audio"
>
<audio
ref=
"audio"
...
...
@@ -217,10 +218,9 @@
};
},
mounted
()
{
if
(
this
.
$route
.
params
.
evaluate
===
1
)
this
.
finishStudy
()
this
.
changeAge
(
this
.
contentData
.
age
);
this
.
userCourse
=
JSON
.
parse
(
localStorage
.
getItem
(
"userCourse"
));
console
.
log
(
this
.
userCourse
,
897896
)
if
(
this
.
userCourse
.
periods_list
)
{
this
.
checkCollect
();
}
...
...
@@ -756,6 +756,8 @@
this
.
playFlag
=
false
;
this
.
startTime
=
"00:00"
;
this
.
overTime
=
"00:00"
;
console
.
log
(
this
.
contentData
)
console
.
log
(
this
.
showObj
,
12345
)
},
finishStudy
()
{
this
.
sendConsole
(
"完成今日学习"
);
...
...
src/components/newLesson/index.vue
View file @
fb9f29a6
...
...
@@ -98,6 +98,7 @@
sharePage
},
mounted
()
{
console
.
log
(
this
.
lesson
,
9876546
);
this
.
initPage
();
},
/**
...
...
@@ -223,6 +224,7 @@
lessonDetail
.
total_watch_time
=
res
.
total_watch_time
;
lessonDetail
.
nowTime
=
nowTime
;
lessonDetail
.
star_num
=
res
.
total_star_num
;
console
.
log
(
res
,
'asdfasfsaf'
)
localStorage
.
setItem
(
"lessonDetail"
,
JSON
.
stringify
(
lessonDetail
));
let
query
=
{
...
...
@@ -336,6 +338,7 @@
age
:
this
.
nowLesson
.
age
};
}
console
.
log
(
this
.
nowLesson
,
87654
)
break
;
case
3
:
this
.
$sa
.
track
(
"learnPart"
,
{
...
...
src/components/newLesson/video.vue
View file @
fb9f29a6
...
...
@@ -9,47 +9,47 @@
</div>
<div
v-if=
"showObj.video.length > 1&&orientationchange"
class=
"age-block video"
@
click=
"videoShow = !videoShow"
class=
"age-block video"
@
click=
"videoShow = !videoShow"
>
<div>
视频(
{{
videoIndex
+
1
}}
)
<i
class=
"playImage _154722344142123489"
></i>
</div>
</div>
</div>
<div
class=
"age-change-block video"
v-if=
"showObj.video.length > 1 && videoShow&&orientationchange"
>
<div
class=
"age-change-block video
"
v-
if=
"showObj.video.length > 1 && videoShow&&orientationchange
"
@
click=
"videoIndex= index;videoShow=false;sendConsole('多视频选择视频')
"
v-
for=
"(item,index) in showObj.video
"
>
<div
@
click=
"videoIndex= index;videoShow=false;sendConsole('多视频选择视频')"
v-for=
"(item,index) in showObj.video"
>
视频(
{{
index
+
1
}}
)
<i
:class=
"
{'playImage _282918034425091245':index === videoIndex}"
v-if="contentData.age === 1"
>
</i>
</div>
</div>
<div
v-if=
"showObj.change"
class=
"change-block"
>
<div
class=
"active"
>
视频教学
</div>
<div
@
click=
"changeAudio(true)"
>
音频教学
</div>
视频(
{{
index
+
1
}}
)
<i
:class=
"
{'playImage _282918034425091245':index === videoIndex}"
v-if="contentData.age === 1"
>
</i>
</div>
</div>
<div
class=
"header
"
>
<
img
:src=
"imgURL.luolacoming"
class=
"text"
v-if=
"nowShow === 3"
/
>
<
img
:src=
"imgURL.luolalaila"
class=
"text"
v-if=
"nowShow === 2"
/
>
<div
v-if=
"showObj.change"
class=
"change-block
"
>
<
div
class=
"active"
>
视频教学
</div
>
<
div
@
click=
"changeAudio(true)"
>
音频教学
</div
>
</div>
<div
class=
"video-block hp-video"
v-if=
"showObj.video[videoIndex]"
v-show=
"!share_show && !popupVisible"
>
<!-- :src="showObj.video[videoIndex].url" -->
<video
v-show=
"!star"
ref=
"videoDom"
style=
"object-fit:fill"
</div>
<div
class=
"header"
>
<img
:src=
"imgURL.luolacoming"
class=
"text"
v-if=
"nowShow === 3"
/>
<img
:src=
"imgURL.luolalaila"
class=
"text"
v-if=
"nowShow === 2"
/>
</div>
<div
class=
"video-block hp-video"
v-if=
"showObj.video[videoIndex]"
v-show=
"!share_show && !popupVisible"
>
<!-- :src="showObj.video[videoIndex].url" -->
<video
v-show=
"!star"
ref=
"videoDom"
style=
"object-fit:fill"
:src=
"showObj.video[videoIndex].url"
@
ended=
"videoEnd"
@
error=
"errorLog"
...
...
@@ -196,6 +196,7 @@
this
.
videoWidth
=
Number
(
document
.
documentElement
.
clientWidth
)
/
3.8
;
},
mounted
()
{
console
.
log
(
this
.
contentData
,
86876
)
this
.
changeAge
(
this
.
contentData
.
age
);
let
that
=
this
;
// console.log(document.documentElement.clientWidth)
...
...
src/components/public/bottomTab.vue
View file @
fb9f29a6
...
...
@@ -36,7 +36,6 @@ export default {
mounted
()
{
// debugger
let
userCourse2
=
JSON
.
parse
(
localStorage
.
getItem
(
"userCourse"
));
console
.
log
(
userCourse2
)
this
.
ownDetail
=
JSON
.
parse
(
localStorage
.
getItem
(
"userDesc"
));
if
(
userCourse2
){
this
.
userCourse2
=
userCourse2
...
...
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