Merge branch 'LiWenHao'
Some checks failed
Check / lint (push) Has been cancelled
Check / typecheck (push) Has been cancelled
Check / build (build, 18.x, ubuntu-latest) (push) Has been cancelled
Check / build (build, 18.x, windows-latest) (push) Has been cancelled
Check / build (build:app, 18.x, ubuntu-latest) (push) Has been cancelled
Check / build (build:app, 18.x, windows-latest) (push) Has been cancelled
Check / build (build:mp-weixin, 18.x, ubuntu-latest) (push) Has been cancelled
Check / build (build:mp-weixin, 18.x, windows-latest) (push) Has been cancelled
Some checks failed
Check / lint (push) Has been cancelled
Check / typecheck (push) Has been cancelled
Check / build (build, 18.x, ubuntu-latest) (push) Has been cancelled
Check / build (build, 18.x, windows-latest) (push) Has been cancelled
Check / build (build:app, 18.x, ubuntu-latest) (push) Has been cancelled
Check / build (build:app, 18.x, windows-latest) (push) Has been cancelled
Check / build (build:mp-weixin, 18.x, ubuntu-latest) (push) Has been cancelled
Check / build (build:mp-weixin, 18.x, windows-latest) (push) Has been cancelled
This commit is contained in:
commit
9e2daf8b2e
@ -16,9 +16,9 @@
|
||||
</div>
|
||||
<div v-show="props?.manageType == 'removeMembers'" class="my-self">
|
||||
<div class="my-self-left">
|
||||
<image style="width: 72rpx;border-radius: 50%;" :src="mySelfMember.avatar" mode="widthFix"></image>
|
||||
<image style="width: 72rpx;border-radius: 50%;height: 72rpx;" :src="mySelfMember.avatar" mode=""></image>
|
||||
<div style="padding: 0 20rpx;">{{mySelfMember.nickname}}</div>
|
||||
<img style="width: 66rpx;" src="@/static/image/chatSettings/is-mine.png" />
|
||||
<img style="width: 45rpx;" src="@/static/image/chatSettings/is-mine.png" />
|
||||
</div>
|
||||
|
||||
<div class="my-self-right">
|
||||
|
@ -3,9 +3,8 @@
|
||||
<div class="root">
|
||||
<ZPaging ref="zPaging" :show-scrollbar="false">
|
||||
<template #top>
|
||||
<customNavbar class="tmNavBar" :title="$t('complaint.title')"></customNavbar>
|
||||
<customNavbar :title="$t('complaint.title')"></customNavbar>
|
||||
</template>
|
||||
|
||||
<!-- 投诉主体内容 -->
|
||||
<view class="complaint-container">
|
||||
<!-- 投诉类型选择 -->
|
||||
@ -97,6 +96,7 @@
|
||||
|
||||
|
||||
<script setup>
|
||||
import ZPaging from '@/uni_modules/z-paging/components/z-paging/z-paging.vue'
|
||||
import {
|
||||
ref
|
||||
} from 'vue';
|
||||
@ -163,6 +163,12 @@
|
||||
sourceType: ['album', 'camera'],
|
||||
success: (res) => {
|
||||
imageList.value = [...imageList.value, ...res.tempFilePaths];
|
||||
if (imageList.value.length > 9) {
|
||||
uni.showToast({
|
||||
title: `最多只能选择9张图片`,
|
||||
icon: 'none'
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
@ -222,7 +222,7 @@
|
||||
|
||||
//点击发起群聊
|
||||
const handleConfirm = async () => {
|
||||
// console.log(allChooseMembers.value)
|
||||
console.log(allChooseMembers.value)
|
||||
let erp_ids = ''
|
||||
if (allChooseMembers?.value?.length > 0) {
|
||||
allChooseMembers?.value?.forEach((ele) => {
|
||||
@ -274,46 +274,7 @@
|
||||
}
|
||||
//发起群聊按钮可点击状态
|
||||
const confirmBtnStatus = computed(() => {
|
||||
// 基础检查:群名称为空或未选择群类型
|
||||
if (
|
||||
groupName.value === '' ||
|
||||
(groupActiveIndex.value && groupActiveIndex.value === -1) ||
|
||||
(!groupActiveIndex.value && groupActiveIndex.value !== 0)
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// 检查是否包含自己
|
||||
const includesSelf = allChooseMembers.value?.some(member => member.ID === userInfo.value.ID);
|
||||
const memberCount = allChooseMembers.value?.length || 0;
|
||||
|
||||
// 新逻辑:人数检查
|
||||
if (includesSelf && memberCount < 3) {
|
||||
return true; // 包含自己但总人数<3 → 禁用
|
||||
}
|
||||
if (!includesSelf && memberCount < 2) {
|
||||
return true; // 不包含自己且人数<2 → 禁用
|
||||
}
|
||||
|
||||
// 原有群类型特定检查
|
||||
let disabledT = false;
|
||||
switch (groupActiveIndex.value) {
|
||||
case 0: // 第一种群类型
|
||||
// 人数检查已在上方处理,这里不需要重复
|
||||
break;
|
||||
case 1: // 第二种群类型
|
||||
if (!depCheckedKeys.value.length || !groupAdmins.value.length) {
|
||||
disabledT = true;
|
||||
}
|
||||
break;
|
||||
case 2: // 第三种群类型
|
||||
// 人数检查已在上方处理,这里不需要重复
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return disabledT;
|
||||
return groupActiveIndex.value === -1;
|
||||
});
|
||||
|
||||
onShow(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user