|
@@ -68,6 +68,9 @@ Page({
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
console.log(options);
|
|
console.log(options);
|
|
let videoId = options.videoId
|
|
let videoId = options.videoId
|
|
|
|
+ wx.setNavigationBarTitle({
|
|
|
|
+ title: options.navBarTitle
|
|
|
|
+ })
|
|
this.getreadInfo(videoId, options.reset).then(res => {
|
|
this.getreadInfo(videoId, options.reset).then(res => {
|
|
if (options.voluntarily) {
|
|
if (options.voluntarily) {
|
|
this.setCountDown()
|
|
this.setCountDown()
|
|
@@ -164,9 +167,7 @@ Page({
|
|
getreadInfo(videoId, reset = false) {
|
|
getreadInfo(videoId, reset = false) {
|
|
return new Promise(async (resolve, reject) => {
|
|
return new Promise(async (resolve, reject) => {
|
|
let videoInfo = await getreadInfo(videoId)
|
|
let videoInfo = await getreadInfo(videoId)
|
|
- /* wx.setNavigationBarTitle({
|
|
|
|
- title: videoInfo.userRead.title
|
|
|
|
- }) */
|
|
|
|
|
|
+
|
|
let data = JSON.parse(videoInfo.userReadExtend.lessonText)
|
|
let data = JSON.parse(videoInfo.userReadExtend.lessonText)
|
|
data = data.map((item, index) => {
|
|
data = data.map((item, index) => {
|
|
item.time = Number(item.time)
|
|
item.time = Number(item.time)
|