修复已知问题
This commit is contained in:
@@ -60,11 +60,10 @@
|
||||
<text v-else class="count-text">{{ audienceCount }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="control-icons">
|
||||
<view class="control-icons" @tap="navigateBack()">
|
||||
<!-- <image class="control-icon" src="/static/images/live-share.png" /> -->
|
||||
<image
|
||||
class="control-icon"
|
||||
@tap="navigateBack()"
|
||||
src="/static/images/live-end.png"
|
||||
/>
|
||||
</view>
|
||||
@@ -811,6 +810,7 @@
|
||||
imDataEndLive(roomDataId.value, audienceCount.value).then(() => {
|
||||
uni.redirectTo({ url: '/pages/liveend/index' })
|
||||
})
|
||||
// ===================原本代码
|
||||
// endLive({
|
||||
// success: () => {
|
||||
// console.warn(` 退出直播 imDataEndLive`)
|
||||
@@ -830,8 +830,9 @@
|
||||
|
||||
const roomDataId = ref('')
|
||||
const startLive = async () => {
|
||||
console.log(uni.$liveID, '点击开始直播')
|
||||
|
||||
try {
|
||||
console.log('点击开始直播')
|
||||
const data = {
|
||||
coverUrl: coverURL.value,
|
||||
roomName: liveTitle.value,
|
||||
@@ -842,8 +843,8 @@
|
||||
uni.$liveID = roomId
|
||||
liveID.value = roomId
|
||||
const res = await imDataStartLive(roomId)
|
||||
console.log(roomData, '========11111')
|
||||
console.log(res, '========22222')
|
||||
console.log('========11111', roomData)
|
||||
console.log('========22222', res)
|
||||
roomDataId.value = roomId
|
||||
const params = {
|
||||
cursor: '', // 首次拉起传空(不能是null),然后根据回调数据的cursor确认是否拉完
|
||||
@@ -859,9 +860,6 @@
|
||||
console.log(err, '====22')
|
||||
}
|
||||
// ======================原本代码
|
||||
// uni.$liveID = `live_${212211}`
|
||||
|
||||
// console.log(uni?.$liveID, '=====点击开始直播')
|
||||
// createLive({
|
||||
// liveInfo: {
|
||||
// liveID: uni?.$liveID,
|
||||
@@ -886,6 +884,8 @@
|
||||
// setLocalVideoMuteImage()
|
||||
// },
|
||||
// fail: (errCode, errMsg) => {
|
||||
// console.log('============1111',errCode)
|
||||
// console.log('============2222',errMsg)
|
||||
// uni.showToast({
|
||||
// title: '创建直播间失败'
|
||||
// })
|
||||
@@ -1215,9 +1215,9 @@
|
||||
}
|
||||
|
||||
.control-icon {
|
||||
width: 36rpx;
|
||||
height: 36rpx;
|
||||
margin-left: 16rpx;
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
|
||||
.live-content {
|
||||
|
||||
Reference in New Issue
Block a user