init.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <template>
  2. <!-- <van-swipe class="my-swipe" indicator-color="#228dfa" :loop="false">
  3. <van-swipe-item>
  4. <img src="static/images/init1.jpg"/>
  5. </van-swipe-item>
  6. <van-swipe-item>
  7. <img src="static/images/init2.jpg"/>
  8. </van-swipe-item>
  9. <van-swipe-item>
  10. <img src="static/images/init3.jpg"/>
  11. </van-swipe-item>
  12. <van-swipe-item>
  13. <img src="static/images/init4.jpg"/>
  14. </van-swipe-item>
  15. <van-swipe-item>
  16. <img src="static/images/init5.jpg" @click="openIndex()"/>
  17. </van-swipe-item>
  18. </van-swipe> -->
  19. <div>
  20. </div>
  21. </template>
  22. <script>
  23. // import Vue from 'vue'
  24. // import { Swipe, SwipeItem } from 'vant'
  25. // Vue.use(Swipe).use(SwipeItem)
  26. export default {
  27. name: 'init',
  28. data () {
  29. return {}
  30. },
  31. created() {
  32. this.$router.replace({name: 'login'})
  33. },
  34. methods: {
  35. // openIndex () {
  36. // localStorage.setItem('init', true)
  37. // this.$router.replace({name: 'home'})
  38. // }
  39. }
  40. }
  41. </script>
  42. <style scoped="scoped" rel="stylesheet/less">
  43. /* .my-swipe .van-swipe-item {
  44. width: 100%;
  45. height: 100%;
  46. text-align: center;
  47. background-color: #39a9ed;
  48. }
  49. .my-swipe img {
  50. width: 100%;
  51. height: 100%;
  52. }
  53. /deep/ .van-swipe__indicator{
  54. background-color: #AAAAAA;
  55. } */
  56. </style>