Merge pull request '左滑跳过' (#190) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/190
This commit is contained in:
		
						commit
						b087d85337
					
				@ -17,7 +17,7 @@
 | 
			
		||||
				<view class="uni-padding-wrap">
 | 
			
		||||
					<view class="page-section swiper">
 | 
			
		||||
						<view class="page-section-spacing">
 | 
			
		||||
							<swiper class="swiper" :indicator-dots="true" :style="{height:heightOut+'px'}" :autoplay="false" :interval="3000" :duration="1000" @animationfinish="">
 | 
			
		||||
							<swiper class="swiper" :indicator-dots="true" :style="{height:heightOut+'px'}" :autoplay="false" :interval="3000" :duration="300" @animationfinish="tiaoguos" @change="qiehuan">
 | 
			
		||||
								<swiper-item v-for="(item,index) in list" :key="index">
 | 
			
		||||
									<view class="swiper-item uni-bg-red">
 | 
			
		||||
										<image :src=" 'https://' + item.launch_path"></image>
 | 
			
		||||
@ -72,13 +72,27 @@
 | 
			
		||||
				indicatorDots: true,
 | 
			
		||||
				interval: 2000,
 | 
			
		||||
				duration: 500,
 | 
			
		||||
                swiper_index: "",
 | 
			
		||||
				swiper_index: "",
 | 
			
		||||
				tiaoguo:false,
 | 
			
		||||
				weizhi:0
 | 
			
		||||
			};
 | 
			
		||||
		},
 | 
			
		||||
		onReady: function(res) {
 | 
			
		||||
			this.videoContext = uni.createVideoContext('myVideo');
 | 
			
		||||
		},
 | 
			
		||||
		methods: {
 | 
			
		||||
			tiaoguos(a){
 | 
			
		||||
				console.log(a.detail)
 | 
			
		||||
				if(this.weizhi == a.detail.current && a.detail.current == this.list.length -1){
 | 
			
		||||
					this.leap_overto()
 | 
			
		||||
				}
 | 
			
		||||
				this.weizhi = a.detail.current
 | 
			
		||||
				
 | 
			
		||||
			},
 | 
			
		||||
			qiehuan(a){
 | 
			
		||||
				console.log(a)
 | 
			
		||||
				this.tiaoguo = a.detail.current
 | 
			
		||||
			},
 | 
			
		||||
			apiwelcome() {
 | 
			
		||||
				this.$u.api.documentInfo({
 | 
			
		||||
					document_code: 'agreement'
 | 
			
		||||
@ -324,4 +338,4 @@
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
</style>
 | 
			
		||||
</style>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user