内网开发

This commit is contained in:
2023-11-09 11:12:08 +08:00
parent 336bcc662b
commit 75000d846b
34 changed files with 2153 additions and 283 deletions

View File

@@ -3,6 +3,8 @@ import browser from '@/common/browser'
import store from '../store'
import pinyin from '@/common/pinyin.js';
import dayjs from "dayjs"
import localForage from 'localforage';
export default {
// 获取字典
@@ -992,13 +994,22 @@ export default {
}
titleObj.buttons[index].text = text;
currentWebview.setStyle({
titleNView: titleObj
titleNView: titleObj
});
// #endif
},
formatMessage(msg){
msg.pushType="MSG"
var msgType="TEXT"
var data = store.state.addressList
const fromUserData=data.find(item=>item.userId==msg.fromId)
console.log("*****************查找到通讯录中的数据*****************")
console.log("*****************查找到通讯录中的数据*****************")
console.log("*****************查找到通讯录中的数据*****************")
console.log(fromUserData)
const _data=JSON.parse(msg.messageBody)
// try{
// console.log("=======================formatMessage")
@@ -1022,7 +1033,7 @@ export default {
msg.fromInfo={
userId:msg.fromId,
userType:1,
nickName:msg.fromId,
nickName:fromUserData?fromUserData.realname:msg.fromId,
portrait:"https://shudong2022.oss-cn-hangzhou.aliyuncs.com/common/user/logo.png"
};
msg.groupInfo={};