<view class="bg"  wx:if="{{flag==true}}">
  <view class="" wx:if="{{showHarpin}}">
    <view class="head">
      <image class="head-bg" src="https://img.bbztx.com/image_test/upload/thumbs/20221010/logo/1665382575784052492.png"></image>
      <image class="act-logo" src="https://img.bbztx.com/image_test/upload/thumbs/20221010/logo/1665382948396029740.png" mode="widthFix"></image>
      <view class="act-t position-center">「{{title}}」</view>
      <view class="act-d position-center"><text wx:if="{{info.policyName!=null}}">{{info.policyName}} </text>{{info.sname}}</view>
      <view class="bill-line-f position-center"></view>
    </view>
    <view class="center">
      <image src="{{imgUrl}}"  bindload="loadSuccess" mode="widthFix"></image>
      <!-- <view class="bill-line-l position-center"></view> -->
    </view>
    <view class="footer">
      <image src="https://img.bbztx.com/images/upload/thumbs/20221020/logo/1666236557878071219.png" mode="widthFix"></image>
       <!-- <image src="https://img.bbztx.com/image_test/upload/thumbs/20221031/logo/1667201351273024921.png" mode="widthFix"></image> -->
      <!-- <view class="tip">长按查看相册其他高清大图</view> -->
    </view>
    
  </view>
  <view class="noBill" wx:else>
    <!-- <text class="icon icon-baby"></text> -->
    <view class="nobill-t">暂无海报可生成</view>
    <view class="nobill-tip">请点击下方按钮选择图片生成海报</view>
  </view>
</view>
<!-- 默认图片展示 -->
<view class="bg" wx:if="{{flag==false}}"> 
  <view class="defaultImg">
    <image mode="widthFix" src="https://img.bbztx.com/images/upload/thumbs/20221020/logo/1666238318643054363.jpg">
    </image>
    <view class="font">
      示 例 图 片
    </view>
  </view>
</view>

<view class="btn-bottom">
  <!-- 线上看 -->
  <block wx:if="{{!showHarpin}}">
    <button>上传图片</button>
  </block>
  <!-- 线下看 -->
  <block wx:if="{{buttonFlag==false}}">
    <button bindtap="upImage">上传图片</button>
  </block>
  <block wx:else>
    <button bindtap="upImage">重新上传</button>
    <button bindtap="cetaInvite">保存海报</button>
  </block>
</view>
<canvasdrawer painting="{{painting}}" class="canvasdrawer" bind:getImage="eventGetImage" />