修改bug
parent
e615d92370
commit
a3a1e62425
|
|
@ -0,0 +1,22 @@
|
|||
<template>
|
||||
<view class="relative">
|
||||
<uv-badge
|
||||
absolute
|
||||
:offset="[0, 0]"
|
||||
type="error"
|
||||
max="99"
|
||||
:value="value"
|
||||
></uv-badge>
|
||||
<slot></slot>
|
||||
</view>
|
||||
</template>
|
||||
<script setup>
|
||||
// import { defineOptions } from 'vue';
|
||||
// defineOptions({ name: 'CuBadge' })
|
||||
|
||||
const props = defineProps({
|
||||
value: {
|
||||
type: [Number, String],
|
||||
},
|
||||
})
|
||||
</script>
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
<template v-if="images && images.length > 0">
|
||||
<uv-scroll-list :indicator="false">
|
||||
<view class="space-x-15rpx flex">
|
||||
<view v-for="(url, index) in images.slice(0, 4)" :key="index">
|
||||
<view v-for="(url, index) in images.slice(0, 3)" :key="index">
|
||||
<image :src="url" mode="heightFix" style="height: 160rpx"></image>
|
||||
</view>
|
||||
</view>
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@
|
|||
</template>
|
||||
<script setup>
|
||||
import CuNavbar from '@/components/cu-navbar/index'
|
||||
import { ref, onMounted, reactive } from 'vue'
|
||||
import { ref, onMounted, reactive,computed } from 'vue'
|
||||
import { http } from '@/utils/request'
|
||||
import { timeFormat } from '@climblee/uv-ui/libs/function'
|
||||
import { onLoad } from '@dcloudio/uni-app'
|
||||
|
|
|
|||
|
|
@ -47,13 +47,14 @@
|
|||
src="@/static/images/rl.svg"
|
||||
></image>
|
||||
</view>
|
||||
<uv-icon
|
||||
@click="goPath('/pages/message/index')"
|
||||
color="#8a8a8a"
|
||||
size="48rpx"
|
||||
name="chat"
|
||||
></uv-icon
|
||||
>
|
||||
<cu-badge :value="unread_notifications">
|
||||
<uv-icon
|
||||
@click="goPath('/pages/message/index')"
|
||||
color="#8a8a8a"
|
||||
size="48rpx"
|
||||
name="chat"
|
||||
></uv-icon>
|
||||
</cu-badge>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -93,9 +94,13 @@ import overtimeIcon from '@/static/images/overtime.svg'
|
|||
import contractIcon from '@/static/images/contract.svg'
|
||||
import booksIcon from '@/static/images/books.svg'
|
||||
import examinationIcon from '@/static/images/examination.svg'
|
||||
import cuBadge from '@/components/cu-badge/index.vue'
|
||||
const userStore = useUserStore()
|
||||
|
||||
const userInfo = computed(() => userStore.userInfo)
|
||||
const unread_notifications = computed(
|
||||
() => userInfo.value.unread_notifications || 0
|
||||
)
|
||||
|
||||
const opList = [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
:key="item.id"
|
||||
>
|
||||
<view class="line-clamp-1 flex-1">
|
||||
{{ item.name }}{{ item.name }}{{ item.name }}
|
||||
{{ item.name }}
|
||||
</view>
|
||||
<view @click="downloadFile(item.url)">
|
||||
<uv-icon size="40rpx" name="download"></uv-icon>
|
||||
|
|
|
|||
Loading…
Reference in New Issue