doum
3 小时以前 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
<template>
    <view class="address">
        <view class="address_item" v-for="(item, index) in 3" :key="index">
            <view class="address_item_info">
                <view class="top">
                    <text>默认</text>
                    <text>刘美女</text>
                    <text>15789347769</text>
                </view>
                <view class="bottom">
                    上海 上海市 青浦区 夏阳街道华科路新青浦家园144号楼101
                </view>
            </view>
            <image src="@/static/icon/ic_edit@2x.png" mode="widthFix"></image>
        </view>
        <view class="address_footer">
            <view class="address_footer_submit" @click="toAdd">新建收货地址</view>
        </view>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                
            }
        },
        methods: {
            toAdd() {
                uni.navigateTo({
                    url: '/pages/operationAddress/index'
                });
            }
        }
    }
</script>
 
<style lang="scss" scoped>
    .address {
        width: 100%;
        padding: 32rpx;
        box-sizing: border-box;
        background-color: #ffffff;
        .address_item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 32rpx;
            padding-bottom: 32rpx;
            border-bottom: 2rpx solid #F4F5F4;
            &:first-child {
                margin-top: 0 !important;
            }
            &:last-child {
                padding-bottom: 0 !important;
                border: none !important;
            }
            .address_item_info {
                width: 504rpx;
                display: flex;
                flex-direction: column;
                .top {
                    display: flex;
                    align-items: center;
                    text {
                        &:nth-child(1) {
                            padding: 4rpx 6rpx;
                            font-size: 24rpx;
                            font-family: PingFang SC-Regular, PingFang SC;
                            font-weight: 400;
                            color: #D20A0A;
                            border-radius: 4rpx;
                            border: 2rpx solid #D20A0A;
                            margin-right: 12rpx;
                        }
                        &:nth-child(2) {
                            font-size: 28rpx;
                            font-family: PingFang SC-Semibold, PingFang SC;
                            font-weight: 600;
                            color: #333333;
                            margin-right: 12rpx;
                        }
                        &:nth-child(3) {
                            font-size: 24rpx;
                            font-family: PingFang SC-Regular, PingFang SC;
                            font-weight: 400;
                            color: #999999;
                        }
                    }
                }
                .bottom {
                    margin-top: 20rpx;
                    font-size: 24rpx;
                    font-family: PingFang SC-Regular, PingFang SC;
                    font-weight: 400;
                    color: #333333;
                }
            }
            image {
                flex-shrink: 0;
                width: 26rpx;
                height: 26rpx;
                margin-left: 15rpx;
            }
        }
        .address_footer {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            box-sizing: border-box;
            padding: 10rpx 56rpx calc(10rpx + env(safe-area-inset-bottom)) 56rpx;
            background-color: #ffffff;
            .address_footer_submit {
                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;
            }
        }
    }
</style>