1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <template>
- <!-- <van-swipe class="my-swipe" indicator-color="#228dfa" :loop="false">
- <van-swipe-item>
- <img src="static/images/init1.jpg"/>
- </van-swipe-item>
- <van-swipe-item>
- <img src="static/images/init2.jpg"/>
- </van-swipe-item>
- <van-swipe-item>
- <img src="static/images/init3.jpg"/>
- </van-swipe-item>
- <van-swipe-item>
- <img src="static/images/init4.jpg"/>
- </van-swipe-item>
- <van-swipe-item>
- <img src="static/images/init5.jpg" @click="openIndex()"/>
- </van-swipe-item>
- </van-swipe> -->
- <div>
- </div>
- </template>
- <script>
- // import Vue from 'vue'
- // import { Swipe, SwipeItem } from 'vant'
- // Vue.use(Swipe).use(SwipeItem)
- export default {
- name: 'init',
- data () {
- return {}
- },
- created() {
- this.$router.replace({name: 'login'})
- },
- methods: {
- // openIndex () {
- // localStorage.setItem('init', true)
- // this.$router.replace({name: 'home'})
- // }
- }
- }
- </script>
- <style scoped="scoped" rel="stylesheet/less">
- /* .my-swipe .van-swipe-item {
- width: 100%;
- height: 100%;
- text-align: center;
- background-color: #39a9ed;
- }
- .my-swipe img {
- width: 100%;
- height: 100%;
- }
- /deep/ .van-swipe__indicator{
- background-color: #AAAAAA;
- } */
- </style>
|