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

109 lines
2.1 KiB

  1. <template>
  2. <view class="content">
  3. <view class="title">剁手不心疼</view>
  4. <view class="card">
  5. <view class="title">秒杀购</view>
  6. <view class="desc">低价不等人快来秒杀啦</view>
  7. <scroll-view class="scroll-view" :scroll-x="true">
  8. <view class="lf-flex">
  9. <view class="goods-item" v-for="(item, index) in 4" :key="index">
  10. <image class="goods-img"></image>
  11. <view class="lf-line-1 goods-title">日本sk-ll小灯跑</view>
  12. <view class="goods-price">
  13. <text>¥888</text>
  14. <text>¥888</text>
  15. </view>
  16. </view>
  17. </view>
  18. </scroll-view>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. export default {
  24. data(){
  25. return {
  26. }
  27. },
  28. onLoad(){
  29. },
  30. methods: {
  31. }
  32. }
  33. </script>
  34. <style lang="scss" scoped="scoped">
  35. .content{
  36. padding: 60rpx 32rpx 0;
  37. width: 750rpx;
  38. height: max-content;
  39. box-sizing: border-box;
  40. .title{
  41. font-size: 36rpx;
  42. font-weight: bold;
  43. text-align: center;
  44. color: #222222;
  45. margin-bottom: 30rpx;
  46. }
  47. .card{
  48. width: 686rpx;
  49. height: 471rpx;
  50. background: #F3F8F8;
  51. border-radius: 20rpx;
  52. padding: 40rpx;
  53. box-sizing: border-box;
  54. display: flex;
  55. justify-content: center;
  56. flex-direction: column;
  57. align-items: center;
  58. .title{
  59. font-size: 32rpx;
  60. font-weight: bold;
  61. color: #15716E;
  62. }
  63. .desc{
  64. width: 317rpx;
  65. height: 33rpx;
  66. background: #15716E;
  67. border-radius: 17rpx;
  68. font-size: 24rpx;
  69. color: #FFFFFF;
  70. text-align: center;
  71. line-height: 33rpx;
  72. margin-top: 10rpx;
  73. margin-bottom: 40rpx;
  74. }
  75. .scroll-view, .scroll-view>view{
  76. width: 100%;
  77. }
  78. .goods-item{
  79. margin-right: 33rpx;
  80. width: 180rpx;
  81. .goods-img{
  82. width: 180rpx;
  83. height: 180rpx;
  84. border-radius: 10rpx;
  85. background-color: #EEEEEE;
  86. }
  87. .goods-title{
  88. font-size: 24rpx;
  89. color: #222222;
  90. margin-top: 10rpx;
  91. }
  92. .goods-price>text:nth-child(1n){
  93. font-size: 28rpx;
  94. font-weight: #F63434;
  95. }
  96. .goods-price>text:nth-child(2n){
  97. font-size: 24rpx;
  98. font-weight: #777777;
  99. margin-left: 15rpx;
  100. }
  101. }
  102. }
  103. }
  104. </style>