头像上传裁剪

This commit is contained in:
haomingming
2023-05-11 11:13:50 +08:00
parent 7ef82dab29
commit c3ef53d336
18 changed files with 1429 additions and 60 deletions
@@ -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) {