|
@@ -44,7 +44,12 @@
|
|
|
<view class="opt-box">
|
|
|
<image style="width:34rpx;height:34rpx" src="@/static/voice/publish.png" mode="widthFix" @click.stop="handleSendMsgItem(item)" v-if="item.CouldSendMsg"/>
|
|
|
<image style="width:34rpx;height:34rpx" src="@/static/voice/del.png" mode="widthFix" v-if="item.IsAuthor" @click.stop="handleDelItem(item)" />
|
|
|
- <image style="width:32rpx;height:32rpx" src="@/static/voice/creat-poster-icon.png" mode="aspectFill" />
|
|
|
+ <sharePoster
|
|
|
+ :showSlot="true"
|
|
|
+ :shareData="getItemShareData(item)"
|
|
|
+ >
|
|
|
+ <image style="width:32rpx;height:32rpx" src="@/static/voice/creat-poster-icon.png" mode="aspectFill" />
|
|
|
+ </sharePoster>
|
|
|
<button
|
|
|
class="share-btn"
|
|
|
open-type="share"
|
|
@@ -113,12 +118,14 @@ import {apiGetSceneToParams} from '@/api/common'
|
|
|
import noAuth from './components/noAuth.vue'
|
|
|
import audioBox from '@/components/audioBox/audioBox.vue'
|
|
|
import dragButton from '@/components/dragButton/dragButton.vue'
|
|
|
+import sharePoster from '@/components/sharePoster/sharePoster.vue'
|
|
|
const moment=require('@/utils/moment-with-locales.min')
|
|
|
export default {
|
|
|
components:{
|
|
|
noAuth,
|
|
|
audioBox,
|
|
|
- dragButton
|
|
|
+ dragButton,
|
|
|
+ sharePoster
|
|
|
},
|
|
|
filters:{
|
|
|
formatTime(e){
|
|
@@ -422,6 +429,19 @@ export default {
|
|
|
if(res.code===200){
|
|
|
console.log('上报音频播放记录');
|
|
|
}
|
|
|
+ },
|
|
|
+
|
|
|
+ //语音详情生成海报参数
|
|
|
+ getItemShareData(item){
|
|
|
+ return {
|
|
|
+ type:'voice_detail',
|
|
|
+ code_page:'pages-voice/voiceDetail',
|
|
|
+ code_scene:JSON.stringify({voiceId:item.BroadcastId}),
|
|
|
+ data:{
|
|
|
+ title:item.BroadcastName,
|
|
|
+ img:item.ImgUrl
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
}
|