industrial.js 557 B

12345678910111213141516171819202122232425262728293031
  1. var app = getApp();
  2. Page({
  3. data: {
  4. goods_industrial: []
  5. },
  6. onLoad: function (options) {
  7. wx.showLoading();
  8. this.getData();
  9. },
  10. getData(){
  11. let that = this;
  12. app.util.request({
  13. url: 'entry/wxapp/index',
  14. data: {
  15. controller: 'goods.get_instructions'
  16. },
  17. dataType: 'json',
  18. success: function (res) {
  19. wx.hideLoading();
  20. if (res.data.code == 0) {
  21. that.setData({
  22. goods_industrial: res.data.data.goods_industrial || []
  23. })
  24. }
  25. }
  26. })
  27. }
  28. })