dialog-loading.vue 720 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <template>
  2. <view class="">
  3. <view class='simple-load load-modal' v-if="showLoading" @touchmove.stop.prevent="moveHandleStop">
  4. <image :src='image' class='png' mode='aspectFit'></image>
  5. <view class='has-desc-color'>{{text}}</view>
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. export default {
  11. data() {
  12. return {
  13. showLoading:false,
  14. image:"",
  15. text:"",
  16. };
  17. },
  18. methods:{
  19. show:function(config){
  20. if(config['image'] != undefined ) this.image = config['image']
  21. if(config['text'] != undefined ) this.text = config['text']
  22. this.showLoading = true;
  23. },
  24. hide:function(){
  25. this.showLoading = false;
  26. },
  27. moveHandleStop:function(){
  28. }
  29. }
  30. }
  31. </script>
  32. <style>
  33. </style>