提交 4d94783c 编写于 作者: DCloud_JSON's avatar DCloud_JSON

Update index.js

上级 dbf53cdf
...@@ -4,14 +4,13 @@ export default { ...@@ -4,14 +4,13 @@ export default {
if ($state.isWidescreen) { if ($state.isWidescreen) {
uni.$emit('uni-im-toChat', param) uni.$emit('uni-im-toChat', param)
} else { } else {
console.log('uni-im-toChat', param)
let url = '/uni_modules/uni-im/pages/chat/chat?' let url = '/uni_modules/uni-im/pages/chat/chat?'
for (let key in param) { for (let key in param) {
let value = param[key] let value = param[key]
if (typeof value === 'object') { if (typeof value === 'object') {
value = decodeURIComponent(JSON.stringify(value)) value = decodeURIComponent(JSON.stringify(value))
} }
url += key + '=' + param[key] + '&' url += key + '=' + value + '&'
} }
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.
先完成此消息的编辑!
想要评论请 注册