文章详细页添加分享
parent
e902f14d23
commit
87ffa823de
|
|
@ -61,6 +61,30 @@
|
||||||
onReady() {
|
onReady() {
|
||||||
this.audioCtx = uni.createAudioContext('myAudio')
|
this.audioCtx = uni.createAudioContext('myAudio')
|
||||||
},
|
},
|
||||||
|
onShareAppMessage() {
|
||||||
|
let img = ''
|
||||||
|
if (this.info.media_type == 0) {
|
||||||
|
img = this.info.cover
|
||||||
|
} else if (this.info.media_type == 1) {
|
||||||
|
img = this.swiperList[0]
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
title: this.info.title,
|
||||||
|
imageUrl: img
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onShareTimeline() {
|
||||||
|
let img = ''
|
||||||
|
if (this.info.media_type == 0) {
|
||||||
|
img = this.info.cover
|
||||||
|
} else if (this.info.media_type == 1) {
|
||||||
|
img = this.swiperList[0]
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
title: this.info.title,
|
||||||
|
imageUrl: img
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
audioClick(){
|
audioClick(){
|
||||||
this.isPlaying=!this.isPlaying
|
this.isPlaying=!this.isPlaying
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue