Commit bbc7622c by 王志慧

commit

1 parent bdac99ba
......@@ -71,7 +71,6 @@ Page({
// videoObj: videoObj,
// leftMenuIndex: leftMenuIndex
// })
// this.setpagesTitle()
// this.shareDataFn(options)
// }
if (utils.isEmptyObj(options)) return
......@@ -92,7 +91,7 @@ Page({
videoId: id,
isShare
});
this.setpagesTitle(videoData.title)
this.setpagesTitle(videoData.proName)
this.changeShareData()
},
//接受跳转的路由参数(小程序页面跳转)
......@@ -123,7 +122,7 @@ Page({
videoId: id,
sceneCode
});
this.setpagesTitle(videoData.title)
this.setpagesTitle(videoData.proName)
this.changeShareData()
},
// 获取视频详情
......@@ -180,13 +179,13 @@ Page({
// 切换视频
chooseVideo(e) {
const {
title,
proName,
id
} = e.detail
this.setData({
videoId: id
})
this.setpagesTitle(title)
this.setpagesTitle(proName)
this.changeShareData()
},
......@@ -261,7 +260,7 @@ Page({
* 生命周期函数--监听页面显示
*/
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!