index.wxml 1004 B

123456789101112131415161718192021222324252627
  1. <view class="btn" bindtap="upload" wx:if="{{!uploadState}}">上传作品</view>
  2. <button class="resetBtn btn" bindtap="jumpWork" wx:else>
  3. 查看作品
  4. </button>
  5. <page-container show='{{uploadFlag}}' bind:beforeleave='beforeleave'>
  6. <view class="uploadBox">
  7. <view class="upload">
  8. <image src="/static/uploadTips.png" class="tipsImg" />
  9. <view>作品上传中,小朋友请耐心等待哦~</view>
  10. <view class="speed">
  11. {{percent}}%
  12. </view>
  13. </view>
  14. </view>
  15. </page-container>
  16. <!-- 上传成功 -->
  17. <view class="successBox " catchtap="cancelMask" wx:if="{{uploadSuccess}}">
  18. <view class="success" catchtap="true">
  19. <image src="/static/lan.png" class="icon" mode="" />
  20. <view class="tips1">作品上传成功</view>
  21. <view class="tips2">快去分享你的作品</view>
  22. <view class="tips2">召唤小伙伴点赞评论!</view>
  23. <button class="resetBtn shareBtn" open-type="share" catchtap="cancelMask">
  24. 分享作品
  25. </button>
  26. </view>
  27. </view>