goldenBean.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <template>
  2. <view class="goldenBean">
  3. <view class="title">
  4. <image src="@/static/img/list1.png"></image>
  5. <view class="title-t"> 金豆专区 </view>
  6. <text class="about">超值体验</text>
  7. </view>
  8. <view class="box">
  9. <view class="header">
  10. <view class="left">
  11. <view class="title">
  12. 购买商品赠送金豆
  13. </view>
  14. <view class="about">
  15. 买到就是赚到
  16. </view>
  17. </view>
  18. <view class="right">
  19. <image src="@/static/img/right.png" @click="navto('/pages/product/exchange')"></image>
  20. </view>
  21. </view>
  22. <view class="footer">
  23. <view class="list">
  24. <view class="item" v-for="d in data">
  25. <view class="img">
  26. <image :src="d.image" mode=""></image>
  27. </view>
  28. <view class="name nowarp" :title='d.store_name'>
  29. {{ d.store_name }}
  30. </view>
  31. <view class="price">
  32. ¥{{ d.price }}
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. export default {
  42. props: ['data'],
  43. mounted() {
  44. console.log(this.data);
  45. },
  46. methods: {
  47. navto(url) {
  48. uni.navigateTo({
  49. url: url
  50. });
  51. }
  52. }
  53. }
  54. </script>
  55. <style lang="scss" scoped>
  56. $grey: #95A0B1;
  57. $text: #333333;
  58. $red: #FF4C4C;
  59. // 金豆专区
  60. .goldenBean {
  61. font-family: PingFang-SC-Bold;
  62. margin-top: 20rpx;
  63. padding: 20rpx;
  64. background-color: #fff;
  65. .title {
  66. display: flex;
  67. line-height: 40rpx;
  68. .title-t {
  69. color: $text;
  70. font-weight: bold;
  71. margin: 0 20rpx;
  72. font-size: 34rpx;
  73. }
  74. .about {
  75. font-size: 24rpx;
  76. color: $grey;
  77. }
  78. image {
  79. width: 40rpx;
  80. height: 40rpx;
  81. }
  82. }
  83. .box {
  84. margin: 20rpx 0;
  85. border-radius: 10rpx;
  86. overflow: hidden;
  87. .header {
  88. padding:20rpx;
  89. background: linear-gradient(90deg, #FF8F44 0%, #FFBD70 100%);
  90. padding-bottom: 80rpx;
  91. width: 100%;
  92. display: flex;
  93. justify-content: space-between;
  94. color: #fff;
  95. .left {
  96. line-height: 40rpx;
  97. .title {
  98. font-size: 32rpx;
  99. }
  100. .about {
  101. opacity: 0.9;
  102. font-size: 24rpx;
  103. }
  104. }
  105. .right {
  106. margin: auto 0;
  107. image {
  108. width: 40rpx;
  109. height: 40rpx;
  110. }
  111. }
  112. }
  113. .footer {
  114. height: 300rpx;
  115. background-color: $page-color-base;
  116. padding: 20rpx;
  117. margin-bottom: -50rpx;
  118. .list {
  119. display: flex;
  120. overflow: auto;
  121. border-radius: 10rpx;
  122. position: relative;
  123. top: -90rpx;
  124. background-color: #fff;
  125. .item {
  126. padding: 30rpx;
  127. border-right: solid 1rpx $page-color-base;
  128. .name {
  129. font-size: 24rpx;
  130. color: #3F3F3F;
  131. width: 150rpx;
  132. overflow: hidden;
  133. text-overflow:ellipsis;
  134. }
  135. .price {
  136. font-size: 28rpx;
  137. color: $red;
  138. font-weight: bold;
  139. }
  140. .img {
  141. image {
  142. width: 150rpx;
  143. height: 150rpx;
  144. }
  145. }
  146. }
  147. }
  148. }
  149. }
  150. }
  151. </style>