12345678910111213141516171819202122232425262728293031323334 |
- <template>
- <view class="bg">
- <video class="video" :src="query.src" show-snapshot-button object-fit="contain" >
- </video>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- query:{
- src:''
- }
-
- }
- },
- onLoad(query){
- this.query =query
-
- }
-
- }
- </script>
- <style lang="scss" scoped>
- .bg{
- width: 100%;
- }
- .video{
- width: 100%;
- }
- </style>
|