页面总是提示接口错误? 是什么原因造成的? 有时候跳转的之后框架报错,页面加载不出来?
发布于 4 年前 作者 nazou 14723 次浏览 来自 问答

experienceReportInitData: function () {

    let _this = this;

    wx.request({

      url: '',

      data: {

        token: wx.getStorageSync('token'),

        type: 1,

      },

      method: "POST",

      header: app.globalData.header,

      success: function (res) {

        // console.log(res)

        _this.setData({

          reportList: res.data.list

        })

      },

      fail: function (err) {

        wx.showToast({

          title: '网络错误, 请检查网络~',

          icon: "none"

        })

      }

    })

回到顶部