修改版本
This commit is contained in:
@@ -75,11 +75,7 @@
|
||||
style="width: 72rpx; height: 72rpx;"
|
||||
@click="navigateTo('/pages/shop-together/user', {
|
||||
type: 1,
|
||||
id: currentLive.liveID,
|
||||
text: currentLive.liveName,
|
||||
cover: currentLive.coverUrl,
|
||||
avatarUrl: currentLive.liveOwner.avatarUrl
|
||||
title: currentLive.liveOwner.title
|
||||
id: currentLive.liveID
|
||||
})"
|
||||
/>
|
||||
<Like />
|
||||
|
||||
@@ -91,6 +91,11 @@
|
||||
></image>
|
||||
</template>
|
||||
<template #right>
|
||||
<!-- shareDialog = true -->
|
||||
<!-- navigateTo('/pages/shop-together/user', {
|
||||
type: 1,
|
||||
id: currentLive.liveID
|
||||
}) -->
|
||||
<image
|
||||
src="/static/images/public/share-icon.png"
|
||||
mode="heightFix"
|
||||
|
||||
@@ -6,9 +6,11 @@
|
||||
} from '@tencentcloud/chat-uikit-engine-lite'
|
||||
import { reactive, ref } from 'vue'
|
||||
import { onLoad, onBackPress } from '@dcloudio/uni-app'
|
||||
|
||||
import { useLiveListState } from '@/uni_modules/tuikit-atomic-x/state/LiveListState'
|
||||
import { navigateBack } from '../../utils/router'
|
||||
import { useUI } from '../../utils/use-ui'
|
||||
import { CHAT_MSG_CUSTOM_TYPE } from '../../TUIKit/constant'
|
||||
import { isEnabledMessageReadReceiptGlobal } from '../../TUIKit/components/TUIChat/utils/utils'
|
||||
|
||||
const { showLoading, hideLoading, showToast, showDialog } = useUI()
|
||||
|
||||
@@ -31,6 +33,9 @@
|
||||
title: ''
|
||||
})
|
||||
|
||||
/** 直播数据 */
|
||||
const liveData = ref({})
|
||||
|
||||
/** 多选状态 */
|
||||
const isMultiple = ref(false)
|
||||
/** 群列表 */
|
||||
@@ -122,6 +127,29 @@
|
||||
to = item.id.split('C2C')[1]
|
||||
isGroup = false
|
||||
}
|
||||
const live = liveData.value
|
||||
|
||||
console.log(
|
||||
'===',
|
||||
propsData.type == 1
|
||||
? {
|
||||
id: propsData.id,
|
||||
businessID: CHAT_MSG_CUSTOM_TYPE.LIVE,
|
||||
title: live.liveName,
|
||||
cover: live.cover,
|
||||
userLiveData: {
|
||||
avatarUrl: live.liveOwner.avatarURL,
|
||||
title: live.liveOwner.userName || live.liveOwner.userID
|
||||
}
|
||||
}
|
||||
: {
|
||||
id: propsData.id,
|
||||
businessID: CHAT_MSG_CUSTOM_TYPE.GOODS,
|
||||
title: propsData.text,
|
||||
cover: propsData.cover,
|
||||
price: propsData.price
|
||||
}
|
||||
)
|
||||
|
||||
const payload = {
|
||||
data: JSON.stringify(
|
||||
@@ -129,11 +157,11 @@
|
||||
? {
|
||||
id: propsData.id,
|
||||
businessID: CHAT_MSG_CUSTOM_TYPE.LIVE,
|
||||
title: propsData.text,
|
||||
cover: propsData.cover,
|
||||
title: live.liveName,
|
||||
cover: live.cover,
|
||||
userLiveData: {
|
||||
avatarUrl: propsData.avatarUrl,
|
||||
title: propsData.title
|
||||
avatarUrl: live.liveOwner.avatarURL,
|
||||
title: live.liveOwner.userName || live.liveOwner.userID
|
||||
}
|
||||
}
|
||||
: {
|
||||
@@ -165,8 +193,8 @@
|
||||
await Promise.all(requests)
|
||||
hideLoading()
|
||||
await showToast('分享成功', 'success')
|
||||
isShow.value = false
|
||||
navigateBack()
|
||||
isShow.value = false
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -192,13 +220,18 @@
|
||||
await sendCustomData(item)
|
||||
hideLoading()
|
||||
await showToast('分享成功', 'success')
|
||||
isShow.value = false
|
||||
navigateBack()
|
||||
isShow.value = false
|
||||
}
|
||||
}
|
||||
|
||||
onLoad(e => {
|
||||
console.log('===', e)
|
||||
propsData.id = e.id
|
||||
propsData.type = e.type
|
||||
if (e.type == 1) {
|
||||
const { currentLive } = useLiveListState(e.id)
|
||||
liveData.value = currentLive.value
|
||||
}
|
||||
TUIStore.watch(StoreName.GRP, {
|
||||
groupList: onGroupListUpdated
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user