| | |
| | | Path: cmsPath + '', |
| | | Type: cmsType || '\\', |
| | | Name: [], |
| | | Icon: [], |
| | | // Icon: [], |
| | | TypeId: [], |
| | | RefCode: [], |
| | | Description: [], |
| | | // RefCode: [], |
| | | // Description: [], |
| | | // ChildrenCount: [], |
| | | // ChildrenFolderCount: [], |
| | | CreateDate: [], |
| | | // CreateDate: [], |
| | | SysType: [], |
| | | SaleMethod: [], |
| | | PageQuery: { |
| | |
| | | Path: '*', |
| | | Type: '\\', |
| | | Name: [], |
| | | Icon: [], |
| | | TypeId: [], |
| | | RefCode: [], |
| | | Description: [], |
| | | ChildrenCount: [], |
| | | ChildrenFolderCount: [], |
| | | CreateDate: [], |
| | | // Description: [], |
| | | // ChildrenCount: [], |
| | | // ChildrenFolderCount: [], |
| | | SysType: [], |
| | | SaleMethod: [], |
| | | PageQuery: { |
| | |
| | | Path: cmsPath + '', |
| | | Type: '\\', |
| | | Name: [], |
| | | Icon: [], |
| | | // Icon: [], |
| | | TypeId: [], |
| | | RefCode: [], |
| | | Description: [], |
| | | // RefCode: [], |
| | | // Description: [], |
| | | LinkTypes: [linkType.linkType], |
| | | PageQuery: { |
| | | Start: 0, |
| | |
| | | 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: [], |
| | |
| | | } |
| | | } |
| | | } |
| | | 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; |
| | |
| | | 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, |
| | |
| | | |
| | | // 全选 |
| | | checkAll() { |
| | | wx.showLoading() |
| | | const ids = []; |
| | | let list = []; |
| | | let checked = ""; |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | this.triggerEvent("changeListChecked", myEventDetail, myEventOption); |
| | | } |
| | | } |
| | | wx.hideLoading() |
| | | }, |
| | | // 加入购物车 |
| | | async onCloudShoppingCart(e) { |
| | |
| | | /> |
| | | <!-- 章节名 --> |
| | | <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" |
| | |
| | | <!-- 名称 --> |
| | | <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> |
| | |
| | | let query = { |
| | | path: '*', |
| | | queryType: '*', |
| | | // storeInfo: this.data.options.storeInfo, |
| | | productId: this.data.bookDetail.id, |
| | | cmsPath: type.productLinkPath, |
| | | cmsType: '*', |
| | |
| | | file: [], |
| | | protectedFile: [], |
| | | resourcesClassification: [], |
| | | isDownload: [], |
| | | // isDownload: [], |
| | | jsek_resourceBrief: [], |
| | | jsek_link: [], |
| | | jsek_questionBank: [] |
| | | }, |
| | | pading: { |
| | | start: 0, |