Commit 5eeabd26 authored by 石建新(贵阳日报)'s avatar 石建新(贵阳日报)
parents ea7ad69e 0b6b47f8
...@@ -144,6 +144,8 @@ const toShop = (id) => { ...@@ -144,6 +144,8 @@ const toShop = (id) => {
margin-bottom: 20rpx; margin-bottom: 20rpx;
.img { .img {
width: 32rpx; width: 32rpx;
height: 32rpx;
flex-shrink: 0;
} }
.one-text { .one-text {
font-size: 28rpx; font-size: 28rpx;
......
...@@ -144,6 +144,24 @@ ...@@ -144,6 +144,24 @@
> >
没有更多啦~ 没有更多啦~
</view> </view>
<!-- 悬浮按钮 -->
<wd-fab
type="error"
position="right-bottom"
direction="left"
:draggable="true"
inactiveIcon="a-controlplatform"
>
<view class="custom-button" @click="go('/pages/ticket/ticket')">
<image class="fab-icon" src="@/static/index/coupon.png"></image>
<text class="fab-text">优惠券</text>
</view>
<view class="custom-button" @click="go('/pages/order/order')">
<image class="fab-icon" src="@/static/index/order.png"></image>
<text class="fab-text">订单</text>
</view>
</wd-fab>
</view> </view>
</template> </template>
...@@ -474,6 +492,13 @@ onReachBottom(() => { ...@@ -474,6 +492,13 @@ onReachBottom(() => {
} }
show.value = true; show.value = true;
}); });
// 前往个人中心
const go = (url) => {
xma.navigateTo({
url,
});
};
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
...@@ -804,5 +829,26 @@ page { ...@@ -804,5 +829,26 @@ page {
} }
} }
} }
.custom-button {
min-width: auto;
box-sizing: border-box;
gap: 10rpx;
margin: 8rpx;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
.fab-icon {
width: 64rpx;
height: 64rpx;
}
.fab-text {
font-size: 20rpx;
color: #333;
}
}
} }
</style> </style>
...@@ -119,15 +119,6 @@ ...@@ -119,15 +119,6 @@
</view> </view>
<Payment ref="PaymentRef" @payment="payNow"></Payment> <Payment ref="PaymentRef" @payment="payNow"></Payment>
</view> </view>
<!-- <wd-fab type="error" position="right-bottom" direction="left" :draggable="true">
<view class="custom-button">
<image class="fab-icon" src="@/static/index/coupon.png"></image>
</view>
<view class="custom-button">
<image class="fab-icon" src="@/static/index/order.png"></image>
</view>
</wd-fab> -->
</template> </template>
<script setup> <script setup>
...@@ -615,18 +606,4 @@ page { ...@@ -615,18 +606,4 @@ page {
} }
} }
} }
.custom-button {
min-width: auto;
box-sizing: border-box;
width: 64rpx;
height: 64rpx;
border-radius: 16px;
margin: 8rpx;
.fab-icon {
width: 64rpx;
height: 64rpx;
}
}
</style> </style>
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