toast和loading的问题
[代码]// 正常业务逻辑[代码][代码]getUserByID() {[代码][代码] [代码][代码]wx.showLoading({[代码][代码] [代码][代码]title:[代码][代码]'查询中'[代码][代码],[代码][代码] [代码][代码]})[代码][代码] [代码][代码]let params = {[代码][代码] [代码][代码]url:[代码][代码]'/applet/user'[代码][代码],[代码][代码] [代码][代码]data:{[代码][代码] [代码][代码]id:10001[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}[代码][代码] [代码][代码]app.ajax(params,(res) => {[代码][代码] [代码][代码]// success[代码][代码] [代码][代码]wx.showToast({[代码][代码] [代码][代码]title:[代码][代码]'查询成功'[代码][代码],[代码][代码] [代码][代码]icon:[代码][代码]'success'[代码][代码],[代码][代码] [代码][代码]duration:2500[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},(res) => {[代码][代码] [代码][代码]// fail[代码][代码] [代码][代码]wx.showModal({[代码][代码] [代码][代码]content:[代码][代码]'连接服务器失败,请稍后重试'[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},(res) => {[代码][代码] [代码][代码]// complete[代码][代码] [代码][代码]wx.hideLoading()[代码][代码] [代码][代码]})[代码][代码]}[代码]wx.hideLoading应该只能关闭loading的toast,否则上述提示完全错乱,希望官方能好好优化下提示