nativeVideo.nvue 378 B

12345678910111213141516171819202122232425262728
  1. <template>
  2. <view>
  3. <video class="video" :src="upload_url+url" autoplay controls></video>
  4. </view>
  5. </template>
  6. <script>
  7. import {
  8. upload_url
  9. } from "../../config.js"
  10. export default {
  11. data(){
  12. return {
  13. upload_url: upload_url,
  14. url:""
  15. }
  16. },
  17. onLoad(options) {
  18. this.url = options.url
  19. },
  20. }
  21. </script>
  22. <style scoped>
  23. .video{
  24. width: 750rpx;
  25. }
  26. </style>