BigNameSpecials.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. <template>
  2. <view class="big-name-specials-container">
  3. <view class="header-pane">
  4. <BeeIcon :src="require('../../../../static/images/icon/big-name.png')" :size="24"></BeeIcon>
  5. <text class="text1"> 大牌特惠 </text>
  6. <text style="color: #fa5151">·</text>
  7. <text class="text2">今日限时抢购</text>
  8. </view>
  9. <view class="active-wrapper">
  10. <view class="brand-container">
  11. <BeeAvatar :size="40" :src="common.seamingImgUrl('alo7i1qewcuj4305mrr3.png')" radius="10rpx"></BeeAvatar>
  12. <view class="brand-detail">
  13. <view class="brand-name">
  14. 凤凰轩(龙江旗舰店)
  15. </view>
  16. <view class="rate-wrapper">
  17. <BeeIcon
  18. :src="require('../../../../components/BeeBrandPane/images/star.png')
  19. " :size="12"
  20. ></BeeIcon>
  21. <text class="text1">4.5分</text>
  22. <text class="text2">烧烤店</text>
  23. </view>
  24. </view>
  25. </view>
  26. <view class="goods-pane">
  27. <BeeAvatar :src="common.seamingImgUrl('alo7i1qewcuj4305mrr3.png')" radius="10rpx" :height="90" :width="93">
  28. </BeeAvatar>
  29. <view class="goods-info">
  30. <view class="goods-name">宠粉专享·卤汁牛肉</view>
  31. <view class="time">周一至周五可用 超实惠,味道浓郁留香</view>
  32. <view class="price-pane">
  33. <view class="price-detail">
  34. <view class="price-text-1">
  35. <text class="icon">¥</text>
  36. <text class="price-text">105</text>
  37. <text class="tag">5折</text>
  38. <text class="old-price">¥205</text>
  39. </view>
  40. <view class="hot-wrapper">
  41. <BeeIcon :src="require('../../../../static/images/icon/hot.png')" :size="12"></BeeIcon>
  42. <text> 爆卖93万+ </text>
  43. <text> 每单省100元 </text>
  44. </view>
  45. </view>
  46. <button class="bee-btn">立即抢购</button>
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. </template>
  53. <script>
  54. export default {}
  55. </script>
  56. <style lang="less" scoped>
  57. .big-name-specials-container {
  58. width: 100%;
  59. .header-pane {
  60. height: 80upx;
  61. display: flex;
  62. align-items: center;
  63. border-radius: 20upx 20upx 0 0;
  64. padding-left: 28upx;
  65. box-sizing: border-box;
  66. background: linear-gradient(180deg,
  67. #fde1e1 0%,
  68. rgba(255, 255, 255, 0) 230%);
  69. text {
  70. letter-spacing: 2px;
  71. font-weight: 500;
  72. margin-left: 12upx;
  73. &.text1 {
  74. color: #fa5151;
  75. }
  76. &.text2 {
  77. color: #955311;
  78. }
  79. }
  80. }
  81. .active-wrapper {
  82. padding: 20upx;
  83. background-color: #fff;
  84. border-radius: 0 0 20upx 20upx;
  85. .brand-container {
  86. display: flex;
  87. align-items: center;
  88. .brand-detail {
  89. flex: 1;
  90. margin-left: 20upx;
  91. .brand-name {
  92. width: 560upx;
  93. white-space: nowrap;
  94. overflow: hidden;
  95. text-overflow: ellipsis;
  96. color: #000;
  97. font-weight: 500;
  98. }
  99. .rate-wrapper {
  100. display: flex;
  101. align-items: center;
  102. text {
  103. font-size: 24upx;
  104. margin-top: 8upx;
  105. &.text1 {
  106. color: #fa5151;
  107. margin: 8upx 4upx 0;
  108. }
  109. &.text2 {
  110. color: #999;
  111. }
  112. }
  113. }
  114. }
  115. }
  116. }
  117. .goods-pane {
  118. display: flex;
  119. align-items: flex-start;
  120. margin-top: 30upx;
  121. .goods-info {
  122. margin-left: 20upx;
  123. flex: 1;
  124. .goods-name {
  125. font-size: 32upx;
  126. font-weight: 500;
  127. margin: 0 0 4upx;
  128. }
  129. .time {
  130. color: #ffa015;
  131. }
  132. .price-pane {
  133. height: 84upx;
  134. width: 100%;
  135. background: #fff5dd;
  136. border-radius: 10upx;
  137. display: flex;
  138. justify-content: space-between;
  139. margin-top: 20upx;
  140. // padding: 10upx;
  141. box-sizing: border-box;
  142. .price-detail {
  143. flex: 1;
  144. padding-left: 10upx;
  145. box-sizing: border-box;
  146. .price-text-1 {
  147. display: flex;
  148. align-items: flex-end;
  149. margin-top: 4upx;
  150. .icon {
  151. color: #fa5151;
  152. font-size: 24upx;
  153. }
  154. .price-text {
  155. color: #fa5151;
  156. font-weight: 500;
  157. font-size: 32upx;
  158. line-height: 1;
  159. }
  160. .tag {
  161. font-size: 24upx;
  162. color: #fa5151;
  163. border: 1upx solid #fa5151;
  164. padding: 0 6upx;
  165. border-radius: 6upx;
  166. margin: 0 6upx 0 14upx;
  167. }
  168. .old-price {
  169. color: #999;
  170. font-size: 20upx;
  171. text-decoration: line-through;
  172. }
  173. }
  174. .hot-wrapper {
  175. display: flex;
  176. align-items: center;
  177. font-size: 20upx;
  178. color: #ff8838;
  179. text {
  180. font-size: 20upx;
  181. margin: 8upx 8upx 0;
  182. }
  183. }
  184. }
  185. .bee-btn {
  186. width: 200upx;
  187. height: 100%;
  188. background: url('../../../../static/images/index/btn-bg.png') no-repeat;
  189. background-size: cover;
  190. text-align: right;
  191. line-height: 80upx;
  192. color: #fff;
  193. box-sizing: border-box;
  194. padding-right: 20upx;
  195. font-size: 24upx;
  196. }
  197. }
  198. }
  199. }
  200. }
  201. </style>