闫增涛
2024-04-30 dc934dfd63fecff84d0bf996418e041b9bd4ea59
packageBookService/pages/components/webView/index.wxml
@@ -4,9 +4,22 @@
    <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">
    <view
      wx:for="{{pdfList}}"
      wx:key="index"
      wx:for-item="item"
      wx:for-index="index"
      class="pdfItem"
    >
      <image src="{{item}}" alt="" mode="widthFix"></image>
    </view>
  </view>
  <web-view bind:message="drawBack" binderror="onError" bindload="onLoadWeb" src="{{src}}" id="webView" wx:if="{{epubObj.fileType !== 'pdf' && !skeletonLoding}}"></web-view>
  <web-view
    bind:message="drawBack"
    binderror="onError"
    bindload="onLoadWeb"
    src="{{src}}"
    id="webView"
    wx:if="{{epubObj.fileType !== 'pdf' && !skeletonLoding}}"
  ></web-view>
</view>