1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <template>
- <view class="share-reduce">
- <template v-if="!reductionData.status">
- <view class="left-title high">
- <text>金额满{{ reduction.touchPrice }}元,分享可立减{{ reduction.reducedAmount }}元</text>
- </view>
- <view class="right-content">
- <view class="share-btn">
- <!-- 分享按钮 -->
- <button open-type="share">点击分享</button>
- </view>
- </view>
- </template>
- <template v-else>
- <view class="left-title">分享减免</view>
- <view class="right-content">
- <view class="reduce-amount">-¥{{ reduction.reducedAmount | formatPrice }}</view>
- <view class="iconfont icon-chakangengduo"></view>
- </view>
- </template>
- </view>
- </template>
- <script>
- export default {
- props: {
- reductionData: {
- type: Object,
- default: () => {}
- }
- },
- computed: {
- reduction() {
- return this.reductionData.reduction || {}
- }
- },
- created() {
- console.log(this.reductionData)
- }
- }
- </script>
- <style lang="scss" scoped>
- .share-reduce {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 0 24rpx;
- height: 90rpx;
- background: #fff;
- .left-title {
- font-weight: bold;
- color: #333333;
- font-size: 28rpx;
- &.high {
- color: #ff457b;
- }
- }
- .right-content {
- display: flex;
- justify-content: flex-start;
- align-items: center;
- .coupon-amount,
- .reduce-amount,
- .share-btn {
- font-size: 28rpx;
- color: #ff457b;
- margin-right: 12rpx;
- button {
- display: inline;
- color: #ff457b;
- }
- }
- .iconfont {
- font-size: 28rpx;
- color: #b2b2b2;
- }
- }
- }
- </style>
|