home-goods-item.vue 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <template>
  2. <view class="bg-white pb-10 rounded-8 overflow-hidden">
  3. <image class="w-all h-195"
  4. src="https://img1.baidu.com/it/u=2172818577,3783888802&fm=253&app=138&f=JPEG?w=800&h=1422">
  5. </image>
  6. <view
  7. class="goods-count px-12 flex items-center justify-between text-white w-all h-32 rounded-6 mt--15 zi-2 relative">
  8. <view class="fw-500 fs-18">热卖爆品</view>
  9. <view class="fw-400 fs-13">已售1000件</view>
  10. </view>
  11. <view class="fw-500 fs-13 text-333333 mt-11 px-12">
  12. [广州康和药业 GKH PHARMACEUTICAL LTD]盐酸多西环素片 0.1g*12片 1盒装
  13. </view>
  14. <view class="fw-400 fs-12 text-D46C0D mt-7 px-12">
  15. 处方药须凭处方在药师指导下购买和使用
  16. </view>
  17. <view class="flex items-center justify-between mt-7 px-12">
  18. <view class="flex items-center gap-4 text-FF4B33 fs-11">
  19. <view class="px-4 ph-2 border border-FFA599 rounded-2 ">9.5折</view>
  20. <view class="px-4 ph-2 border border-FFA599 rounded-2 ">限购1份</view>
  21. </view>
  22. <view class="flex items-center gap-2">
  23. <view class="fs-12 text-FA341E fw-400">领卷</view>
  24. <image class="w-12 h-12" src="/static/images/home/sdyhzq_bg@2x.png"></image>
  25. </view>
  26. </view>
  27. <view class="flex items-center justify-between mt-8 px-12">
  28. <view class="flex items-end gap-8">
  29. <view class="text-FA341E ">
  30. <text class="fs-12 fw-600">¥</text>
  31. <text class="fs-24 fw-600">105</text>
  32. <text class="fs-15 fw-600">.36</text>
  33. </view>
  34. <view class="text-999999 fs-13 fw-400 text-line-through pb-3">
  35. ¥128.00
  36. </view>
  37. </view>
  38. <view class="flex items-center w-110 h-34 rounded-34 overflow-hidden">
  39. <view class="w-44 h-all flex items-center justify-center bg-38D97D">
  40. <image class="w-20 h-20" src="/static/images/home/shopping_car_icon24@2x.png">
  41. </image>
  42. </view>
  43. <view class="flex-1 h-all flex items-center justify-center bg-02B176 fw-500 text-white fs-14">
  44. 去购买</view>
  45. </view>
  46. </view>
  47. </view>
  48. </template>
  49. <style scoped lang="scss">
  50. .goods-count {
  51. background: linear-gradient(to right, #FA341E, #F4A007)
  52. }
  53. </style>