|
@@ -41,6 +41,7 @@ Component({
|
|
|
this.setData({
|
|
|
videoInfoCopy: newVal,
|
|
|
videoPath: newVal.userRead.videoPath,
|
|
|
+ selfWork: this.data.selfUid == newVal.user.uid,
|
|
|
isOfficial: newVal.userRead.type != 'APP_EXAMPLE'
|
|
|
})
|
|
|
}
|
|
@@ -69,7 +70,9 @@ Component({
|
|
|
//userRead.videoPath 和 example.videoPath,
|
|
|
workType: 'videoPath',
|
|
|
// 是否官方作品
|
|
|
- isOfficial: false
|
|
|
+ isOfficial: false,
|
|
|
+ // 是否作者本人
|
|
|
+ selfWork: false
|
|
|
},
|
|
|
lifetimes: {
|
|
|
attached() {
|
|
@@ -267,7 +270,7 @@ Component({
|
|
|
let readId = videoInfo.userRead.id
|
|
|
let videoType = this.properties.videoType
|
|
|
let url = ''
|
|
|
- if (!this.data.isOfficial || this.data.selfUid == videoInfo.user.uid) {
|
|
|
+ if (!this.data.isOfficial || this.data.selfWork) {
|
|
|
// autoPlay自动播放
|
|
|
url = `/pages/reading/index?videoId=${videoInfo.userRead.exampleId}&autoPlay=true`
|
|
|
} else if (videoType == 'public' || videoType == 'follow') {
|