| | |
| | | <view class="state">登录后查看计量单位</view> |
| | | </scroll-view> |
| | | <button v-if="canCreate" |
| | | class="create-fab" |
| | | @click="go()"> |
| | | <view class="fab-plus"></view> |
| | | </button> |
| | | class="fab" |
| | | @click="go()"><view /></button> |
| | | </view> |
| | | </template> |
| | | <style lang="scss" scoped> |
| | |
| | | border-radius: 10rpx; |
| | | } |
| | | .actions button::after, |
| | | .create-fab::after { |
| | | .fab::after { |
| | | border: 0; |
| | | } |
| | | .actions .danger { |
| | |
| | | .error { |
| | | color: #c3654d; |
| | | } |
| | | .create-fab { |
| | | position: fixed; |
| | | right: 30rpx; |
| | | bottom: calc(32rpx + env(safe-area-inset-bottom)); |
| | | z-index: 10; |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | justify-content: center; |
| | | width: 104rpx; height: 104rpx; min-height: 104rpx; |
| | | padding: 0; |
| | | margin: 0; |
| | | color: #fff; |
| | | font-size: 25rpx; |
| | | font-weight: 600; |
| | | line-height: 32rpx; |
| | | background: var(--color-primary, #1769d8); |
| | | border-radius: 50%; |
| | | box-shadow: 0 12rpx 24rpx rgba(23, 105, 216, 0.3); |
| | | } |
| | | .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{position:relative;width:38rpx;height:38rpx}.fab view::before,.fab view::after{position:absolute;content:"";background:#fff;border-radius:4rpx}.fab view::before{left:0;top:15rpx;width:38rpx;height:8rpx}.fab view::after{left:15rpx;top:0;width:8rpx;height:38rpx} |
| | | </style> |