| | |
| | | // this.getResourceClass(); // 获取资源所属分类 |
| | | const token = wx.getStorageSync(app.config.tokenKey); |
| | | if (token) { |
| | | this.getShoppingCartProductGet(); |
| | | |
| | | this.getApplyInfo(options.id); |
| | | this.getAlreadyPBookList(); |
| | | this.getAlreadyEBookList(); |
| | |
| | | }); |
| | | } |
| | | } |
| | | if (!this.data.buy && this.data.bookDetail.isSell == '1') { |
| | | this.getShoppingCartProductGet(); |
| | | } |
| | | }); |
| | | }, |
| | | // 获取图书分类 |
| | |
| | | loading: false, |
| | | }); |
| | | } |
| | | console.log(res.datas.cmsDatas[0].datas, "资源") |
| | | let list = [] |
| | | // 测试 6位// 正式 5位// 测试调用传20,内部7 正式调用传17 内部传6 |
| | | //教学资源 云学习 |
| | |
| | | }) |
| | | } |
| | | } |
| | | const addNum = query.cmsPath.length > 12 ? 7 : query.cmsPath.length > 14 ? 8 : 6 |
| | | const addNum = query.cmsPath.length > 10 ? 7 : query.cmsPath.length > 13 ? 8 : 6 |
| | | const num = query.cmsPath.length + addNum |
| | | this.getTreeList(res.datas.cmsDatas[0].datas, num, list, '\\', addNum) |
| | | list = this.ensureTreeConsistency(list) |
| | |
| | | if (data.length > 0) { |
| | | let list = [] |
| | | // 测试 6位// 正式 5位// 测试调用传20,内部7 正式调用传17 内部传6 |
| | | const addNum = query.cmsPath.length > 12 ? 7 : query.cmsPath.length > 14 ? 8 : 6 |
| | | const addNum = query.cmsPath.length > 10 ? 7 : query.cmsPath.length > 13 ? 8 : 6 |
| | | const num = query.cmsPath.length + addNum |
| | | this.getTreeList(data, num, list, '\\', addNum) |
| | | list = this.ensureTreeConsistency(list) |
| | |
| | | }) |
| | | } |
| | | this.resourceDetailsData() |
| | | this.getNoteList() |
| | | |
| | | }, |
| | | |
| | | /** |
| | |
| | | |
| | | }, |
| | | onTabsChange(event) { |
| | | |
| | | console.log(event, 234) |
| | | let tabValue = event.detail.value |
| | | if (tabValue == '1') { |
| | | this.getNoteList() |
| | | } |
| | | }, |
| | | |
| | | onTabsClick(event) { |
| | | |
| | | }, |
| | | handleChange(e) { |
| | | this.setData({ |
| | | activeValues: e.detail.value, |
| | |
| | | <!-- 标题 --> |
| | | <view class="titleBox">{{titleName}}</view> |
| | | <view class="contentBox"> |
| | | <t-tabs defaultValue="{{0}}" bind:change="onTabsChange" bind:click="onTabsClick" t-class="custom-tabs" t-class-content="custom-panel" split="{{false}}"> |
| | | <t-tabs defaultValue="{{0}}" bind:change="onTabsChange" t-class="custom-tabs" t-class-content="custom-panel" split="{{false}}"> |
| | | <!-- 资源列表 --> |
| | | <t-tab-panel label="资源列表" value="0" style="{{tabPanelstyle}}" style="width: 750rpx"> |
| | | <view class="demo-section__content" wx:if="{{loading}}"> |
| | |
| | | catalogueClickIcon: { |
| | | name: "/static/images/digitalTextbooks/mulu-t-click@3x.png", |
| | | }, |
| | | |
| | | userInfo: { |
| | | fullName: '' //名称 |
| | | } |
| | | }, |
| | | |
| | | /** |
| | |
| | | </view> |
| | | <view class="frame"></view> |
| | | <view class="information"> |
| | | <view class="proposal"> |
| | | <view class="proposal" bind:tap="onCertificate"> |
| | | <view class="suggestion"> |
| | | <image src="/static/images/digitalTextbooks/shengshu-t@2x.png" mode="" /> |
| | | </view> |
| | |
| | | </view> |
| | | <view class="basic"> 证书信息</view> |
| | | </view> |
| | | |
| | | |
| | | <!-- <view class="certificateChart"> |
| | | <view class="chart"> |
| | | <image src="" mode="" /> |
| | |
| | | </view> |
| | | </view> |
| | | |
| | | <!-- 弹窗 --> |
| | | <view wx:if="{{dialogBox}}"> |
| | | <view class="popup-box" bindtap="closeDialog"></view> |
| | | <view class="info-center" style="top:{{height*0.4}}px;"> |
| | | <view> |
| | | <view class="row-info"> |
| | | <view class="body"> |
| | | <view class="dialog-title">学习证书申请</view> |
| | | <view style="width: 100%; height: 2rpx; background-color: #F4F4F4;"></view> |
| | | <view class="input-box"> |
| | | <t-input class="input" borderless placeholder="请输入真实姓名" value="{{input}}" bind:change="inputChange"></t-input> |
| | | </view> |
| | | </view> |
| | | <view class="row-btn"> |
| | | <view class="left-btn" bindtap="closeDialog">取消</view> |
| | | <view class="right-btn" bindtap="confirmM">确认</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | <t-toast id="t-toast" /> |
| | |
| | | <!--pages/index/bookDetail.wxml--> |
| | | <view class="box"> |
| | | <t-skeleton theme="paragraph" animation="gradient" loading="true"></t-skeleton> |
| | | <view class="list"> |
| | | <t-skeleton theme="paragraph" animation="gradient" loading="true"></t-skeleton> |
| | | </view> |
| | | <view class="list"> |
| | | <t-skeleton theme="paragraph" animation="gradient" loading="true"></t-skeleton> |
| | | </view> |
| | | <view class="list"> |
| | | <t-skeleton theme="paragraph" animation="gradient" loading="true"></t-skeleton> |
| | | </view> |
| | | </view> |
| | |
| | | padding: 200rpx 0; |
| | | text-align: center; |
| | | margin: 40rpx; |
| | | } |
| | | |
| | | .list { |
| | | margin-top: 20rpx; |
| | | } |
| | |
| | | </view> |
| | | <web-view wx:if="{{webpageSrc}}" src="{{webpageSrc}}"></web-view> |
| | | <view class="box" wx:if='{{!copyUrl && !webpageSrc}}'> |
| | | <t-skeleton theme="paragraph" animation="gradient" loading="true"></t-skeleton> |
| | | <view class="list"> |
| | | <t-skeleton theme="paragraph" animation="gradient" loading="true"></t-skeleton> |
| | | </view> |
| | | <view class="list"> |
| | | <t-skeleton theme="paragraph" animation="gradient" loading="true"></t-skeleton> |
| | | </view> |
| | | <view class="list"> |
| | | <t-skeleton theme="paragraph" animation="gradient" loading="true"></t-skeleton> |
| | | </view> |
| | | </view> |
| | |
| | | padding: 200rpx 0; |
| | | text-align: center; |
| | | margin: 40rpx; |
| | | } |
| | | |
| | | .list { |
| | | margin-top: 20rpx; |
| | | } |
| | |
| | | <!--pages/test/testCover.wxml--> |
| | | <view class="box"> |
| | | <t-skeleton theme="paragraph" animation="gradient" loading="true"></t-skeleton> |
| | | <view class="list"> |
| | | <t-skeleton theme="paragraph" animation="gradient" loading="true"></t-skeleton> |
| | | </view> |
| | | <view class="list"> |
| | | <t-skeleton theme="paragraph" animation="gradient" loading="true"></t-skeleton> |
| | | </view> |
| | | <view class="list"> |
| | | <t-skeleton theme="paragraph" animation="gradient" loading="true"></t-skeleton> |
| | | </view> |
| | | </view> |
| | |
| | | padding: 200rpx 0; |
| | | text-align: center; |
| | | margin: 40rpx; |
| | | } |
| | | |
| | | .list { |
| | | margin-top: 20rpx; |
| | | } |
| | |
| | | text: '数字课程', |
| | | key: 2, |
| | | icon: '/static/images/home/shuzikecheng@2x.png', |
| | | // url: '/pages/digitalCourses/index', |
| | | url: '' |
| | | url: '/pages/digitalCourses/index', |
| | | // url: '' |
| | | }, |
| | | { |
| | | text: '数字教材', |
| | | key: 3, |
| | | icon: '/static/images/home/shuzijiaocai@2x.png', |
| | | // url: '/pages/digitalTextbooks/index', |
| | | url: '' |
| | | url: '/pages/digitalTextbooks/index', |
| | | // url: '' |
| | | }, |
| | | { |
| | | text: '专题讨论', |
| | | key: 4, |
| | | icon: '/static/images/home/zhuantitaolun@2x.png', |
| | | // url: '/pages/specialDiscussion/index', |
| | | url: '' |
| | | url: '/pages/specialDiscussion/index', |
| | | // url: '' |
| | | }, |
| | | { |
| | | text: '线上书展', |