goodsModel2.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <template>
  2. <view class="slot">
  3. <view class="integral">
  4. <view class="inte_img">
  5. <!-- <image src="../../../static/goods/points-header.png" mode=""></image> -->
  6. <p class="title">热门好物</p>
  7. <view class="inte_right" @click="goZonePage('hot')">
  8. <span>更多>></span>
  9. </view>
  10. </view>
  11. <view class="commodity">
  12. <Goods v-for="(item, index) in list" :key="index" :data="item"></Goods>
  13. </view>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. import Goods from '@/pages/mall/components/goods.vue';
  19. export default {
  20. name: 'pionts',
  21. components: {
  22. Goods
  23. },
  24. props: {
  25. list: {
  26. type: Array,
  27. default: () => {
  28. return [];
  29. }
  30. }
  31. },
  32. methods: {
  33. goZonePage(type){
  34. uni.navigateTo({
  35. url:'/pages-mall/pages/zone/zone?type='+type
  36. })
  37. }
  38. }
  39. };
  40. </script>
  41. <style lang="scss" scoped>
  42. .slot {
  43. position: relative;
  44. }
  45. .money {
  46. display: flex;
  47. align-items: flex-end;
  48. .now {
  49. text:nth-child(1) {
  50. font-size: 20rpx;
  51. color: $app-theme-text-money-color;
  52. }
  53. text:nth-child(2) {
  54. font-size: 28rpx;
  55. color: $app-theme-text-money-color;
  56. }
  57. }
  58. .old {
  59. text {
  60. font-size: 20rpx;
  61. color: $app-theme-card-gray-color;
  62. text-decoration-line: line-through;
  63. }
  64. }
  65. }
  66. .integral {
  67. margin: 28rpx 30rpx 0 30rpx;
  68. position: relative;
  69. .inte_img {
  70. position: relative;
  71. width: 100%;
  72. height: 170rpx;
  73. background-color: $app-theme-color;
  74. border-radius: 10rpx 10rpx 0 0;
  75. .title{
  76. color: #ffffff;
  77. text-align: center;
  78. font-size: 32rpx;
  79. font-weight: bold;
  80. padding-top: 30rpx;
  81. }
  82. image {
  83. width: 100%;
  84. height: 174rpx;
  85. }
  86. .inte_right {
  87. display: flex;
  88. align-items: center;
  89. position: absolute;
  90. top: 35rpx;
  91. right: 20rpx;
  92. span {
  93. font-size: 28rpx;
  94. font-family: PingFang-SC-Regular, PingFang-SC;
  95. font-weight: 400;
  96. color: #fff;
  97. line-height: 40rpx;
  98. }
  99. image {
  100. width: 32rpx;
  101. height: 32rpx;
  102. }
  103. }
  104. }
  105. .commodity {
  106. background-color: #ffffff;
  107. position: relative;
  108. min-height: 100rpx;
  109. margin-top: -60rpx;
  110. border-radius: 8rpx;
  111. z-index: $app-zIndex-absolute;
  112. // .list_item{
  113. // padding: 0 25rpx;
  114. // }
  115. .borders {
  116. width: 100%;
  117. height: 2rpx;
  118. background: #efefef;
  119. }
  120. }
  121. }
  122. </style>