index.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <template>
  2. <view class="">
  3. <image v-if="show" class="logo animated bounceIn fast" src="/static/logo.png"></image>
  4. <view class="text-area">
  5. <text class="title" @tap="show = !show">{{title}}</text>
  6. </view>
  7. <scroll-view scroll-x="true" class="scroll-row">
  8. <view style="width: 200upx;" class="border border-danger scroll-row-item">1</view>
  9. <view style="width: 200upx;" class="border scroll-row-item">2</view>
  10. <view style="width: 200upx;" class="border scroll-row-item">3</view>
  11. <view style="width: 200upx;" class="border scroll-row-item">4</view>
  12. <view style="width: 200upx;" class="border scroll-row-item">5</view>
  13. </scroll-view>
  14. <view class="row p-2">
  15. <view class="span-4 text-center">2</view>
  16. <view class="span-4 text-center">1</view>
  17. <view class="span-4 text-center">3</view>
  18. <view class="span-4 text-center">4</view>
  19. <view class="span-4 text-center">5</view>
  20. <view class="span-4 text-center">6</view>
  21. <view class="span-4 text-center">7</view>
  22. <view class="span-4 text-center">8</view>
  23. <view class="span-4 text-center">9</view>
  24. <view class="span-4 text-center">10</view>
  25. </view>
  26. </view>
  27. </template>
  28. <script>
  29. export default {
  30. data() {
  31. return {
  32. show: false,
  33. title: 'Hello'
  34. }
  35. },
  36. onLoad() {
  37. // console.log(uni.getStorageSync("erpToken"));
  38. },
  39. methods: {
  40. }
  41. }
  42. </script>
  43. <style>
  44. .content {
  45. display: flex;
  46. flex-direction: column;
  47. align-items: center;
  48. justify-content: center;
  49. }
  50. .logo {
  51. height: 200rpx;
  52. width: 200rpx;
  53. margin-top: 200rpx;
  54. margin-left: auto;
  55. margin-right: auto;
  56. margin-bottom: 50rpx;
  57. }
  58. .text-area {
  59. display: flex;
  60. justify-content: center;
  61. }
  62. .title {
  63. font-size: 36rpx;
  64. color: #8f8f94;
  65. }
  66. </style>