| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 | 
							- <template name="vodShort">
 
- 	<view>
 
- 		<swiper class="swiper" autoplay="false" vertical="true" interval="990000" @change="changeVod">
 
- 			<swiper-item v-for="(v, k) in item" :key="k">
 
- 				<dever-video
 
- 				:src="v.video" 
 
- 				:pic="v.pic" 
 
- 				:index="k" 
 
- 				:vid="v.id"
 
- 				:type="v.type"
 
- 				:disabled="false"
 
- 				:position_item="v.text"
 
- 				:position_save="v.is_button"
 
- 				:load.sync="load"
 
- 				ref="video"
 
- 				>
 
- 				</dever-video>
 
- 			</swiper-item>
 
- 		</swiper>
 
- 	</view>
 
- </template>
 
- <script>
 
- import deverVideo from '@/lib/dever/components/video.nvue';
 
- var play = true;
 
- export default {
 
- 	name: "vodShort",
 
- 	props: {
 
- 		control : {
 
- 			type : Object,
 
- 			value : null
 
- 		},
 
- 		item : {
 
- 			type    : Array,
 
- 			value	: null
 
- 		},
 
- 		index : 0
 
- 	},
 
- 	data() {
 
- 		return {
 
- 			load : false,
 
- 			current_index: 0,
 
- 		};
 
- 	},
 
- 	created() {
 
- 		
 
- 	},
 
- 	mounted() {
 
- 		this.control[this.index] = this;
 
- 	},
 
- 	methods:{
 
- 		start : function() {
 
- 			this.$refs.video[this.current_index].start();
 
- 		},
 
- 		stop : function() {
 
- 			this.$refs.video[this.current_index].stop(true);
 
- 		},
 
- 		changeVod : function(e)  {
 
- 			var self = this;
 
- 			self.$nextTick(()=>{
 
- 				this.$refs.video[this.current_index].stop(false);
 
- 				this.current_index = e.detail.current;
 
- 				self.start();
 
- 			});
 
- 					
 
- 		},
 
- 	},
 
- 	components:{
 
- 		deverVideo
 
- 	}
 
- }
 
- </script>
 
- <style>
 
- .swiper{
 
- 	width: 100vw;
 
- 	height: 100vh;	
 
- 	/*position: fixed;*/
 
- 	position: relative;
 
- 	top: 0;
 
- 	left: 0;
 
- }
 
- </style>
 
 
  |