1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <template>
- <view class="coupon section cm-order-coupon-section" @click="$emit('click')">
- <view class="lable">优惠券</view>
- <view class="content">
- <text class="text">-¥{{ coupon && coupon.couponAmount | formatPrice }} </text> <text class="iconfont icon-chakangengduo"></text>
- </view>
- </view>
- </template>
- <script>
- export default{
- props:{
- coupon:{
- type: Object,
- default:()=>{}
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .section {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 0 24rpx;
- line-height: 90rpx;
- font-size: 28rpx;
- background: #fff;
- .label {
- color: #333333;
- font-weight: 500;
- }
- .content {
- color: #ff457b;
- .iconfont {
- color: #b2b2b2;
- margin-left: 8rpx;
- }
- }
- }
- </style>
|