1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <template>
- <view class="navigation">
- <view class="left">
- <view class="item">
- <u-icon name="server-fill" :size="20" :color="$u.color['contentColor']"></u-icon>
- <view class="text u-line-1">客服</view>
- </view>
- <view class="item">
- <u-icon name="home" :size="20" :color="$u.color['contentColor']"></u-icon>
- <view class="text u-line-1">店铺</view>
- </view>
- <view class="item car">
- <u-badge class="car-num" :count="9" type="error" :offset="[-3, -6]"></u-badge>
- <u-icon name="shopping-cart" :size="20" :color="$u.color['contentColor']"></u-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>
|