Commit bbc7622c by 王志慧

commit

1 parent bdac99ba
...@@ -71,7 +71,6 @@ Page({ ...@@ -71,7 +71,6 @@ Page({
// videoObj: videoObj, // videoObj: videoObj,
// leftMenuIndex: leftMenuIndex // leftMenuIndex: leftMenuIndex
// }) // })
// this.setpagesTitle()
// this.shareDataFn(options) // this.shareDataFn(options)
// } // }
if (utils.isEmptyObj(options)) return if (utils.isEmptyObj(options)) return
...@@ -92,7 +91,7 @@ Page({ ...@@ -92,7 +91,7 @@ Page({
videoId: id, videoId: id,
isShare isShare
}); });
this.setpagesTitle(videoData.title) this.setpagesTitle(videoData.proName)
this.changeShareData() this.changeShareData()
}, },
//接受跳转的路由参数(小程序页面跳转) //接受跳转的路由参数(小程序页面跳转)
...@@ -123,7 +122,7 @@ Page({ ...@@ -123,7 +122,7 @@ Page({
videoId: id, videoId: id,
sceneCode sceneCode
}); });
this.setpagesTitle(videoData.title) this.setpagesTitle(videoData.proName)
this.changeShareData() this.changeShareData()
}, },
// 获取视频详情 // 获取视频详情
...@@ -180,13 +179,13 @@ Page({ ...@@ -180,13 +179,13 @@ Page({
// 切换视频 // 切换视频
chooseVideo(e) { chooseVideo(e) {
const { const {
title, proName,
id id
} = e.detail } = e.detail
this.setData({ this.setData({
videoId: id videoId: id
}) })
this.setpagesTitle(title) this.setpagesTitle(proName)
this.changeShareData() this.changeShareData()
}, },
...@@ -261,7 +260,7 @@ Page({ ...@@ -261,7 +260,7 @@ Page({
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow() { onShow() {
this.data.videoData.proName&&this.setpagesTitle(this.data.videoData.proName)
}, },
/** /**
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!