cover-view中使用wx:for ios中闪烁消失
[图片] [图片] sendMessage:function(e){ let inputValue = that.data.test, colorArr = that.data.colorArr, colorLen = colorArr.length let message = tim.createTextMessage({ to:that.data.groupID, conversationType: TIM.TYPES.CONV_GROUP, payload: { text: inputValue, } }); let promise = tim.sendMessage(message); promise.then(function(imResponse) { // 发送成功 if(imResponse.code==0){ let list={ name:imResponse.data.message.nick, text:imResponse.data.message.payload.text, code:code, vip:that.data.user_type } that.data.messageList.push(list); let random = colorArr[Math.floor(Math.random() * colorLen)]; that.data.randomColorArr.push(random); that.setData({ messageList:that.data.messageList, }); } }).catch(function(imError) { // 发送失败 console.warn('sendMessage error:', imError); }); }, [视频]