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

77 lines
1.5 KiB

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