<view class="container">
|
<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">
|
<view slot="refresher" class="refresh-container">
|
<view class="loading">
|
<t-loading theme="circular" size="40rpx" text="正在刷新..." class="wrapper" />
|
</view>
|
</view>
|
<view class="pageInfo">
|
<view class="activation">
|
<view class="title">
|
<view class="line"></view>
|
<view>激活码</view>
|
</view>
|
<view class="contentBox">
|
<view class="inputBox">
|
<input class="weui-input" name="code" auto-focus="true" adjust-position="true" value="{{code}}" placeholder="请输入激活码" bindinput="bindTnputBlur" />
|
<button class="button" bindtap="onActivation">激活商品</button>
|
</view>
|
</view>
|
</view>
|
<view class="page-content">
|
<view class="title">
|
<view class="line"></view>
|
<view>已激活商品</view>
|
</view>
|
<view class="contentBox">
|
|
<view class="list" wx:if="{{list.length > 0 && !skeletonLoding}}">
|
<view class="content-item" wx:for="{{list}}" wx:for-item="items" wx:for-index="index" wx:key="index">
|
<view class="codeInfoBox">
|
<view>激活码:{{items.code}}</view>
|
<view>激活时间:{{items.createDate}}</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="goBookDetails" data-book="{{itemes}}">
|
<view class="leftCon">
|
<!-- 获取图片 -->
|
<image class="purchasedIcon" wx:if="{{itemes.icon}}" src="{{itemes.icon}}" mode="aspectFit" />
|
<image class="purchasedIcon" wx:else src="/static/images/default-book-img.png" mode="aspectFit" />
|
</view>
|
<!-- 获取名称 -->
|
<view class="rightCon">
|
<view class="productTitle">{{itemes.name}}</view>
|
<view class="typeBox">
|
<text class="typeCon">电子书</text>
|
</view>
|
</view>
|
</view>
|
</view>
|
</scroll-view>
|
</view>
|
</view>
|
</view>
|
<view wx:if="{{list.length == 0 && !skeletonLoding}}" class="empyt">
|
<t-empty icon="folder-open" description="暂无数据" />
|
</view>
|
<view class="bottom-loading" wx:if="{{bottomLoading}}">
|
<t-loading theme="circular" size="40rpx" text="加载中..." class="wrapper" />
|
</view>
|
<view class="bottom-loading" style="color: #ccc;font-size: 28rpx;" wx:if="{{isMoreData}}">
|
<text>没有更多了</text>
|
</view>
|
<view class="body-loading" wx:if="{{skeletonLoding}}">
|
<t-loading theme="circular" size="40rpx" text="加载中..." class="wrapper" />
|
</view>
|
</view>
|
</view>
|
</view>
|
</scroll-view>
|
</view>
|