<view class="btn" bindtap="upload" wx:if="{{!uploadState}}">上传作品</view>
<button class="resetBtn btn" bindtap="jumpWork" wx:else>
  查看作品
</button>
<page-container show='{{uploadFlag}}' bind:beforeleave='beforeleave'>
  <view class="uploadBox">
    <view class="upload">
      <image src="/static/uploadTips.png" class="tipsImg" />
      <view>作品上传中,小朋友请耐心等待哦~</view>
      <view class="speed">
        {{percent}}%
      </view>
    </view>
  </view>
</page-container>
<!-- 上传成功 -->
<view class="successBox " catchtap="cancelMask" wx:if="{{uploadSuccess}}">
  <view class="success" catchtap="true">
    <image src="/static/lan.png" class="icon" mode="" />
    <view class="tips1">作品上传成功</view>
    <view class="tips2">快去分享你的作品</view>
    <view class="tips2">召唤小伙伴点赞评论！</view>
    <button class="resetBtn shareBtn" open-type="share" catchtap="cancelMask">
      分享作品
    </button>
  </view>
</view>