176 lines
3.3 KiB
Vue
176 lines
3.3 KiB
Vue
<template>
|
|
<view class="">
|
|
|
|
<swiper class="swiper" circular :indicator-dots="indicatorDots" :circular="false" :autoplay="autoplay" :interval="interval"
|
|
:duration="duration">
|
|
<swiper-item>
|
|
<view class="swiper-item-a">
|
|
<view class="img_box">
|
|
<image src="../../static/imgs/Page1.png" mode=""></image>
|
|
</view>
|
|
<view class="title_">Request Ride</view>
|
|
<view class="size_">Request a ride get picked up by a nearby community driver</view>
|
|
<view class="p_buttom">
|
|
<view class="p_lv"></view>
|
|
</view>
|
|
</view>
|
|
</swiper-item>
|
|
<swiper-item>
|
|
<view class="swiper-item-a">
|
|
<view class="img_box">
|
|
<image src="../../static/imgs/Page2.png" mode=""></image>
|
|
</view>
|
|
<view class="title_">Request Ride</view>
|
|
<view class="size_">Request a ride get picked up by a nearby community driver</view>
|
|
<view class="p_buttom_c">
|
|
<view class="p_lv"></view>
|
|
</view>
|
|
</view>
|
|
</swiper-item>
|
|
<swiper-item>
|
|
<view class="swiper-item-a">
|
|
<view class="img_box">
|
|
<image src="../../static/imgs/Page3.png" mode=""></image>
|
|
</view>
|
|
<view class="title_">Request Ride</view>
|
|
<view class="size_">Request a ride get picked up by a nearby community driver</view>
|
|
<view class="lv_button" @click="goLogin()">
|
|
Get started!
|
|
</view>
|
|
<view class="p_buttom_r">
|
|
<view class="p_lv"></view>
|
|
</view>
|
|
</view>
|
|
</swiper-item>
|
|
</swiper>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
background: ['color1', 'color2', 'color3'],
|
|
indicatorDots: false,
|
|
autoplay: false,
|
|
interval: 2000,
|
|
duration: 500
|
|
}
|
|
},
|
|
methods: {
|
|
|
|
goLogin() {
|
|
uni.setStorageSync('launchFlag',"yes");
|
|
uni.reLaunch({
|
|
url: '/pages/login/login'
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.swiper {
|
|
height: 100vh;
|
|
}
|
|
|
|
.swiper-item-a {
|
|
width: 100%;
|
|
background: #fff;
|
|
height: 100vh;
|
|
box-sizing: border-box;
|
|
padding-top: 44px;
|
|
|
|
}
|
|
|
|
.img_box {
|
|
width: 278px;
|
|
height: 278px;
|
|
|
|
margin: 15px auto;
|
|
|
|
image {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
|
|
.title_ {
|
|
width: 80%;
|
|
margin: 15px auto;
|
|
font-weight: bold;
|
|
font-size: 30px;
|
|
color: #262628;
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
.size_ {
|
|
width: 80%;
|
|
margin: 15px auto;
|
|
|
|
color: #262628;
|
|
text-align: center;
|
|
}
|
|
|
|
.p_buttom {
|
|
width: 90px;
|
|
height: 6px;
|
|
background: #EFEFF4;
|
|
border-radius: 4px 4px 4px 4px;
|
|
position: fixed;
|
|
transform: translate(-50%, -50%);
|
|
left: 50%;
|
|
bottom: 35px;
|
|
display: flex;
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
.p_buttom_c {
|
|
width: 90px;
|
|
height: 6px;
|
|
background: #EFEFF4;
|
|
border-radius: 4px 4px 4px 4px;
|
|
position: fixed;
|
|
transform: translate(-50%, -50%);
|
|
left: 50%;
|
|
bottom: 35px;
|
|
display: flex;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.p_buttom_r {
|
|
width: 90px;
|
|
height: 6px;
|
|
background: #EFEFF4;
|
|
border-radius: 4px 4px 4px 4px;
|
|
position: fixed;
|
|
transform: translate(-50%, -50%);
|
|
left: 50%;
|
|
bottom: 35px;
|
|
display: flex;
|
|
justify-content: right;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.lv_button {
|
|
width: 190px;
|
|
height: 45px;
|
|
background: #32714F;
|
|
border-radius: 8px 8px 8px 8px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
color: #fff;
|
|
margin: 45px auto;
|
|
}
|
|
|
|
.p_lv {
|
|
width: 33%;
|
|
background: #32714F;
|
|
height: 100%;
|
|
border-radius: 4px 4px 4px 4px;
|
|
}
|
|
</style> |