feat:客服
This commit is contained in:
@@ -49,6 +49,7 @@
|
||||
:src="staticAssets.iconNotify"
|
||||
mode="aspectFit"
|
||||
/>
|
||||
<view v-if="hasUnreadNotify" class="device-header__notify-badge" />
|
||||
</view>
|
||||
<view class="device-header__add-wrap">
|
||||
<view class="device-header__add-btn" @tap.stop="toggleAddMenu">
|
||||
@@ -72,6 +73,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue'
|
||||
import { hasUnreadMessages } from '@/hooks/use-message-inbox'
|
||||
import { staticAssets } from '@/utils/static-assets'
|
||||
|
||||
defineProps<{
|
||||
@@ -87,6 +89,7 @@ const emit = defineEmits<{
|
||||
|
||||
const pickerOpen = ref(false)
|
||||
const addMenuOpen = ref(false)
|
||||
const hasUnreadNotify = hasUnreadMessages
|
||||
|
||||
const sys = uni.getSystemInfoSync()
|
||||
const statusBarHeight = sys.statusBarHeight ?? 0
|
||||
@@ -242,10 +245,31 @@ function onScan() {
|
||||
gap: 16rpx;
|
||||
}
|
||||
|
||||
.device-header__notify-icon {
|
||||
.device-header__notify-wrap {
|
||||
position: relative;
|
||||
width: 72rpx;
|
||||
height: 72rpx;
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.device-header__notify-icon {
|
||||
width: 33rpx;
|
||||
height: 33rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.device-header__notify-badge {
|
||||
position: absolute;
|
||||
top: 12rpx;
|
||||
right: 12rpx;
|
||||
width: 16rpx;
|
||||
height: 16rpx;
|
||||
border-radius: 50%;
|
||||
background: #ff4d4f;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.device-header__add-wrap {
|
||||
|
||||
Reference in New Issue
Block a user