cm-order-coupon-section.vue 888 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template>
  2. <view class="coupon section cm-order-coupon-section" @click="$emit('click')">
  3. <view class="lable">优惠券</view>
  4. <view class="content">
  5. <text class="text">-¥{{ coupon && coupon.couponAmount | formatPrice }} </text> <text class="iconfont icon-chakangengduo"></text>
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. export default{
  11. props:{
  12. coupon:{
  13. type: Object,
  14. default:()=>{}
  15. }
  16. }
  17. }
  18. </script>
  19. <style lang="scss" scoped>
  20. .section {
  21. display: flex;
  22. justify-content: space-between;
  23. align-items: center;
  24. padding: 0 24rpx;
  25. line-height: 90rpx;
  26. font-size: 28rpx;
  27. background: #fff;
  28. .label {
  29. color: #333333;
  30. font-weight: 500;
  31. }
  32. .content {
  33. color: #ff457b;
  34. .iconfont {
  35. color: #b2b2b2;
  36. margin-left: 8rpx;
  37. }
  38. }
  39. }
  40. </style>