diff --git a/.trae/rules/git-commit-message.md b/.trae/rules/git-commit-message.md new file mode 100644 index 0000000..c09a6e3 --- /dev/null +++ b/.trae/rules/git-commit-message.md @@ -0,0 +1,8 @@ +--- +alwaysApply: true +scene: git_message +--- + +在此处编写规则,自定义 AI 生成提交信息的风格。 + +使用中文编写提交信息 diff --git a/src/App.ku.vue b/src/App.ku.vue index 5bf77d6..2c8d923 100644 --- a/src/App.ku.vue +++ b/src/App.ku.vue @@ -1,5 +1,6 @@ + + diff --git a/src/constants/events.ts b/src/constants/events.ts new file mode 100644 index 0000000..12be8af --- /dev/null +++ b/src/constants/events.ts @@ -0,0 +1,2 @@ +/** 全局搜索弹窗时间名称 */ +export const GLOBAL_SEARCH_EVENT_NAME = 'uh-show-global-search' diff --git a/src/pages/home/home.vue b/src/pages/home/home.vue index 94af889..7a07430 100644 --- a/src/pages/home/home.vue +++ b/src/pages/home/home.vue @@ -115,7 +115,7 @@ const { list: postList, refresh } = useListData({ onLoad(() => { console.log('home onLoad') refresh() - runSingle({ name: '019eb1ca-e37c-7729-97af-e0b658aeef0f' }) + // runSingle({ name: '019eb1ca-e37c-7729-97af-e0b658aeef0f' }) }) onPageScroll(() => { }) diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index a4ac73d..ca5ee6a 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -14,8 +14,8 @@ definePage({ onLoad(() => { console.log('index onLoad') // 默认跳转首页 - // uni.switchTab({ url: '/pages/home/home' }) - uni.switchTab({ url: '/pages/moments/moments' }) + uni.switchTab({ url: '/pages/home/home' }) + // uni.switchTab({ url: '/pages/moments/moments' }) }) diff --git a/src/style/uh-styles.css b/src/style/uh-styles.css index 1aeb7fb..25df3f9 100644 --- a/src/style/uh-styles.css +++ b/src/style/uh-styles.css @@ -9,3 +9,19 @@ .uh-shadow-card { box-shadow: 0 16rpx 60rpx rgba(0, 0, 0, 0.04); } + +.uh-backdrop-blur { + backdrop-filter: blur(4rpx); +} + +.uh-backdrop-blur-xs { + backdrop-filter: blur(8rpx); +} + +.uh-backdrop-blur-sm { + backdrop-filter: blur(12rpx); +} + +.uh-backdrop-blur-md { + backdrop-filter: blur(24rpx); +} diff --git a/src/tabbar/index.vue b/src/tabbar/index.vue index dd3c4d1..fb4c9fe 100644 --- a/src/tabbar/index.vue +++ b/src/tabbar/index.vue @@ -5,6 +5,7 @@ import { setTabbarItem } from './i18n' import { tabbarList, tabbarStore } from './store' import { sleep } from '@/utils/common' import { debounce } from '@/utils/base/debounce' +import { GLOBAL_SEARCH_EVENT_NAME } from '@/constants/events' import TabbarItem from './TabbarItem.vue' // #ifdef MP-WEIXIN @@ -132,6 +133,10 @@ function handleScrollToTop() { duration: 300, }) } + +function handleShowGlobalSearch() { + uni.$emit(GLOBAL_SEARCH_EVENT_NAME) +}