diff --git a/components.d.ts b/components.d.ts index d70ecb3..c2171da 100644 --- a/components.d.ts +++ b/components.d.ts @@ -13,5 +13,6 @@ declare module 'vue' { NutCollapse: typeof import('@nutui/nutui-taro')['Collapse'] NutCollapseItem: typeof import('@nutui/nutui-taro')['CollapseItem'] NutDivider: typeof import('@nutui/nutui-taro')['Divider'] + NutNavbar: typeof import('@nutui/nutui-taro')['Navbar'] } } diff --git a/src/components/notification/index.scss b/src/components/notification/index.scss index e8b25ec..97db52b 100644 --- a/src/components/notification/index.scss +++ b/src/components/notification/index.scss @@ -19,3 +19,7 @@ right: 50rpx; color: rgba(0, 0, 0, 0.5); } + +.nut-collapse-item__border .nut-collapse-item__title::after { + border-bottom-color: #FFF; +} diff --git a/src/components/notification/index.vue b/src/components/notification/index.vue index b1cdcdb..e6e9b1d 100644 --- a/src/components/notification/index.vue +++ b/src/components/notification/index.vue @@ -2,13 +2,17 @@ import './index.scss' import bjxJson from '../../utils/baijiaxing.json' import StringUtil from "../../utils/StringUtil"; +import { ArrowDown } from '@nutui/icons-vue-taro'; + /** * props: todayPassTime: Json Array * example: [["YYYY-MM-DD hh:mm:ss"], ["YYYY-MM-DD hh:mm:ss"]] */ -const props = defineProps(['name', 'company', 'pass-date', 'pass-time', 'today-pass-time']) +const props = defineProps(['name', 'company', 'is-vip', 'pass-date', 'pass-time', 'today-pass-time']) let lastName = props.name +let isVIP = JSON.parse(props.isVip) +let todayPassJsonObject = JSON.parse(props.todayPassTime) for (const item of bjxJson) { const regex = new RegExp('^'+item.name); @@ -19,11 +23,7 @@ for (const item of bjxJson) { lastName = props.name.substring(0, 1) } } -let todayPassJsonObject = JSON.parse(props.todayPassTime) -const onClick = (event) => { - console.log(event.currentTarget) -}