裂变星小程序-25.03.04
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

102 lines
1.6 KiB

1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
  1. <template>
  2. <view class="page">
  3. <image src="../../static/image/home/bg.png" class="bg" mode="scaleToFill"></image>
  4. <view class="content">
  5. <navbar title="首页" bgColor="#001137" color="#FFFFFF" />
  6. <view class="btns">
  7. <button
  8. v-for="item in list"
  9. :key="item.title"
  10. class="btn"
  11. plain
  12. @click="$utils.navigateTo(item.path)"
  13. >
  14. {{ item.title }}
  15. </button>
  16. </view>
  17. </view>
  18. <tabber select="home"/>
  19. </view>
  20. </template>
  21. <script>
  22. import tabber from '@/components/base/tabbar.vue'
  23. export default {
  24. components : {
  25. tabber,
  26. },
  27. data() {
  28. return {
  29. list: [
  30. {
  31. title: '个人分享',
  32. path: '/pages_order/record/personalSharing'
  33. },
  34. {
  35. title: '视频分享',
  36. path: '/pages_order/record/videoSharing'
  37. },
  38. {
  39. title: '群分享',
  40. path: '/pages_order/record/groupSharing'
  41. },
  42. {
  43. title: '文章分享',
  44. path: '/pages_order/record/articleSharing'
  45. },
  46. ]
  47. }
  48. },
  49. }
  50. </script>
  51. <style scoped lang="scss">
  52. .page{
  53. & /deep/ .uv-icon__icon{
  54. font-size: 30rpx !important;
  55. }
  56. position: relative;
  57. height: 100vh;
  58. overflow: hidden;
  59. .btns {
  60. display: grid;
  61. grid-column-gap: 34rpx;
  62. grid-row-gap: 34rpx;
  63. grid-template-columns: repeat(2, 1fr);
  64. position: absolute;
  65. bottom: 466rpx;
  66. width: 100%;
  67. padding: 0 58rpx;
  68. box-sizing: border-box;
  69. }
  70. .btn {
  71. color: $uni-text-color-highlight;
  72. border-color: #04D6A3;
  73. width: 100%;
  74. padding: 55rpx 0;
  75. }
  76. }
  77. .bg {
  78. width: 100vw;
  79. height: 100vh;
  80. }
  81. .content {
  82. position: absolute;
  83. width: 100vw;
  84. height: 100vh;
  85. top: 0;
  86. }
  87. </style>