warningVideo.vue 627 B

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <view id="videoPlayer">
  3. <web-view :src="webViewUrl" v-if="pageType" cache-mode="no-cache"></web-view>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. pageType:false,
  11. webViewUrl:'',
  12. }
  13. },
  14. onLoad(option) {
  15. this.$set(this,'webViewUrl',JSON.parse(decodeURIComponent(option.item)));
  16. this.$set(this,'pageType',true);
  17. },
  18. onShow(){
  19. },
  20. methods: {
  21. }
  22. }
  23. </script>
  24. <style lang="stylus" scoped>
  25. #videoPlayer{
  26. height: 100%;
  27. display flex;
  28. flex-direction column;
  29. }
  30. </style>