zhangwei
2024-08-14 9d8994790fe403935ed46ad478f83ae110bb7a01
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
<template>
    <view class="navigation">
        <view class="left">
            <view class="item">
                <up-icon name="server-fill" :size="20" :color="$u.color['contentColor']"></up-icon>
                <view class="text u-line-1">客服</view>
            </view>
            <view class="item">
                <up-icon name="home" :size="20" :color="$u.color['contentColor']"></up-icon>
                <view class="text u-line-1">店铺</view>
            </view>
            <view class="item car">
                <up-badge class="car-num" :count="9" type="error" :offset="[-3, -6]"></up-badge>
                <up-icon name="shopping-cart" :size="20" :color="$u.color['contentColor']"></up-icon>
                <view class="text u-line-1">购物车</view>
            </view>
        </view>
        <view class="right">
            <view class="cart btn u-line-1">加入购物车</view>
            <view class="buy btn u-line-1">立即购买</view>
        </view>
    </view>
</template>
 
<script>
export default {
    
};
</script>
 
<style lang="scss" scoped>
.navigation {
    display: flex;
    margin-top: 100rpx;
    border: solid 2rpx #f2f2f2;
    background-color: #ffffff;
    padding: 16rpx 0;
    .left {
        display: flex;
        font-size: 20rpx;
        .item {
            margin: 0 20rpx;
            &.car {
                text-align: center;
                position: relative;
                .car-num {
                    position: absolute;
                    top: -10rpx;
                    right: -10rpx;
                }
            }
        }
    }
    .right {
        display: flex;
        font-size: 28rpx;
        align-items: center;
        .btn {
            line-height: 66rpx;
            padding: 0 30rpx;
            border-radius: 36rpx;
            color: #ffffff;
        }
        .cart {
            background-color: #ed3f14;
            margin-right: 30rpx;
        }
        .buy {
            background-color: #ff7900;
        }
    }
}
</style>