订单,视频通话需要开发

This commit is contained in:
cbb
2026-02-07 17:44:59 +08:00
parent 101ddcb0c1
commit 20b6be5dfb
13 changed files with 259 additions and 120 deletions

View File

@@ -66,7 +66,7 @@
</text>
</view>
</view>
<view class="control-icons" @click.stop="navigateBack()">
<view class="control-icons" @click.stop="topBack()">
<!-- <image class="control-icon" src="/static/images/live-share.png" /> -->
<image class="control-icon" src="/static/images/close.png" />
</view>
@@ -211,7 +211,7 @@
</template>
<script setup lang="ts">
import { navigateTo } from '@/utils/router'
import { navigateBack, navigateTo } from '@/utils/router'
import {
imDataEndLive,
getLiveActivityDetail,
@@ -586,29 +586,14 @@
'onLocalMicrophoneClosedByAdmin',
handleLocalMicrophoneClosedByAdmin
)
uni.$liveID = ''
isShowExitSheet.value = true
uni.showModal({
title: `提示`,
content: `直播已结束`,
showCancel: false,
success: c => {
if (c.confirm) {
uni.$liveID = ''
uni.navigateBack({
delta: 1
});
// uni.redirectTo({
// url: `/pages/livelist/index`,
// delta: 1,
// success: () => {
// console.log('返回成功')
// },
// fail: err => {
// console.error('返回失败', err)
// }
// })
}
}
showCancel: false
})
navigateBack()
}
}
const handleKickedOutOfLive = {
@@ -712,7 +697,7 @@
uni.hideKeyboard()
}
const navigateBack = () => {
const topBack = () => {
if (uni.$localGuestStatus === 'CONNECTED') {
exitSheetItems.value = ['断开连麦', '退出直播间']
exitSheetTitle.value =