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",
"style": {
"navigationBarTitleText": "我的学习",
"enablePullDownRefresh": false
"onReachBottomDistance": 20, // px
"enablePullDownRefresh": true //true
}
}, {
"path": "pages/Orderdetails/Orderdetails",
@ -139,17 +140,15 @@
"navigationBarTitleText": "视频学习",
"enablePullDownRefresh": false
}
}, {
"path": "pages/Imglearning/Imglearning",
"style": {
"navigationBarTitleText": "图文学习",
"enablePullDownRefresh": false
}
}
,{
"path" : "pages/Imglearning/Imglearning",
"style" :
{
"navigationBarTitleText": "图文学习",
"enablePullDownRefresh": false
}
}
],
],
"globalStyle": {
"navigationBarTextStyle": "white",
"navigationBarTitleText": "",

View File

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