guide.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <template>
  2. <div>
  3. <van-nav-bar title="三分钟了解“功道云”" left-text="返回" @click-left="$route_back" left-arrow></van-nav-bar>
  4. <div class="body_com" :style="{ height: !$route.query.init ? 'calc(100% - 0.92rem)' : 'calc(100%)' }">
  5. <!-- <scroller> -->
  6. <div class="imgLsit"><img :src="item" v-for="(item, index) in imgLsit" :key="index" /></div>
  7. <!-- <div v-if="$route.query.init" style="padding:0.32rem">
  8. <van-button class="login_button" color="#228bf8" size="large" @click="openHome()" type="info">立即体验</van-button>
  9. </div> -->
  10. <!-- </scroller> -->
  11. </div>
  12. </div>
  13. </template>
  14. <script>
  15. export default {
  16. name: 'guide',
  17. data () {
  18. return {
  19. imgLsit: []
  20. }
  21. },
  22. mounted() {
  23. console.log(this.$route.query.init)
  24. this.$nextTick(function () {
  25. this.imgLsit = ['static/images/init1.jpg', 'static/images/init2.jpg', 'static/images/init3.jpg', 'static/images/init4.jpg', 'static/images/init5.jpg']
  26. })
  27. },
  28. methods: {
  29. openHome () {
  30. setTimeout(() => {
  31. window.location.href = window.location.href.split('#')[0]
  32. }, 100)
  33. }
  34. }
  35. }
  36. </script>
  37. <style rel="stylesheet/scss" lang="scss" scoped>
  38. .body_com {
  39. height: 100%;
  40. position: relative;
  41. overflow: auto;
  42. }
  43. .login_button {
  44. height: 1rem;
  45. line-height: 0.8rem;
  46. border-radius: 0.15rem;
  47. }
  48. .imgLsit img {
  49. height: 100%;
  50. width: 100%;
  51. vertical-align: bottom;
  52. }
  53. </style>