diff --git a/src/components/dynamicList.wpy b/src/components/dynamicList.wpy
index 6ec4dcc..ba7b64e 100644
--- a/src/components/dynamicList.wpy
+++ b/src/components/dynamicList.wpy
@@ -242,13 +242,13 @@ scroll-view {
-
+
-
@@ -388,13 +388,12 @@ scroll-view {
return
}
vm.videoIndex = index
- vm.videoContext = wx.createVideoContext('video', vm.$wx)
+ vm.videoContext = wx.createVideoContext(`video-${index}`, vm.$wx)
vm.videoContext.requestFullScreen()
setTimeout(function() {
// 将点击视频进行播放
- vm.videoContext = wx.createVideoContext('video', vm.$wx)
vm.videoContext.play()
- }, 1200)
+ }, 500)
},
// 关闭视频
leaveVideo(e) {
diff --git a/src/components/uploadVideo.wpy b/src/components/uploadVideo.wpy
index cd9494a..6bae157 100644
--- a/src/components/uploadVideo.wpy
+++ b/src/components/uploadVideo.wpy
@@ -112,7 +112,7 @@ wepy.component({
console.log(filePathUrl, '上传成功')
let dataV2 = {
filePath: filePathUrl,
- type: type
+ type: filePath.split('.').pop().toLowerCase()
}
vm.uploadVideo = [dataV2]
diff --git a/src/pages/dynamic/issue.wpy b/src/pages/dynamic/issue.wpy
index e93176b..05234b5 100644
--- a/src/pages/dynamic/issue.wpy
+++ b/src/pages/dynamic/issue.wpy
@@ -283,7 +283,7 @@ page {
-
+
diff --git a/src/pages/home/singleSquare.wpy b/src/pages/home/singleSquare.wpy
index 6ca5be6..faa73c9 100644
--- a/src/pages/home/singleSquare.wpy
+++ b/src/pages/home/singleSquare.wpy
@@ -95,10 +95,10 @@ page {
-
- 上专区推荐,还可进入群聊,更容易脱单哦~
- 去申请
-
+
+
+
+
diff --git a/src/pages/news/chitchat.wpy b/src/pages/news/chitchat.wpy
index a5bec79..cdc88c0 100644
--- a/src/pages/news/chitchat.wpy
+++ b/src/pages/news/chitchat.wpy
@@ -563,7 +563,7 @@ page {
-
+
@@ -598,14 +598,14 @@ page {
{{audioTime + '"'}}
-
+
{{item.videoDur}}
-
+
@@ -710,7 +710,6 @@ wepy.page({
otherUserName: '',
otherUserReal: 0, // 对方是否真人认证
- chatInfoData: {},
reportShow: false, // 举报
throttle: true,
@@ -765,20 +764,6 @@ wepy.page({
msg: ''
},
methods: {
- // 获取对方是否认证,并且标记消息已读
- getChatInfo() {
- let vm = this
- let data = {user_id: `${vm.otherUserId}`}
- vm.$get({url: `${service.host}/app/chat/info`, data}).then(({code, data}) => {
- if (code === 0) {
- vm.chatInfoData = data
- }
- }).catch(err => {
- wx.hideLoading()
- console.log(err)
- })
- },
-
// 发送文本和表情包消息
send() {
let vm = this
@@ -885,49 +870,45 @@ wepy.page({
vm.openShow = false
vm.uploadState = true
vm.progressValue = 5
- try {
- app.globalData.nim.msg.sendVideoMsg({
- scene: 'p2p',
- to: vm.otherUserId,
- type: 'video',
- filePath: file,
- onUploadProgress: function (progress) {
- console.log(progress, '上传进度')
- vm.progressValue = progress.percentage
- },
- onSendBefore: function (msg) {
- console.log(msg, '上传完成,视频信息')
- vm.msgList.push({
- text: '',
- attach: vm.calculatePic(msg.attach, msg.type),
- id: `id_${msg.time}`,
- timestamp: msg.time,
- isSelf: true,
- avatar: vm.myAvatar,
- time: getTime(format(msg.time)),
- showTime: timeContrast(format(msg.time), vm.lastTime),
- videoDur: getVideoTime(msg.attach.dur),
- name: msg.fromNick,
- userId: msg.from,
- isSend: 1,
- msgType: 'video'
- })
- vm.lastTime = format(msg.time)
- vm.callbackSend('video')
- vm.$nextTick(() => {
- vm.toView = `id_${msg.time}`
- })
- // 防止视频撑开触发加载历史数据
- vm.$nextTick(() => {
- setTimeout(() => {
- vm.uploadState = false
- }, 500)
- })
- }
- })
- } catch (err) {
- vm.sendFileError()
- }
+ app.globalData.nim.msg.sendVideoMsg({
+ scene: 'p2p',
+ to: vm.otherUserId,
+ type: 'video',
+ filePath: file,
+ onUploadProgress: function (progress) {
+ console.log(progress, '上传进度')
+ vm.progressValue = progress.percentage
+ },
+ onSendBefore: function (msg) {
+ console.log(msg, '上传完成,视频信息')
+ vm.msgList.push({
+ text: '',
+ attach: vm.calculatePic(msg.attach, msg.type),
+ id: `id_${msg.time}`,
+ timestamp: msg.time,
+ isSelf: true,
+ avatar: vm.myAvatar,
+ time: getTime(format(msg.time)),
+ showTime: timeContrast(format(msg.time), vm.lastTime),
+ videoDur: getVideoTime(msg.attach.dur),
+ name: msg.fromNick,
+ userId: msg.from,
+ isSend: 1,
+ msgType: 'video'
+ })
+ vm.lastTime = format(msg.time)
+ vm.callbackSend('video')
+ vm.$nextTick(() => {
+ vm.toView = `id_${msg.time}`
+ })
+ // 防止视频撑开触发加载历史数据
+ vm.$nextTick(() => {
+ setTimeout(() => {
+ vm.uploadState = false
+ }, 500)
+ })
+ }
+ })
},
// 发送语音
sendAudio(file) {
@@ -1026,7 +1007,6 @@ wepy.page({
reception(e) {
let vm = this
vm.sendMsgReceipt(e)
- // vm.getChatInfo()
if (e.type == 'text' && /\[[^\]]+\]/.test(e.body)) {
e.body = vm.transitionMsg(e.body)
}
@@ -1098,9 +1078,9 @@ wepy.page({
showTime: item.showTime,
videoDur: item.content_type == 'video' || item.content_type == 'VIDEO' ? getVideoTime(item.attach.dur) : '',
audioDur: item.content_type == 'audio' || item.content_type == 'AUDIO' ? (item.attach.dur / 1000).toFixed(0) : '',
- name: item.fromNick,
+ name: item.is_mine == 0 ? vm.otherUserName : vm.myName,
isSend: 1,
- userId: item.from,
+ userId: item.user_id,
msgType: item.content_type
})
})
@@ -1406,7 +1386,6 @@ wepy.page({
e.w = e.w / wRatio
e.h = 200
}
- console.log(e, '8988888')
return e
},
// 更多操作
@@ -1451,17 +1430,16 @@ wepy.page({
})
},
// 播放视频
- playVideo(index, e) {
+ playVideo(index) {
let vm = this
vm.videoState = true
vm.videoIndex = index
- vm.videoContext = wx.createVideoContext(`${e}`)
- vm.videoContext.requestFullScreen()
- setTimeout(function() {
+ vm.videoContext = wx.createVideoContext('chatVideo-' + index, vm)
+ vm.videoContext.requestFullScreen({direction: 0})
+ setTimeout(() => {
// 将点击视频进行播放
- vm.videoContext = wx.createVideoContext(`${e}`)
vm.videoContext.play()
- }, 1200)
+ }, 500)
},
// 关闭视频
leaveVideo(e, row) {
@@ -1510,7 +1488,7 @@ wepy.page({
let vm = this
let imageArr = []
vm.msgList.forEach((item) => {
- if (item.msgType == 'image') {
+ if (item.msgType == 'image' || item.msgType == 'PICTURE') {
imageArr.push(item.attach.url)
}
})
@@ -1526,7 +1504,6 @@ wepy.page({
vm.myType = wx.getStorageSync('userInfo').type
vm.myName = wx.getStorageSync('userInfo').name
vm.myAvatar = wx.getStorageSync('userInfo').avatar
- // vm.getChatInfo()
},
onLoad(e) {
let vm = this
diff --git a/src/pages/news/groupChitchat.wpy b/src/pages/news/groupChitchat.wpy
index 522688c..746553f 100644
--- a/src/pages/news/groupChitchat.wpy
+++ b/src/pages/news/groupChitchat.wpy
@@ -567,14 +567,14 @@ page {
{{audioTime + '"'}}
-
+
{{item.videoDur}}
-
+
@@ -982,6 +982,8 @@ wepy.page({
let vm = this
app.globalData.nim.session.resetSessionUnreadCount({
id: `team-${vm.otherUserId}`
+ }).then((res) => {
+ console.log(res, '///////////---------')
})
},
// 在当前页面接收到别人发送过来的消息
@@ -1036,10 +1038,8 @@ wepy.page({
vm.$get({url: `${service.host}/chat/team/${vm.otherUserId}/message/list`, data}).then(({code, data}) => {
if (code === 0) {
console.log(data, '-------------------')
+ vm.sendMsgReceipt()
if (data && data.length > 0) {
- // if (vm.msgList && vm.msgList.length == 0) {
- // vm.sendMsgReceipt(data[0])
- // }
data.forEach((item, index) => {
item.time = new Date(item.create_time.replace(/[-]/g, '/').replace(/[-]/, '')).getTime()
item.avatar = 'https://image.fulllinkai.com/202307/18/449c3253ca2bbed9314d39977a486d0e.png'
@@ -1384,17 +1384,16 @@ wepy.page({
})
},
// 播放视频
- playVideo(index, e) {
+ playVideo(index) {
let vm = this
vm.videoState = true
vm.videoIndex = index
- vm.videoContext = wx.createVideoContext(`${e}`)
- vm.videoContext.requestFullScreen()
+ vm.videoContext = wx.createVideoContext('groupChatVideo-' + index, vm)
+ vm.videoContext.requestFullScreen({direction: 0})
setTimeout(function() {
// 将点击视频进行播放
- vm.videoContext = wx.createVideoContext(`${e}`)
vm.videoContext.play()
- }, 1200)
+ }, 500)
},
// 关闭视频
leaveVideo(e, row) {
@@ -1481,7 +1480,6 @@ wepy.page({
// 底部输入框高度
vm.changeInputHeight(true)
// 标记消息已读
- // vm.groupIsRead()
vm.teamsSessions()
wx.setNavigationBarTitle({
title: vm.otherUserName,
diff --git a/src/pages/news/newsSearch.wpy b/src/pages/news/newsSearch.wpy
index 3f28e96..d3be74b 100644
--- a/src/pages/news/newsSearch.wpy
+++ b/src/pages/news/newsSearch.wpy
@@ -10,7 +10,6 @@ page {
background-color: #f8f8f8;
border-radius: 100rpx;
padding: 0 22rpx;
- margin-left: 30rpx;
.m_search_icon {
width: 28rpx;
@@ -60,59 +59,7 @@ page {
margin-top: 2rpx;
margin-left: 16rpx;
- .ui-is-top{
- margin-left: 16rpx;
- padding-left: 8rpx;
- width: 76rpx;
- height: 32rpx;
- background: linear-gradient(90deg, #FFD18D 0%, #FFA564 100%);
- border-radius: 8rpx;
- line-height: 32rpx;
- }
-
- .ui-name {
- width: 400rpx;
- }
-
- .ui-message {
- width: 524rpx;
- }
- }
-
- .ui-unreadBox {
- position: absolute;
- right: 30rpx;
- top: 0;
- overflow: hidden;
-
- .ui-lastTime {
- margin-top: 10rpx;
- }
-
- .ui-no-disturbing {
- width: 32rpx;
- height: 32rpx;
- margin-top: 12rpx;
- }
-
- .ui-unreadNum, .ui-unreadNum_1 {
- float: right;
- width: 28rpx;
- height: 28rpx;
- display: flex;
- justify-content: center;
- align-items: center;
- border-radius: 50%;
- font-size: 20rpx;
- background: #f1013D;
- color: #fff;
- margin-top: 12rpx;
- }
-
- .ui-unreadNum_1 {
- width: 44rpx;
- border-radius: 14rpx;
- }
+ .ui-nickname-box{}
}
}
}
@@ -121,10 +68,13 @@ page {
-
-
-
-
+
+
+
+
+
+
+
@@ -137,23 +87,10 @@ page {
-
-
-
-
- {{item.title}}
- 已置顶
-
-
- [有人@你]
- {{item.content}}
-
-
-
- {{item.last_time}}
-
-
-
+
+
+
+
@@ -191,54 +128,15 @@ wepy.page({
keyword: vm.inputVal
}
vm.$showLoading('')
- vm.$get({url: `${service.host}/chat/linkmen`, data}).then(({code, data}) => {
+ vm.$get({url: `${service.host}/chat/linkmen/search`, data}).then(({code, data}) => {
if (code === 0) {
- let arrList = []
if (data.data && data.data.length > 0) {
data.data.forEach((item) => {
- if (item.chat_type == 'group_chat') {
- arrList.push({
- chat_type: item.chat_type,
- icon: item.other_photo,
- title: item.other_nickname,
- is_top: item.is_top,
- content: item.last_user_nickname + ':' + item.content,
- last_time: item.last_time_str,
- id: item.join_to_id,
- hidden_profile: 'NONE',
- msgId: item.id,
- isTouchMove: false
- })
- } else {
- arrList.push({
- chat_type: item.chat_type,
- icon: item.other_photo,
- title: item.other_nickname,
- is_top: item.is_top,
- content: item.content,
- last_time: item.last_time_str,
- id: item.join_to_id,
- hidden_profile: '',
- type: item.other_type,
- msgId: item.last_id,
- isTouchMove: false
- })
- }
- })
- }
- vm.list = [...arrList]
- // 赋值所在群组已开启消息免打扰字段
- if (wx.getStorageSync('muteNotList') && wx.getStorageSync('muteNotList').length > 0) {
- let arr = wx.getStorageSync('muteNotList')
- arr.forEach((i) => {
- vm.list.forEach((j) => {
- if (j.chat_type == 'group_chat' && i.teamId == j.id && !j.muteState) {
- j.muteTeam = i.muteTeam
- j.muteState = true
- }
- })
+ let nickname = item.name.replace(new RegExp('(' + vm.inputVal + ')', 'ig'), "" + vm.inputVal + '
')
+ item.nodes = `${nickname}
`
})
}
+ vm.list = [...data.data]
console.log(vm.list, '777')
if (vm.list.length < 15 || data.data.length < 15) {
vm.no_more = true
@@ -262,9 +160,9 @@ wepy.page({
if (type === 'user') {
url = `/pages/home/information?id=${e.id}`
} else if (e.chat_type === 'group_chat') {
- url = `/pages/news/groupChitchat?id=${e.id}&name=${encodeURIComponent(e.title)}&pic=${e.icon}`
+ url = `/pages/news/groupChitchat?id=${e.id}&name=${encodeURIComponent(e.name)}&pic=${e.pic}`
} else {
- url = `/pages/news/chitchat?id=${e.id}&name=${encodeURIComponent(e.title)}&type=${e.type}&pic=${e.icon}&real=${e.is_real_approved}`
+ url = `/pages/news/chitchat?id=${e.id}&name=${encodeURIComponent(e.name)}&type=${e.type}&pic=${e.pic}&real=${e.is_real_approved}`
}
wx.navigateTo({url: url})
}
@@ -274,10 +172,9 @@ wepy.page({
let vm = this
clearTimeout(vm.timer)
vm.timer = setTimeout(() => {
- console.log('2222')
- // vm.page = 1
- // vm.no_more = false
- // vm.getList()
+ vm.page = 1
+ vm.no_more = false
+ vm.getList()
}, 800)
}
},
diff --git a/src/pages/tabBar/news.wpy b/src/pages/tabBar/news.wpy
index 7648c34..13ab329 100644
--- a/src/pages/tabBar/news.wpy
+++ b/src/pages/tabBar/news.wpy
@@ -38,6 +38,7 @@ page {
}
.ui-container{
+ padding-bottom: 60rpx;
.ui-no-data-box {
text-align: center;
.ui-no-data-icon {
@@ -166,19 +167,19 @@ page {
-
+
- {{item.title}}
+ {{item.other_nickname}}
已置顶
[有人@你]
- {{item.content}}
+ {{item.content ? item.content : item.chat_type == 'group_chat' ? '欢迎加入群聊' : ''}}
- {{item.last_time}}
+ {{item.last_time_str}}
@@ -239,6 +240,7 @@ wepy.page({
index: null, // 滑动删除聊天消息下标
groupSessionsCount: [], // 群聊消息未读数
teamAtList: [], // 群聊@
+ cachePage: 0, // 记录跳转前的页数
page: 1,
no_more: false,
list: [] // 消息列表数据
@@ -254,64 +256,41 @@ wepy.page({
if (code === 0) {
vm.teamAtList = wx.getStorageSync('teamAtList') || []
vm.groupSessionsCount = wx.getStorageSync('teamsSessionsCount') || []
- let arrList = []
if (data.data && data.data.length > 0) {
data.data.forEach((item) => {
- if (item.chat_type == 'group_chat') {
- arrList.push({
- chat_type: item.chat_type,
- icon: item.other_photo,
- title: item.other_nickname,
- is_top: item.is_top,
- content: item.last_user_nickname + ':' + item.content,
- last_time: item.last_time_str,
- id: item.join_to_id,
- hidden_profile: 'NONE',
- msgId: item.id,
- isTouchMove: false,
- new_count: wx.getStorageSync('muteNotList') && wx.getStorageSync('muteNotList').length > 0 ? 0 : vm.getGroupCount(item.join_to_id)
- })
- } else {
- arrList.push({
- chat_type: item.chat_type,
- icon: item.other_photo,
- title: item.other_nickname,
- is_top: item.is_top,
- content: item.content,
- last_time: item.last_time_str,
- id: item.join_to_id,
- hidden_profile: '',
- type: item.other_type,
- msgId: item.last_id,
- isTouchMove: false,
- new_count: item.new_count
- })
- }
+ item.isTouchMove = false
})
- }
- vm.list = [...arrList]
- // 赋值所在群组已开启消息免打扰字段
- if (wx.getStorageSync('muteNotList') && wx.getStorageSync('muteNotList').length > 0) {
- let arr = wx.getStorageSync('muteNotList')
- arr.forEach((i) => {
- vm.list.forEach((j) => {
- if (j.chat_type == 'group_chat' && i.teamId == j.id && !j.muteState) {
- j.new_count = 0
- j.muteTeam = i.muteTeam
- j.muteState = true
- } else if (j.chat_type == 'group_chat') {
- j.new_count = vm.getGroupCount(j.id)
- }
+ if (vm.list.length === 0 || vm.page === 1) {
+ vm.list = data.data
+ } else if (vm.cachePage != vm.page) {
+ data.data.map(function (item) {
+ vm.list.push(item)
})
- })
- }
- console.log(vm.list, '777')
- if (vm.list.length < 15 || data.data.length < 15) {
- vm.no_more = true
+ }
+ if (vm.list.length < 15 || data.data.length < 15) {
+ vm.no_more = true
+ }
+ console.log(vm.list, '777')
+ // 赋值所在群组已开启消息免打扰字段
+ if (wx.getStorageSync('muteNotList') && wx.getStorageSync('muteNotList').length > 0) {
+ let arr = wx.getStorageSync('muteNotList')
+ arr.forEach((i) => {
+ vm.list.forEach((j) => {
+ if (j.chat_type == 'group_chat' && i.teamId == j.join_to_id && !j.muteTeam) {
+ j.new_count = 0
+ j.muteTeam = i.muteTeam
+ j.muteState = true
+ } else if (j.chat_type == 'group_chat') {
+ j.new_count = vm.getGroupCount(j.join_to_id)
+ }
+ })
+ })
+ }
}
}
setTimeout(() => {
vm.loading = true
+ vm.cachePage = vm.page
}, 500)
wx.hideLoading()
}).catch(err => {
@@ -356,11 +335,11 @@ wepy.page({
let vm = this
wx.showModal({
title: '温馨提示',
- content: `是否确认退出${e.title}群聊?`,
+ content: `是否确认退出${e.other_nickname}群聊?`,
success: function (res) {
if (res.confirm) {
vm.$showLoading('')
- vm.$post({url: `${service.host}/team/${e.id}/leave`}).then(({code, data}) => {
+ vm.$post({url: `${service.host}/team/${e.join_to_id}/leave`}).then(({code, data}) => {
if (code == 0) {
vm.$showToast(`已退出群聊`)
vm.list.splice(index, 1)
@@ -385,7 +364,7 @@ wepy.page({
success: function (res) {
if (res.confirm) {
vm.$showLoading('')
- vm.$delete({url: `${service.host}/chat/linkmen/${e.id}`}).then(({code, data}) => {
+ vm.$delete({url: `${service.host}/chat/linkmen/${e.join_to_id}`}).then(({code, data}) => {
if (code == 0) {
vm.$showToast(`已删除`)
vm.list.splice(index, 1)
@@ -413,8 +392,9 @@ wepy.page({
},
touchstart (e) {
+ console.log(e, '7777')
let vm = this
- vm.list.forEach(function (v, i) {
+ vm.list.forEach(function (v) {
if (v.isTouchMove) { v.isTouchMove = false }
})
vm.startX = e.changedTouches[0].clientX
@@ -454,11 +434,11 @@ wepy.page({
}
let url = ``
if (type === 'user') {
- url = `/pages/home/information?id=${e.id}`
+ url = `/pages/home/information?id=${e.join_to_id}`
} else if (e.chat_type === 'group_chat') {
- url = `/pages/news/groupChitchat?id=${e.id}&name=${encodeURIComponent(e.title)}&pic=${e.icon}`
+ url = `/pages/news/groupChitchat?id=${e.join_to_id}&name=${encodeURIComponent(e.other_nickname)}&pic=${e.other_photo}`
} else {
- url = `/pages/news/chitchat?id=${e.id}&name=${encodeURIComponent(e.title)}&type=${e.type}&pic=${e.icon}&real=${e.is_real_approved}`
+ url = `/pages/news/chitchat?id=${e.join_to_id}&name=${encodeURIComponent(e.other_nickname)}&type=${e.other_type}&pic=${e.other_photo}&real=${e.is_real_approved}`
}
wx.navigateTo({url: url})
},
@@ -488,6 +468,7 @@ wepy.page({
onPullDownRefresh() {
let vm = this
vm.page = 1
+ vm.cachePage = 0
vm.no_more = false
vm.getList()
},
diff --git a/src/utils/im.js b/src/utils/im.js
index 075cb7c..5f9aa79 100644
--- a/src/utils/im.js
+++ b/src/utils/im.js
@@ -64,12 +64,12 @@ const IM = (account, token) => {
}
if (groupCount > 0) {
wx.setTabBarBadge({
- index: 0,
+ index: 2,
text: `${groupCount}`
})
} else {
wx.removeTabBarBadge({
- index: 0
+ index: 2
})
}
})
@@ -79,24 +79,9 @@ const IM = (account, token) => {
let pages = getCurrentPages()
let currentPage = pages[pages.length - 1]
let notiTypeData = { muteTeam: false }
- if (wx.getStorageSync('nuteNotList') && wx.getStorageSync('nuteNotList').length > 0) {
- notiTypeData = wx.getStorageSync('nuteNotList').find((item) => item.teamId == e.to)
+ if (wx.getStorageSync('muteNotList') && wx.getStorageSync('muteNotList').length > 0) {
+ notiTypeData = wx.getStorageSync('muteNotList').find((item) => item.teamId == e.to)
}
- // 如果是开启了免打扰的群消息,自动调用群消息已读接口
- // if (notiTypeData.muteTeam) {
- // wx.request({
- // url: `${service.host}/chat/group/read`,
- // header: {
- // 'Authorization': 'Bearer ' + wx.getStorageSync('token'),
- // 'X-Requested-With': 'XMLHttpRequest'
- // },
- // method: 'post',
- // data: {team_id: notiTypeData.teamId},
- // success: ({data}) => {
- // console.log(data, '已读')
- // }
- // })
- // }
if (e.scene == 'team') {
// 判断是否是@功能
if (e.apns) {
@@ -115,7 +100,7 @@ const IM = (account, token) => {
if (e.attach && (e.attach.type === 'leaveTeam' || e.attach.type === 'dismissTeam' || e.attach.type === 'removeTeamMembers' || e.attach.type === 'addTeamMembers')) {
} else {
if (newTeamCount.length > 0) {
- console.log(newTeamCount, '2222')
+ console.log(newTeamCount, notiTypeData, '2222')
teamCount = teamCount.map(item => {
if (item.id == newTeamCount[0].id && !notiTypeData.muteTeam) {
item.unread += 1
diff --git a/src/utils/util.js b/src/utils/util.js
index b404447..a04d703 100644
--- a/src/utils/util.js
+++ b/src/utils/util.js
@@ -74,7 +74,7 @@ const wx_login = () => {
resolve(res)
break
case 1:
- reject(res.messag)
+ reject(res.message)
break
case 2:
break