| | |
| | | <!--packageBookService/pages/components/webView/index.wxml--> |
| | | <view class="page-body"> |
| | | <web-view bind:message="drawBack" binderror="onError" bindload="onLoadWeb" src="{{src}}"></web-view> |
| | | </view> |
| | | <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> |