packageBookService/pages/bookServices/detail/buyResource/index.wxml
@@ -9,12 +9,7 @@ <view class="nacigationBar" style="width: 70%; height: {{navBarHeight}}px;"> <view class="flex"> <view> <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> </view> <view class="navbar-title">资源购买</view> </view> @@ -24,20 +19,7 @@ <!-- 内容 --> <view class="buy-resource" wx:if="{{!loading}}"> <tree id="tree" paymentPage="{{paymentPage}}" superior="{{superior}}" treeList="{{learn}}" learnList="{{learn}}" tab="{{'jsek_cloudLearning'}}" isShowCheck="{{true}}" openIds="{{openLearnids}}" checkAllState="{{checkAllState}}" bind:changeCheckAll="changeCheckAll" bind:changeListChecked="changeListChecked" bind:changeResourceChecked="changeResourceChecked" /> <tree id="tree" paymentPage="{{paymentPage}}" superior="{{superior}}" treeList="{{learn}}" learnList="{{learn}}" tab="{{'jsek_cloudLearning'}}" isShowCheck="{{true}}" openIds="{{openLearnids}}" checkAllState="{{checkAllState}}" bind:changeCheckAll="changeCheckAll" bind:changeListChecked="changeListChecked" bind:changeResourceChecked="changeResourceChecked" /> <view class="noData" wx:if="{{noData}}"> <!-- <t-empty icon="folder-open" description="暂无数据" /> --> <empty /> @@ -45,12 +27,6 @@ </view> <view class="page-bottom"> <t-button theme="primary" size="large" class="btn-buy" bindtap="batchPurchase" >批量购买</t-button > <t-button theme="primary" size="large" class="btn-buy" bindtap="batchPurchase">批量购买</t-button> </view> </view> packageBookService/pages/bookServices/detail/buyResource/index.wxss
@@ -13,7 +13,7 @@ overflow: hidden; text-overflow: ellipsis; color: #0F1214; font-size: 40rpx; font-size: 38rpx; font-weight: bold; } packageBookService/pages/bookServices/detail/components/tree/index.wxml
@@ -1,94 +1,29 @@ <view class="tree"> <t-collapse default-value="{{openIds}}" catchchange="handleChange"> <view wx:for="{{treeList}}" wx:for-item="item" wx:for-index="index" wx:key="id" wx:if="{{item.sysType== 'CmsItem' }}" > <view class="listItems" wx:if="{{item.childrenFolderCount <= 0 && item.sysType == 'CmsItem'}}" > <view wx:for="{{treeList}}" wx:for-item="item" wx:for-index="index" wx:key="id" wx:if="{{item.sysType== 'CmsItem' }}"> <view class="listItems" wx:if="{{item.childrenFolderCount <= 0 && item.sysType == 'CmsItem'}}"> <view class="itemsInfo" data-item="{{item}}" data-index="{{index}}"> <view class="contentBox" bind:tap="goPlayer" data-item="{{item}}" data-parent="{{''}}" > <view class="contentBox" bind:tap="goPlayer" data-item="{{item}}" data-parent="{{''}}"> <!-- 教学资源 云学习 图标 --> <view class="box-image fl-cn" style="width: 80%"> <view class="checkBox" wx:if="{{isShowCheck}}" catchtap="catchTap" > <view class="checkBox" wx:if="{{isShowCheck}}" catchtap="catchTap"> <!-- checked="{{citem.checked}}" --> <!-- <t-checkbox icon="rectangle" checked="{{citem.checked}}" disabled="{{citem.selectType=='webpage' || citem.isDownload != 1 || citem.fileMap[citem.file].protectType == 'Private'}}" catch:change="checkResource" data-item="{{citem}}" /> --> <t-checkbox disabled="{{!citem.saleMethod[0].Id}}" icon="rectangle" checked="{{item.checked}}" data-item="{{item}}" data-parent="{{item}}" catch:change="checkResource" /> <t-checkbox disabled="{{!citem.saleMethod[0].Id}}" icon="rectangle" checked="{{item.checked}}" data-item="{{item}}" data-parent="{{item}}" catch:change="checkResource" /> </view> <!-- 教学资源图标 --> <view class="teach-icon fl-cn"> <image wx:if="{{item.selectType == 'audio' || item.learnSelectType == 'audio'}}" src="/static/images/bookService/detail/audioIcon.png" mode="aspectFill" /> <image wx:elif="{{item.selectType == 'video' || item.learnSelectType == 'video'}}" src="/static/images/bookService/detail/video.png" mode="aspectFill" /> <image wx:elif="{{item.selectType == 'pdf'}}" src="/static/images/bookService/detail/pdf.png" mode="aspectFill" /> <image wx:elif="{{item.selectType == 'webpage'}}" src="/static/images/bookService/detail/net.png" mode="aspectFill" /> <image wx:elif="{{item.selectType == 'picture'}}" src="/static/images/bookService/detail/picture.png" mode="aspectFill" /> <image wx:elif="{{item.selectType == 'zip'}}" src="/static/images/bookService/detail/zip.png" mode="aspectFill" /> <image wx:elif="{{ item.fileMap[item.file].extension == 'doc' || item.fileMap[item.file].extension == 'docx'}}" src="/static/images/bookService/detail/word.png" mode="aspectFill" /> <image wx:elif="{{ item.fileMap[item.file].extension == 'xlsx' || item.fileMap[item.file].extension == 'xlsx'}}" src="/static/images/bookService/detail/excel.png" mode="aspectFill" /> <image wx:elif="{{ item.fileMap[item.file].extension == 'ppt' || item.fileMap[item.file].extension == 'pptx'}}" src="/static/images/bookService/detail/PPT.png" mode="aspectFill" /> <image wx:if="{{item.selectType == 'audio' || item.learnSelectType == 'audio'}}" src="/static/images/bookService/detail/audioIcon.png" mode="aspectFill" /> <image wx:elif="{{item.selectType == 'video' || item.learnSelectType == 'video'}}" src="/static/images/bookService/detail/video.png" mode="aspectFill" /> <image wx:elif="{{item.selectType == 'pdf'}}" src="/static/images/bookService/detail/pdf.png" mode="aspectFill" /> <image wx:elif="{{item.selectType == 'webpage'}}" src="/static/images/bookService/detail/net.png" mode="aspectFill" /> <image wx:elif="{{item.selectType == 'picture'}}" src="/static/images/bookService/detail/picture.png" mode="aspectFill" /> <image wx:elif="{{item.selectType == 'zip'}}" src="/static/images/bookService/detail/zip.png" mode="aspectFill" /> <image wx:elif="{{ item.fileMap[item.file].extension == 'doc' || item.fileMap[item.file].extension == 'docx'}}" src="/static/images/bookService/detail/word.png" mode="aspectFill" /> <image wx:elif="{{ item.fileMap[item.file].extension == 'xlsx' || item.fileMap[item.file].extension == 'xlsx'}}" src="/static/images/bookService/detail/excel.png" mode="aspectFill" /> <image wx:elif="{{ item.fileMap[item.file].extension == 'ppt' || item.fileMap[item.file].extension == 'pptx'}}" src="/static/images/bookService/detail/PPT.png" mode="aspectFill" /> <!-- 资源无文件内容图标 --> <image wx:else src="/static/images/bookService/detail/word.png" mode="" /> <image wx:else src="/static/images/bookService/detail/word.png" mode="" /> </view> <!-- 云学习图标 --> <view> </view> @@ -108,48 +43,20 @@ </view> <view wx:if="{{tab == 'jsek_cloudLearning'}}"> <!-- 云学习试看图标 --> <image src="/static/images/bookService/detail/shikan.png" class="testSee" wx:if="{{!item.isbuy ? false : item.freeFile ? true : false}}" ></image> <image src="/static/images/bookService/detail/shikan.png" class="testSee" wx:if="{{!item.isbuy ? false : item.freeFile ? true : false}}"></image> <!-- 云学习加入购物车图标 --> <image src="/static/images/bookService/detail/cart@2x.png" wx:if="{{item.isShopCar}}" class="shopCar" data-item="{{item}}" catch:tap="onCloudShoppingCart" ></image> <image src="/static/images/bookService/detail/cart@2x.png" wx:if="{{item.isShopCar}}" class="shopCar" data-item="{{item}}" catch:tap="onCloudShoppingCart"></image> <!-- 云学习购买图标 --> <image src="/static/images/bookService/detail/need-buy.png" class="need-buy" wx:if="{{item.isbuy }}" ></image> <image src="/static/images/bookService/detail/need-buy.png" class="need-buy" wx:if="{{item.isbuy }}"></image> </view> </view> </view> </view> </view> <t-collapse-panel wx:for="{{treeList}}" wx:for-item="item" wx:for-index="index" wx:key="id" value="{{item.id}}" wx:if="{{item.sysType == 'CmsFolder' }}" > <t-collapse-panel wx:for="{{treeList}}" wx:for-item="item" wx:for-index="index" wx:key="id" value="{{item.id}}" wx:if="{{item.sysType == 'CmsFolder' }}"> <view slot="header" class="header-title"> <view class="title-checkBox" catchtap="catchTap"> <t-checkbox style="align-items: center" icon="rectangle" checked="{{item.checked}}" data-item="{{item}}" catchchange="checkResourceTitle" wx:if="{{isShowCheck}}" /> <t-checkbox style="align-items: center" icon="rectangle" checked="{{item.checked}}" data-item="{{item}}" catchchange="checkResourceTitle" wx:if="{{isShowCheck}}" /> <!-- 章节名 --> <view class="title-box"> <view class="title-name">{{item.name}} </view> @@ -159,150 +66,54 @@ </view> </view> </view> <view class="list" wx:for="{{item.children}}" wx:for-item="citem" wx:for-index="cindex" wx:key="cindex" > <view class="list" wx:for="{{item.children}}" wx:for-item="citem" wx:for-index="cindex" wx:key="cindex"> <!-- // 判断 无子项 且为商品item 直接显示 --> <view class="listItems" wx:if="{{citem.childrenFolderCount <= 0 && citem.sysType == 'CmsItem'}}" > <view class="listItems" wx:if="{{citem.childrenFolderCount <= 0 && citem.sysType == 'CmsItem'}}"> <view class="itemsInfo" data-item="{{citem}}" data-index="{{cindex}}"> <view class="contentBox" bind:tap="goPlayer" data-item="{{citem}}" data-parent="{{item}}" > <view class="contentBox" bind:tap="goPlayer" data-item="{{citem}}" data-parent="{{item}}"> <!-- 教学资源 云学习 图标 --> <view class="box-image fl-cn"> <view class="checkBox" wx:if="{{isShowCheck}}" catchtap="catchTap" > <view class="checkBox" wx:if="{{isShowCheck}}" catchtap="catchTap"> <!-- checked="{{citem.checked}}" --> <!-- <t-checkbox icon="rectangle" checked="{{citem.checked}}" disabled="{{citem.selectType=='webpage' || citem.isDownload != 1 || citem.fileMap[citem.file].protectType == 'Private'}}" catch:change="checkResource" data-item="{{citem}}" /> --> <t-checkbox disabled="{{!citem.saleMethod[0].Id}}" icon="rectangle" checked="{{citem.checked}}" data-item="{{citem}}" data-parent="{{item}}" catch:change="checkResource" /> <t-checkbox disabled="{{!citem.saleMethod[0].Id}}" icon="rectangle" checked="{{citem.checked}}" data-item="{{citem}}" data-parent="{{item}}" catch:change="checkResource" /> </view> <!-- 教学资源图标 --> <view class="teach-icon fl-cn"> <image wx:if="{{citem.selectType == 'audio' || citem.learnSelectType == 'audio'}}" src="/static/images/bookService/detail/audioIcon.png" mode="aspectFill" /> <image wx:elif="{{citem.selectType == 'video' || citem.learnSelectType == 'video'}}" src="/static/images/bookService/detail/video.png" mode="aspectFill" /> <image wx:elif="{{citem.selectType == 'pdf'}}" src="/static/images/bookService/detail/pdf.png" mode="aspectFill" /> <image wx:elif="{{citem.selectType == 'webpage'}}" src="/static/images/bookService/detail/net.png" mode="aspectFill" /> <image wx:elif="{{citem.selectType == 'picture'}}" src="/static/images/bookService/detail/picture.png" mode="aspectFill" /> <image wx:elif="{{citem.selectType == 'zip'}}" src="/static/images/bookService/detail/zip.png" mode="aspectFill" /> <image wx:elif="{{ citem.fileMap[citem.file].extension == 'doc' || citem.fileMap[citem.file].extension == 'docx'}}" src="/static/images/bookService/detail/word.png" mode="aspectFill" /> <image wx:elif="{{ citem.fileMap[citem.file].extension == 'xlsx' || citem.fileMap[citem.file].extension == 'xlsx'}}" src="/static/images/bookService/detail/excel.png" mode="aspectFill" /> <image wx:elif="{{ citem.fileMap[citem.file].extension == 'ppt' || citem.fileMap[citem.file].extension == 'pptx'}}" src="/static/images/bookService/detail/PPT.png" mode="aspectFill" /> <image wx:if="{{citem.selectType == 'audio' || citem.learnSelectType == 'audio'}}" src="/static/images/bookService/detail/audioIcon.png" mode="aspectFill" /> <image wx:elif="{{citem.selectType == 'video' || citem.learnSelectType == 'video'}}" src="/static/images/bookService/detail/video.png" mode="aspectFill" /> <image wx:elif="{{citem.selectType == 'pdf'}}" src="/static/images/bookService/detail/pdf.png" mode="aspectFill" /> <image wx:elif="{{citem.selectType == 'webpage'}}" src="/static/images/bookService/detail/net.png" mode="aspectFill" /> <image wx:elif="{{citem.selectType == 'picture'}}" src="/static/images/bookService/detail/picture.png" mode="aspectFill" /> <image wx:elif="{{citem.selectType == 'zip'}}" src="/static/images/bookService/detail/zip.png" mode="aspectFill" /> <image wx:elif="{{ citem.fileMap[citem.file].extension == 'doc' || citem.fileMap[citem.file].extension == 'docx'}}" src="/static/images/bookService/detail/word.png" mode="aspectFill" /> <image wx:elif="{{ citem.fileMap[citem.file].extension == 'xlsx' || citem.fileMap[citem.file].extension == 'xlsx'}}" src="/static/images/bookService/detail/excel.png" mode="aspectFill" /> <image wx:elif="{{ citem.fileMap[citem.file].extension == 'ppt' || citem.fileMap[citem.file].extension == 'pptx'}}" src="/static/images/bookService/detail/PPT.png" mode="aspectFill" /> <!-- 资源无文件内容图标 --> <image wx:else src="/static/images/bookService/detail/word.png" mode="" /> <image wx:else src="/static/images/bookService/detail/word.png" mode="" /> </view> <!-- 云学习图标 --> <view> </view> <!-- 名称 --> <text class="name" style="{{ tab == 'jsek_teachingResources' ? citem.resourceClass ? 'width: 420rpx' : 'width: 560rpx;' : (citem.isShopCar &&citem.isbuy ) ? 'width: 400rpx;' : (citem.isShopCar ||citem.isbuy) ? 'width:520rpx' : 'width:560rpx'}}" >{{citem.name || '-'}}</text > <text class="name" style="{{ tab == 'jsek_teachingResources' ? citem.resourceClass ? 'width: 420rpx' : 'width: 560rpx;' : (citem.isShopCar &&citem.isbuy ) ? 'width: 400rpx;' : (citem.isShopCar ||citem.isbuy) ? 'width:520rpx' : 'width:560rpx'}}">{{citem.name || '-'}}</text> </view> <!-- 教学资源类型 --> <view class="teachClass fl-cn" wx:if="{{citem.resourceClass && tab == 'jsek_teachingResources'}}" > <view class="teachClass fl-cn" wx:if="{{citem.resourceClass && tab == 'jsek_teachingResources'}}"> {{citem.resourceClass}} </view> <view wx:if="{{tab == 'jsek_cloudLearning'}}"> <!-- 云学习试看图标 --> <image src="/static/images/bookService/detail/shikan.png" class="testSee" wx:if="{{!citem.isbuy ? false : citem.freeFile ? true : false}}" ></image> <image src="/static/images/bookService/detail/shikan.png" class="testSee" wx:if="{{!citem.isbuy ? false : citem.freeFile ? true : false}}"></image> <!-- 云学习加入购物车图标 --> <image src="/static/images/bookService/detail/cart@2x.png" wx:if="{{citem.isShopCar}}" class="shopCar" data-item="{{citem}}" catch:tap="onCloudShoppingCart" ></image> <image src="/static/images/bookService/detail/cart@2x.png" wx:if="{{citem.isShopCar}}" class="shopCar" data-item="{{citem}}" catch:tap="onCloudShoppingCart"></image> <!-- 云学习购买图标 --> <image src="/static/images/bookService/detail/need-buy.png" class="need-buy" wx:if="{{citem.isbuy }}" ></image> <image src="/static/images/bookService/detail/need-buy.png" class="need-buy" wx:if="{{citem.isbuy }}"></image> </view> </view> </view> </view> <!-- // 判断 不是商品 有子项 递归组件 --> <tree wx:if="{{ citem.sysType == 'CmsFolder' }}" isShowCheck="{{isShowCheck}}" bookInfo="{{bookInfo}}" treeList="{{[citem]}}" learnList="{{learnList}}" itemId="{{itemId}}" tab="{{tab}}" buyIds="{{buyIds}}" openIds="{{openIds}}" ></tree> <tree wx:if="{{ citem.sysType == 'CmsFolder' }}" isShowCheck="{{isShowCheck}}" bookInfo="{{bookInfo}}" treeList="{{[citem]}}" learnList="{{learnList}}" itemId="{{itemId}}" tab="{{tab}}" buyIds="{{buyIds}}" openIds="{{openIds}}"></tree> </view> <!-- 暂无数据 --> <view wx:if="{{!item.children || !item.children.length}}" class="noData"> packageBookService/pages/bookServices/list/index.wxml
@@ -3,78 +3,24 @@ <import src="index.skeleton.wxml" /> <template is="skeleton" wx:if="{{loading}}" /> <page-meta page-style="{{showDropdown ? 'overflow: hidden;' : ''}}" wx:if="{{!loading}}" > <page-meta page-style="{{showDropdown ? 'overflow: hidden;' : ''}}" wx:if="{{!loading}}"> <view style="width: 100%; height: {{barHeight}}px;"></view> <view class="nacigationBar" style="width: 70%; height: {{navBarHeight}}px;"> <view> <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> </view> <t-search model:value="{{searchValue}}" shape="round" placeholder="请输入关键词/书名/ISBN/作者" class="navBar-search" style="width: 464rpx" bind:submit="searchBook" /> <t-search model:value="{{searchValue}}" shape="round" placeholder="请输入关键词/书名/ISBN/作者" class="navBar-search" style="width: 464rpx" bind:submit="searchBook" /> </view> <view class="bookServices-list"> <view class="list-header"> <view class="header-scroll"> <t-dropdown-menu style="width: 1200rpx"> <t-dropdown-item disabled="{{disabledStair}}" optionsColumns="2" options="{{stairList.options}}" value="{{stairList.value}}" bindchange="onChangeStair" /> <t-dropdown-item disabled="{{disabledSecondList}}" label="二级" bind:open="openDropdown" bind:close="closeDropdown" options="{{secondList.options}}" optionsColumns="2" multiple defaultValue="{{secondList.value}}" bind:confirm="onConfirmSecond" bind:reset="resetSecond" /> <t-dropdown-item label="重点项目" disabled="{{disabledProject}}" options="{{majorProjectList.options}}" optionsColumns="2" multiple defaultValue="{{majorProjectList.value}}" bind:confirm="changeMajorProject" bind:reset="resetMajorProject" /> <t-dropdown-item label="新形态教材" disabled="{{disabledNewForms}}" options="{{newTextBook.options}}" optionsColumns="2" multiple defaultValue="{{newTextBook.value}}" bind:confirm="changeNewText" bind:reset="resetNewText" /> <t-dropdown-item options="{{sortList.options}}" value="{{sortList.value}}" bindchange="onSortChange" /> <t-dropdown-item disabled="{{disabledStair}}" optionsColumns="2" options="{{stairList.options}}" value="{{stairList.value}}" bindchange="onChangeStair" /> <t-dropdown-item disabled="{{disabledSecondList}}" label="二级" bind:open="openDropdown" bind:close="closeDropdown" options="{{secondList.options}}" optionsColumns="2" multiple defaultValue="{{secondList.value}}" bind:confirm="onConfirmSecond" bind:reset="resetSecond" /> <t-dropdown-item label="重点项目" disabled="{{disabledProject}}" options="{{majorProjectList.options}}" optionsColumns="2" multiple defaultValue="{{majorProjectList.value}}" bind:confirm="changeMajorProject" bind:reset="resetMajorProject" /> <t-dropdown-item label="新形态教材" disabled="{{disabledNewForms}}" options="{{newTextBook.options}}" optionsColumns="2" multiple defaultValue="{{newTextBook.value}}" bind:confirm="changeNewText" bind:reset="resetNewText" /> <t-dropdown-item options="{{sortList.options}}" value="{{sortList.value}}" bindchange="onSortChange" /> </t-dropdown-menu> </view> <!-- <view class="header-sort"> @@ -83,27 +29,10 @@ </t-dropdown-menu> </view> --> </view> <scroll-view scroll-y="{{true}}" scroll-into-view="{{backTop}}" refresher-enabled="{{true}}" lower-threshold="{{200}}" refresher-threshold="{{80}}" refresher-default-style="none" refresher-triggered="{{triggered}}" bindrefresherrefresh="onPullDownRefresh" bindrefresherpulling="{{refresh.onPulling}}" class="list-container" bindscrolltolower="onReachBottom" > <scroll-view scroll-y="{{true}}" scroll-into-view="{{backTop}}" refresher-enabled="{{true}}" lower-threshold="{{200}}" refresher-threshold="{{80}}" refresher-default-style="none" refresher-triggered="{{triggered}}" bindrefresherrefresh="onPullDownRefresh" bindrefresherpulling="{{refresh.onPulling}}" class="list-container" bindscrolltolower="onReachBottom"> <view slot="refresher" class="refresh-container"> <view class="loading"> <t-loading theme="circular" size="40rpx" text="正在刷新..." class="wrapper" /> <t-loading theme="circular" size="40rpx" text="正在刷新..." class="wrapper" /> </view> </view> <view class="assort-title" id="assort-title"> @@ -112,19 +41,9 @@ </view> <view class="page-content"> <view class="book-list" wx:if="{{!loaidng}}"> <view class="book-box" wx:for="{{bookList}}" wx:key="id" bind:tap="goDetail" data-book="{{item}}" > <view class="book-box" wx:for="{{bookList}}" wx:key="id" bind:tap="goDetail" data-book="{{item}}"> <view class="book-img"> <image src="{{item.icon ? item.icon : '/static/images/default-book-img.png'}}" aria-label="{item.name{}}" mode="aspectFit" /> <image src="{{item.icon ? item.icon : '/static/images/default-book-img.png'}}" aria-label="{item.name{}}" mode="aspectFit" /> </view> <view class="book-name book-color">{{ item.name}}</view> <view class="book-author book-color">{{item.author}}</view> @@ -136,13 +55,7 @@ </view> </view> <view class="bottom-box" wx:if="{{bookList.length}}"> <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" loading="{{isMore}}" /> <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" loading="{{isMore}}" /> <text wx:if="{{isMore == false}}">没有更多了</text> </view> </scroll-view> packageBookService/pages/bookServices/list/index.wxss
@@ -12,6 +12,10 @@ margin-bottom: 30rpx; } .t-search__input-box { height: 70rpx !important; } .list-header { overflow: hidden; display: flex; @@ -260,6 +264,6 @@ font-size: var(--td-radio-font-size, 28rpx) !important; } .t-icon-base { .t-icon-search { font-size: 38rpx; } packageDomain/pages/sampleBookList/index.wxml
@@ -2,59 +2,20 @@ <view clas="container"> <view class="page-header" wx:if="{{!skeletonLoding}}"> <view style="width: 100%; height: {{barHeight}}px;"></view> <view class="nacigationBar" style="width: 100%; height: {{navBarHeight}}px;" > <view> <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> <view class="nacigationBar" style="width: 100%; height: {{navBarHeight}}px;"> <view class="backBtn"> <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> </view> <t-search model:value="{{searchValue}}" shape="round" placeholder="请输入关键词/书名/ISBN/作者" class="navBar-search" style="width: 464rpx" bind:submit="searchBook" /> <t-search model:value="{{searchValue}}" shape="round" placeholder="请输入关键词/书名/ISBN/作者" class="navBar-search" style="width: 464rpx" bind:submit="searchBook" /> </view> <view class="list-header"> <view class="header-scroll"> <view class="srcolbox"> <t-dropdown-menu> <t-dropdown-item options="{{iconList.options}}" value="{{iconList.value}}" optionsColumns="2" bindchange="onChangeIcon" /> <t-dropdown-item options="{{stairList.options}}" value="{{stairList.value}}" optionsColumns="2" bindchange="onChangeStair" disabled="{{assortCheck.code == '' || stairList.options.length == 0}}" /> <t-dropdown-item label=" 二级" options="{{secondList.options}}" optionsColumns="2" multiple defaultValue="{{secondList.value}}" bind:confirm="onConfirmSecond" bind:reset="onResetSecond" disabled="{{stairCode == '' || assortCheck.code == '' || secondList.options.length == 0}}" /> <t-dropdown-item options="{{sortList.options}}" value="{{sortList.value}}" bindchange="onSortChange" /> <t-dropdown-item options="{{iconList.options}}" value="{{iconList.value}}" optionsColumns="2" bindchange="onChangeIcon" /> <t-dropdown-item options="{{stairList.options}}" value="{{stairList.value}}" optionsColumns="2" bindchange="onChangeStair" disabled="{{assortCheck.code == '' || stairList.options.length == 0}}" /> <t-dropdown-item label=" 二级" options="{{secondList.options}}" optionsColumns="2" multiple defaultValue="{{secondList.value}}" bind:confirm="onConfirmSecond" bind:reset="onResetSecond" disabled="{{stairCode == '' || assortCheck.code == '' || secondList.options.length == 0}}" /> <t-dropdown-item options="{{sortList.options}}" value="{{sortList.value}}" bindchange="onSortChange" /> </t-dropdown-menu> </view> </view> @@ -71,82 +32,29 @@ <view class="list-body"> <movable-area class="movable-area"> <!-- model:scroll-top="{{setScrollValue}}" --> <scroll-view class="scroll content" bind:scroll="onPageScroll" scroll-y refresher-enabled="{{true}}" lower-threshold="{{200}}" refresher-threshold="{{180}}" refresher-default-style="none" refresher-triggered="{{triggered}}" bindrefresherpulling="{{refresh.onPulling}}" bindrefresherrefresh="onPullDownRefresh" bindscrolltolower="onReachBottom" > <scroll-view class="scroll content" bind:scroll="onPageScroll" scroll-y refresher-enabled="{{true}}" lower-threshold="{{200}}" refresher-threshold="{{180}}" refresher-default-style="none" refresher-triggered="{{triggered}}" bindrefresherpulling="{{refresh.onPulling}}" bindrefresherrefresh="onPullDownRefresh" bindscrolltolower="onReachBottom"> <view slot="refresher" class="refresh-container"> <view class="loading"> <t-loading theme="circular" size="40rpx" text="正在刷新..." class="wrapper" /> <t-loading theme="circular" size="40rpx" text="正在刷新..." class="wrapper" /> </view> </view> <view class="title"> <view class="line"></view> <view class="icon"> <image src="/static/images/home/yangshuliebiao.png" mode="aspectFit" class="iconImage" /> <image src="/static/images/home/yangshuliebiao.png" mode="aspectFit" class="iconImage" /> </view> </view> <view class="book-list" wx:if="{{bookList.length > 0}}"> <view class="book-box" wx:for="{{bookList}}" wx:key="id"> <view class="book-img" bind:tap="goDetail" data-book="{{item}}"> <image src="{{item.icon}}" aria-label="{{item.name}}" mode="aspectFit" wx:if="{{item.icon}}" /> <image src="/static/images/default-book-img.png" aria-label="{{item.name}}" mode="aspectFit" wx:else /> <image src="{{item.icon}}" aria-label="{{item.name}}" mode="aspectFit" wx:if="{{item.icon}}" /> <image src="/static/images/default-book-img.png" aria-label="{{item.name}}" mode="aspectFit" wx:else /> </view> <view class="book-name book-color" bind:tap="goDetail" data-book="{{item}}" >{{ item.name}}</view > <view class="book-name book-color" bind:tap="goDetail" data-book="{{item}}">{{ item.name}}</view> <view class="book-author book-color">{{item.author}}</view> <view class="checkbox"> <t-checkbox label="纸质样书" icon="rectangle" borderless="true" checked="{{item.paperChecked}}" disabled="{{item.paperDisabled || item.isApplyBook == '1' || item.isApplyBook == '2'}}" data-book="{{item}}" bind:change="onChangePaper" /> <t-checkbox label="电子样书" icon="rectangle" borderless="true" class="eBook" checked="{{item.electronChecked}}" disabled="{{item.electronDisabled || item.isApplyBook=='1' || item.isApplyBook=='3' }}" data-book="{{item}}" bind:change="onChangeElectron" /> <t-checkbox label="纸质样书" icon="rectangle" borderless="true" checked="{{item.paperChecked}}" disabled="{{item.paperDisabled || item.isApplyBook == '1' || item.isApplyBook == '2'}}" data-book="{{item}}" bind:change="onChangePaper" /> <t-checkbox label="电子样书" icon="rectangle" borderless="true" class="eBook" checked="{{item.electronChecked}}" disabled="{{item.electronDisabled || item.isApplyBook=='1' || item.isApplyBook=='3' }}" data-book="{{item}}" bind:change="onChangeElectron" /> </view> </view> </view> @@ -155,34 +63,16 @@ <empty /> </view> <view class="bottom-loading" wx:if="{{bottomLoading}}"> <t-loading theme="circular" size="40rpx" text="加载中..." class="wrapper" /> <t-loading theme="circular" size="40rpx" text="加载中..." class="wrapper" /> </view> <view class="bottom-loading" style="color: #ccc; font-size: 28rpx" wx:if="{{isMoreData}}" > <view class="bottom-loading" style="color: #ccc; font-size: 28rpx" wx:if="{{isMoreData}}"> <text>没有更多了</text> </view> </scroll-view> <movable-view class="movable-view" :x="{{x}}" :y="{{y}}" direction="all" > <movable-view class="movable-view" :x="{{x}}" :y="{{y}}" direction="all"> <view class="applyBox" bindtap="goApply"> <view class="box"> <t-image src="/static/images/home/yangshuForm1.png" mode="heightFix" class="img" /> <t-image src="/static/images/home/yangshuForm1.png" mode="heightFix" class="img" /> <view class="num" wx:if="{{num > 0}}">{{num}}</view> </view> </view> @@ -190,12 +80,7 @@ </movable-area> </view> </view> <t-back-top theme="round" wx:if="{{isBackTop}}" text="顶部" bind:to-top="onToTop" ></t-back-top> <t-back-top theme="round" wx:if="{{isBackTop}}" text="顶部" bind:to-top="onToTop"></t-back-top> </view> <import src="index.skeleton.wxml" /> <template is="skeleton" wx:if="{{skeletonLoding}}" /> packageDomain/pages/sampleBookList/index.wxss
@@ -338,6 +338,11 @@ left: 118rpx; } .t-icon-base { .t-icon-search { font-size: 38rpx; } .t-search__input-box { height: 70rpx !important; } packagePersonal/pages/aboutUs/index.wxml
@@ -6,18 +6,11 @@ <view style="width: 100%; height: {{barHeight}}px; "></view> <view class="nacigationBar" style="width: 90%; height: {{navBarHeight}}px;"> <view> <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> </view> <view class="titleTextBox"> <view wx:if="{{types == 'jsek_aboutUs'}}" class="navbar-title" >关于我们</view > <view wx:if="{{types == 'jsek_aboutUs'}}" class="navbar-title">关于我们</view> <view wx:else class="navbar-title">联系我们</view> </view> </view> @@ -28,12 +21,7 @@ <rich-text nodes="{{aboutText}}" space="emsp"></rich-text> </view> </view> <view wx:else class="aboutText richTextBox" style="margin: 5rpx"> <rich-text style="width: 100%" space="emsp" nodes="{{aboutText}}" mode="compat" ></rich-text> <view wx:else class="aboutText richTextBox"> <rich-text style="width: 100vw" space="emsp" nodes="{{aboutText}}" mode="compat"></rich-text> </view> </view> packagePersonal/pages/aboutUs/index.wxss
@@ -36,7 +36,9 @@ } .aboutText { padding-bottom: 100rpx; height: calc(100vh - env(safe-area-inset-bottom) - 200rpx); overflow-y: auto; padding: 0 20rpx; } .titleBox { @@ -56,18 +58,18 @@ /* .richTextBox { line-height: 1.4 !important; font-size: 14px !important; } } */ .richTextBox { /* .richTextBox { margin: revert !important; padding: revert !important; border: revert !important; font: revert !important; vertical-align: revert !important; color: #000 !important; } } */ /* .richTextBox p { display: block !important; -webkit-margin-before: 1em !important; @@ -78,17 +80,20 @@ margin-inline-start: 0 !important; -webkit-margin-end: 0 !important; margin-inline-end: 0 !important; } } */ .richTextBox td { /* .richTextBox td { border-bottom: 1px dashed !important; border-right: 1px dashed !important; border-width: 1px !important; } .richTextBox table { border-width: 2px !important; } */ /* .richTextBox table { border-width: 2rpx !important; } */ .aboutUs-rich-p { display: block !important; -webkit-margin-before: 1em !important; pages/bibliographyList/index.js
@@ -168,7 +168,7 @@ }) this.setData({ higherList: res.datas, higherTotal: res.total.le higherTotal: res.total }) this.setData({ loading: false, //开启骨架屏加载 pages/bibliographyList/index.wxss
@@ -6,6 +6,10 @@ align-items: center; } .t-icon-search { font-size: 38rpx; } .navbar-title { white-space: nowrap; /* overflow: hidden; */ @@ -119,10 +123,9 @@ display: flex; justify-content: center; color: #999; height: 80rpx; font-size: 28rpx; --td-loading-color: #ff6c00; margin-top: 80rpx; padding: 20rpx; } .loadinBox { @@ -210,7 +213,7 @@ .t-search__input-box--square { border-radius: var(--td-search-square-radius, var(--td-radius-default, 36rpx)) !important; height: 72rpx; height: 70rpx !important; } .t-tabs .t-tabs__item--active { @@ -242,7 +245,7 @@ } .scroll-box { height: calc(100vh - 264rpx - env(safe-area-inset-bottom)); height: calc(100vh - 220rpx - env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); } pages/bookExhibitionList/index.wxml
@@ -10,24 +10,12 @@ <view class="outsideBigTitleBox"> <view class="bigTitleBox"> <view style="width: 100%; height: {{barHeight}}px; "></view> <view class="nacigationBar" style="width: 70%; height: {{navBarHeight}}px;" > <view class="nacigationBar" style="width: 70%; height: {{navBarHeight}}px;"> <view class="titleIconBox"> <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> </view> <view class="example-search"> <t-search model:value="{{value}}" placeholder="请输入书展名称" bind:submit="onSearchSubmit" /> <t-search class="navBar-search" shape="round" model:value="{{value}}" placeholder="请输入书展名称" bind:submit="onSearchSubmit" /> </view> </view> </view> @@ -35,30 +23,12 @@ <view class="outsideMenuBox"> <view class="menuBox"> <t-dropdown-menu> <t-dropdown-item options="{{product.options}}" default-value="{{product.value}}" bindchange="onChange" /> <t-dropdown-item options="{{product.options}}" default-value="{{product.value}}" bindchange="onChange" /> <!-- disabled="{{keynoteDisabled}}" --> <t-dropdown-item label=" 重点项目" disabled="{{disbaleProject}}" options="{{multipleSelect.options}}" bindchange="handleMultipleSelect" multiple bind:confirm="handleConfirm" bind:reset="handleReset" value="{{multipleSelect.value}}" > <t-dropdown-item label=" 重点项目" disabled="{{disbaleProject}}" options="{{multipleSelect.options}}" bindchange="handleMultipleSelect" multiple bind:confirm="handleConfirm" bind:reset="handleReset" value="{{multipleSelect.value}}"> </t-dropdown-item> <t-dropdown-item disabled="{{disabledSort}}" options="{{sorter.options}}" default-value="{{sorter.value}}" bindchange="onSort" /> <t-dropdown-item disabled="{{disabledSort}}" options="{{sorter.options}}" default-value="{{sorter.value}}" bindchange="onSort" /> </t-dropdown-menu> </view> </view> @@ -67,53 +37,29 @@ <view class="titleBox"> <view class="frameBox"></view> <view class="titleTextBox"> <image src="/static/images/bookExhibitionList/zhuantitaolun.png" mode="aspectFit" /> <image src="/static/images/bookExhibitionList/zhuantitaolun.png" mode="aspectFit" /> </view> </view> <scroll-view scroll-y="{{true}}" class="scrollViewBox" bindscrolltolower="onScrollToLower" > <scroll-view scroll-y="{{true}}" class="scrollViewBox" bindscrolltolower="onScrollToLower"> <view class="outside"> <view wx:if="{{!bookExhibitionList.length }}" class="noData"> <!-- <t-empty icon="folder-open" description="暂无数据" /> --> <empty /> </view> <view class="contentBox" wx:for="{{bookExhibitionList}}" wx:key="index" wx:for-item="item" wx:for-index="index" data-item="{{item}}" bind:tap="onBookExhibitionDetails" > <view class="contentBox" wx:for="{{bookExhibitionList}}" wx:key="index" wx:for-item="item" wx:for-index="index" data-item="{{item}}" bind:tap="onBookExhibitionDetails"> <view class="imageBox"> <view></view> <image wx:if="{{item.icon}}" src="{{item.icon}}" mode="aspectFit" /> <image wx:else src="/static/images/bookExhibitionList/banner.png" mode="aspectFit" /> <image wx:else src="/static/images/bookExhibitionList/banner.png" mode="aspectFit" /> </view> <view class="textBox" title="{{item.subtitleName}}"> <text>{{item.subtitleName}}</text></view > <text>{{item.subtitleName}}</text> </view> </view> </view> <view class="bottom-box" wx:if="{{bookExhibitionList.length }}"> <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" /> <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" /> <text wx:if="{{isMore == false}}">没有更多了</text> </view> <!-- <Select prop-array='{{selectArray}}'></Select> --> pages/bookExhibitionList/index.wxss
@@ -4,7 +4,9 @@ .nacigationBar { background-color: #fff; display: flex; --td-search-font-size: 28rpx; align-items: center; padding-left: 10rpx; } .navbar-title { @@ -277,16 +279,15 @@ justify-content: center; } .t-search__input-box--square { border-radius: var(--td-search-square-radius, var(--td-radius-default, 36rpx)) !important; height: 72rpx; .t-search__input-box { height: 70rpx !important; } .t-radio { font-size: var(--td-radio-font-size, 28rpx) !important; } .titleIconBox .t-icon-base { .t-icon-search { font-size: 38rpx; } pages/cart/paymentPage/index.wxss
@@ -5,6 +5,7 @@ background-color: #fff; display: flex; align-items: center; padding-left: 10rpx; } .navbar-title { pages/digitalCourses/index.wxss
@@ -12,10 +12,14 @@ align-items: center; --td-search-font-size: 28rpx; margin-bottom: 30rpx; padding-left: 10rpx; } .t-search__input-box { height: 70rpx !important; } .nacigationBar .t-icon-base { .nacigationBar .t-icon-search { font-size: 38rpx; } @@ -47,8 +51,8 @@ /* background-size: 100% 100%; background-position: 100% 100%; */ background-image: url(https://jsek.bnuic.com/home/image/click-icon.png); background-position: 85% center; background-size: 20% 50%; background-position: 90% center; background-size: 25% 50%; /* 将背景图片位置设置为靠右 */ } pages/digitalTextbooks/index.wxss
@@ -15,10 +15,14 @@ align-items: center; --td-search-font-size: 28rpx; margin-bottom: 30rpx; padding-left: 10rpx; } .t-search__input-box { height: 70rpx !important; } .nacigationBar .t-icon-base { .t-icon-search { font-size: 38rpx; } pages/index/bookDetail.js
@@ -1,5 +1,8 @@ // pages/index/bookDetail.js const app = getApp() import { loginInfo } from '../../assets/js/login'; Page({ /** pages/index/resourceCover.js
@@ -1,5 +1,8 @@ // pages/index/resourceCover.js const app = getApp() import { loginInfo } from '../../assets/js/login'; Page({ /** pages/personalCenter/index.js
@@ -170,6 +170,7 @@ 'baseRefresh.value': true, }) this.getUserInfo() wx.stopPullDownRefresh() }, /** * 页面上拉触底事件的处理函数 pages/personalCenter/index.json
@@ -7,5 +7,5 @@ "t-popup": "tdesign-miniprogram/popup/popup", "t-pull-down-refresh": "tdesign-miniprogram/pull-down-refresh/pull-down-refresh" }, "enablePullDownRefresh": true "enablePullDownRefresh": false } pages/retrievalPage/index.wxss
@@ -7,6 +7,10 @@ align-items: center; } .t-icon-base { font-size: 38rpx; } .navbar-title { white-space: nowrap; /* overflow: hidden; */ pages/specialDiscussion/index.wxss
@@ -11,10 +11,15 @@ align-items: center; --td-search-font-size: 28rpx; margin-bottom: 30rpx; padding-left: 10rpx; } .nacigationBar .t-icon-base { .t-search__input-box { height: 70rpx !important; } .nacigationBar .t-icon-search { font-size: 38rpx; } pages/test/testCover.js
@@ -1,5 +1,8 @@ // pages/test/testCover.js const app = getApp() import { loginInfo } from '../../assets/js/login'; Page({ /** services/home/home.js
@@ -21,22 +21,22 @@ 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: '线上书展',