修改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">
|
<template v-if="images && images.length > 0">
|
||||||
<uv-scroll-list :indicator="false">
|
<uv-scroll-list :indicator="false">
|
||||||
<view class="space-x-15rpx flex">
|
<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>
|
<image :src="url" mode="heightFix" style="height: 160rpx"></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,7 @@
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import CuNavbar from '@/components/cu-navbar/index'
|
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 { http } from '@/utils/request'
|
||||||
import { timeFormat } from '@climblee/uv-ui/libs/function'
|
import { timeFormat } from '@climblee/uv-ui/libs/function'
|
||||||
import { onLoad } from '@dcloudio/uni-app'
|
import { onLoad } from '@dcloudio/uni-app'
|
||||||
|
|
|
||||||
|
|
@ -47,13 +47,14 @@
|
||||||
src="@/static/images/rl.svg"
|
src="@/static/images/rl.svg"
|
||||||
></image>
|
></image>
|
||||||
</view>
|
</view>
|
||||||
<uv-icon
|
<cu-badge :value="unread_notifications">
|
||||||
@click="goPath('/pages/message/index')"
|
<uv-icon
|
||||||
color="#8a8a8a"
|
@click="goPath('/pages/message/index')"
|
||||||
size="48rpx"
|
color="#8a8a8a"
|
||||||
name="chat"
|
size="48rpx"
|
||||||
></uv-icon
|
name="chat"
|
||||||
>
|
></uv-icon>
|
||||||
|
</cu-badge>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -93,9 +94,13 @@ import overtimeIcon from '@/static/images/overtime.svg'
|
||||||
import contractIcon from '@/static/images/contract.svg'
|
import contractIcon from '@/static/images/contract.svg'
|
||||||
import booksIcon from '@/static/images/books.svg'
|
import booksIcon from '@/static/images/books.svg'
|
||||||
import examinationIcon from '@/static/images/examination.svg'
|
import examinationIcon from '@/static/images/examination.svg'
|
||||||
|
import cuBadge from '@/components/cu-badge/index.vue'
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
|
|
||||||
const userInfo = computed(() => userStore.userInfo)
|
const userInfo = computed(() => userStore.userInfo)
|
||||||
|
const unread_notifications = computed(
|
||||||
|
() => userInfo.value.unread_notifications || 0
|
||||||
|
)
|
||||||
|
|
||||||
const opList = [
|
const opList = [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
>
|
>
|
||||||
<view class="line-clamp-1 flex-1">
|
<view class="line-clamp-1 flex-1">
|
||||||
{{ item.name }}{{ item.name }}{{ item.name }}
|
{{ item.name }}
|
||||||
</view>
|
</view>
|
||||||
<view @click="downloadFile(item.url)">
|
<view @click="downloadFile(item.url)">
|
||||||
<uv-icon size="40rpx" name="download"></uv-icon>
|
<uv-icon size="40rpx" name="download"></uv-icon>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue