mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-11-13 22:11:42 +08:00
feat&refactor: 完成项目多轮优化与功能迭代
1. 调整开发环境与生产环境接口地址为局域网地址 2. 新增页面滚动监听hook、版权组件与小尺寸阴影工具类 3. 优化多处组件样式、导航栏与tabbar配置 4. 重构恋爱模块配置类型与移除冗余接口 5. 修复多处代码细节与优化用户体验
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
import { onLoad } from '@dcloudio/uni-app'
|
||||
import { useAppConfigStore } from '@/store/appConfig'
|
||||
import { checkUrl } from '@/utils/url'
|
||||
import { usePageScroll } from '@/hooks/usePageScroll'
|
||||
|
||||
definePage({
|
||||
style: {
|
||||
@@ -10,7 +11,8 @@
|
||||
},
|
||||
})
|
||||
|
||||
const appConfigStore = useAppConfigStore()
|
||||
const { scrollY } = usePageScroll()
|
||||
const appConfigStore = useAppConfigStore()
|
||||
|
||||
const appInfo = computed(() => {
|
||||
return {
|
||||
@@ -20,8 +22,7 @@
|
||||
})
|
||||
|
||||
const links = [
|
||||
{ title: '开源组织', value: '巷子工坊', copy: 'https://www.ialley.cn', tip: '巷子工坊官网已复制成功!', tileColor: '#5c6bc0', tileLetter: '组' },
|
||||
{ title: '开源作者', value: '小莫唐尼', copy: 'https://www.xiaoxiaomo.cn', tip: '作者主页地址已复制', tileColor: '#26a69a', tileLetter: '作' },
|
||||
{ title: '小莫唐尼', value: 'https://www.xiaoxiaomo.cn', copy: 'https://www.xiaoxiaomo.cn', tip: '作者主页地址已复制', tileColor: '#26a69a', tileLetter: '作' },
|
||||
{ title: '作者博客', value: 'https://blog.xiaoxiaomo.cn', copy: 'https://blog.xiaoxiaomo.cn', tip: '作者博客地址已复制', tileColor: '#7e57c2', tileLetter: '博' },
|
||||
{ title: '文档地址', value: 'https://uni-halo.925i.cn', copy: 'https://uni-halo.925i.cn', tip: '项目码云仓库已复制', tileColor: '#039be5', tileLetter: '文' },
|
||||
{ title: '码云仓库', value: 'https://gitee.com/ialley-workshop-open/uni-halo', copy: 'https://gitee.com/ialley-workshop-open/uni-halo', tip: '码云仓库地址已复制', tileColor: '#c71d23', tileLetter: '码' },
|
||||
@@ -46,14 +47,15 @@
|
||||
<template>
|
||||
<view class="box-border min-h-screen w-screen flex flex-col overflow-hidden bg-page px-4 pb-8 pt-2">
|
||||
<!-- 自定义导航 -->
|
||||
<uh-navbar default-title="关于项目" title-color="text-gray-900" />
|
||||
<uh-navbar :scroll-y="scrollY" default-title="关于项目" title-color="text-gray-900" />
|
||||
|
||||
<view class="fixed -right-8 top-8 h-28 w-28 rounded-full bg-[rgba(185,228,36,0.32)] blur-xl" />
|
||||
<view class="fixed -left-10 top-36 h-24 w-24 rounded-full bg-[rgba(215,249,76,0.45)] blur-xl" />
|
||||
|
||||
<view class="relative">
|
||||
<view class="uh-global-card-glass relative flex flex-col items-center rounded-2xl px-6 pb-7 pt-10">
|
||||
<image class="uh-global-card-glass uh-shadow-xs border h-18 w-18 rounded-2xl" :src="appInfo.logo" mode="aspectFill" />
|
||||
<image class="uh-global-card-glass uh-shadow-xs border h-18 w-18 rounded-2xl" :src="appInfo.logo"
|
||||
mode="aspectFill" />
|
||||
<view class="mt-4 text-xl text- font-bold">
|
||||
{{appInfo.name}}
|
||||
</view>
|
||||
@@ -68,7 +70,7 @@
|
||||
</view>
|
||||
|
||||
<uh-section-title class="mb-3 mt-6"> 相关链接 </uh-section-title>
|
||||
|
||||
|
||||
<view class="box-border uh-global-card-glass flex flex-col gap-y-6 rounded-2xl py-4">
|
||||
<view v-for="(link) in links" :key="link.title" class="flex items-center gap-3 px-4"
|
||||
@click="copyText(link.copy, link.tip)">
|
||||
@@ -87,9 +89,6 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 版权 -->
|
||||
<view class="copyright mt-auto pt-8 text-center text-[22rpx] text-gray-400">
|
||||
<view>「 2022 uni-halo 丨 开源项目丨巷子工坊@小莫唐尼 」</view>
|
||||
</view>
|
||||
<uh-page-copyright />
|
||||
</view>
|
||||
</template>
|
||||
Reference in New Issue
Block a user