doum
14 小时以前 1382e80f33270e77e06414ce8ad3f085fde6142a
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
<template>
    <view class="shop">
        <view class="shop_image">
            <image src="@/static/images/Maskgroup@2x.png" mode="widthFix"></image>
        </view>
        <view class="shop_info">
            <view class="top">
                <view class="top_left">
                    <text class="top_left_price">29</text>
                    <text class="top_left_label">咖豆</text>
                </view>
                <text class="top_right">已兑619份</text>
            </view>
            <text class="title">清澄白河马克杯-节日版定制</text>
        </view>
        <view class="shop_desc">
            <view class="label">商品详情</view>
            <view class="content">富文本</view>
        </view>
        <view class="shop_footer">
            <view class="shop_footer_btn" @click="open">立即兑换</view>
        </view>
        <uni-popup ref="popup" background-color="#fff">
            <view class="popup">
                <view class="popup_title">
                    <view class="popup_title_left">
                        <image src="@/static/uni.png" mode="widthFix"></image>
                        <view class="yi">
                            <text>29</text>
                            <text>咖豆</text>
                        </view>
                    </view>
                    <uni-icons type="closeempty" size="20" color="#999999" @click="close"></uni-icons>
                </view>
                <view class="popup_xian"></view>
                <scroll-view scroll-y class="popup_list">
                    <view class="popup_list_item" v-for="(item, index) in 2" :key="index">
                        <view class="label">颜色</view>
                        <view class="list">
                            <view class="list_item active">白色</view>
                            <view class="list_item">黑色</view>
                        </view>
                    </view>
                </scroll-view>
                <view class="popup_footer">
                    <view class="popup_footer_btn" @click="next">下一步</view>
                </view>
            </view>
        </uni-popup>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                
            }
        },
        methods: {
            open() {
                this.$refs.popup.open('bottom')
            },
            close() {
                this.$refs.popup.close()
            },
            next() {
                uni.navigateTo({
                    url: '/pages/confirmOrder/index'
                });
            }
        }
    }
</script>
 
<style>
    
</style>
 
<style lang="scss" scoped>
    .shop {
        width: 100%;
        .shop_image {
            width: 100%;
            height: 748rpx;
            image {
                width: 100%;
                height: 100%;
            }
        }
        .shop_info {
            width: 100%;
            box-sizing: border-box;
            padding: 28rpx 32rpx;
            background-color: #ffffff;
            .top {
                display: flex;
                align-items: center;
                justify-content: space-between;
                .top_left {
                    display: flex;
                    align-items: center;
                    .top_left_price {
                        font-size: 40rpx;
                        font-family: PingFang SC-Semibold, PingFang SC;
                        font-weight: 600;
                        color: #D20A0A;
                    }
                    .top_left_label {
                        font-size: 28rpx;
                        font-family: PingFang SC-Medium, PingFang SC;
                        font-weight: 500;
                        color: #D20A0A;
                    }
                }
                .top_right {
                    font-size: 24rpx;
                    font-family: PingFang SC-Medium, PingFang SC;
                    font-weight: 500;
                    color: #999999;
                }
            }
            .title {
                font-size: 36rpx;
                font-family: PingFang SC-Semibold, PingFang SC;
                font-weight: 600;
                color: #333333;
            }
        }
        .shop_desc {
            width: 100%;
            margin-top: 16rpx;
            padding: 28rpx 32rpx;
            box-sizing: border-box;
            background-color: #ffffff;
            .label {
                font-size: 32rpx;
                font-family: PingFang SC-Semibold, PingFang SC;
                font-weight: 600;
                color: #333333;
            }
            .content {
                margin-top: 20rpx;
            }
        }
        .shop_footer {
            padding: 8rpx 56rpx calc(env(safe-area-inset-bottom) + 8rpx) 56rpx;
            background-color: #ffffff;
            width: 100%;
            box-sizing: border-box;
            position: fixed;
            bottom: 0;
            left: 0;
            .shop_footer_btn {
                width: 100%;
                height: 72rpx;
                line-height: 72rpx;
                text-align: center;
                font-size: 32rpx;
                font-family: PingFang SC-Medium, PingFang SC;
                font-weight: 500;
                color: #FFFFFF;
                background: linear-gradient(270deg, #D20A0A 0%, #D95A5A 100%);
                border-radius: 36rpx 36rpx 36rpx 36rpx;
            }
            
            
        }
        .popup {
            width: 100%;
            padding: 44rpx 32rpx 0 32rpx;
            background-color: #ffffff;
            box-sizing: border-box;
            .popup_title {
                display: flex;
                align-items: flex-start;
                justify-content: space-between;
                .popup_title_left {
                    display: flex;
                    align-items: center;
                    image {
                        width: 128rpx;
                        height: 128rpx;
                        margin-right: 16rpx;
                    }
                    .yi {
                        display: flex;
                        align-items: center;
                        text {
                            &:first-child {
                                font-size: 40rpx;
                                font-family: PingFang SC-Semibold, PingFang SC;
                                font-weight: 600;
                                color: #D20A0A;
                            }
                            &:last-child {
                                font-size: 28rpx;
                                font-family: PingFang SC-Medium, PingFang SC;
                                font-weight: 500;
                                color: #D20A0A;
                            }
                        }
                    }
                }
            }
            .popup_xian { 
                width: 100%;
                height: 2rpx;
                margin: 48rpx 0;
                background-color: #F4F5F4;
            }
            .popup_list {
                width: 100%;
                max-height: 500rpx;
                display: flex; 
                flex-direction: column;
                .popup_list_item {
                    display: flex;
                    flex-direction: column;
                    margin-bottom: 24rpx;
                    .label {
                        font-size: 32rpx;
                        font-family: PingFang SC-Semibold, PingFang SC;
                        font-weight: 600;
                        color: #333333;
                    }
                    .list {
                        display: flex;
                        align-items: center;
                        margin-top: 24rpx;
                        .active {
                            background: rgba(210,10,10,0.08) !important;
                            border: 2rpx solid #D20A0A !important;
                            font-size: 28rpx;
                            font-weight: 500;
                            color: #D20A0A;
                        }
                        .list_item {
                            padding: 24rpx 48rpx;
                            background: #F5F5F5;
                            border-radius: 16rpx;
                            margin-right: 26rpx;
                            &:last-child {
                                margin-right: 0 !important;
                            }
                        }
                    }
                }
            }
            .popup_footer {
                width: 100%;
                padding: 10rpx 24rpx;
                box-sizing: border-box;
                margin-top: 120rpx;
                border-top: 2rpx solid #F4F5F4;
                .popup_footer_btn {
                    width: 100%; 
                    height: 72rpx;
                    line-height: 72rpx;
                    text-align: center;
                    background: linear-gradient(270deg, #D20A0A 0%, #D95A5A 100%);
                    border-radius: 36rpx;
                    font-size: 32rpx;
                    font-family: PingFang SC-Medium, PingFang SC;
                    font-weight: 500;
                    color: #FFFFFF;
                }
            }
        }
    }
</style>