Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

数据不走success #3

Open
zhaozhimeng opened this issue Oct 17, 2018 · 0 comments
Open

数据不走success #3

zhaozhimeng opened this issue Oct 17, 2018 · 0 comments

Comments

@zhaozhimeng
Copy link

  _request.request.apply(undefined, [_request.api.query, data, function (res) {
    debugger;
    if (res.data.status === 0) {
      if (that.page > 1) {
        if (res.data.data.length === 0) {
          that.setData({
            dataFin: true
          });
        } else {
          that.setData({
            estateList: [].concat(_toConsumableArray(that.data.estateList), _toConsumableArray(T(res.data.data)))
          });
        }
      } else {
        that.setData({
          estateList: T(res.data.data)
        });
      }
    } else {
      that.setData({
        estateList: []
      });
    }
  }, 'POST',, function () {
    resolve(1);
  }]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant