IM部分的备注,消息发送代码分离

This commit is contained in:
2022-02-07 11:01:36 +08:00
parent d19f1378a6
commit b202a62d5d
5 changed files with 807 additions and 713 deletions

View File

@@ -15,9 +15,9 @@
<view class="item" @click="scanQrCode">
<uni-icons color="#555" type="scan" size="22"></uni-icons>
</view>
<view class="item" @click="onNav('', {})">
<!-- <view class="item" @click="onNav('', {})">
<uni-icons color="#555" custom-prefix="iconfont" type="icon-gengduo2" size="22"></uni-icons>
</view>
</view> -->
</view>
</view>
</view>
@@ -130,14 +130,16 @@
}
}
},
methods: {
methods: {
// 隐藏功能菜单
hidePop() {
this.showPop = false
this.pickedItem = {}
setTimeout(() => {
this.showShade = false
}, 250)
},
},
// 点击会话功能菜单
pickerMenu(e) {
const index = Number(e.currentTarget.dataset.index)
@@ -150,7 +152,8 @@
im.setNotifyBadge()
this.getConversationList()
this.hidePop()
},
},
// 长按会话,展示功能菜单
onLongPress(e) {
let [touches, style, item] = [e.touches[0], "", e.currentTarget.dataset.item]
@@ -217,7 +220,8 @@
params
})
}
},
},
// 调起扫码
scanQrCode() {
uni.scanCode({
success: (res) => {