金诚优选前端代码
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.

121 lines
2.4 KiB

  1. <template>
  2. <view>
  3. <lf-nav title="餐饮配套" :showIcon="true" bgColor="transparent" titleColor="#fff" :spreadOut="false"></lf-nav>
  4. <view class="head">
  5. <image class="img" src="https://picsum.photos/200/300"></image>
  6. </view>
  7. <view class="content">
  8. <view v-for="(t_item, t_index) in 3" :key="t_index">
  9. <view class="title">正餐</view>
  10. <view class="list">
  11. <view class="item" v-for="(item, index) in 6" :key="index">
  12. <view class="img">
  13. <image src="https://picsum.photos/200/300" mode="aspectFill"></image>
  14. <view class="float-layer">
  15. <image src="/static/images/empty.png"></image>
  16. </view>
  17. </view>
  18. <view class="name">海底捞</view>
  19. <view class="desc">火锅L3</view>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. <u-back-top :scrollTop="pageScrollTop"></u-back-top>
  25. </view>
  26. </template>
  27. <script>
  28. export default {
  29. data(){
  30. return {
  31. }
  32. },
  33. onLoad(){
  34. },
  35. methods: {
  36. }
  37. }
  38. </script>
  39. <style lang="scss" scoped="scoped">
  40. .head{
  41. width: 750rpx;
  42. height: 520rpx;
  43. .img{
  44. width: 100%;
  45. height: 100%;
  46. }
  47. }
  48. .content{
  49. padding: 20rpx 32rpx 40rpx;
  50. width: 750rpx;
  51. height: max-content;
  52. box-sizing: border-box;
  53. .title{
  54. font-size: 36rpx;
  55. color: #15716E;
  56. font-weight: bold;
  57. padding: 20rpx 0;
  58. // border-bottom: 4rpx dashed;
  59. background-image: linear-gradient(to right, #15716E 0%, #15716E 50%, transparent 50%);
  60. background-size: 28rpx 4rpx;
  61. background-repeat: repeat-x;
  62. background-position-y: bottom;
  63. }
  64. .list{
  65. display: flex;
  66. flex-wrap: wrap;
  67. .item{
  68. width: 200rpx;
  69. height: max-content;
  70. padding: 20rpx 0;
  71. margin-right: 43rpx;
  72. &:nth-child(3n){
  73. margin-right: 0rpx;
  74. }
  75. .img{
  76. width: 200rpx;
  77. height: 200rpx;
  78. border-radius: 10rpx;
  79. overflow: hidden;
  80. position: relative;
  81. &>image{
  82. width: 100%;
  83. height: 100%;
  84. background-color: #EEEEEE;
  85. }
  86. .float-layer{
  87. position: absolute;
  88. left: 0;
  89. top: 0;
  90. width: 100%;
  91. height: 100%;
  92. background-color: rgba(0,0,0,0.5);
  93. display: flex;
  94. justify-content: center;
  95. align-items: center;
  96. &>image{
  97. width: 100rpx;
  98. height: 100rpx;
  99. border-radius: 50%;
  100. }
  101. }
  102. }
  103. .name{
  104. font-size: 28rpx;
  105. font-weight: bold;
  106. color: #222222;
  107. margin-top: 10rpx;
  108. }
  109. .desc{
  110. font-size: 24rpx;
  111. color: #777777;
  112. }
  113. }
  114. }
  115. }
  116. </style>