From 20cca5d5daa229b6e141eb072dc6a297f5dafc1d Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 03 十一月 2026 11:17:39 +0800
Subject: [PATCH] style(app): 统一各页面右下角新增按钮样式
---
src/pages/purchase/invoice/index.vue | 47 ++---------------------------------------------
1 files changed, 2 insertions(+), 45 deletions(-)
diff --git a/src/pages/purchase/invoice/index.vue b/src/pages/purchase/invoice/index.vue
index 8a4af6e..8db2d4f 100644
--- a/src/pages/purchase/invoice/index.vue
+++ b/src/pages/purchase/invoice/index.vue
@@ -119,9 +119,7 @@
class="state">{{loading?'鍔犺浇涓�...':'鏆傛棤閲囪喘鏉ョエ'}}</view>
</scroll-view><button v-if="canCreate"
class="fab"
- @click="go('form')">
- <view class="fab-plus"></view>
- </button>
+ @click="go('form')"><view /></button>
</template>
<view v-else
class="state">鏆傛棤鏌ョ湅鏉冮檺</view>
@@ -267,46 +265,5 @@
color: #86909c;
text-align: center;
}
- .fab {
- position: fixed;
- right: 30rpx;
- bottom: calc(32rpx + env(safe-area-inset-bottom));
- z-index: 5;
- display: flex;
- align-items: center;
- justify-content: center;
- width: 104rpx; height: 104rpx; min-height: 104rpx;
- padding: 0;
- color: #fff;
- background: var(--color-primary, #165dff);
- border-radius: 50%;
- }
- .fab-plus,
- .fab-plus::before,
- .fab-plus::after {
- display: block;
- background: currentColor;
- border-radius: 4rpx;
- }
- .fab-plus {
- position: relative;
- width: 36rpx;
- height: 8rpx;
- }
- .fab-plus::before,
- .fab-plus::after {
- position: absolute;
- top: 50%;
- left: 50%;
- content: "";
- transform: translate(-50%, -50%);
- }
- .fab-plus::before {
- width: 36rpx;
- height: 8rpx;
- }
- .fab-plus::after {
- width: 8rpx;
- height: 36rpx;
- }
+ .fab{position:fixed;right:30rpx;bottom:calc(32rpx + env(safe-area-inset-bottom));z-index:10;display:flex;align-items:center;justify-content:center;width:104rpx;height:104rpx;min-height:104rpx;padding:0;margin:0;color:#fff;background:var(--color-primary, #1769d8);border-radius:50%;box-shadow:0 12rpx 24rpx rgba(23,105,216,.3)}.fab view{width:38rpx;height:38rpx;background:linear-gradient(#fff,#fff) center/38rpx 8rpx no-repeat,linear-gradient(#fff,#fff) center/8rpx 38rpx no-repeat}.fab view::before,.fab view::after{display:none;content:none}
</style>
--
Gitblit v1.9.3