yiming
2024-03-05 0375a599e25b7f27c57d8c00f801761d9cce8aa2
pages/bookServices/assort/index.js
@@ -27,7 +27,7 @@
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {},
  onReady() { },
  /**
   * 生命周期函数--监听页面显示
@@ -39,27 +39,27 @@
  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {},
  onHide() { },
  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {},
  onUnload() { },
  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {},
  onPullDownRefresh() { },
  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {},
  onReachBottom() { },
  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {},
  onShareAppMessage() { },
  // 获取侧边栏列表
  getAssortList() {
@@ -79,7 +79,9 @@
      sort: { type: 'Asc', field: 'LinkOrder' },
    };
    app.MG.store.getStoreChannelList(query).then((res) => {
      const list = res.datas.filter((item) => item.refCode != 'jsek_homepageBookService');
      this.setData({
        assortList: list,
      });
@@ -118,6 +120,8 @@
      sort: { type: 'Asc', field: 'LinkOrder' },
    };
    app.MG.store.getStoreChannelList(query).then(async (res) => {
      console.log(res, 'res');
      // 一级分类选中
      this.setData({
        startCheck: res.datas[0].refCode,