index.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <template>
  2. <s-layout>
  3. <view class="page-container">
  4. <view class="header">
  5. <text class="title">信息录入</text>
  6. <text class="subtitle">请选择需要录入的信息类型</text>
  7. </view>
  8. <view class="card-container">
  9. <u-card v-for="(item, index) in cardList" :key="index" :title="item.title" :thumb="item.thumb"
  10. @click="navigateTo(item.path)" class="card-item">
  11. <template v-slot:body>
  12. <view class="card-content">
  13. <text class="card-text">{{ item.description }}</text>
  14. <u-button @click="navigateTo(item.path)" :type="item.btnType" size="mini" plain>立即录入</u-button>
  15. </view>
  16. </template>
  17. </u-card>
  18. </view>
  19. </view>
  20. </s-layout>
  21. </template>
  22. <script setup>
  23. import sheep from '@/sheep';
  24. const cardList = [
  25. // {
  26. // title: '身份证录入',
  27. // thumb: 'https://cdn.uviewui.com/uview/example/card1.png',
  28. // path: '/pages/enter/idEnter/list',
  29. // description: '点击进入身份证信息录入页面',
  30. // btnType: 'primary'
  31. // },
  32. {
  33. title: '营业执照录入',
  34. thumb: 'https://cdn.uviewui.com/uview/example/card3.png',
  35. path: '/pages/enter/businessLicenseEnter/list',
  36. description: '点击进入营业执照信息录入页面',
  37. btnType: 'success'
  38. },
  39. {
  40. title: '征信录入',
  41. thumb: 'https://cdn.uviewui.com/uview/example/card2.png',
  42. path: '/pages/enter/creditEnter/list',
  43. description: '点击进入征信信息录入页面',
  44. btnType: 'warning'
  45. },
  46. ];
  47. const navigateTo = (url) => {
  48. sheep.$router.go(url)
  49. };
  50. </script>
  51. <style lang="scss" scoped>
  52. .page-container {
  53. background: linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
  54. min-height: 100vh;
  55. padding: 40rpx;
  56. .header {
  57. margin-bottom: 80rpx;
  58. text-align: center;
  59. padding: 40rpx 0;
  60. background: linear-gradient(135deg, #f6f9ff, #e6f0ff);
  61. border-radius: 24rpx;
  62. box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.05);
  63. .title {
  64. font-size: 48rpx;
  65. font-weight: bold;
  66. color: #2979ff;
  67. display: block;
  68. margin-bottom: 20rpx;
  69. }
  70. .subtitle {
  71. font-size: 32rpx;
  72. color: #666;
  73. }
  74. }
  75. .card-container {
  76. .card-item {
  77. margin-bottom: 40rpx;
  78. border-radius: 32rpx;
  79. overflow: hidden;
  80. box-shadow: 0 12rpx 32rpx rgba(0, 0, 0, 0.08);
  81. transition: all 0.3s ease;
  82. background: #ffffff;
  83. border: 1rpx solid #f0f0f0;
  84. &:hover {
  85. transform: translateY(-8rpx);
  86. box-shadow: 0 16rpx 40rpx rgba(0, 0, 0, 0.12);
  87. }
  88. }
  89. .card-content {
  90. display: flex;
  91. flex-direction: column;
  92. align-items: center;
  93. justify-content: center;
  94. }
  95. .card-icon {
  96. margin-bottom: 30rpx;
  97. padding: 20rpx;
  98. background: #f8f8f8;
  99. border-radius: 50%;
  100. }
  101. .card-text {
  102. font-size: 36rpx;
  103. color: #333;
  104. font-weight: 500;
  105. text-align: center;
  106. line-height: 1.6;
  107. margin: 20rpx 0;
  108. }
  109. .u-button {
  110. margin-top: 20rpx;
  111. width: 200rpx;
  112. }
  113. }
  114. }
  115. </style>