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

153 lines
3.3 KiB

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