loading.wxml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <custom style="height:{{CustomBar}}px;">
  2. <bar class="fixed gradual-blue" style="height:{{CustomBar}}px;padding-top:{{StatusBar}}px;">
  3. <navigator class='action' open-type="navigateBack" delta="1" hover-class="none">
  4. <text class='icon-back'></text> 加载
  5. </navigator>
  6. <view class='action'>
  7. <load class="load-text {{!isLoad?'loading':'over'}}"></load>
  8. </view>
  9. </bar>
  10. </custom>
  11. <bar>
  12. <view class='action'>
  13. <text class='icon-title text-blue'></text>背景
  14. </view>
  15. </bar>
  16. <load class="bg-blue {{!isLoad?'loading':'over'}}"></load>
  17. <bar class="margin-top">
  18. <view class='action'>
  19. <text class='icon-title text-blue'></text>加载状态
  20. </view>
  21. <view class='action'>
  22. <switch class='sm' bindchange='isLoading'></switch>
  23. </view>
  24. </bar>
  25. <load class="bg-grey {{!isLoad?'loading':'over'}}"></load>
  26. <bar class="margin-top">
  27. <view class='action'>
  28. <text class='icon-title text-blue'></text>加载错误
  29. </view>
  30. </bar>
  31. <load class="bg-red erro"></load>
  32. <bar class="margin-top">
  33. <view class='action'>
  34. <text class='icon-title text-blue'></text>弹框加载
  35. </view>
  36. <view class='action'>
  37. <button class='bg-green shadow' bindtap='loadModal'>
  38. 点我
  39. </button>
  40. </view>
  41. </bar>
  42. <load class='load-modal' wx:if="{{loadModal}}">
  43. <!-- <view class='icon-emojifill text-orange'></view> -->
  44. <image src='/images/logo.png' class='png' mode='aspectFit'></image>
  45. <view class='gray-text'>加载中...</view>
  46. </load>
  47. <bar class="margin-top">
  48. <view class='action'>
  49. <text class='icon-title text-blue'></text>进度条加载
  50. </view>
  51. <view class='action'>
  52. <button class='bg-green shadow' bindtap='loadProgress'>
  53. 点我
  54. </button>
  55. </view>
  56. </bar>
  57. <view class='load-progress {{loadProgress!=0?"show":"hide"}}' style="top:{{CustomBar}}px;">
  58. <view class='load-progress-bar bg-green' style="transform: translate3d(-{{100-loadProgress}}%, 0px, 0px);"></view>
  59. <view class='load-progress-spinner text-green'></view>
  60. </view>