修复已知问题

This commit is contained in:
cbb
2026-02-02 15:45:24 +08:00
parent f4e3496e3c
commit fa0faa6be6
10 changed files with 220 additions and 194 deletions

View File

@@ -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 {

View File

@@ -11,7 +11,7 @@
{ name: '公司介绍', icon: 'company' },
{ name: '朋友圈', icon: 'circle' },
{ name: '线上商城', icon: 'mall' },
{ name: '我的拼团', icon: 'team' },
{ name: '我的拼团伙伴', icon: 'team' },
{ name: '项目入口', icon: 'project' },
{ name: '直播列表', icon: 'liveStream' }
]

View File

@@ -12,14 +12,12 @@
icon: 'wallet',
url: '/pages/my-index/wallet/index'
},
// #ifdef H5
{
name: '邀请好友',
icon: 'user-code',
url: '/pages/my-index/wallet/invite'
},
// #endif
{ name: '我的拼团', icon: 'team', url: '/pages/my-index/my-team' },
{ name: '我的拼团伙伴', icon: 'team', url: '/pages/my-index/my-team' },
// { name: '群创建直播', icon: 'videocam', url: '' },
{
name: '直播记录',

View File

@@ -9,7 +9,7 @@
<!-- 顶部卡片 -->
<view class="top-card">
<view class="num-box">
<text>我的拼团()</text>
<text>我的拼团伙伴()</text>
<text>{{ userInfo.teamCount }}</text>
</view>
<image

View File

@@ -8,7 +8,7 @@
const { origin } = window.location
return `${origin}/pages/login/phone-register/phone-register?invitationCode=${userInfo.value.invitationCode}`
})
// 复制文本通用函数
const copyText = text => {
uni.setClipboardData({
@@ -42,7 +42,7 @@
</button>
</view>
</view>
<!-- #ifdef H5 -->
<view class="divider"></view>
<view class="card-item">
@@ -54,11 +54,19 @@
</button>
</view>
</view>
<!-- #endif -->
</view>
<!-- #ifdef H5 -->
<view class="share-tips">
<text>将邀请码发送给好友即可完成邀请</text>
</view>
<!-- #endif -->
<!-- #ifdef APP-NVUE -->
<view class="share-tips">
<text>将链接或邀请码发送给好友即可完成邀请</text>
</view>
<!-- #endif -->
<!-- 可选添加分享按钮如微信朋友圈等 -->
<!-- <button class="share-btn">分享到微信</button> -->