index.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <template>
  2. <view class="page-wrap">
  3. <view class="app-item" v-for="(item, index) in navList" :key="index">
  4. <view :class="'icon icon-'+item.value">
  5. <image :src="`../../static/svg/app_${item.value}.svg`"></image>
  6. </view>
  7. <view class="text">{{item.label}}</view>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. export default {
  13. components: {},
  14. data() {
  15. return {
  16. navList: [
  17. {
  18. label: '记账报税',
  19. value: 1
  20. },
  21. {
  22. label: '税控托管',
  23. value: 2
  24. },
  25. {
  26. label: '社保代缴',
  27. value: 3
  28. },
  29. {
  30. label: '其他服务',
  31. value: 4
  32. },
  33. {
  34. label: '我的合同',
  35. value: 5
  36. },
  37. {
  38. label: '财务管家',
  39. value: 6
  40. },
  41. {
  42. label: '设置',
  43. value: 7
  44. },
  45. {
  46. label: '我的消息',
  47. value: 8
  48. },
  49. {
  50. label: '意见反馈',
  51. value: 9
  52. },
  53. {
  54. label: '服务电话',
  55. value: 10
  56. }
  57. ]
  58. };
  59. }
  60. };
  61. </script>
  62. <style lang="scss" scoped>
  63. .page-wrap {
  64. min-height: 100%;
  65. box-sizing: border-box;
  66. background: #fff;
  67. display: flex;
  68. flex-wrap: wrap;
  69. align-content: flex-start;
  70. padding: 27.47rpx 13.74rpx;
  71. box-sizing: border-box;
  72. }
  73. .app-item {
  74. flex: 0 0 25%;
  75. display: flex;
  76. flex-direction: column;
  77. align-items: center;
  78. margin-bottom: 27.47rpx;
  79. .icon {
  80. width: 118.13rpx;
  81. height: 118.13rpx;
  82. border-radius: 50%;
  83. background: #f7f7f7;
  84. display: flex;
  85. align-items: center;
  86. justify-content: center;
  87. &-1{
  88. background: #ff7356;
  89. }
  90. &-2{
  91. background: #06d276;
  92. }
  93. &-3{
  94. background: #52abfd;
  95. }
  96. &-4{
  97. background: #fcb203;
  98. }
  99. &-5{
  100. background: #566c8b;
  101. }
  102. &-6{
  103. background: #4484ae;
  104. }
  105. &-7{
  106. background: #889fff;
  107. }
  108. &-8{
  109. background: #f7922a;
  110. }
  111. &-9{
  112. background: #1ed2c7;
  113. }
  114. &-10{
  115. background: #fcb203;
  116. }
  117. image {
  118. width: 68.68rpx;
  119. height: 68.68rpx;
  120. color: #fff;
  121. }
  122. }
  123. .text {
  124. font-size: 24.73rpx;
  125. margin-top: 13.74rpx;
  126. }
  127. }
  128. </style>