index.wxml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <view class="container-loading l-container-class {{fullScreen ? 'content': ''}}" wx:if="{{show && fullScreen}}" style="background:{{bgColor}};opacity:{{opacity}};z-index:{{zIndex}}" catchtouchmove="doNothingMove">
  2. <view wx:if="{{show}}" class="l-class {{type + '-spinner'}} {{type==='change'||custom?'':'spinner-' + type + '-' + size}}" style="margin-bottom:{{distance}}px">
  3. <block wx:if="{{custom}}">
  4. <slot/>
  5. </block>
  6. <block wx:else>
  7. <view wx:if="{{type==='flash' || type==='change' || type==='flip'}}" style="{{color?'background-color:'+color:''}}" class="{{type+'-bounce1'}} {{'spinner-'+ type + '-' + size}}"></view>
  8. <view wx:if="{{type==='flash' || type==='change'}}" style="{{color?'background-color:'+color:''}}" class="{{type+'-bounce2'}} {{'spinner-'+ type + '-' + size}}"></view>
  9. <view wx:if="{{type==='change'}}" style="{{color?'background-color:'+color:''}}" class="{{type+'-bounce3'}} {{'spinner-'+ type + '-' + size}}"></view>
  10. <view class="spinner-circle {{'spinner-circle-' + size}}" wx:if="{{ type === 'circle'}}">
  11. <view class="spinner-container container1">
  12. <view class="circle1 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
  13. <view class="circle2 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
  14. <view class="circle3 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
  15. <view class="circle4 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
  16. </view>
  17. <view class="spinner-container container2">
  18. <view class="circle1 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
  19. <view class="circle2 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
  20. <view class="circle3 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
  21. <view class="circle4 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
  22. </view>
  23. <view class="spinner-container container3">
  24. <view class="circle1 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
  25. <view class="circle2 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
  26. <view class="circle3 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
  27. <view class="circle4 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
  28. </view>
  29. </view>
  30. <view wx:if="{{ type === 'rotate'}}">
  31. <view class="rotate rotate-{{size}}" style="border-color: {{color}};"></view>
  32. </view>
  33. </block>
  34. </view>
  35. </view>
  36. <view wx:if="{{!fullScreen}}" class="l-container-class" style="position: relative">
  37. <slot name="content"/>
  38. <view wx:if="{{show}}" class="inner-loading-container" style="background:{{bgColor}};opacity:{{opacity}};z-index:{{zIndex}}"></view>
  39. <view wx:if="{{show}}" class="l-class loading-icon-container" style="z-index:{{zIndex + 1}}">
  40. <view class="{{type + '-spinner'}} {{type==='change'||custom?'':'spinner-' + type + '-' + size}}">
  41. <block wx:if="{{custom}}">
  42. <slot/>
  43. </block>
  44. <block wx:else>
  45. <view wx:if="{{type==='flash' || type==='change' || type==='flip'}}" style="{{color?'background-color:'+color:''}}" class="{{type+'-bounce1'}} {{'spinner-'+ type + '-' + size}}"></view>
  46. <view wx:if="{{type==='flash' || type==='change'}}" style="{{color?'background-color:'+color:''}}" class="{{type+'-bounce2'}} {{'spinner-'+ type + '-' + size}}"></view>
  47. <view wx:if="{{type==='change'}}" style="{{color?'background-color:'+color:''}}" class="{{type+'-bounce3'}} {{'spinner-'+ type + '-' + size}}"></view>
  48. <view wx:if="{{ type === 'circle'}}" class="spinner-circle {{'spinner-circle-' + size}}">
  49. <view class="spinner-container container1">
  50. <view class="circle1 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
  51. <view class="circle2 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
  52. <view class="circle3 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
  53. <view class="circle4 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
  54. </view>
  55. <view class="spinner-container container2">
  56. <view class="circle1 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
  57. <view class="circle2 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
  58. <view class="circle3 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
  59. <view class="circle4 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
  60. </view>
  61. <view class="spinner-container container3">
  62. <view class="circle1 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
  63. <view class="circle2 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
  64. <view class="circle3 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
  65. <view class="circle4 container-view {{type + '-' + size}}" style="background: {{color}}"></view>
  66. </view>
  67. </view>
  68. <view wx:if="{{ type === 'rotate'}}">
  69. <view class="rotate rotate-{{size}}" style="border-color: {{color}};"></view>
  70. </view>
  71. </block>
  72. </view>
  73. </view>
  74. </view>