videoPlay.vue 527 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <view>
  3. <dever-video
  4. :src="video"
  5. :pic="pic"
  6. :auto="true"
  7. :index="0"
  8. :vid="1"
  9. type="2"
  10. ref="video"
  11. >
  12. </dever-video>
  13. </view>
  14. </template>
  15. <script>
  16. import deverVideo from '@/lib/dever/components/video.nvue';
  17. export default{
  18. data() {
  19. return {
  20. video : '',
  21. pic : '',
  22. }
  23. },
  24. onLoad() {
  25. this.video = this.Dever.data('video');
  26. this.pic = this.Dever.data('pic');
  27. this.$refs.video.start();
  28. },
  29. methods:{
  30. },
  31. components:{
  32. deverVideo
  33. }
  34. }
  35. </script>
  36. <style>
  37. </style>