Merge pull request '左滑跳过' (#190) from xbx into master

Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/190
This commit is contained in:
luyuan 2020-08-14 10:56:29 +08:00
commit b087d85337

View File

@ -17,7 +17,7 @@
<view class="uni-padding-wrap"> <view class="uni-padding-wrap">
<view class="page-section swiper"> <view class="page-section swiper">
<view class="page-section-spacing"> <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"> <swiper-item v-for="(item,index) in list" :key="index">
<view class="swiper-item uni-bg-red"> <view class="swiper-item uni-bg-red">
<image :src=" 'https://' + item.launch_path"></image> <image :src=" 'https://' + item.launch_path"></image>
@ -73,12 +73,26 @@
interval: 2000, interval: 2000,
duration: 500, duration: 500,
swiper_index: "", swiper_index: "",
tiaoguo:false,
weizhi:0
}; };
}, },
onReady: function(res) { onReady: function(res) {
this.videoContext = uni.createVideoContext('myVideo'); this.videoContext = uni.createVideoContext('myVideo');
}, },
methods: { 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() { apiwelcome() {
this.$u.api.documentInfo({ this.$u.api.documentInfo({
document_code: 'agreement' document_code: 'agreement'