diff --git a/App.vue b/App.vue
index b6310ac..4fa257a 100644
--- a/App.vue
+++ b/App.vue
@@ -32,16 +32,16 @@
// keepAlive = uni.requireNativePlugin('Ba-KeepAlive');
// #endif
export default {
- async created() {
+ created() {
// #ifdef APP-PLUS
- await db.createDatabase()
+ db.createDatabase()
- await homeData.createTalbe();
- await getSystemInfo.createTalbe();
- await getMessageList.createTalbe();
- await groupInfo.createTalbe();
- await groupUserList.createTalbe();
- await getUserInfo.createTalbe();
+ homeData.createTalbe();
+ getSystemInfo.createTalbe();
+ getMessageList.createTalbe();
+ groupInfo.createTalbe();
+ groupUserList.createTalbe();
+ getUserInfo.createTalbe();
// #endif
// console.info('1111111');
},
@@ -155,6 +155,7 @@
this.socketIo.traderDetailIndex = 100 // 初始化 tabIndex
},
onShow: function() {
+ uni.setStorageSync('FileImg',false)
// #ifdef APP-PLUS
// 判断平台,如果是安卓就检测保活插件
if (uni.getSystemInfoSync().platform === 'android' && keepAlive) {
@@ -381,6 +382,12 @@
case 'simple':
case 'group':
// 只要不是自己发的,才可以播放声音
+ // if(data.user_id==userInfo.user_id&&data.type=="text"&&res['type']=='simple'&&data.fromUser.id!=="-2"){
+ // const list = []
+ // list.push(data)
+ // this.insertdata(list)
+ // // console.log('123456');
+ // }
if (data.fromUser.id != userInfo.user_id) {
const contact = msgStore.getContact(data.toContactId,data);
// 如果开启了声音才播放
@@ -428,8 +435,9 @@
}
})
- // console.log(list);
+ console.log(list);
this.insertdata(list)
+ uni.$emit('initContacts', true)
// #endif
}
this.appendMessage(res);
@@ -488,12 +496,14 @@
this.deleteList1('user')
// #endif
break;
+ uni.$emit('initContacts', true)
// 删除群主消息
case "delGroupAllMsg":
// #ifdef APP-PLUS
this.deleteList1('group')
// #endif
break;
+ uni.$emit('initContacts', true)
case "delMessageAll":
// #ifdef APP-PLUS
if(data.form_user){
@@ -506,7 +516,10 @@
// #endif
break;
case "delSystemAllMsg":
+ uni.$emit('initContacts', true)
+ // #ifdef APP-PLUS
this.delAllMsg()
+ // #endif
break;
// 修改群组名称
case "editGroupName":
@@ -642,6 +655,21 @@
console.error('获取目录失败:', error);
}
});
+ // 删除 emoji 文件夹
+ docDir.getDirectory('emoji', { create: false }, (emojiDir) => {
+ emojiDir.removeRecursively(() => {
+ console.log('emoji 文件夹删除成功')
+ uni.setStorageSync('FileImg',false);
+ },(error) => {
+ console.error('emoji 文件夹删除失败:', error)
+ });
+ }, (error) => {
+ if (error.code === 1) {
+ console.log('emoji 文件夹不存在,无需删除');
+ } else {
+ console.error('获取 emoji 文件夹失败:', error);
+ }
+ });
}, function(error) {
console.error('无法访问 _doc 目录:', error);
});
diff --git a/api/message.js b/api/message.js
index 71381ef..0adc35e 100644
--- a/api/message.js
+++ b/api/message.js
@@ -363,4 +363,9 @@ msgApi.getAdminNotice= (params) =>{
msgApi.viewOriginalImage= (params) =>{
return postJsonRequest('enterprise/files/viewOriginalImage', params)
}
+
+// 获取邀请好友邀请码
+msgApi.getMoveInviteLink= (params) =>{
+ return postJsonRequest('enterprise/friend/getMoveInviteLink', params)
+}
export default msgApi;
diff --git a/components/cu-custom.vue b/components/cu-custom.vue
index 5f8a3fd..95614b6 100644
--- a/components/cu-custom.vue
+++ b/components/cu-custom.vue
@@ -26,7 +26,7 @@
data() {
return {
StatusBar: this.StatusBar,
- CustomBar: this.CustomBar
+ CustomBar: this.CustomBar?this.CustomBar:45
};
},
name: 'custom',
diff --git a/components/message/im-input.vue b/components/message/im-input.vue
index 4bd59d0..14f3311 100644
--- a/components/message/im-input.vue
+++ b/components/message/im-input.vue
@@ -4,9 +4,9 @@
-
+
+
-
+
+
+
+
+
+
+
-
+
+
+
+
+
+
diff --git a/pages/compass/friendscircledetails.vue b/pages/compass/friendscircledetails.vue
index 0d42296..e64e3f2 100644
--- a/pages/compass/friendscircledetails.vue
+++ b/pages/compass/friendscircledetails.vue
@@ -3,13 +3,13 @@
详情
-
+
-
-
+
+
@@ -69,12 +69,16 @@
-
-
-
- {{item.likes.length}}
- {{item.comment.length}}
- 删除
+
+ {{item.privacy_describe == '公开'?'':item.privacy_describe}}
+
+
+
+
+ {{item.likes.length}}
+ {{item.comment.length}}
+ 删除
+
@@ -92,7 +96,7 @@
-
+
@@ -189,6 +193,7 @@
refreshing: false,
status: 'more',//状态
inputMsg:'',
+ bool: 0,
//显示的状态
contentText: {
contentdown: '查看更多',
@@ -220,10 +225,14 @@
}
});
this.emojiMap=emojiMap;
+ this.page = 1;
+ this.wechatMomentsList();
},
onShow() {
- this.page = 1
- this.wechatMomentsList()
+ if(this.bool==1){
+ this.page = 1;
+ this.wechatMomentsList();
+ }
},
methods: {
onRefresh() {
@@ -274,6 +283,7 @@
res.location = location
res.content = res.content.replace(/\n/g, '
')
})
+ this.bool = 0
if (this.page === 1) {
this.list = res.data
} else {
@@ -298,11 +308,13 @@
// console.log('已触发底部事件');
},
tomoments(){
+ this.bool = 1;
uni.navigateTo({
url:'/pages/compass/sendtoMoments'
})
},
tonotice(){
+ this.bool = 1;
uni.navigateTo({
url:'/pages/compass/Informationdetails'
})
diff --git a/pages/compass/personalcircleoffriends.vue b/pages/compass/personalcircleoffriends.vue
index afc5571..ddb6f88 100644
--- a/pages/compass/personalcircleoffriends.vue
+++ b/pages/compass/personalcircleoffriends.vue
@@ -41,13 +41,13 @@
-
+
{{ formatTime(item.create_time) }}
-
+
@@ -59,7 +59,7 @@
-
+
@@ -310,4 +310,12 @@
left: 50%;
padding: 0 4rpx 0 6rpx;
}
+.container {
+ display: -webkit-box;
+ -webkit-box-orient: vertical;
+ -webkit-line-clamp: 5; /* 根据行高计算,约5行(假设行高20px) */
+ overflow: hidden;
+ text-overflow: ellipsis;
+ max-height: 100px; /* 最大高度限制 */
+}
\ No newline at end of file
diff --git a/pages/compass/sendtoMoments.vue b/pages/compass/sendtoMoments.vue
index a1f6cab..379c163 100644
--- a/pages/compass/sendtoMoments.vue
+++ b/pages/compass/sendtoMoments.vue
@@ -202,11 +202,11 @@
list.push(res.user_id)
})
uni.navigateTo({
- url: `/pages/index/userSelection?type=${5}&user_ids=${JSON.stringify(list)}`
+ url: `/pages/index/userSelection?type=${5}&user_ids=${JSON.stringify(list)}&num=${1}`
})
}else{
uni.navigateTo({
- url: `/pages/index/userSelection?type=${5}`
+ url: `/pages/index/userSelection?type=${5}&num=${1}`
// url: '/pages/index/userSelection?type='+type+'&contact_id=' + this.contact.id
})
}
@@ -219,11 +219,11 @@
list1.push(res.user_id)
})
uni.navigateTo({
- url: `/pages/index/userSelection?type=${6}&user_ids=${JSON.stringify(list1)}`
+ url: `/pages/index/userSelection?type=${6}&user_ids=${JSON.stringify(list1)}&num=${1}`
})
}else{
uni.navigateTo({
- url: `/pages/index/userSelection?type=${6}`
+ url: `/pages/index/userSelection?type=${6}&num=${1}`
// url: '/pages/index/userSelection?type='+type+'&contact_id=' + this.contact.id
})
}
@@ -328,7 +328,7 @@
this.positioningList.content = res.data.location_address
this.params.posts_id = res.data.posts_id
this.params.privacy = res.data.privacy
- if(res.data.files[0].type==1){
+ if(res.data.files[0]&&res.data.files[0].type==1){
this.img_arr1 = res.data.files
}else{
this.img_arr1 = res.data.files
@@ -344,7 +344,7 @@
this.user2 = res.data.privacy_user
uni.setStorageSync('selectUser1', this.user2);
}
- // console.log(res);
+ console.log(res.data.privacy);
// this.list = res.data
}
})
diff --git a/pages/contacts/detail.vue b/pages/contacts/detail.vue
index b4ad7e5..3774ff6 100644
--- a/pages/contacts/detail.vue
+++ b/pages/contacts/detail.vue
@@ -10,7 +10,7 @@
-
+
{{detail.friend?.nickname?detail.friend.nickname:detail.realname}}
{{detail.account}}
@@ -21,7 +21,7 @@
备注
-
+
{{detail.friend.nickname || '未设置'}}
@@ -31,7 +31,7 @@
昵称
-
+
{{detail.realname}}
@@ -40,7 +40,7 @@
邮箱
-
+
{{detail.email ?? ''}}
@@ -49,7 +49,7 @@
性别
-
+
{{ sex(detail.sex)}}
@@ -58,7 +58,7 @@
IP
-
+
{{ detail.last_login_ip || "未知"}} ({{detail.location || "未知"}})
未知
@@ -68,7 +68,7 @@
朋友圈
-
+
@@ -149,6 +149,7 @@
}
},
onLoad(options) {
+ uni.setStorageSync('detailrefresh',1);
const _this = this
this.network_log = uni.getStorageSync('network_log')
if(_this.network_log == 'none'){
@@ -168,7 +169,9 @@
this.detail=res.data;
const list = []
list.push(res.data)
+ // #ifdef APP-PLUS
this.insertUserInfo(list)
+ // #endif
}
})
},
@@ -264,14 +267,14 @@
if (res.confirm) {
if(res.content==''){
return uni.showToast({
- title:'请输入备注!',
- icon:'error'
+ title:'请输入验证信息!',
+ icon:'none'
})
}
this.$api.friendApi.addFriend({user_id:this.detail.user_id,remark:res.content}).then((e)=>{
if(e.code==0){
uni.showToast({
- title:e.msg,
+ title:'发送成功',
icon:'none'
})
this.getInfo()
diff --git a/pages/contacts/friend.vue b/pages/contacts/friend.vue
index 8fa5465..34a5762 100644
--- a/pages/contacts/friend.vue
+++ b/pages/contacts/friend.vue
@@ -14,7 +14,7 @@
-
+
{{x.create_user_info.realname}} 申请添加您为好友
@@ -48,7 +48,22 @@
-
+
+
+
+ X
+
+
+ 提示
+ 你确定同意该好友的请求吗
+
+
+
+ 拒绝
+ 接受
+
+
+
@@ -69,6 +84,7 @@
current: 0,
list: [],
total:0,
+ friend_id:0,
params: {
page: 1,
limit: 10,
@@ -82,6 +98,9 @@
this.getList();
},
methods: {
+ close(){
+ this.$refs.inputDialog.close()
+ },
getList(){
this.$api.friendApi.applyList(this.params).then((res)=>{
if(res.code==0){
@@ -115,36 +134,85 @@
url:"/pages/contacts/search"
})
},
- optApply(x){
- uni.showModal({
- title: '提示',
- content:"你确定同意该好友的请求吗",
- cancelText:"拒绝",
- cancelColor:'#e54d42',
- confirmText:"接受",
- success: (res)=>{
- let status=0;
- if (res.confirm) {
- status=1
- }
- this.$api.friendApi.acceptApply({friend_id:x.friend_id,status:status}).then((e)=>{
- if(e.code==0){
- uni.showToast({
- title:'添加好友成功',
- icon:'none'
- })
- msgStore.sysUnread--;
- this.getList();
- }
+ accept(){
+ this.$api.friendApi.acceptApply({friend_id:this.friend_id,status:1}).then((e)=>{
+ if(e.code==0){
+ uni.showToast({
+ title:'添加好友成功',
+ icon:'none'
})
+ msgStore.sysUnread--;
+ this.getList();
+ this.$refs.inputDialog.close()
}
})
+ },
+ reject(){
+ this.$api.friendApi.acceptApply({friend_id:this.friend_id,status:0}).then((e)=>{
+ if(e.code==0){
+ uni.showToast({
+ title:'已拒绝',
+ icon:'none'
+ })
+ msgStore.sysUnread--;
+ this.getList();
+ this.$refs.inputDialog.close()
+ }
+ })
+ },
+ optApply(x){
+ this.$refs.inputDialog.open();
+ this.friend_id = x.friend_id;
+ // uni.showModal({
+ // title: '提示',
+ // content:"你确定同意该好友的请求吗",
+ // cancelText:"拒绝",
+ // cancelColor:'#e54d42',
+ // confirmText:"接受",
+ // success: (res)=>{
+ // let status=0;
+ // if (res.confirm) {
+ // status=1
+ // }
+ // this.$api.friendApi.acceptApply({friend_id:x.friend_id,status:status}).then((e)=>{
+ // if(e.code==0){
+ // uni.showToast({
+ // title:'添加好友成功',
+ // icon:'none'
+ // })
+ // msgStore.sysUnread--;
+ // this.getList();
+ // }
+ // })
+ // }
+ // })
}
}
}
-
\ No newline at end of file
diff --git a/pages/contacts/group.vue b/pages/contacts/group.vue
index 4019e6b..a635016 100644
--- a/pages/contacts/group.vue
+++ b/pages/contacts/group.vue
@@ -16,7 +16,7 @@
-
+
{{items.displayName}}
diff --git a/pages/contacts/index.vue b/pages/contacts/index.vue
index 116dc90..6e3f87d 100644
--- a/pages/contacts/index.vue
+++ b/pages/contacts/index.vue
@@ -51,7 +51,7 @@
-
+
{{items.displayName}}
diff --git a/pages/contacts/search.vue b/pages/contacts/search.vue
index bf060ee..cae0f48 100644
--- a/pages/contacts/search.vue
+++ b/pages/contacts/search.vue
@@ -25,8 +25,8 @@
{{items.realname}}
- 发消息
- 查看
+ 发消息
+ 查看
diff --git a/pages/index/search.vue b/pages/index/search.vue
index b59a514..cdfcd9f 100644
--- a/pages/index/search.vue
+++ b/pages/index/search.vue
@@ -15,12 +15,19 @@
联系人
@@ -108,5 +115,9 @@
\ No newline at end of file
diff --git a/pages/index/userSelection.vue b/pages/index/userSelection.vue
index 6b1afd8..aa1302b 100644
--- a/pages/index/userSelection.vue
+++ b/pages/index/userSelection.vue
@@ -7,7 +7,7 @@
{{type==3 ? '转发' : '完成'}}
-
+
@@ -34,7 +34,8 @@
relayState: false,
scrollLeft:300,
content:'',
- curMsg:{}
+ curMsg:{},
+ num:0
}
},
watch: {
@@ -57,6 +58,7 @@
this.type = options.type ? options.type : 1;
this.contact_id = options.contact_id ? options.contact_id : '';
this.content = options.content ? options.content : '';
+ this.num = options.num ? options.num : 0;
if (options.type == 2) {
this.title="添加成员";
// 调用上一页的方法刷新
@@ -78,9 +80,8 @@
// #endif
} else if (options.type == 4) {
this.title="选择提醒的人";
- } else if(options.type == 5){
+ } else if(options.type == 5&&options.user_ids){
this.user_ids = JSON.parse(options.user_ids)
- // console.log(this.user_ids);
}else if(options.type == 6){
if(options.user_ids){
this.user_ids = JSON.parse(options.user_ids)
diff --git a/pages/login/register.vue b/pages/login/register.vue
index 636be40..090578f 100644
--- a/pages/login/register.vue
+++ b/pages/login/register.vue
@@ -137,6 +137,7 @@
});
return false;
}
+ this.regForm.inviteCode = this.$route.query.inviteCode ?? ''
this.$api.LoginApi.register(this.regForm).then(res => {
if (res.code == 0) {
setTimeout(()=>{
diff --git a/pages/message/chat.vue b/pages/message/chat.vue
index 8f0851a..02e19c9 100644
--- a/pages/message/chat.vue
+++ b/pages/message/chat.vue
@@ -1,7 +1,7 @@
-
+
-
-
+
+
-
+
{{stripHtmlTags(item.content)}}
- 重新编辑
+ 重新编辑
@@ -38,7 +39,7 @@
- {{item.fromUser.realname1?item.fromUser.realname1:item.fromUser.displayName}}
+ {{item.fromUser.realname1?item.fromUser.realname1:item.fromUser.displayName}}
{{sendTime(item.sendTime)}}
@@ -46,10 +47,10 @@
-
+
-
-
+
+
@@ -140,7 +141,7 @@
-
+
@@ -156,7 +157,7 @@
-
+
@@ -206,7 +207,8 @@
取消
复制
-
+
+
@@ -225,7 +227,8 @@
提到我的人
已读
-
+
+
@@ -409,10 +412,11 @@
onLoad(options){
// 清空消息列表,避免串台
msgStore.msgList=[];
- let bgInfo=uni.getStorageSync('chat-bg-info'+options.id);
+ let bgInfo=uni.getStorageSync('chat-bg-info'+options.id+this.user.user_id);
if(bgInfo){
this.bgInfo=bgInfo;
}
+ // console.log('123',this.bgInfo);
// 获取当前联系人信息
let data=msgStore.getContact(options.id);
if(!data){
@@ -438,7 +442,9 @@
this.is_group = data.is_group;
this.network_log = uni.getStorageSync('network_log')
+ // console.log(this.network_log);
if(this.network_log == 'none'){
+ this.getchatList()
this.getImagePath()
if(this.is_group==1){
@@ -696,9 +702,15 @@
return true;
},
onShow(){
+ const detailrefresh = uni.getStorageSync('detailrefresh')
+ if(detailrefresh==1){
+ this.getMessageList();
+ uni.removeStorageSync('detailrefresh')
+ }
// 检测ws是否还在线
this.socketIo.send({type:'ping'});
const _this = this
+ this.network_log = uni.getStorageSync('network_log')
// console.log('1230',_this.network_log == 'none');
if(_this.network_log !== 'none'){
// _this.getchatList()
@@ -707,7 +719,7 @@
// _this.obtainGroupInfo()
// }
// }else{
- this.getMessageList();
+ // this.getMessageList();
if(this.is_group==1){
this.getGroupInfo();
}
@@ -935,11 +947,13 @@
// if(this.moreData){
// this.loading='loading';
this.page = pageNo
- if(this.network_log == 'none'){
- _this.getchatList()
- }else{
- _this.getMessageList();
- // _this.getchatList()
+ if(this.page>1){
+ if(this.network_log == 'none'){
+ _this.getchatList()
+ }else{
+ _this.getMessageList();
+ // _this.getchatList()
+ }
}
// }
// }
@@ -1340,16 +1354,18 @@
message.toContactId=this.contact.id;
message.is_group=this.contact.is_group;
// console.log(message);
- if(!isReSend&&message.fromUser.id!=="-2"&&message.type!=='emoji'){
+ if(!isReSend&&message.fromUser.id!=="-2"){
+ // &&message.type!=='emoji'
this.messageList.unshift(message);
}
// console.log(imgSrcs);
this.scrollToBottom();
let fileTypes = ["image", "file", "video",'voice'];
let simpleType=['text','location','contact','emoji'];
- if(message.imgid==1){
+ if(message.imgid==1||isReSend==true&&message.type!=='text'&&message.type!=='location'&&message.type!=='contact'&&message.type!=='emoji'){
var self1=this;
- this.$api.msgApi.uploadFileImage({image_url:message.content,message:JSON.stringify(message)}).then((res) => {
+ console.log(message);
+ this.$api.msgApi.uploadFileImage({image_url:message.content,message:JSON.stringify(message),type:message.type=='image'?'image':'file'}).then((res) => {
// console.log('123456',res);
this.updateMessage(res.data);
const list = []
@@ -1416,10 +1432,11 @@
this.insertdata(list)
// #endif
this.updateMessage(res.data);
- // console.log('123456',res.data);
+ // console.log('123456',res);
}else if(res.code==401){
// 删除最后一条信息
- this.messageList.pop();
+ // this.messageList.pop();
+ this.messageList.shift();
//已开启禁言
uni.showToast({
title: res.msg,
@@ -1480,7 +1497,8 @@
// #endif
}else if(res.code==401){
// 删除最后一条信息
- this.messageList.pop();
+ // this.messageList.pop();
+ this.messageList.shift();
//已开启禁言
uni.showToast({
title: res.msg,
@@ -1916,4 +1934,14 @@ page{
.transform180{
transform: rotateY(180deg);
}
+ .backsize{
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: 100vw;
+ height: 100vh;
+ background-size: cover; /* 确保图片覆盖整个容器 */
+ background-position: center; /* 图片居中显示 */
+ background-repeat: no-repeat; /* 不重复图片 */
+ }
diff --git a/pages/message/detail.vue b/pages/message/detail.vue
index db39fb0..5297fe7 100644
--- a/pages/message/detail.vue
+++ b/pages/message/detail.vue
@@ -43,9 +43,10 @@
群聊名称
-
- {{contact.displayName}}
+
+ {{contact.displayName}}
+
@@ -107,7 +108,7 @@
-->
-
+
加入黑名单
@@ -203,7 +204,7 @@
-
@@ -388,6 +389,7 @@
}
},
onShow() {
+ uni.setStorageSync('detailrefresh',1);
const _this = this
if(this.network_log == 'none'){
_this.Getchatinformation()
@@ -399,7 +401,7 @@
}
},
onLoad: function(options) {
- let bgInfo=uni.getStorageSync('chat-bg-info'+options.id);
+ let bgInfo=uni.getStorageSync('chat-bg-info'+options.id+this.userInfo.user_id);
if(bgInfo){
this.bgInfo=bgInfo;
}
@@ -552,7 +554,7 @@
},
setis_blacklist(e,id){
this.contactUser.is_blacklist=e.detail.value ? 1 : 0;
- this.$api.msgApi.isBlacklist({friend_user_id:id}).then( res =>{
+ this.$api.msgApi.isBlacklist({friend_user_id:id||this.contact_id}).then( res =>{
if(res.code==400){
this.contactUser.is_blacklist = 0
}
@@ -575,6 +577,13 @@
})
},
editGroupName(e){
+ if(e.trim() === ""){
+ uni.showToast({
+ title:'请输入正确的群聊名称',
+ icon:'none'
+ })
+ return
+ }
this.$api.msgApi.editGroupName({id:this.contact.id,displayName:e}).then( res =>{
if(res.code!==400){
this.contact.displayName=e;
@@ -834,7 +843,7 @@
// this.contact_id
if(this.contact.role<3 || this.contact.setting.profile=='1' || friend){
uni.navigateTo({
- url:"/pages/contacts/detail?id="+item.id
+ url:"/pages/contacts/detail?id="+(item.id||this.contact_id)
})
}else{
uni.showToast({
@@ -846,7 +855,7 @@
},
setFilter(e){
this.bgInfo.filter=e.detail.value ? true : false;
- uni.setStorageSync('chat-bg-info'+this.contact.id,this.bgInfo)
+ uni.setStorageSync('chat-bg-info'+this.contact.id+this.userInfo.user_id,this.bgInfo)
},
chooseImg(){
uni.chooseImage({
@@ -860,7 +869,7 @@
tempFilePath:item.path,
success:(res)=>{
this.bgInfo.image=res.savedFilePath;
- uni.setStorageSync('chat-bg-info'+this.contact.id,this.bgInfo)
+ uni.setStorageSync('chat-bg-info'+this.contact.id+this.userInfo.user_id,this.bgInfo)
uni.showToast({
title:'设置成功,重新进入聊天后生效',
icon:'none'
@@ -873,7 +882,7 @@
},
removeBg(){
this.bgInfo.image='';
- uni.setStorageSync('chat-bg-info'+this.contact.id,'')
+ uni.setStorageSync('chat-bg-info'+this.contact.id+this.userInfo.user_id,'')
},
onDeleterecord(){
const removeval = {group_id:this.contact.is_group==1?this.contact.id:'',form_user:this.userInfo.user_id,to_user:this.contact.id}
diff --git a/pages/message/group/groupUser.vue b/pages/message/group/groupUser.vue
index 75aa332..9b53aed 100644
--- a/pages/message/group/groupUser.vue
+++ b/pages/message/group/groupUser.vue
@@ -41,7 +41,7 @@
- {{curUser.realname}}
+ {{curUser.realname}}
管理员
@@ -346,4 +346,10 @@
::v-deep uni-modal{
z-index: 1025;
}
+ .text-overflow{
+ width: 180px;
+ text-overflow: ellipsis;
+ overflow: hidden !important;
+ white-space: nowrap !important;
+ }
diff --git a/pages/message/record.vue b/pages/message/record.vue
index 6406465..2428e0d 100644
--- a/pages/message/record.vue
+++ b/pages/message/record.vue
@@ -33,14 +33,14 @@
- {{item.fromUser.realname}}
+ {{item.fromUser.displayName}}
{{sendTime(item.sendTime)}}
-
+
{{item.extends.content}}
@@ -82,7 +82,7 @@
-
+
{{item.content}}
@@ -155,6 +155,7 @@
import { useloginStore } from '@/store/login';
import { useMsgStore } from '@/store/message';
import { storeToRefs } from 'pinia';
+ import emoji from '@/utils/emoji.js';
// #ifdef APP-PLUS
import {getSavedImages1,getSavedImages2} from '@/utils/LocalFileSystemURL.js'
// #endif
@@ -242,6 +243,21 @@
return winHeight+18
}
},
+ created() {
+ let emojiMap=[];
+ // 解析所有表情
+ emoji.forEach(function (item) {
+ let child=item.children;
+ if(child.length>0){
+ child.forEach(function (val) {
+ let name=val.name;
+ let src=val.src;
+ emojiMap[name]=src;
+ })
+ }
+ });
+ this.emojiMap=emojiMap;
+ },
onLoad: function(options) {
this.network_log = uni.getStorageSync('network_log')
this.params.toContactId = options.id;
diff --git a/pages/mine/index.vue b/pages/mine/index.vue
index ce65173..c8a64b1 100644
--- a/pages/mine/index.vue
+++ b/pages/mine/index.vue
@@ -73,6 +73,15 @@
+
+
+
+
+ 邀请好友
+
+
+
+
@@ -185,6 +194,29 @@
url:"/pages/mine/doc"
})
},
+ wanttogo(){
+ this.$api.msgApi.getMoveInviteLink({}).then(res => {
+ // console.log(res);
+ if(res.code==0){
+ uni.setClipboardData({
+ data: res.data,
+ success: () => {
+ uni.showToast({
+ title: '复制成功',
+ icon: 'none'
+ });
+ },
+ fail: (err) => {
+ uni.showToast({
+ title: '复制失败',
+ icon: 'none'
+ });
+ console.error(err);
+ }
+ });
+ }
+ })
+ },
editInfo(){
uni.navigateTo({
url:"/pages/mine/profile"
diff --git a/pages/mine/profile.vue b/pages/mine/profile.vue
index c18b003..3c40897 100644
--- a/pages/mine/profile.vue
+++ b/pages/mine/profile.vue
@@ -114,8 +114,9 @@
})
return false
}
+ console.log(this.userInfo.email);
let pattern = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
- if(this.userInfo.email!='' && !pattern.test(this.userInfo.email)){
+ if(this.userInfo.email!='' && !pattern.test(this.userInfo.email)&&this.userInfo.email!=null&&this.userInfo.email!=undefined){
uni.showToast({
title:'请输入正确的邮箱',
icon:'none'
@@ -143,7 +144,7 @@
// 8秒后可以重新保存
setTimeout(()=>{
this.saved=false;
- },8000)
+ },2000)
},
setAvatar(){
uni.navigateTo({
diff --git a/static/css/main.css b/static/css/main.css
index 3603b7e..050f85b 100644
--- a/static/css/main.css
+++ b/static/css/main.css
@@ -2244,7 +2244,7 @@ button.cuIcon.lg {
.cu-card.dynamic>.cu-item>.text-content {
padding: 0 30upx 0;
- max-height: 6.4em;
+ /* max-height: 6.4em; */
overflow: hidden;
font-size: 30upx;
margin-bottom: 20upx;
diff --git a/uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox.vue b/uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox.vue
index 2e51712..e7eaa71 100644
--- a/uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox.vue
+++ b/uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox.vue
@@ -506,7 +506,8 @@
font-size: 14px;
color: #666;
margin-left: 5px;
- line-height: 14px;
+ // line-height: 14px;
+ line-height: 20px;
}
.checkobx__list {
diff --git a/utils/utils.js b/utils/utils.js
index 5b3a655..8235bba 100644
--- a/utils/utils.js
+++ b/utils/utils.js
@@ -888,6 +888,10 @@ const imageCoverStyle = (width,height) => {
newWidth= width;
newHeight = height;
}
+ if(typeof width=='string'||typeof height=='string'){
+ width = +width
+ height = +height
+ }
if(width>height){
newWidth= 200;
newHeight = 200/width*height;