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

This commit is contained in:
liwenhao 2025-04-11 15:54:50 +08:00
commit 9e2daf8b2e
3 changed files with 12 additions and 45 deletions

View File

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

View File

@ -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'
});
}
}
});
};

View File

@ -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(() => {