闫增涛
2024-09-19 8d4e08cae809eddaecaefd3cd21b2c65ee8af160
bug修改
6个文件已修改
82 ■■■■ 已修改文件
assets/js/middleGround/api/store.js 34 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
assets/js/middleGround/tool.js 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/buyResource/index.js 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/components/tree/index.js 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/components/tree/index.wxml 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/index.js 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
assets/js/middleGround/api/store.js
@@ -362,13 +362,13 @@
        Path: cmsPath + '',
        Type: cmsType || '\\',
        Name: [],
        Icon: [],
        // Icon: [],
        TypeId: [],
        RefCode: [],
        Description: [],
        // RefCode: [],
        // Description: [],
        // ChildrenCount: [],
        // ChildrenFolderCount: [],
        CreateDate: [],
        // CreateDate: [],
        SysType: [],
        SaleMethod: [],
        PageQuery: {
@@ -388,13 +388,11 @@
        Path: '*',
        Type: '\\',
        Name: [],
        Icon: [],
        TypeId: [],
        RefCode: [],
        Description: [],
        ChildrenCount: [],
        ChildrenFolderCount: [],
        CreateDate: [],
        // Description: [],
        // ChildrenCount: [],
        // ChildrenFolderCount: [],
        SysType: [],
        SaleMethod: [],
        PageQuery: {
@@ -413,10 +411,10 @@
          Path: cmsPath + '',
          Type: '\\',
          Name: [],
          Icon: [],
          // Icon: [],
          TypeId: [],
          RefCode: [],
          Description: [],
          // RefCode: [],
          // Description: [],
          LinkTypes: [linkType.linkType],
          PageQuery: {
            Start: 0,
@@ -448,18 +446,18 @@
      SortQuery: sort ? [sort] : [{
        LinkOrder: 'Desc'
      }],
      CreateDate: [],
      Description: [],
      // CreateDate: [],
      // Description: [],
      Name: [],
      Icon: [],
      // Icon: [],
      RefCode: [],
      Description: [],
      // Description: [],
      TypeId: [],
      SysType: [],
      State: [],
      Tag: [],
      BeginDate: [],
      EndDate: [],
      // BeginDate: [],
      // EndDate: [],
      ProductLinkInfo: [],
      AllowDonate: [],
      DonatePriceList: [],
assets/js/middleGround/tool.js
@@ -257,11 +257,13 @@
            }
          }
        }
        if (subItem.productLinkInfo && subItem.productLinkInfo.length)
        if (subItem.productLinkInfo && subItem.productLinkInfo.length) {
          let itemProductLinkInfo = subItem.productLinkInfo.find(citem => citem.Name == item.datas.Name)
          subItem.productLinkPath =
          subItem.productLinkInfo[0].LinkPath +
          "\\" +
          subItem.productLinkInfo[0].CmsItemId;
            itemProductLinkInfo.LinkPath +
            "\\" +
            itemProductLinkInfo.CmsItemId;
        }
        if (subItem.linkInfo && subItem.linkInfo.length)
          subItem.linkPath =
          subItem.linkInfo[0].LinkPath + "\\" + subItem.linkInfo[0].CmsItemId;
packageBookService/pages/bookServices/detail/buyResource/index.js
@@ -258,23 +258,23 @@
      itemFields: {
        SysType: 'CmsFolder',
        // 资源类型,试读文件,是否允许下载等参数
        learnSelectType: [],
        selectType: [],
        freeFile: [],
        file: [],
        protectedFile: [],
        resourcesClassification: [],
        isDownload: [],
        jsek_resourceBrief: [],
        jsek_link: [],
        jsek_questionBank: []
        // learnSelectType: [],
        // selectType: [],
        // freeFile: [],
        // file: [],
        // protectedFile: [],
        // resourcesClassification: [],
        // isDownload: [],
        // jsek_resourceBrief: [],
        // jsek_link: [],
        // jsek_questionBank: []
      },
      pading: {
        start: 0,
        size: 999
      },
    }
    app.MG.store.getProductDetail(query).then((res) => {
    app.MG.store.getProductDetailNoChildren(query).then((res) => {
      if (!res.datas.cmsDatas[0].datas.length) {
        return this.setData({
          noResources: true,
packageBookService/pages/bookServices/detail/components/tree/index.js
@@ -326,6 +326,7 @@
    // 全选
    checkAll() {
      wx.showLoading()
      const ids = [];
      let list = [];
      let checked = "";
@@ -357,10 +358,12 @@
        composed: true,
      }; // 触发事件的选项
      this.triggerEvent("changeCheckAll", myEventDetail, myEventOption);
      wx.hideLoading()
    },
    // 章节勾选
    checkResourceTitle(e) {
      wx.showLoading()
      const flag = e.detail.checked;
      // 这个时候checked的值是fals
      const item = e.currentTarget.dataset.item;
@@ -409,9 +412,11 @@
      this.setData({
        openIds: this.data.openIds,
      });
      wx.hideLoading()
    },
    // 子项勾选
    checkResource(e) {
      wx.showLoading()
      const citem = e.currentTarget.dataset.item;
      const parent = e.currentTarget.dataset.parent;
      let outermost;
@@ -478,6 +483,7 @@
          this.triggerEvent("changeListChecked", myEventDetail, myEventOption);
        }
      }
      wx.hideLoading()
    },
    // 加入购物车
    async onCloudShoppingCart(e) {
packageBookService/pages/bookServices/detail/components/tree/index.wxml
@@ -149,13 +149,13 @@
          />
          <!-- 章节名 -->
          <view class="title-box">
            <view class="title-t" >
            <view class="title-t">
              <view class="title-name">{{item.name}} </view>
              <view wx:if="{{item.sysType =='CmsFolder'}}" class="title-num">
                ({{item.childrenItem}})
              </view>
            </view>
            <view class="title-icon" >
            <view class="title-icon">
              <!-- 云学习加入购物车图标 -->
              <image
                src="/static/images/bookService/detail/cart@2x.png"
@@ -266,7 +266,7 @@
                <!-- 名称 -->
                <text
                  class="name"
                  style="{{ tab == 'jsek_teachingResources' ? citem.resourceClass ? 'width: 420rpx'  :  'width: 500rpx;' : (citem.isShopCar &&citem.isbuy ) ? 'width: 400rpx;' : (citem.isShopCar ||citem.isbuy) ? 'width:460rpx' :  'width:500rpx'}}"
                  style="{{ tab == 'jsek_teachingResources' ? citem.resourceClass ? 'width: 400rpx'  :  'width: 420rpx;' : (citem.isShopCar &&citem.isbuy ) ? 'width: 300rpx;' : (citem.isShopCar ||citem.isbuy) ? 'width:360rpx' :  'width:420rpx'}}"
                  >{{citem.name || '-'}}</text
                >
              </view>
packageBookService/pages/bookServices/detail/index.js
@@ -949,7 +949,6 @@
    let query = {
      path: '*',
      queryType: '*',
      // storeInfo: this.data.options.storeInfo,
      productId: this.data.bookDetail.id,
      cmsPath: type.productLinkPath,
      cmsType: '*',
@@ -962,10 +961,9 @@
        file: [],
        protectedFile: [],
        resourcesClassification: [],
        isDownload: [],
        // isDownload: [],
        jsek_resourceBrief: [],
        jsek_link: [],
        jsek_questionBank: []
      },
      pading: {
        start: 0,