Commit b25480db authored by 张娇(东信)'s avatar 张娇(东信)

购物车徽标

parent 09fcce0e
...@@ -60,9 +60,11 @@ ...@@ -60,9 +60,11 @@
<img src="/static/detail/img8.png" style="width: 40rpx; height: 40rpx" /> <img src="/static/detail/img8.png" style="width: 40rpx; height: 40rpx" />
<view class="sort-text">客服</view> <view class="sort-text">客服</view>
</view> </view>
<view class="borderClass"> <view class="borderClass" @tap="toCart">
<img src="/static/detail/img6.png" style="width: 40rpx; height: 40rpx" /> <wd-badge modelValue="4">
<view class="sort-text" @tap="toCart">购物车</view> <img src="/static/detail/car.png" style="width: 40rpx; height: 40rpx" />
</wd-badge>
<view class="sort-text">购物车</view>
</view> </view>
</view> </view>
<!-- <view class="sort">--> <!-- <view class="sort">-->
......
...@@ -92,8 +92,10 @@ ...@@ -92,8 +92,10 @@
</view> </view>
</view> </view>
<!-- 购物车悬浮按钮 --> <!-- 购物车悬浮按钮 -->
<view class="cart-floating"> <view class="cart-floating" @tap="toCart">
<img class="cart" @tap="toCart" src="/static/presale/cart.png" /> <wd-badge modelValue="4">
<img class="shop-car" src="/static/presale/cart.png" style="width: 40rpx; height: 40rpx" />
</wd-badge>
</view> </view>
</view> </view>
</template> </template>
...@@ -346,4 +348,11 @@ page { ...@@ -346,4 +348,11 @@ page {
width: 48rpx; width: 48rpx;
height: 46rpx; height: 46rpx;
} }
.shop-car {
margin-left: 20rpx;
margin-top: 20rpx;
}
::v-deep .wd-badge__content.is-fixed {
margin-top: 20rpx;
}
</style> </style>
...@@ -134,8 +134,10 @@ ...@@ -134,8 +134,10 @@
</view> </view>
</view> </view>
<!-- 购物车悬浮按钮 --> <!-- 购物车悬浮按钮 -->
<view class="cart-floating"> <view class="cart-floating" @tap="toCart">
<img class="cart" @tap="toCart" src="/static/presale/cart.png" /> <wd-badge modelValue="4">
<img class="shop-car" src="/static/presale/cart.png" style="width: 40rpx; height: 40rpx" />
</wd-badge>
</view> </view>
</template> </template>
...@@ -491,4 +493,11 @@ page { ...@@ -491,4 +493,11 @@ page {
width: 48rpx; width: 48rpx;
height: 46rpx; height: 46rpx;
} }
.shop-car {
margin-left: 20rpx;
margin-top: 20rpx;
}
::v-deep .wd-badge__content.is-fixed {
margin-top: 20rpx;
}
</style> </style>
...@@ -248,7 +248,7 @@ uni-page-body { ...@@ -248,7 +248,7 @@ uni-page-body {
} }
.cart-floating { .cart-floating {
position: fixed; position: fixed;
text-align: center;
bottom: 10%; bottom: 10%;
width: 80rpx; width: 80rpx;
height: 80rpx; height: 80rpx;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment