channelDetail.js 908 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. const {
  2. pageByDevice
  3. } = require('../../../utils/apiUtil.js');
  4. const app = getApp();
  5. Page({
  6. data: {
  7. nvabarData: {
  8. showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示
  9. title: '', //导航栏 中间的标题
  10. },
  11. navBarHeight: app.globalData.navBarHeight,
  12. MenuButtonTop: app.globalData.MenuButtonTop,
  13. thisChannel: {},
  14. pageIndex: 1,
  15. channelList: [],
  16. },
  17. onLoad() {
  18. var that = this;
  19. wx.getStorage({
  20. key: "channelDeta",
  21. success(r) {
  22. that.setData({
  23. thisChannel: r.data
  24. });
  25. pageByDevice({
  26. channelId: r.data.channelId,
  27. pageNum: 1,
  28. pageSize: 300
  29. }).then((res) => {
  30. that.setData({
  31. channelList: res.records
  32. })
  33. wx.removeStorage({
  34. key: 'channelDeta',
  35. })
  36. })
  37. }
  38. })
  39. },
  40. })