普兆健康管家前端代码仓库
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.

154 lines
3.3 KiB

  1. <template>
  2. <view class="view">
  3. <!-- todo -->
  4. <image class="img" src="" mode="widthFix"></image>
  5. <view class="content">
  6. <view class="card">
  7. <image class="img" src="@/pages_order/static/index/team-info-bg.png" mode="widthFix"></image>
  8. <view class="info">
  9. <view class="info-header">
  10. <view class="info-header-title">
  11. 关注我们<br/><text>了解更多营养科学</text><view class="icon"><image class="icon-img" src="@/pages_order/static/index/btn-icon.png" mode="widthFix"></image></view>
  12. </view>
  13. <view class="info-header-desc">
  14. Background of team members
  15. </view>
  16. </view>
  17. <view class="info-content">
  18. <view class="info-card" v-for="item in list" :key="item.id">
  19. <view class="info-card-img flex">
  20. <image class="img" :src="item.url" mode="widthFix"></image>
  21. </view>
  22. <view class="info-card-text flex flex-column">
  23. <view class="info-card-zh">{{ item.zh }}</view>
  24. <view class="info-card-en">{{ item.en }}</view>
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. </template>
  33. <script>
  34. export default {
  35. props: {
  36. list: {
  37. type: Array,
  38. default() {
  39. return []
  40. }
  41. }
  42. },
  43. }
  44. </script>
  45. <style scoped lang="scss">
  46. .view {
  47. font-size: 0;
  48. padding: 40rpx 32rpx 0 32rpx;
  49. }
  50. .content {
  51. padding-top: 80rpx;
  52. }
  53. .img {
  54. width: 100%;
  55. height: auto;
  56. }
  57. .card {
  58. width: 100%;
  59. border-radius: 64rpx;
  60. overflow: hidden;
  61. background-image: linear-gradient(#F3F3F3, #FAFAFF);
  62. box-shadow: -5rpx -5rpx 10rpx 0 #FFFFFF,
  63. 10rpx 10rpx 20rpx 0 #AAAACC80,
  64. 4rpx 4rpx 10rpx 0 #AAAACC40,
  65. -2rpx -2rpx 5rpx 0 #FFFFFF;
  66. }
  67. .info {
  68. padding: 32rpx;
  69. background-image: linear-gradient(#EDEDED, #FFFFFF);
  70. &-header {
  71. &-title {
  72. font-size: 48rpx;
  73. font-family: PingFang SC;
  74. font-weight: 600;
  75. line-height: 1.4;
  76. color: #252545;
  77. .icon {
  78. display: inline-block;
  79. vertical-align: middle;
  80. margin-left: 16rpx;
  81. &-img {
  82. width: 48rpx;
  83. height: 48rpx;
  84. }
  85. }
  86. }
  87. &-desc {
  88. font-size: 26rpx;
  89. font-family: PingFang SC;
  90. font-weight: 400;
  91. line-height: 1.4;
  92. color: #989898;
  93. }
  94. }
  95. &-content {
  96. display: grid;
  97. grid-template-columns: repeat(3, 1fr);
  98. grid-column-gap: 20rpx;
  99. }
  100. &-card {
  101. margin-top: 20rpx;
  102. border-radius: 24rpx;
  103. background-image: linear-gradient(#FAFAFF, #F3F3F3);
  104. box-shadow: -5rpx -5rpx 10rpx 0 #FFFFFF,
  105. 10rpx 10rpx 20rpx 0 #AAAACC80,
  106. 4rpx 4rpx 10rpx 0 #AAAACC40,
  107. -2rpx -2rpx 5rpx 0 #FFFFFF;
  108. &-img {
  109. width: 100%;
  110. height: 160rpx;
  111. padding: 0 25rpx;
  112. box-sizing: border-box;
  113. }
  114. &-text {
  115. padding: 16rpx 0;
  116. }
  117. &-zh {
  118. font-family: PingFang SC;
  119. font-size: 28rpx;
  120. font-weight: 500;
  121. line-height: 1.4;
  122. color: #252545;
  123. }
  124. &-en {
  125. font-family: PingFang SC;
  126. font-size: 24rpx;
  127. font-weight: 400;
  128. line-height: 1.4;
  129. color: #989898;
  130. }
  131. }
  132. }
  133. </style>