gui-coupons.vue 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <view class="gui-coupons gui-flex gui-row gui-nowrap">
  3. <view
  4. class="gui-coupons-left gui-flex1 gui-flex gui-row gui-nowrap gui-space-between gui-align-items-center gui-bg-white gui-dark-bg-level-3"
  5. :style="{height:coupon.height}">
  6. <view class="gui-coupons-left-number">
  7. <view class="gui-flex gui-row gui-nowrap gui-justify-content-center gui-align-items-center">
  8. <text class="gui-color-gray gui-h4">{{coupon.unit}}</text>
  9. <text class="gui-h3 gui-bold"
  10. :style="{color:coupon.color}">{{coupon.number}}</text>
  11. </view>
  12. <text class="gui-text-small gui-block gui-text-center"
  13. :style="{color:coupon.color}">{{coupon.txt}}</text>
  14. </view>
  15. <view class="gui-coupons-left-body">
  16. <text class="gui-block gui-h5 gui-primary-color">{{coupon.title}}</text>
  17. <text class="gui-block gui-text-small gui-color-gray">{{coupon.desc}}</text>
  18. </view>
  19. <text
  20. class="gui-coupons-status"
  21. v-if="coupon.drawed"
  22. :style="{backgroundColor:coupon.color}">{{coupon.drawed}}</text>
  23. </view>
  24. <text
  25. class="gui-coupons-right gui-color-white gui-text-center gui-block"
  26. :style="{
  27. height:coupon.height,
  28. lineHeight:coupon.height,
  29. backgroundColor:coupon.color
  30. }">{{coupon.btn}}</text>
  31. <view class="gui-coupons-sawtooth"
  32. :style="{
  33. height:coupon.height,
  34. backgroundColor:coupon.color
  35. }">
  36. <view
  37. class="gui-coupons-sawtooth-circular gui-bg-gray gui-dark-bg-level-3"
  38. v-for="(item, index) in 10"
  39. :key="index"></view>
  40. </view>
  41. </view>
  42. </template>
  43. <script>
  44. export default {
  45. name : "gui-coupons",
  46. props : {
  47. coupon : {
  48. type : Object,
  49. default : function () {
  50. return {}
  51. }
  52. }
  53. }
  54. }
  55. </script>
  56. <style scoped>
  57. .gui-coupons{border-top-left-radius:10rpx; border-bottom-left-radius:10rpx;}
  58. .gui-coupons-left{width:500rpx; height:150rpx; padding-right:10rpx; border-radius:8rpx; position:relative;}
  59. .gui-coupons-left-number{width:168rpx; border-right:1px dashed #D2D2D2;}
  60. .gui-coupons-left-body{width:320rpx;}
  61. .gui-coupons-status{color:#FFFFFF; padding:0 10px; height:36rpx; line-height:36rpx; font-size:20rpx; position:absolute; z-index:1; right:6px; top:8px; border-radius:36rpx;}
  62. .gui-coupons-right{width:150rpx; height:150rpx; font-size:32rpx;}
  63. .gui-coupons-sawtooth{width:8px; height:150rpx; overflow:hidden; position:relative;}
  64. .gui-coupons-sawtooth-circular{width:10px; margin:3px 5px; height:10px; border-radius:10px;}
  65. </style>