5.5号
This commit is contained in:
parent
af7f967d39
commit
ef29aebf9c
@ -234,6 +234,7 @@ function selectItem(item: any) {
|
|||||||
(item: IContactInfoType) => (item as Friend)?.userID === (currentContactInfo.value as Friend)?.userID,
|
(item: IContactInfoType) => (item as Friend)?.userID === (currentContactInfo.value as Friend)?.userID,
|
||||||
);
|
);
|
||||||
} else if ((currentContactInfo.value as IGroupModel)?.groupID) {
|
} else if ((currentContactInfo.value as IGroupModel)?.groupID) {
|
||||||
|
|
||||||
targetListItem = contactListMap.value?.groupList?.list?.find(
|
targetListItem = contactListMap.value?.groupList?.list?.find(
|
||||||
(item: IContactInfoType) => (item as IGroupModel)?.groupID === (currentContactInfo.value as IGroupModel)?.groupID,
|
(item: IContactInfoType) => (item as IGroupModel)?.groupID === (currentContactInfo.value as IGroupModel)?.groupID,
|
||||||
);
|
);
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<!-- <div></div> -->
|
||||||
<SelectUser
|
<SelectUser
|
||||||
:isRadio="selectOptions.isRadio"
|
:isRadio="selectOptions.isRadio"
|
||||||
:isNeedSearch="selectOptions.isNeedSearch"
|
:isNeedSearch="selectOptions.isNeedSearch"
|
||||||
@ -55,8 +56,9 @@ watchEffect(() => {
|
|||||||
generateSearchServer(params.isNeedSearch);
|
generateSearchServer(params.isNeedSearch);
|
||||||
}
|
}
|
||||||
TUIFriendService.getFriendList().then((res: any) => {
|
TUIFriendService.getFriendList().then((res: any) => {
|
||||||
friendList.value = res.data.map((item: any) => item.profile);
|
|
||||||
userList.value = friendList.value;
|
// friendList.value = res.data.map((item: any) => item.profile);
|
||||||
|
userList.value = res.data;
|
||||||
|
|
||||||
}).catch((err: any) => {
|
}).catch((err: any) => {
|
||||||
console.warn('getFriendList error:', err);
|
console.warn('getFriendList error:', err);
|
||||||
|
@ -57,8 +57,8 @@
|
|||||||
generateSearchServer(params.isNeedSearch);
|
generateSearchServer(params.isNeedSearch);
|
||||||
}
|
}
|
||||||
TUIFriendService.getFriendList().then((res: any) => {
|
TUIFriendService.getFriendList().then((res: any) => {
|
||||||
friendList.value = res.data.map((item: any) => item.profile);
|
// friendList.value = res.data.map((item: any) => item.profile);
|
||||||
userList.value = friendList.value;
|
userList.value =res.data;
|
||||||
}).catch((err: any) => {
|
}).catch((err: any) => {
|
||||||
console.warn('getFriendList error:', err);
|
console.warn('getFriendList error:', err);
|
||||||
});
|
});
|
||||||
|
@ -368,6 +368,7 @@ TUIStore.watch(StoreName.GRP, {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
currentGroupMemberList: (memberList: IGroupMember[]) => {
|
currentGroupMemberList: (memberList: IGroupMember[]) => {
|
||||||
|
console.log('memberList', memberList);
|
||||||
groupMemberList.value = memberList;
|
groupMemberList.value = memberList;
|
||||||
member.value = {
|
member.value = {
|
||||||
admin: [],
|
admin: [],
|
||||||
@ -549,7 +550,8 @@ const toggleMask = async (type?: string) => {
|
|||||||
|
|
||||||
const friendList = async () => {
|
const friendList = async () => {
|
||||||
const imResponse = await TUIFriendService.getFriendList();
|
const imResponse = await TUIFriendService.getFriendList();
|
||||||
const friendList = imResponse.data.map((item: any) => item?.profile);
|
// const friendList = imResponse.data.map((item: any) => item?.profile);
|
||||||
|
const friendList = imResponse.data
|
||||||
return friendList.filter(
|
return friendList.filter(
|
||||||
(item: any) =>
|
(item: any) =>
|
||||||
!userInfo.value.list.some(
|
!userInfo.value.list.some(
|
||||||
|
@ -139,6 +139,7 @@ const selfValue = ref<IGroupSelfInfo>({});
|
|||||||
watchEffect(() => {
|
watchEffect(() => {
|
||||||
totalMember.value = props.total;
|
totalMember.value = props.total;
|
||||||
isShowDeleteBtn.value = props.isShowDel;
|
isShowDeleteBtn.value = props.isShowDel;
|
||||||
|
console.log('-------------', props.list);
|
||||||
memberList.value = props.list as Array<IGroupMember>;
|
memberList.value = props.list as Array<IGroupMember>;
|
||||||
selfValue.value = props.self;
|
selfValue.value = props.self;
|
||||||
});
|
});
|
||||||
|
@ -50,7 +50,6 @@ const props = defineProps({
|
|||||||
default: 0,
|
default: 0,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const reset = () => {
|
const reset = () => {
|
||||||
emits('complete', [],0);
|
emits('complete', [],0);
|
||||||
};
|
};
|
||||||
|
@ -79,7 +79,7 @@
|
|||||||
"
|
"
|
||||||
onerror="this.onerror=null;this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"
|
onerror="this.onerror=null;this.src='https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_21.png'"
|
||||||
/>
|
/>
|
||||||
<span class="name">{{ item.nick || item.userID }}</span>
|
<span class="name">{{ item.remark || item.userID }}</span>
|
||||||
<span v-if="item.isDisabled"
|
<span v-if="item.isDisabled"
|
||||||
>({{ TUITranslateService.t("component.已在群中") }})</span
|
>({{ TUITranslateService.t("component.已在群中") }})</span
|
||||||
>
|
>
|
||||||
@ -251,6 +251,7 @@ watchEffect(() => {
|
|||||||
// eslint-disable-next-line vue/no-mutating-props
|
// eslint-disable-next-line vue/no-mutating-props
|
||||||
props.list.splice(index, 1);
|
props.list.splice(index, 1);
|
||||||
}
|
}
|
||||||
|
console.log("++++++++++", props.list);
|
||||||
transferList.value = props.list as ITransferListItem[];
|
transferList.value = props.list as ITransferListItem[];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -4,7 +4,7 @@ const TUIContact = {
|
|||||||
"群聊通知": "群聊通知",
|
"群聊通知": "群聊通知",
|
||||||
"系统通知": "系统通知",
|
"系统通知": "系统通知",
|
||||||
"我的群聊": "我的群聊",
|
"我的群聊": "我的群聊",
|
||||||
"输入ID": "请输入用户/群聊 ID,回车搜索",
|
"输入ID": "请输入用户手机号回车搜索",
|
||||||
"群名称": "群名称",
|
"群名称": "群名称",
|
||||||
"群ID": "群ID",
|
"群ID": "群ID",
|
||||||
"加入群聊": "加入群聊",
|
"加入群聊": "加入群聊",
|
||||||
|
@ -18,6 +18,11 @@ const dev = {
|
|||||||
};
|
};
|
||||||
// 生产环境
|
// 生产环境
|
||||||
const prod = {
|
const prod = {
|
||||||
|
// common: "http://192.168.1.211:8890",
|
||||||
|
// buyer: "http://192.168.1.211:8888",
|
||||||
|
// vlog: "http://192.168.1.211:8099",
|
||||||
|
// web: "http://192.168.1.211:8099",
|
||||||
|
// seller: "http://192.168.1.211:8889",
|
||||||
// common: "http://192.168.1.211:8890",
|
// common: "http://192.168.1.211:8890",
|
||||||
// buyer: "http://192.168.1.211:8888",
|
// buyer: "http://192.168.1.211:8888",
|
||||||
common: "http://43.143.227.203:8890",
|
common: "http://43.143.227.203:8890",
|
||||||
|
@ -224,11 +224,11 @@ export default {
|
|||||||
applyThird(params)
|
applyThird(params)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
// uni.showToast({
|
uni.showToast({
|
||||||
// title: "请正确输入",
|
title: "提交成功",
|
||||||
// icon: "none",
|
icon: "none",
|
||||||
// duration: 1500,
|
duration: 1500,
|
||||||
// });
|
});
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/tabbar/user/my",
|
url: "/pages/tabbar/user/my",
|
||||||
|
@ -377,10 +377,10 @@ export default {
|
|||||||
if (
|
if (
|
||||||
this.form.legalPhoto != "" &&
|
this.form.legalPhoto != "" &&
|
||||||
this.form.legalId != "" &&
|
this.form.legalId != "" &&
|
||||||
this.form.legalName != ""
|
this.form.legalName != "" &&
|
||||||
|
this.form.linkName!= "" &&
|
||||||
|
this.form.linkPhone!= ""
|
||||||
) {
|
) {
|
||||||
console.log(params,'========');
|
|
||||||
|
|
||||||
applyFirst(params)
|
applyFirst(params)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.data.success) {
|
if (res.data.success) {
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -3,9 +3,6 @@ import {
|
|||||||
refreshTokenFn
|
refreshTokenFn
|
||||||
} from "@/api/login.js";
|
} from "@/api/login.js";
|
||||||
import storage from "@/utils/storage.js";
|
import storage from "@/utils/storage.js";
|
||||||
import {
|
|
||||||
logout
|
|
||||||
} from '@/api/login';
|
|
||||||
import {
|
import {
|
||||||
md5
|
md5
|
||||||
} from "@/utils/md5.js";
|
} from "@/utils/md5.js";
|
||||||
@ -208,30 +205,28 @@ http.interceptors.response.use(
|
|||||||
(response.statusCode == 200 && !response.data.success) ||
|
(response.statusCode == 200 && !response.data.success) ||
|
||||||
response.statusCode == 400
|
response.statusCode == 400
|
||||||
) {
|
) {
|
||||||
if (response.data.message) {
|
if (response.data.code == 408) {
|
||||||
if (response.data.code == 408) {
|
uni.showModal({
|
||||||
uni.showModal({
|
title: '提示',
|
||||||
title: '提示',
|
content: response.data.message,
|
||||||
content: response.data.message,
|
showCancel: false,
|
||||||
showCancel: false,
|
success() {
|
||||||
success() {
|
logout().then(() => {
|
||||||
logout().then(() => {
|
cleanStorage();
|
||||||
cleanStorage();
|
});
|
||||||
});
|
}
|
||||||
}
|
})
|
||||||
})
|
uni.showToast({
|
||||||
uni.showToast({
|
title: response.data.message,
|
||||||
title: response.data.message,
|
icon: "none",
|
||||||
icon: "none",
|
duration: 1500,
|
||||||
duration: 1500,
|
});
|
||||||
});
|
} else {
|
||||||
} else {
|
uni.showToast({
|
||||||
uni.showToast({
|
title: response.data.message,
|
||||||
title: response.data.message,
|
icon: "none",
|
||||||
icon: "none",
|
duration: 1500,
|
||||||
duration: 1500,
|
});
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} else if (response.data.code == 502) {
|
} else if (response.data.code == 502) {
|
||||||
cleanStorage();
|
cleanStorage();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user