| | |
| | | console.log(this.data.bookItemDetail.defaultSaleMethodId, 'this.data.bookItemDetail.defaultSaleMethodId'); |
| | | if (!this.data.expire) { |
| | | let bookOrdersId = '' |
| | | let pBookInfo = { |
| | | type: "电子书", |
| | | pId: this.data.bookItemDetail ? this.data.bookDetail.id : '' |
| | | } |
| | | let query = { |
| | | remarks: '电子书', |
| | | remarks: JSON.stringify(pBookInfo), |
| | | requests: [{ |
| | | saleMethodId: this.data.bookItemDetail.defaultSaleMethodId ? this.data.bookItemDetail.defaultSaleMethodId : this.data.bookDetail.defaultSaleMethodId, |
| | | count: 1 |
| | |
| | | |
| | | }) |
| | | }, |
| | | |
| | | goBookDetails(e) { |
| | | const { |
| | | book |
| | | } = e.currentTarget.dataset; |
| | | console.log(book) |
| | | wx.navigateTo({ |
| | | url: `/packageBookService/pages/bookServices/detail/index?id=${book.id}&name=${book.name}`, |
| | | }); |
| | | }, |
| | | /** |
| | | * 页面相关事件处理函数--监听用户下拉动作 |
| | | */ |
| | |
| | | <view class="listBox"> |
| | | <scroll-view class="srcolbox" scroll-x scroll-with-animation='true'> |
| | | <view class="order-centent"> |
| | | <view class="bookBox" wx:for="{{items.productList}}" wx:for-item="itemes" wx:for-index="idx" wx:key="idx" bindtap="onOrderDetail" data-info="{{itemes}}"> |
| | | <view class="bookBox" wx:for="{{items.productList}}" wx:for-item="itemes" wx:for-index="idx" wx:key="idx" bindtap="goBookDetails" data-book="{{itemes}}"> |
| | | <view class="leftCon"> |
| | | <!-- 获取图片 --> |
| | | <image class="purchasedIcon" wx:if="{{itemes.icon}}" src="{{itemes.icon}}" mode="aspectFit" /> |
| | |
| | | <view class="rightCon"> |
| | | <view class="productTitle">{{itemes.name}}</view> |
| | | <view class="typeBox"> |
| | | <text class="typeCon">{{ |
| | | itemes.orderSaleMethod.type == 'defaultSaleMethod' |
| | | ? '电子书' |
| | | : itemes.orderSaleMethod.type == 'createProductSaleMethod' && itemes.orderSaleMethod.cmsItemList == 0 ? '组卷' : '云学习' |
| | | }}</text> |
| | | <text class="typeCon">电子书</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | }, |
| | | |
| | | goBookDetails(e) { |
| | | const { book } = e.currentTarget.dataset; |
| | | const { |
| | | book |
| | | } = e.currentTarget.dataset; |
| | | wx.navigateTo({ |
| | | url: `/packageBookService/pages/bookServices/detail/index?id=${book.id}&name=${book.name}`, |
| | | url: `/packageBookService/pages/bookServices/detail/index?id=${book.product.id}&name=${book.name}`, |
| | | }); |
| | | }, |
| | | |
| | |
| | | </view> |
| | | <view class="pageInfo" wx:if="{{list.length > 0 && !skeletonLoding}}"> |
| | | <view class="content-item" wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"> |
| | | <view class="item-con" data-info="{{item}}" bindtap="toList"> |
| | | <view class="item-con" data-book="{{item}}" bindtap="goBookDetails"> |
| | | <view class="icon"> |
| | | <t-image src="{{item.product.icon}}" mode="aspectFill" class="img" /> |
| | | <t-image src="{{item.product.icon}}" mode="aspectFill" class="img" wx:if="{{item.product.icon}}" /> |
| | | <image class="purchasedIcon" src="/static/images/default-book-img.png" mode="aspectFit" wx:else /> |
| | | </view> |
| | | <view class="titleBox"> |
| | | <view class="item-title">{{item.name}}</view> |
| | |
| | | } |
| | | |
| | | .pageInfo { |
| | | padding: 40rpx; |
| | | padding: 24rpx; |
| | | } |
| | | |
| | | .content-item { |
| | |
| | | .content-item .icon { |
| | | width: 150rpx; |
| | | height: 200rpx; |
| | | box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.16); |
| | | } |
| | | |
| | | .content-item .icon .img { |
| | |
| | | .titleBox .item-title { |
| | | font-weight: bold; |
| | | margin-bottom: 20rpx; |
| | | max-height: 88rpx; |
| | | color: #333333; |
| | | line-height: 44rpx; |
| | | display: -webkit-box; |
| | | -webkit-box-orient: vertical; |
| | | -webkit-line-clamp: 2; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | } |
| | | |
| | | .createDate { |
| | |
| | | } |
| | | |
| | | .stateBox { |
| | | width: 120rpx; |
| | | width: 110rpx; |
| | | text-align: right; |
| | | font-size: 28rpx; |
| | | line-height: 60rpx; |
| | |
| | | <t-tab-panel wx:for="{{tabList}}" wx:for-index="index" wx:key="index" label="{{item.label}}" value="{{index}}"> |
| | | </t-tab-panel> |
| | | </t-tabs> |
| | | <view class="con-bg"></view> |
| | | </view> |
| | | <view class="pageInfo"> |
| | | <scroll-view class="scroll content" bind:scroll="onPageScroll" model:scroll-top="{{setScrollValue}}" scroll-y refresher-enabled="{{true}}" lower-threshold="{{200}}" refresher-threshold="{{80}}" refresher-default-style="none" refresher-triggered="{{triggered}}" bindrefresherpulling="{{refresh.onPulling}}" bindrefresherrefresh="onPullDownRefresh" bindscrolltolower="onReachBottom"> |
| | |
| | | } |
| | | |
| | | .page-header { |
| | | background-color: #f0f2f5; |
| | | width: 100%; |
| | | position: fixed; |
| | | top: 0; |
| | |
| | | z-index: 1; |
| | | } |
| | | |
| | | .con-bg { |
| | | background: #fff; |
| | | height: 30rpx; |
| | | margin-top: -30rpx; |
| | | } |
| | | |
| | | .pageInfo { |
| | | padding-top: 90rpx; |
| | | } |
| | |
| | | <view class="author">{{item.author}}</view> |
| | | </view> |
| | | <view class="currentBtn" data-info="{{item}}" bindtap="setCoolect"> |
| | | <t-image src="/static/images/personal/quxiaoshoucang.png" mode="heightFix" class="img" /> |
| | | <image src="/static/images/personal/quxiaoshoucang.png" mode="aspectFit" class="img" /> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | }) |
| | | this.getDataList(false); |
| | | }, |
| | | |
| | | goBookDetails(e) { |
| | | const { |
| | | book, |
| | | remarks |
| | | } = e.currentTarget.dataset; |
| | | let id = remarks != null && JSON.stringify(remarks).slice(1, -1) == 'object' && JSON.parse(remarks).pId ? JSON.parse(remarks).pId : book.orderSaleMethod.product.id; |
| | | wx.navigateTo({ |
| | | url: `/packageBookService/pages/bookServices/detail/index?id=${id}&name=${book.name}`, |
| | | }); |
| | | }, |
| | | |
| | | /** |
| | | * 页面相关事件处理函数--监听用户下拉动作 |
| | |
| | | </view> |
| | | <view class="order-centent"> |
| | | <scroll-view class="srcolbox" scroll-x scroll-with-animation='true'> |
| | | <view class="bookBox {{items.saleMethodLinks.length == 1 ? 'flex' : ''}}" wx:for="{{items.saleMethodLinks}}" wx:for-item="itemes" wx:for-index="idx" wx:key="idx" bindtap="onOrderDetail" data-info="{{itemes}}"> |
| | | <view class="bookBox {{items.saleMethodLinks.length == 1 ? 'flex' : ''}}" wx:for="{{items.saleMethodLinks}}" wx:for-item="itemes" wx:for-index="idx" wx:key="idx" bindtap="goBookDetails" data-book="{{itemes}}" data-remarks="{{items.remarks}}"> |
| | | <view class="leftCon {{items.saleMethodLinks.length == 1 ? 'fl' : ''}}"> |
| | | <!-- 获取图片 --> |
| | | <image class="purchasedIcon" wx:if="{{itemes.icon}}" src="{{itemes.icon}}" mode="aspectFit" /> |
| | |
| | | active: 0, |
| | | topicIdOrRefCode: "applyEntityBook", |
| | | active1: 0, |
| | | tabList: [ |
| | | { |
| | | tabList: [{ |
| | | label: '全部', |
| | | value: 'all', |
| | | }, |
| | |
| | | that.setData({ |
| | | skeletonLoding: true, |
| | | active1: item.detail.value, |
| | | queryFilter: info.value == 'all' ? [] : [{ field: 'State', value: info.value }], |
| | | queryFilter: info.value == 'all' ? [] : [{ |
| | | field: 'State', |
| | | value: info.value |
| | | }], |
| | | list: [], |
| | | page: 1, |
| | | bottomLoading: false, |
| | |
| | | }) |
| | | }, |
| | | |
| | | goBookDetails(e) { |
| | | const { |
| | | book |
| | | } = e.currentTarget.dataset; |
| | | wx.navigateTo({ |
| | | url: `/packageBookService/pages/bookServices/detail/index?id=${book.id}&name=${book.title}`, |
| | | }); |
| | | }, |
| | | |
| | | /** |
| | | * 页面相关事件处理函数--监听用户下拉动作 |
| | | */ |
| | |
| | | <text wx:if="{{items.state =='Reject'}}">原因:{{items.feedBack.reason}}</text> |
| | | <view wx:if="{{active == '0' && items.state =='Normal'}}" class="mailInfo"> |
| | | <text class="mailNum">快递单号:{{items.feedBack && items.feedBack.mailNum ? items.feedBack.mailNum : '-'}}</text> |
| | | <text>快递公司:{{items.feedBack.mailName ? items.feedBack.mailName : '-'}}</text> |
| | | <text class="mailName">快递公司:{{items.feedBack.mailName ? items.feedBack.mailName : '-'}}</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="listBox"> |
| | | <scroll-view class="srcolbox" scroll-x scroll-with-animation='true'> |
| | | <view class="order-centent"> |
| | | <view class="bookBox" wx:for="{{items.productList}}" wx:for-item="itemes" wx:for-index="idx" wx:key="idx" bindtap="onOrderDetail" data-info="{{itemes}}"> |
| | | <view class="bookBox" wx:for="{{items.productList}}" wx:for-item="itemes" wx:for-index="idx" wx:key="idx" bindtap="goBookDetails" data-book="{{itemes}}"> |
| | | <view class="leftCon"> |
| | | <!-- 获取图片 --> |
| | | <image class="purchasedIcon" wx:if="{{itemes.icon}}" src="{{itemes.icon}}" mode="aspectFit" /> |
| | |
| | | |
| | | .content-item { |
| | | margin-bottom: 30rpx; |
| | | padding: 30rpx; |
| | | padding: 24rpx; |
| | | background: #fff; |
| | | border-radius: 10rpx; |
| | | } |
| | |
| | | overflow: hidden; |
| | | white-space: nowrap; |
| | | text-overflow: ellipsis; |
| | | max-width: 440rpx; |
| | | max-width: 420rpx; |
| | | } |
| | | |
| | | .mailName { |
| | | white-space: nowrap; |
| | | /* 保证文本在一行内显示 */ |
| | | overflow: hidden; |
| | | /* 隐藏超出容器的文本 */ |
| | | text-overflow: ellipsis; |
| | | } |
| | | |
| | | .success { |
| | |
| | | .bookBox .leftCon { |
| | | width: 180rpx; |
| | | height: 240rpx; |
| | | box-shadow: 0px 0px 20rpx 2px #f1f1f1; |
| | | box-shadow: 0px 0px 20rpx 2px #EDECEC; |
| | | } |
| | | |
| | | .bookBox .leftCon .purchasedIcon { |
| | |
| | | * 生命周期函数--监听页面加载 |
| | | */ |
| | | onLoad(options) { |
| | | console.log(options) |
| | | if (options && options.link) { |
| | | this.setData({ |
| | | src: decodeURIComponent(options.link), |