This commit is contained in:
曹辉 2023-04-28 09:09:00 +08:00
parent 98783b9607
commit b1967a2574
2 changed files with 25 additions and 17 deletions

View File

@ -118,7 +118,8 @@
"path": "pages/Orderlist/Orderlist", "path": "pages/Orderlist/Orderlist",
"style": { "style": {
"navigationBarTitleText": "我的学习", "navigationBarTitleText": "我的学习",
"enablePullDownRefresh": false "onReachBottomDistance": 20, // px
"enablePullDownRefresh": true //true
} }
}, { }, {
"path": "pages/Orderdetails/Orderdetails", "path": "pages/Orderdetails/Orderdetails",
@ -139,11 +140,9 @@
"navigationBarTitleText": "视频学习", "navigationBarTitleText": "视频学习",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
} }, {
,{ "path": "pages/Imglearning/Imglearning",
"path" : "pages/Imglearning/Imglearning", "style": {
"style" :
{
"navigationBarTitleText": "图文学习", "navigationBarTitleText": "图文学习",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }

View File

@ -80,6 +80,7 @@
trainingOrderStatus: undefined, trainingOrderStatus: undefined,
trainingOrderDetailsId: undefined, trainingOrderDetailsId: undefined,
videoerroshow: true, videoerroshow: true,
videoContext: undefined,
}; };
}, },
methods: { methods: {
@ -121,10 +122,10 @@
}, },
// //
videoplays() { videoplays() {
if (this.videoitem.watchTime) { console.log(this.videoitem.watchTime)
this.videoContext = uni.createVideoContext('video') // if (this.videoitem.watchTime) {
this.videoContext.seek(this.videoitem.watchTime) this.videoContext.seek(this.videoitem.watchTime)
} // }
}, },
videoplay(item) { videoplay(item) {
this.videoerroshow = true this.videoerroshow = true
@ -151,6 +152,8 @@
}) })
} }
this.videoshow = true this.videoshow = true
this.videoContext = uni.createVideoContext('video', this)
console.log(this.videoContext)
} else { } else {
this.$refs.uToast.show({ this.$refs.uToast.show({
title: '暂无视频', title: '暂无视频',
@ -173,13 +176,19 @@
// //
formatsecond(value) { formatsecond(value) {
value = value.split(':') value = value.split(':')
var number = 0
value.forEach(e => { value.forEach(e => {
e = Number(e) e = Number(e)
}) })
value[0] = value[0] * 24 * 60 value[0] = value[0] * 24 * 60
value[1] = value[1] * 60 value[1] = value[1] * 60
value = value[0] + value[1] + value[2] value.forEach(e => {
return value e = Number(e)
if (e > 0) {
number = number + e
}
})
return number
}, },
// //
formatSeconds(value) { formatSeconds(value) {