1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
| <!--packageBookService/pages/components/webView/index.wxml-->
| <view class="page-body">
| <view class="body-loading" wx:if="{{skeletonLoding}}">
| <t-loading theme="circular" size="40rpx" class="wrapper" />
| </view>
| <view wx:if="{{epubObj.fileType == 'pdf' && !skeletonLoding}}" class="pdfBox">
| <view
| wx:for="{{pdfList}}"
| wx:key="index"
| wx:for-item="item"
| wx:for-index="index"
| class="pdfItem"
| >
| <image
| src="{{item}}"
| alt=""
| mode="aspectFit"
| class="pdf-img"
| bind:tap="preview"
| data-src="{{item}}"
| ></image>
| </view>
| </view>
| <web-view
| bind:message="drawBack"
| binderror="onError"
| bindload="onLoadWeb"
| src="{{src}}"
| id="webView"
| wx:if="{{epubObj.fileType !== 'pdf' && !skeletonLoding}}"
| ></web-view>
| </view>
|
|