收藏
回答

在鸿蒙系统的手机上预约直播成功后不显示state,无法区分state状态是已预约还是未预约怎么办?

    

wx.reserveChannelsLive({

      noticeId: noticeId,

      success(response) {

        if (response.errMsg === 'reserveChannelsLive:ok') {

          console.log(response,'调取预约弹窗接口')

          // response.state  6--预约成功 7--取消预约  5 --未预约时,点击底部阴影空白关闭 8--已预约时, 点击底部阴影空白关闭

          if (response.state === 6 || response.state === 7) {

            let state = response.state === 6 ? 1 : 4

            that.geRecordReserve({

              type: state,

              startTime: startTime,

            })

            that.setData({

              isAppointment: response.state === 6

            })

          }

        }

      },

    });只有鸿蒙系统的手机是这样,这个问题怎么解决,有遇到的吗

回答关注问题邀请回答
收藏

1 个回答

  • 智能回答 智能回答 本次回答由AI生成
    04-27
    有用
登录 后发表内容
问题标签