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

90 lines
1.7 KiB

  1. <template>
  2. <view class="centent">
  3. <view class="title">精选发现好物</view>
  4. <scroll-view class="find-scroll" :scroll-x="true">
  5. <view class="find-content">
  6. <view class="find-item" :class="{'max-item': index == 0}" v-for="(item, index) in 5" :key="index">
  7. <image class="img" src="https://picsum.photos/200/300"></image>
  8. <view class="lf-line-2 info">南边开风儿吹北边放花儿开西边来春归去东边来北边跑</view>
  9. </view>
  10. </view>
  11. <view style="height: 10rpx;"></view>
  12. </scroll-view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. data(){
  18. return {
  19. current: 0
  20. }
  21. },
  22. created(){
  23. },
  24. methods: {
  25. }
  26. }
  27. </script>
  28. <style lang="scss" scoped="scoped">
  29. .centent{
  30. padding-top: 60rpx;
  31. }
  32. .title{
  33. font-size: 36rpx;
  34. font-weight: bold;
  35. text-align: center;
  36. color: #222222;
  37. margin-bottom: 30rpx;
  38. }
  39. .find-scroll{
  40. padding: 0rpx 32rpx;
  41. width: 750rpx;
  42. height: max-content;
  43. box-sizing: border-box;
  44. .find-content{
  45. display: flex;
  46. width: max-content;
  47. align-items: center;
  48. padding: 10rpx 0 0 10rpx;
  49. }
  50. .find-item{
  51. width: 380rpx;
  52. height: 480rpx;
  53. background: #FFFFFF;
  54. box-shadow: 0rpx 2rpx 8rpx 1rpx rgba(0, 0, 0, 0.1);
  55. margin-right: 20rpx;
  56. .img{
  57. width: 380rpx;
  58. height: 380rpx;
  59. background-color: #D8D8D8;
  60. }
  61. .info{
  62. padding: 10rpx;
  63. width: 380rpx;
  64. height: 100rpx;
  65. box-sizing: border-box;
  66. font-size: 24rpx;
  67. line-height: 1.8;
  68. }
  69. }
  70. .max-item{
  71. height: 563rpx;
  72. width: 425rpx;
  73. .img{
  74. width: 425rpx;
  75. height: 425rpx;
  76. }
  77. .info{
  78. width: 425rpx;
  79. height: 138rpx;
  80. padding: 20rpx;
  81. font-size: 26rpx;
  82. line-height: 2.1;
  83. }
  84. }
  85. }
  86. </style>