|
@@ -11,7 +11,7 @@
|
|
<!-- 音频 -->
|
|
<!-- 音频 -->
|
|
<my-audio v-if="item.layoutType === 1" :ref="`video${item.sort}`" :bg="form.audioBackgroundImage"
|
|
<my-audio v-if="item.layoutType === 1" :ref="`video${item.sort}`" :bg="form.audioBackgroundImage"
|
|
:pic="item.contentPic" :name="item.contentName" :singer="item.contentInfo.singerName"
|
|
:pic="item.contentPic" :name="item.contentName" :singer="item.contentInfo.singerName"
|
|
- :status="item.playStatus" @click="getPlay($event, item)" />
|
|
|
|
|
|
+ :status="item.playStatus" @click="getPlay(item)" />
|
|
<!-- 歌单 、专辑 -->
|
|
<!-- 歌单 、专辑 -->
|
|
<my-list v-if="item.layoutType === 2" :pic="item.contentPic" :name="item.contentName" :data="item.contentInfo"
|
|
<my-list v-if="item.layoutType === 2" :pic="item.contentPic" :name="item.contentName" :data="item.contentInfo"
|
|
:type="item.contentType" @click="getOpen(item)" />
|
|
:type="item.contentType" @click="getOpen(item)" />
|
|
@@ -47,8 +47,7 @@ export default {
|
|
8: '/mobile/playAlbumPage',
|
|
8: '/mobile/playAlbumPage',
|
|
10: '/mobile/playSongsPage',
|
|
10: '/mobile/playSongsPage',
|
|
15: '/mobile/playSongsPage'
|
|
15: '/mobile/playSongsPage'
|
|
- },
|
|
|
|
- activeAudio: {}
|
|
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(e) {
|
|
onLoad(e) {
|
|
@@ -104,11 +103,11 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
// 单个音频
|
|
// 单个音频
|
|
- getPlay(e, item) {
|
|
|
|
|
|
+ getPlay(item) {
|
|
if (this.inside) {
|
|
if (this.inside) {
|
|
- let status = e === 2 ? 1 : 2
|
|
|
|
- openPage.postMessage(`?page=/mobile/audioPage&audioId=${item.contentInfo.audioId}&audioType=${item.contentInfo.audioType}&platformId=${item.platformId}&playStatus=${status}&openAudioPage=0&cmd=openPage`)
|
|
|
|
|
|
+ openPage.postMessage(`?page=/mobile/audioPage&audioId=${item.contentInfo.audioId}&audioType=${item.contentInfo.audioType}&platformId=${item.platformId}&playStatus=1&openAudioPage=0&cmd=openPage`)
|
|
window['setOpenPage'] = res => {
|
|
window['setOpenPage'] = res => {
|
|
|
|
+ this.form.contentShareLayoutList.map(i => i.playStatus = 2)
|
|
item.playStatus = JSON.parse(res).status
|
|
item.playStatus = JSON.parse(res).status
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|