头像上传裁剪
This commit is contained in:
@@ -525,23 +525,26 @@ Component({
|
||||
},
|
||||
// 获取消息ID
|
||||
handleLongPress(e) {
|
||||
for (let index = 0; index < this.data.messageList.length; index++) {
|
||||
// for (let index = 0; index < this.data.messageList.length; index++) {
|
||||
|
||||
if (this.data.messageList[index].status === 'success') {
|
||||
// if (this.data.messageList[index].status === 'success') {
|
||||
const { index } = e.currentTarget.dataset;
|
||||
let message = this.data.messageList[index];
|
||||
// let message = this.data.messageList[index];
|
||||
// console.log(message)
|
||||
if(message.type === 'TIMCustomElem'){
|
||||
return
|
||||
}
|
||||
// if(message.type === 'TIMCustomElem'){
|
||||
// return
|
||||
// }
|
||||
|
||||
this.setData({
|
||||
messageID: e.currentTarget.id,
|
||||
selectedMessage: this.data.messageList[index],
|
||||
Show: true,
|
||||
});
|
||||
}
|
||||
}
|
||||
wx.vibrateShort({
|
||||
"type": "heavy"
|
||||
})
|
||||
// }
|
||||
// }
|
||||
},
|
||||
// 更新 messagelist
|
||||
updateMessageByID(deleteMessageID) {
|
||||
|
||||
Reference in New Issue
Block a user