Merge refs/remotes/origin/master into refs/heads/master
| | |
| | | const updated = this.findAndUpdateItemsByIds(this.data.learn, ids, state) |
| | | this.setData({ |
| | | learn: updated |
| | | }, () => { |
| | | wx.hideLoading() |
| | | }) |
| | | }, |
| | | // 单个勾选事件 |
| | |
| | | const updated = this.checkResoucrceInfo(this.data.learn, id) |
| | | this.setData({ |
| | | learn: updated |
| | | }, () => { |
| | | wx.hideLoading() |
| | | }) |
| | | }, |
| | | upDateShopCar(id, tree) { |
| | |
| | | purchaseList: [] |
| | | }, |
| | | ready() {}, |
| | | |
| | | onLoad() {}, |
| | | observers: { |
| | | treeList: function (newValue) { |
| | |
| | | this.setData({ |
| | | openIds: this.data.openIds, |
| | | }); |
| | | wx.hideLoading() |
| | | }, |
| | | // 子项勾选 |
| | | checkResource(e) { |
| | |
| | | this.triggerEvent("changeListChecked", myEventDetail, myEventOption); |
| | | } |
| | | } |
| | | wx.hideLoading() |
| | | }, |
| | | // 加入购物车 |
| | | async onCloudShoppingCart(e) { |
| | |
| | | } else { |
| | | if (item.selectType === "video" || item.learnSelectType === "video") { |
| | | if (this.data.storeInfo == 'jsek_digitalCourses') { |
| | | if (item.sysType == 'CmsItem') this.data.threeLeveData.push(item) |
| | | // if (this.data.isBuy) { |
| | | // if (item.sysType == 'CmsItem') { |
| | | // this.data.threeLeveData.push(item) |
| | | // } |
| | | // } else { |
| | | // if (item.sysType == 'CmsItem' && item.freeFile) { |
| | | // this.data.threeLeveData.push(item) |
| | | // } |
| | | // } |
| | | // if (item.sysType == 'CmsItem') this.data.threeLeveData.push(item) |
| | | if (this.data.isBuy) { |
| | | if (item.sysType == 'CmsItem') { |
| | | this.data.threeLeveData.push(item) |
| | | } |
| | | } else { |
| | | if (item.sysType == 'CmsItem' && item.freeFile) { |
| | | this.data.threeLeveData.push(item) |
| | | } |
| | | } |
| | | } else { |
| | | // 买了 |
| | | if (this.data.buyList.length) { |
| | |
| | | activeItem: null, |
| | | loading: false, |
| | | contentLoading: false, |
| | | noData:false, |
| | | noData: false, |
| | | shoppingCartGetId: [], |
| | | sorter: { |
| | | value: "*", |
| | |
| | | }, |
| | | |
| | | getCourseList(item) { |
| | | this.setData({ |
| | | noData: false, |
| | | }) |
| | | let searchObj = {} |
| | | let sort = {} |
| | | // // 搜索框 |
| | |
| | | } |
| | | } |
| | | app.MG.store.getProductList(obj).then((res) => { |
| | | if(!res.datas.length) { |
| | | if (!res.datas.length) { |
| | | return this.setData({ |
| | | noData:true, |
| | | contentLoading:false |
| | | courseList: [], |
| | | noData: true, |
| | | contentLoading: false |
| | | }) |
| | | } |
| | | res.datas.forEach(item => { |
| | |
| | | </view> |
| | | <view class="viewCount"> {{item.viewCount }}次点击 </view> |
| | | <view class="author"> |
| | | <view class="courseLeader" > {{ item.courseLeader}} </view> |
| | | <view class="courseLeader"> {{ item.courseLeader}} </view> |
| | | <view> {{ item.classHours}}课时 </view> |
| | | </view> |
| | | <view class="money"> |
| | |
| | | </view> |
| | | </view> |
| | | <view wx:if="{{noData}}" class="noDataBox"> |
| | | <t-empty icon="folder-open" description="暂无数据" font-size="80" /> |
| | | <!-- <t-empty icon="folder-open" description="暂无数据" font-size="80" /> --> |
| | | <empty /> |
| | | </view> |
| | | </scroll-view> |
| | | </view> |
| | |
| | | }, |
| | | |
| | | /** |
| | | * 页面上拉触底事件的处理函数 |
| | | */ |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 用户点击右上角分享 |
| | | */ |
| | | onShareAppMessage() {}, |
| | |
| | | ...digitalTextbooksObj, |
| | | ...fields |
| | | } |
| | | |
| | | |
| | | let seminarObj = {} |
| | | if (this.data.searchVal) { |
| | | seminarObj = { |
| | |
| | | this.setData({ |
| | | loading: false, |
| | | hidden: false, |
| | | isMore: null |
| | | }) |
| | | }) |
| | | wx.stopPullDownRefresh() |
| | |
| | | }, |
| | | onBookExhibitionDetails(e) { |
| | | const item = e.currentTarget.dataset.item |
| | | |
| | | wx.navigateTo({ |
| | | url: '/pages/bookExhibitionDetails/index?id=' + item.id + '&bookName=' + item.name // 假设跳转到详情页面,并传递了id参数 |
| | | }); |
| | |
| | | //上拉函数 |
| | | onPullDownRefresh() { |
| | | console.log("下拉刷新..."); |
| | | }, |
| | | /** |
| | | * 页面上拉触底事件的处理函数 |
| | | */ |
| | | onReachBottom(e) { |
| | | if (this.data.tabValue == 0) { |
| | | if (this.data.bookData.length < this.data.bookTotal) { |
| | | this.setData({ |
| | | isMore: true, |
| | | "pageCount.page": this.data.pageCount.page + 1 |
| | | }) |
| | | this.retrievalPageGet() |
| | | } else { |
| | | this.setData({ |
| | | isMore: true, |
| | | }) |
| | | setTimeout(() => { |
| | | this.setData({ |
| | | isMore: false |
| | | }) |
| | | }, 100) |
| | | |
| | | } |
| | | |
| | | } else if (this.data.tabValue == 1) { |
| | | |
| | | if (this.data.courseData.length < this.data.courseTotal) { |
| | | this.setData({ |
| | | isMore: true, |
| | | "pageCount.page": this.data.pageCount.page + 1 |
| | | }) |
| | | this.retrievalPageGet() |
| | | } else { |
| | | this.setData({ |
| | | isMore: true, |
| | | }) |
| | | setTimeout(() => { |
| | | this.setData({ |
| | | isMore: false |
| | | }) |
| | | }, 100) |
| | | |
| | | } |
| | | } else if (this.data.tabValue == 2) { |
| | | |
| | | if (this.data.digitalTextbooksData.length < this.data.digitalTextbooksTotal && this.data.digitalTextbooksData.length > 9) { |
| | | this.setData({ |
| | | isMore: true, |
| | | "pageCount.page": this.data.pageCount.page + 1 |
| | | }) |
| | | this.retrievalPageGet() |
| | | } else { |
| | | this.setData({ |
| | | isMore: true, |
| | | }) |
| | | setTimeout(() => { |
| | | this.setData({ |
| | | isMore: false |
| | | }) |
| | | }, 100) |
| | | |
| | | } |
| | | } else if (this.data.tabValue == 3) { |
| | | if (this.data.seminarData.length < this.data.seminarTotal) { |
| | | this.setData({ |
| | | isMore: true, |
| | | "pageCount.page": this.data.pageCount.page + 1 |
| | | }) |
| | | this.retrievalPageGet() |
| | | } else { |
| | | this.setData({ |
| | | isMore: true, |
| | | }) |
| | | setTimeout(() => { |
| | | this.setData({ |
| | | isMore: false |
| | | }) |
| | | }, 100) |
| | | } |
| | | } else if (this.data.tabValue == 4) { |
| | | if (this.data.bookFairData.length < this.data.bookFairTotal) { |
| | | this.setData({ |
| | | isMore: true, |
| | | "pageCount.page": this.data.pageCount.page + 1 |
| | | }) |
| | | this.bibliographyGet() |
| | | } else { |
| | | this.setData({ |
| | | isMore: true, |
| | | }) |
| | | setTimeout(() => { |
| | | this.setData({ |
| | | isMore: false |
| | | }) |
| | | }, 100) |
| | | } |
| | | } else if (this.data.tabValue == 5) { |
| | | if (this.data.biblioClassificationData.length < this.data.biblioClassificationTotal) { |
| | | this.setData({ |
| | | isMore: true, |
| | | "pageCount.page": this.data.pageCount.page + 1 |
| | | }) |
| | | this.retrievalPageGet() |
| | | } else { |
| | | this.setData({ |
| | | isMore: true, |
| | | }) |
| | | setTimeout(() => { |
| | | this.setData({ |
| | | isMore: false |
| | | }) |
| | | }, 100) |
| | | } |
| | | } |
| | | }, |
| | | |
| | | // 下拉函数 |