提交 25f523ad 编写于 作者: DCloud_JSON's avatar DCloud_JSON

修复 移动端不能私信的问题

上级 2d756cf1
...@@ -4,9 +4,14 @@ export default { ...@@ -4,9 +4,14 @@ export default {
if ($state.isWidescreen) { if ($state.isWidescreen) {
uni.$emit('uni-im-toChat', param) uni.$emit('uni-im-toChat', param)
} else { } else {
let url = '/uni_modules/uni-im/pages/chat/chat?user_id=' + user_id console.log('uni-im-toChat', param)
if (param.source) { let url = '/uni_modules/uni-im/pages/chat/chat?'
url += '&source=' + decodeURIComponent(JSON.stringify(param.source)) for (let key in param) {
let value = param[key]
if (typeof value === 'object') {
value = decodeURIComponent(JSON.stringify(value))
}
url += key + '=' + param[key] + '&'
} }
uni.navigateTo({url,animationDuration: 300}) uni.navigateTo({url,animationDuration: 300})
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册