二话不错上错误代码:

wx.showModal({
        title: '提示',
        content: '确定添加?',
        success(res){
          if (res.confirm) {
            //添加对方为自己的好友
            db.collection('users').doc(app.userInfo._id).update({
              data:{
                friendList:this.data.messageId
              },
            }).then((res)=>{});
          }else{}
        }
      })
              
View Code

相关文章:

  • 2021-09-28
  • 2021-09-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
  • 2021-09-11
  • 2021-11-22
猜你喜欢
  • 2021-06-19
  • 2021-08-21
  • 2021-11-07
  • 2021-09-04
  • 2021-09-29
  • 2021-05-26
  • 2022-12-23
相关资源
相似解决方案