firmware.wxml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <view>
  2. <nav-bar bind:goBack="_goBack" nav-bgc-class="ex-nav-bgc-class" nav-title-class="ex-nav-title-class" ex-back-pre="ex-back-pre" navbar-data='{{nvabarData}}'>
  3. </nav-bar>
  4. <view style="margin-top: 100rpx;"></view>
  5. <view wx:for="{{topList}}" wx:key="key" wx:for-item="item" wx:for-index="index">
  6. <view class="top_item" data-index="{{index}}">
  7. <view class="top_item_left">{{item.title}}</view>
  8. <view class="top_item_right">{{item.name}}</view>
  9. </view>
  10. </view>
  11. <view class="update">
  12. <view bindtap="toUpdate" class="{{isUpdated ? 'action' : ''}}">固件更新</view>
  13. </view>
  14. <!-- <view class="container"> -->
  15. <!-- 点击按钮显示升级进度条弹窗 -->
  16. <!-- <button bindtap="showUpgradeProgress">升级应用</button> -->
  17. <!-- </view> -->
  18. <view class="container">
  19. <!-- 点击按钮显示带背景黑蒙版的弹窗 -->
  20. <button bindtap="showProgressModal">显示带背景黑蒙版的弹窗</button>
  21. <!-- 背景黑蒙版 -->
  22. <view class="mask" wx:if="{{showModal}}"></view>
  23. <!-- 自定义模态框,用于显示带进度条的弹窗 -->
  24. <view class="modal" wx:if="{{showModal}}">
  25. <text>正在升级中</text>
  26. <progress percent="{{progress}}" stroke-width="4" />
  27. </view>
  28. </view>
  29. </view>