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

93 lines
1.8 KiB

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