launch.vue 576 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <view class="content">
  3. <view ></view>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. };
  11. },
  12. onLoad() {
  13. //获取SCSS值
  14. this.navigatHandler()
  15. },
  16. methods: {
  17. navigatHandler: function() {
  18. uni.reLaunch({
  19. url: '/pages/index/index',
  20. animationType: 'pop-in',
  21. animationDuration: 100
  22. })
  23. },
  24. },
  25. };
  26. </script>
  27. <style>
  28. .content {
  29. height: 100%;
  30. width: 100%;
  31. position: relative;
  32. padding-top: 0;
  33. }
  34. .test{
  35. display: none;
  36. background-color: $uni-color-theme;
  37. }
  38. </style>