index.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <template>
  2. <view class="page-wrap">
  3. <image class="banner banner-1" src="../../static/img_banner_1.jpg" mode="aspectFill"></image>
  4. <view class="category-panel">
  5. </view>
  6. <image class="banner banner-2" src="../../static/img_banner_2.jpg" mode="aspectFill"></image>
  7. <view class="title-row">
  8. <view class="line"></view>
  9. <view class="point"></view>
  10. <view class="title">热门服务</view>
  11. <view class="point"></view>
  12. <view class="line"></view>
  13. </view>
  14. <view class="product-panel">
  15. <view class="item" v-for="(item,index) in [1,2,3,4,5]" :key="index">
  16. </view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. data() {
  23. return {
  24. };
  25. }
  26. };
  27. </script>
  28. <style lang="scss" scoped>
  29. .banner{
  30. width: 100%;
  31. display: block;
  32. margin-bottom: 13.74rpx;
  33. &-1{
  34. height: 391.48rpx;
  35. }
  36. &-2{
  37. height: 171.7rpx;
  38. }
  39. }
  40. .category-panel{
  41. height: 412.09rpx;
  42. background: #fff;
  43. margin-bottom: 13.74rpx;
  44. }
  45. .title-row {
  46. height: 82.42rpx;
  47. box-sizing: border-box;
  48. border-bottom: 1rpx solid #e0e0e0;
  49. background: #fff;
  50. display: flex;
  51. align-items: center;
  52. justify-content: center;
  53. .line {
  54. width: 42.58rpx;
  55. height: 1rpx;
  56. background: #ccc;
  57. margin: 0 5.49rpx;
  58. }
  59. .point {
  60. width: 8.24rpx;
  61. height: 8.24rpx;
  62. border-radius: 50%;
  63. background: #ccc;
  64. }
  65. .title {
  66. font-size: 30.22rpx;
  67. padding: 0 13.74rpx;
  68. }
  69. }
  70. </style>