doum
23 小时以前 0d0e67818a45161af14114211f43aafd232a6da2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<template>
    <view class="activity-item" @click="$emit('select')">
        <view class="activity-message">
            <image src="@/static/uni.png" mode=""></image>
            <view class="message-container">
                <view class="merchant-title">5元优惠券</view>
                <view class="activity-option">
                    <text class="activity-option-label">用劵规则:</text>
                    <text class="activity-option-value">订单满50.00减5.00</text>
                </view>
                <view class="activity-option">
                    <text class="activity-option-label">领取时间:</text>
                    <text class="activity-option-value">03-12 08:00~04-12 08</text>
                </view>
                <view class="activity-option">
                    <text class="activity-option-label">领取情况:</text>
                    <text class="activity-option-value">3/100张</text>
                </view>
            </view>
            <view class="activity-status" v-if="itme.status==0">未开始</view>
            <view class="activity-status" v-if="itme.status==1">进行中</view>
            <view class="activity-status" v-if="itme.status==2">已结束</view>
        </view>
        <view class="bottom-line">
            <text>创建于2023-03-12 19:00</text>
            <view class="bottom-actions">
                <view class="action del-actions" @click="$emit('editAction')" v-if="itme.status==0">编辑</view>
                <view class="action" @click="$emit('deleteAction')" v-if="itme.status==0">删除</view>
                <view class="action-count" @click="$emit('showApply')" v-if="itme.status==2">已领3/100</view>
                
            </view>
        </view>
    </view>
</template>
 
<script>
    export default {
        name:"merchantActivityItem",
        props: {
            itme: {
                type: Object,
                default: () => {}
            }
        },
        data() {
            return {
                delActivity() {
                    this.$emit('deleteAction')
                }
            };
        }
    }
</script>
 
<style lang="scss" scoped>
.activity-item {
    background-color: #fff;
    padding: 28rpx 32rpx;
    border-bottom: 10px solid #f7f7f7;
    // height: 200rpx;
    .activity-message {
        display: flex;
        image {
            width: 100rpx;
            height: 100rpx;
            border-radius: 8rpx;
            margin-right: 18rpx;
        }
        .message-container {
            flex: 1;
            .merchant-title {
                height: 30rpx;
                font-size: 30rpx;
                font-weight: 600;
                color: #222222;
                line-height: 30rpx;
            }
            .activity-option {
                font-size: 24rpx;
                font-weight: 400;
                color: #666666;
                line-height: 24rpx;
                margin-top: 20rpx;
                .activity-option-label {
                    color: #666666;
                }
                .activity-option-value {
                    color: #333333;
                }
                
            }
            
        }
        .activity-status {
            ont-size: 26rpx;
            font-weight: 400;
            color: #D20A0A;
            line-height: 26rpx;
        }
    }
    .bottom-line {
        margin-top: 26rpx;
        display: flex;
        justify-content: space-between;
        height: 52rpx;
        font-size: 24rpx;
        font-weight: 400;
        color: #999999;
        line-height: 52rpx;
        .bottom-actions {
            width: 304rpx;
            display: flex;
            flex-direction: row-reverse;
            justify-content: space-between;
            .action {
                width: 144rpx;
                height: 52rpx;
                border-radius: 28rpx;
                border: 2rpx solid #D9D9D9;
                box-sizing: border-box;
                font-size: 26rpx;
                font-weight: 400;
                color: #333333;
                text-align: center;
            }
            .del-actions {
                border: 2rpx solid #D20A0A;
                color: #D20A0A;
            }
            .action-count {
                height: 52rpx;
                border-radius: 28rpx;
                border: 2rpx solid #D9D9D9;
                box-sizing: border-box;
                font-size: 26rpx;
                font-weight: 400;
                color: #333333;
                text-align: center;
                padding: 0 28rpx;
            }
        }
    }
}
</style>