提交 3a54e42d 作者: 方治民

feat: 更新 about 页面

上级 b570584d
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
// ================================ 通用页面分割线 ==================================== // ================================ 通用页面分割线 ====================================
// === 关于我们 === // === 关于我们 ===
{ {
"path": "pages/about/index", "path": "pages/common/about/index",
"style": { "style": {
"navigationBarTitleText": "关于我们", "navigationBarTitleText": "关于我们",
"backgroundColorTop": "#FFFFFF", "backgroundColorTop": "#FFFFFF",
...@@ -50,8 +50,7 @@ ...@@ -50,8 +50,7 @@
// #endif // #endif
"navigationBarTitleText": "开发中", "navigationBarTitleText": "开发中",
"backgroundColorTop": "#FFFFFF", "backgroundColorTop": "#FFFFFF",
"backgroundColorBottom": "#FFFFFF", "backgroundColorBottom": "#FFFFFF"
"backgroundColor": "#FFFFFE"
} }
}, },
// === 版本更新 === // === 版本更新 ===
......
<script setup lang="ts"> <script setup lang="ts">
import dayjs from 'dayjs' import dayjs from 'dayjs'
import Link from '@/utils/page/link' import Navigate from '@/utils/page/navigate'
const startYear = ref(2005) const startYear = ref(2005)
const currentYear = ref(dayjs().year()) const currentYear = ref(dayjs().year())
const { privacy, services, copyright, company } = Navigate.links
</script> </script>
<template> <template>
...@@ -15,13 +16,13 @@ ...@@ -15,13 +16,13 @@
<fui-footer isFixed> <fui-footer isFixed>
<template #text> <template #text>
<view class="links"> <view class="links">
<text class="underline" @tap="Link.to(Link.services, '服务协议')">服务协议</text> <text class="underline" @tap="Navigate.webview(services, '服务协议')">服务协议</text>
<text class="underline" @tap="Link.to(Link.privacy, '隐私政策')">隐私政策</text> <text class="underline" @tap="Navigate.webview(privacy, '隐私政策')">隐私政策</text>
</view> </view>
<view class="mt-1">Copyright © {{ startYear }}-{{ currentYear }} {{ Link.copyright.name }}</view> <view class="mt-1">Copyright © {{ startYear }}-{{ currentYear }} {{ copyright.name }}</view>
<view class="mt-2" v-if="Link.copyright.name !== Link.company.name"> <view class="mt-2" v-if="copyright.name !== company.name">
技术支持: 技术支持:
<fui-link underline color="#b2b2b2" size="24" :href="Link.company.link" :text="Link.company.name" /> <fui-link underline color="#b2b2b2" size="24" :href="company.link" :text="company.name" />
</view> </view>
</template> </template>
</fui-footer> </fui-footer>
......
export default { export default {
links: {
/** /**
* 公司信息 * 公司信息
*/ */
...@@ -23,15 +24,16 @@ export default { ...@@ -23,15 +24,16 @@ export default {
* @description TODO: 隐私政策地址需要根据实际情况进行修改 * @description TODO: 隐私政策地址需要根据实际情况进行修改
*/ */
privacy: 'https://app.yiring.com/privacy.html', privacy: 'https://app.yiring.com/privacy.html',
},
/** /**
* 从内部打开指定页面 * 跳转到指定页面
* @param link 链接 * @param page 页面全路径
* @param title 页面标题
*/ */
to(link: string, title: string) { to(page: string, options?: UniNamespace.NavigateToOptions) {
uni.navigateTo({ uni.navigateTo({
url: `/pages/common/webview/index?title=${encodeURIComponent(title)}&link=${encodeURIComponent(link)}`, url: page,
...options,
}) })
}, },
/** /**
...@@ -52,4 +54,14 @@ export default { ...@@ -52,4 +54,14 @@ export default {
window.open(link) window.open(link)
// #endif // #endif
}, },
/**
* 从内部打开指定页面
* @param link 链接
* @param title 页面标题
*/
webview(link: string, title: string) {
uni.navigateTo({
url: `/pages/common/webview/index?title=${encodeURIComponent(title)}&link=${encodeURIComponent(link)}`,
})
},
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论