// 开始提交 wx.request({ url: userCarUtil.host + userCarUtil.addChannelInfo, method: 'POST', header: { 'Content-Type': 'application/x-www-form-urlencoded' }, data: saveInfoData, success: res => { // console.log(res) // console.log(res.data.message) if (res.data.code != 0) { // 提交失败 this.setData({ loadingHidden: true, hiddenTips: false, tipsContent: res.data.message }) } else { // 提交成功 this.setData({ loadingHidden: true, hideCommitSuccessToast: false }) // 定时,3秒消化 setTimeout(() => { this.setData({ hideCommitSuccessToast: true }) }, 3000) } } })