diff --git a/api/v2/all.api.js b/api/v2/all.api.js
index 2d5890a..9106582 100644
--- a/api/v2/all.api.js
+++ b/api/v2/all.api.js
@@ -4,169 +4,170 @@
import HaloTokenConfig from '@/config/token.config.js'
import HttpHandler from '@/common/http/request.js'
import {
- getCache
+ getCache
} from '@/utils/storage.js'
+
export default {
- /**
- * 获取文章列表
- * @param {Object} params 参数
- */
- getPostList: (params) => {
- return HttpHandler.Get(`/apis/api.content.halo.run/v1alpha1/posts`, params)
- },
+ /**
+ * 获取文章列表
+ * @param {Object} params 参数
+ */
+ getPostList: (params) => {
+ return HttpHandler.Get(`/apis/api.content.halo.run/v1alpha1/posts`, params)
+ },
- /**
- * 根据名称获取文章
- * @param {String} name 分类名称
- */
- getPostByName: (name) => {
- return HttpHandler.Get(`/apis/api.content.halo.run/v1alpha1/posts/${name}`, {}, {
- header: {
- 'Wechat-Session-Id': uni.getStorageSync('openid'),
- }
- })
- },
+ /**
+ * 根据名称获取文章
+ * @param {String} name 分类名称
+ */
+ getPostByName: (name) => {
+ return HttpHandler.Get(`/apis/api.content.halo.run/v1alpha1/posts/${name}`, {}, {
+ header: {
+ 'Wechat-Session-Id': uni.getStorageSync('openid'),
+ }
+ })
+ },
- /**
- * 搜索文章
- * @param {Object} params 数据
- */
- getPostListByKeyword: (params) => {
- return HttpHandler.Get(`/apis/api.halo.run/v1alpha1/indices/post`, params)
- },
+ /**
+ * 搜索文章
+ * @param {Object} params 数据
+ */
+ getPostListByKeyword: (params) => {
+ return HttpHandler.Get(`/apis/api.halo.run/v1alpha1/indices/post`, params)
+ },
- /**
- * 查询分类列表
- * @param {Object} params 查询参数
- */
- getCategoryList: (params) => {
- return HttpHandler.Get('/apis/api.content.halo.run/v1alpha1/categories', params)
- },
- /**
- * 查询分类下的文章
- * @param {String} name 分类名称
- * @param {Object} params 查询参数
- */
- getCategoryPostList: (name, params) => {
- return HttpHandler.Get(`/apis/api.content.halo.run/v1alpha1/categories/${name}/posts`, params)
- },
+ /**
+ * 查询分类列表
+ * @param {Object} params 查询参数
+ */
+ getCategoryList: (params) => {
+ return HttpHandler.Get('/apis/api.content.halo.run/v1alpha1/categories', params)
+ },
+ /**
+ * 查询分类下的文章
+ * @param {String} name 分类名称
+ * @param {Object} params 查询参数
+ */
+ getCategoryPostList: (name, params) => {
+ return HttpHandler.Get(`/apis/api.content.halo.run/v1alpha1/categories/${name}/posts`, params)
+ },
- /**
- * 获取评论列表接口(列表数据)
- * @param {Object} params 查询参数
- */
- getPostCommentList: (params) => {
- return HttpHandler.Get(`/apis/api.halo.run/v1alpha1/comments`, params)
- },
+ /**
+ * 获取评论列表接口(列表数据)
+ * @param {Object} params 查询参数
+ */
+ getPostCommentList: (params) => {
+ return HttpHandler.Get(`/apis/api.halo.run/v1alpha1/comments`, params)
+ },
- /**
- * 获取回复列表
- * @param {String} commentName 名称
- * @param {Object} params 查询参数
- */
- getPostCommentReplyList: (commentName, params) => {
- return HttpHandler.Get(`/apis/api.halo.run/v1alpha1/comments/${commentName}/reply`, params)
- },
+ /**
+ * 获取回复列表
+ * @param {String} commentName 名称
+ * @param {Object} params 查询参数
+ */
+ getPostCommentReplyList: (commentName, params) => {
+ return HttpHandler.Get(`/apis/api.halo.run/v1alpha1/comments/${commentName}/reply`, params)
+ },
- // 提交评论
- addPostComment: (data) => {
- return HttpHandler.Post(`/apis/api.halo.run/v1alpha1/comments`, data)
- },
- // 提交回复
- addPostCommentReply: (commentName, data) => {
- return HttpHandler.Post(`/apis/api.halo.run/v1alpha1/comments/${commentName}/replay`, data)
- },
+ // 提交评论
+ addPostComment: (data) => {
+ return HttpHandler.Post(`/apis/api.halo.run/v1alpha1/comments`, data)
+ },
+ // 提交回复
+ addPostCommentReply: (commentName, data) => {
+ return HttpHandler.Post(`/apis/api.halo.run/v1alpha1/comments/${commentName}/replay`, data)
+ },
- /**
- * 获取标签列表
- * @param {Object} params 查询参数
- */
- getTagList: (params) => {
- return HttpHandler.Get(`/apis/api.content.halo.run/v1alpha1/tags`, params)
- },
+ /**
+ * 获取标签列表
+ * @param {Object} params 查询参数
+ */
+ getTagList: (params) => {
+ return HttpHandler.Get(`/apis/api.content.halo.run/v1alpha1/tags`, params)
+ },
- /**
- * 根据标签获取文章列表
- * @param {String} tagName 参数
- * @param {Object} params 查询参数
- */
- getPostByTagName: (tagName, params) => {
- return HttpHandler.Get(`/apis/api.content.halo.run/v1alpha1/tags/${tagName}/posts`, params)
- },
+ /**
+ * 根据标签获取文章列表
+ * @param {String} tagName 参数
+ * @param {Object} params 查询参数
+ */
+ getPostByTagName: (tagName, params) => {
+ return HttpHandler.Get(`/apis/api.content.halo.run/v1alpha1/tags/${tagName}/posts`, params)
+ },
- /**
- * 获取瞬间列表
- */
- getMomentList: (params) => {
- return HttpHandler.Get(`/apis/moment.halo.run/v1alpha1/moments`, params, {
- custom: {
- systemToken: HaloTokenConfig.systemToken
- }
- })
- },
+ /**
+ * 获取瞬间列表
+ */
+ getMomentList: (params) => {
+ return HttpHandler.Get(`/apis/moment.halo.run/v1alpha1/moments`, params, {
+ custom: {
+ systemToken: HaloTokenConfig.systemToken
+ }
+ })
+ },
- /**
- * 查询站点统计信息
- */
- getBlogStatistics: () => {
- return HttpHandler.Get(`/apis/api.halo.run/v1alpha1/stats/-`, {})
- },
+ /**
+ * 查询站点统计信息
+ */
+ getBlogStatistics: () => {
+ return HttpHandler.Get(`/apis/api.halo.run/v1alpha1/stats/-`, {})
+ },
- /**
- * 获取相册分组
- */
- getPhotoGroupList: (params) => {
- return HttpHandler.Get(`/apis/core.halo.run/v1alpha1/photogroups`, params, {
- custom: {
- systemToken: HaloTokenConfig.systemToken
- }
- })
- },
+ /**
+ * 获取相册分组
+ */
+ getPhotoGroupList: (params) => {
+ return HttpHandler.Get(`/apis/core.halo.run/v1alpha1/photogroups`, params, {
+ custom: {
+ systemToken: HaloTokenConfig.systemToken
+ }
+ })
+ },
- /**
- * 根据分组获取相册
- */
- getPhotoListByGroupName: (params) => {
- return HttpHandler.Get(`/apis/console.api.photo.halo.run/v1alpha1/photos`, params, {
- custom: {
- systemToken: HaloTokenConfig.systemToken
- }
- })
- },
+ /**
+ * 根据分组获取相册
+ */
+ getPhotoListByGroupName: (params) => {
+ return HttpHandler.Get(`/apis/console.api.photo.halo.run/v1alpha1/photos`, params, {
+ custom: {
+ systemToken: HaloTokenConfig.systemToken
+ }
+ })
+ },
- /**
- * 获取友链
- */
- getFriendLinkList: (params) => {
- return HttpHandler.Get(`/apis/api.plugin.halo.run/v1alpha1/plugins/PluginLinks/links`, params)
- },
+ /**
+ * 获取友链
+ */
+ getFriendLinkList: (params) => {
+ return HttpHandler.Get(`/apis/api.plugin.halo.run/v1alpha1/plugins/PluginLinks/links`, params)
+ },
- /**
- * 校验文章访问密码
- */
- checkPostVerifyCode: (verifyCode, postId) => {
- return HttpHandler.Get(`/tools/verificationCode/check?code=${verifyCode}`, null, {
- header: {
- 'Authorization': 'Tools工具箱插件设置的认证token',
- 'Wechat-Session-Id': uni.getStorageSync('openid'),
- 'Post-Id': postId
- }
- })
- },
+ /**
+ * 校验文章访问密码
+ */
+ checkPostVerifyCode: (verifyCode, postId) => {
+ return HttpHandler.Get(`/tools/verificationCode/check?code=${verifyCode}`, null, {
+ header: {
+ 'Authorization': 'Tools工具箱插件设置的认证token',
+ 'Wechat-Session-Id': uni.getStorageSync('openid'),
+ 'Post-Id': postId
+ }
+ })
+ },
- /**
- * 获取文章验证码
- */
- getPostVerifyCode: () => {
- return HttpHandler.Get(`/tools/verificationCode/create`, null, {
- header: {
- 'Authorization': 'Tools工具箱插件设置的认证token'
- }
- })
- },
-}
\ No newline at end of file
+ /**
+ * 获取文章验证码
+ */
+ getPostVerifyCode: () => {
+ return HttpHandler.Get(`/tools/verificationCode/create`, null, {
+ header: {
+ 'Authorization': 'Tools工具箱插件设置的认证token'
+ }
+ })
+ },
+}
diff --git a/pages.json b/pages.json
index 7afa52f..e6e5736 100644
--- a/pages.json
+++ b/pages.json
@@ -1,598 +1,647 @@
{
- "pages": [{
- "path": "pages/index/index",
- "style": {
- "navigationBarTitleText": "uni-halo",
- "enablePullDownRefresh": false,
- "navigationStyle": "custom"
- }
- },
- {
- "path": "pages/tabbar/home/home",
- "style": {
- "navigationBarTitleText": "首页",
- "enablePullDownRefresh": true,
- "navigationStyle": "custom",
- "app-plus": {
- "pullToRefresh": {
- "color": "#03a9f4",
- "style": "circle"
- }
- }
- }
- }, {
- "path": "pages/tabbar/category/category",
- "style": {
- "navigationBarTitleText": "分类",
- "enablePullDownRefresh": true,
- "app-plus": {
- "pullToRefresh": {
- "color": "#03a9f4",
- "style": "circle"
- }
- }
- }
- }, {
- "path": "pages/tabbar/gallery/gallery",
- "style": {
- "navigationBarTitleText": "图库",
- "enablePullDownRefresh": true,
- "app-plus": {
- "pullToRefresh": {
- "color": "#03a9f4",
- "style": "circle"
- }
- }
- }
- }, {
- "path": "pages/tabbar/moments/moments",
- "style": {
- "navigationBarTitleText": "瞬间",
- "enablePullDownRefresh": true,
- "app-plus": {
- "pullToRefresh": {
- "color": "#03a9f4",
- "style": "circle"
- }
- }
- }
- }, {
- "path": "pages/tabbar/about/about",
- "style": {
- "navigationBarTitleText": "关于",
- "navigationStyle": "custom",
- "enablePullDownRefresh": true,
- "app-plus": {
- "pullToRefresh": {
- "color": "#03a9f4",
- "style": "circle"
- }
- }
- }
- }, {
- "path": "uni_modules/uni-upgrade-center-app/pages/upgrade-popup",
- "style": {
- "disableScroll": true,
- "app-plus": {
- "backgroundColorTop": "transparent",
- "background": "transparent",
- "titleNView": false,
- "scrollIndicator": false,
- "popGesture": "none",
- "animationType": "fade-in",
- "animationDuration": 200
- }
- }
- }
- ],
- //此配置为小程序的分包加载机制。在5+App里始终为整包。
- "subPackages": [{
- "root": "pagesA",
- "pages": [{
- "path": "start/start",
- "style": {
- "navigationBarTitleText": "uni-halo",
- "enablePullDownRefresh": false,
- "navigationStyle": "custom"
- }
- }, {
- "path": "article-detail/article-detail",
- "style": {
- "navigationBarTitleText": "文章详情",
- "enablePullDownRefresh": true,
- "app-plus": {
- "pullToRefresh": {
- "color": "#03a9f4",
- "style": "circle"
- }
- }
- }
- }, {
- "path": "love/love",
- "style": {
- "navigationBarTitleText": "恋爱日记",
- "navigationStyle": "custom",
- "enablePullDownRefresh": false,
- "app-plus": {
- "pullToRefresh": {
- "color": "#03a9f4",
- "style": "circle"
- }
- }
- }
- }, {
- "path": "love/list",
- "style": {
- "navigationBarTitleText": "恋爱清单",
- "enablePullDownRefresh": false,
- "navigationStyle": "custom"
- }
-
- }, {
- "path": "love/album",
- "style": {
- "navigationBarTitleText": "恋爱相册",
- "enablePullDownRefresh": true,
- "app-plus": {
- "pullToRefresh": {
- "color": "#03a9f4",
- "style": "circle"
- }
- }
- }
- }, {
- "path": "love/journey",
- "style": {
- "navigationBarTitleText": "我们的故事",
- "navigationStyle": "custom",
- "enablePullDownRefresh": false
- }
- }, {
- "path": "archives/archives",
- "style": {
- "navigationBarTitleText": "文章归档",
- "enablePullDownRefresh": true,
- "app-plus": {
- "pullToRefresh": {
- "color": "#03a9f4",
- "style": "circle"
- }
- }
- }
-
- }, {
- "path": "friend-links/friend-links",
- "style": {
- "navigationBarTitleText": "友情链接",
- "enablePullDownRefresh": true,
- "app-plus": {
- "pullToRefresh": {
- "color": "#03a9f4",
- "style": "circle"
- }
- }
- }
- }, {
- "path": "journal/journal",
- "style": {
- "navigationBarTitleText": "个人日记",
- "enablePullDownRefresh": true,
- "app-plus": {
- "pullToRefresh": {
- "color": "#03a9f4",
- "style": "circle"
- }
- }
- }
- }, {
- "path": "articles/articles",
- "style": {
- "navigationBarTitleText": "文章列表",
- "enablePullDownRefresh": true,
- "app-plus": {
- "pullToRefresh": {
- "color": "#03a9f4",
- "style": "circle"
- }
- }
- }
- }, {
- "path": "category-detail/category-detail",
- "style": {
- "navigationBarTitleText": "分类详情",
- "enablePullDownRefresh": true,
- "app-plus": {
- "pullToRefresh": {
- "color": "#03a9f4",
- "style": "circle"
- }
- }
- }
- }, {
- "path": "comment/comment",
- "style": {
- "navigationBarTitleText": "",
- "enablePullDownRefresh": false
- },
- "meta": {
- "auth": "login"
- }
- }, {
- "path": "disclaimers/disclaimers",
- "style": {
- "navigationBarTitleText": "免责声明",
- "enablePullDownRefresh": false
- }
- }, {
- "path": "contact/contact",
- "style": {
- "navigationBarTitleText": "联系博主",
- "enablePullDownRefresh": false
- }
- }, {
- "path": "about/about",
- "style": {
- "navigationBarTitleText": "关于博客",
- "enablePullDownRefresh": false
- }
- }, {
- "path": "setting/setting",
- "style": {
- "navigationBarTitleText": "设置",
- "enablePullDownRefresh": false
- }
- }, {
- "path": "tags/tags",
- "style": {
- "navigationBarTitleText": "",
- "enablePullDownRefresh": false
- }
- }, {
- "path": "tag-detail/tag-detail",
- "style": {
- "navigationBarTitleText": "标签详情",
- "enablePullDownRefresh": true,
- "app-plus": {
- "pullToRefresh": {
- "color": "#03a9f4",
- "style": "circle"
- }
- }
- }
- },
- {
- "path" : "test-page/test-page",
- "style" :
- {
- "navigationBarTitleText" : ""
- }
- },
- {
- "path": "advertise/advertise",
- "style": {
- "navigationBarTitleText": "广告页面",
- "enablePullDownRefresh": false
- }
- }]
- },
- {
- "root": "pagesB",
- "pages": [{
- "path": "login/login",
- "style": {
- "navigationBarTitleText": "登录",
- "enablePullDownRefresh": false,
- "navigationStyle": "custom"
- }
- }, {
- "path": "admin/admin",
- "style": {
- "navigationBarTitleText": "工作台",
- "enablePullDownRefresh": true,
- "app-plus": {
- "pullToRefresh": {
- "color": "#03a9f4",
- "style": "circle"
- }
- }
- },
- "meta": {
- "auth": "admin"
- }
- }, {
- "path": "settings/settings",
- "style": {
- "navigationBarTitleText": "系统设置",
- "enablePullDownRefresh": true,
- "app-plus": {
- "pullToRefresh": {
- "color": "#03a9f4",
- "style": "circle"
- }
- }
- },
- "meta": {
- "auth": "admin"
- }
- }, {
- "path": "journal/journal",
- "style": {
- "navigationBarTitleText": "日记管理",
- "enablePullDownRefresh": true,
- "app-plus": {
- "pullToRefresh": {
- "color": "#03a9f4",
- "style": "circle"
- }
- }
- },
- "meta": {
- "auth": "admin"
- }
- }, {
- "path": "journal/journal-edit",
- "style": {
- "navigationBarTitleText": "",
- "enablePullDownRefresh": false,
- "app-plus": {
- "pullToRefresh": {
- "color": "#03a9f4",
- "style": "circle"
- }
- }
- },
- "meta": {
- "auth": "admin"
- }
- }, {
- "path": "articles/articles",
- "style": {
- "navigationBarTitleText": "文章管理",
- "enablePullDownRefresh": true,
- "app-plus": {
- "pullToRefresh": {
- "color": "#03a9f4",
- "style": "circle"
- }
- }
- },
- "meta": {
- "auth": "admin"
- }
- }, {
- "path": "articles/article-edit",
- "style": {
- "navigationBarTitleText": "写文章",
- "enablePullDownRefresh": false
- },
- "meta": {
- "auth": "admin"
- }
- }, {
- "path": "articles/article-setting",
- "style": {
- "navigationBarTitleText": "文章设置",
- "enablePullDownRefresh": true,
- "app-plus": {
- "pullToRefresh": {
- "color": "#03a9f4",
- "style": "circle"
- }
- }
- },
- "meta": {
- "auth": "admin"
- }
- }, {
- "path": "category/category",
- "style": {
- "navigationBarTitleText": "分类管理",
- "enablePullDownRefresh": true,
- "app-plus": {
- "pullToRefresh": {
- "color": "#03a9f4",
- "style": "circle"
- }
- }
- },
- "meta": {
- "auth": "admin"
- }
- }, {
- "path": "tags/tags",
- "style": {
- "navigationBarTitleText": "标签管理",
- "enablePullDownRefresh": true,
- "app-plus": {
- "pullToRefresh": {
- "color": "#03a9f4",
- "style": "circle"
- }
- }
- },
- "meta": {
- "auth": "admin"
- }
- }, {
- "path": "attachment/attachment",
- "style": {
- "navigationBarTitleText": "附件管理",
- "enablePullDownRefresh": true,
- "app-plus": {
- "pullToRefresh": {
- "color": "#03a9f4",
- "style": "circle"
- }
- }
- },
- "meta": {
- "auth": "admin"
- }
- }, {
- "path": "links/links",
- "style": {
- "navigationBarTitleText": "友链管理",
- "enablePullDownRefresh": true,
- "app-plus": {
- "pullToRefresh": {
- "color": "#03a9f4",
- "style": "circle"
- }
- }
- },
- "meta": {
- "auth": "admin"
- }
- }, {
- "path": "photos/photos",
- "style": {
- "navigationBarTitleText": "图库管理",
- "enablePullDownRefresh": true,
- "app-plus": {
- "pullToRefresh": {
- "color": "#03a9f4",
- "style": "circle"
- }
- }
- },
- "meta": {
- "auth": "admin"
- }
- }, {
- "path": "photos/photos-edit",
- "style": {
- "navigationBarTitleText": "新增/编辑图片",
- "enablePullDownRefresh": true,
- "app-plus": {
- "pullToRefresh": {
- "color": "#03a9f4",
- "style": "circle"
- }
- }
- },
- "meta": {
- "auth": "admin"
- }
- }, {
- "path": "comments/comments",
- "style": {
- "navigationBarTitleText": "评论管理",
- "enablePullDownRefresh": true,
- "app-plus": {
- "pullToRefresh": {
- "color": "#03a9f4",
- "style": "circle"
- }
- }
- },
- "meta": {
- "auth": "admin"
- }
- }, {
- "path": "menus/menus",
- "style": {
- "navigationBarTitleText": "菜单管理",
- "enablePullDownRefresh": true,
- "app-plus": {
- "pullToRefresh": {
- "color": "#03a9f4",
- "style": "circle"
- }
- }
- },
- "meta": {
- "auth": "admin"
- }
- }, {
- "path": "password/password",
- "style": {
- "navigationBarTitleText": "修改密码",
- "enablePullDownRefresh": false
- },
- "meta": {
- "auth": "admin"
- }
- }, {
- "path": "profile/profile",
- "style": {
- "navigationBarTitleText": "个人信息",
- "enablePullDownRefresh": true,
- "app-plus": {
- "pullToRefresh": {
- "color": "#03a9f4",
- "style": "circle"
- }
- }
- },
- "meta": {
- "auth": "admin"
- }
- }, {
- "path": "logs/logs",
- "style": {
- "navigationBarTitleText": "日志管理",
- "enablePullDownRefresh": true,
- "app-plus": {
- "pullToRefresh": {
- "color": "#03a9f4",
- "style": "circle"
- }
- }
- },
- "meta": {
- "auth": "admin"
- }
- }]
- }, {
- "root": "pagesC",
- "pages": [{
- "path": "website/website",
- "style": {
- "navigationBarTitleText": "",
- "enablePullDownRefresh": false
- }
-
- }]
- }
- ],
- "globalStyle": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "uni-halo",
- "navigationBarBackgroundColor": "#ffffff",
- "backgroundColor": "#F8F8F8"
- },
- "tabBar": {
- "backgroundColor": "#fff",
- "borderStyle": "white",
- "color": "#303133",
- "selectedColor": "#03a9f4",
- "list": [{
- "iconPath": "static/tabbar/select_home.png",
- "selectedIconPath": "static/tabbar/select_home_active.png",
- "pagePath": "pages/tabbar/home/home",
- "text": "首页"
- },
- {
- "iconPath": "static/tabbar/select_category.png",
- "selectedIconPath": "static/tabbar/select_category_active.png",
- "pagePath": "pages/tabbar/category/category",
- "text": "分类"
- }, {
- "iconPath": "static/tabbar/select_gallery.png",
- "selectedIconPath": "static/tabbar/select_gallery_active.png",
- "pagePath": "pages/tabbar/gallery/gallery",
- "text": "图库"
- }, {
- "iconPath": "static/tabbar/select_links.png",
- "selectedIconPath": "static/tabbar/select_links_active.png",
- "pagePath": "pages/tabbar/moments/moments",
- "text": "瞬间"
- }, {
- "iconPath": "static/tabbar/select_mine.png",
- "selectedIconPath": "static/tabbar/select_mine_active.png",
- "pagePath": "pages/tabbar/about/about",
- "text": "关于"
- }
- ]
- }
-}
\ No newline at end of file
+ "pages": [
+ {
+ "path": "pages/index/index",
+ "style": {
+ "navigationBarTitleText": "uni-halo",
+ "enablePullDownRefresh": false,
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/tabbar/home/home",
+ "style": {
+ "navigationBarTitleText": "首页",
+ "enablePullDownRefresh": true,
+ "navigationStyle": "custom",
+ "app-plus": {
+ "pullToRefresh": {
+ "color": "#03a9f4",
+ "style": "circle"
+ }
+ }
+ }
+ },
+ {
+ "path": "pages/tabbar/category/category",
+ "style": {
+ "navigationBarTitleText": "分类",
+ "enablePullDownRefresh": true,
+ "app-plus": {
+ "pullToRefresh": {
+ "color": "#03a9f4",
+ "style": "circle"
+ }
+ }
+ }
+ },
+ {
+ "path": "pages/tabbar/gallery/gallery",
+ "style": {
+ "navigationBarTitleText": "图库",
+ "enablePullDownRefresh": true,
+ "app-plus": {
+ "pullToRefresh": {
+ "color": "#03a9f4",
+ "style": "circle"
+ }
+ }
+ }
+ },
+ {
+ "path": "pages/tabbar/moments/moments",
+ "style": {
+ "navigationBarTitleText": "瞬间",
+ "enablePullDownRefresh": true,
+ "app-plus": {
+ "pullToRefresh": {
+ "color": "#03a9f4",
+ "style": "circle"
+ }
+ }
+ }
+ },
+ {
+ "path": "pages/tabbar/about/about",
+ "style": {
+ "navigationBarTitleText": "关于",
+ "navigationStyle": "custom",
+ "enablePullDownRefresh": true,
+ "app-plus": {
+ "pullToRefresh": {
+ "color": "#03a9f4",
+ "style": "circle"
+ }
+ }
+ }
+ },
+ {
+ "path": "uni_modules/uni-upgrade-center-app/pages/upgrade-popup",
+ "style": {
+ "disableScroll": true,
+ "app-plus": {
+ "backgroundColorTop": "transparent",
+ "background": "transparent",
+ "titleNView": false,
+ "scrollIndicator": false,
+ "popGesture": "none",
+ "animationType": "fade-in",
+ "animationDuration": 200
+ }
+ }
+ }
+ ],
+ //此配置为小程序的分包加载机制。在5+App里始终为整包。
+ "subPackages": [
+ {
+ "root": "pagesA",
+ "pages": [
+ {
+ "path": "start/start",
+ "style": {
+ "navigationBarTitleText": "uni-halo",
+ "enablePullDownRefresh": false,
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "article-detail/article-detail",
+ "style": {
+ "navigationBarTitleText": "文章详情",
+ "enablePullDownRefresh": true,
+ "app-plus": {
+ "pullToRefresh": {
+ "color": "#03a9f4",
+ "style": "circle"
+ }
+ }
+ }
+ },
+ {
+ "path": "love/love",
+ "style": {
+ "navigationBarTitleText": "恋爱日记",
+ "navigationStyle": "custom",
+ "enablePullDownRefresh": false,
+ "app-plus": {
+ "pullToRefresh": {
+ "color": "#03a9f4",
+ "style": "circle"
+ }
+ }
+ }
+ },
+ {
+ "path": "love/list",
+ "style": {
+ "navigationBarTitleText": "恋爱清单",
+ "enablePullDownRefresh": false,
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "love/album",
+ "style": {
+ "navigationBarTitleText": "恋爱相册",
+ "enablePullDownRefresh": true,
+ "app-plus": {
+ "pullToRefresh": {
+ "color": "#03a9f4",
+ "style": "circle"
+ }
+ }
+ }
+ },
+ {
+ "path": "love/journey",
+ "style": {
+ "navigationBarTitleText": "我们的故事",
+ "navigationStyle": "custom",
+ "enablePullDownRefresh": false
+ }
+ },
+ {
+ "path": "archives/archives",
+ "style": {
+ "navigationBarTitleText": "文章归档",
+ "enablePullDownRefresh": true,
+ "app-plus": {
+ "pullToRefresh": {
+ "color": "#03a9f4",
+ "style": "circle"
+ }
+ }
+ }
+ },
+ {
+ "path": "friend-links/friend-links",
+ "style": {
+ "navigationBarTitleText": "友情链接",
+ "enablePullDownRefresh": true,
+ "app-plus": {
+ "pullToRefresh": {
+ "color": "#03a9f4",
+ "style": "circle"
+ }
+ }
+ }
+ },
+ {
+ "path": "journal/journal",
+ "style": {
+ "navigationBarTitleText": "个人日记",
+ "enablePullDownRefresh": true,
+ "app-plus": {
+ "pullToRefresh": {
+ "color": "#03a9f4",
+ "style": "circle"
+ }
+ }
+ }
+ },
+ {
+ "path": "articles/articles",
+ "style": {
+ "navigationBarTitleText": "文章列表",
+ "enablePullDownRefresh": true,
+ "app-plus": {
+ "pullToRefresh": {
+ "color": "#03a9f4",
+ "style": "circle"
+ }
+ }
+ }
+ },
+ {
+ "path": "category-detail/category-detail",
+ "style": {
+ "navigationBarTitleText": "分类详情",
+ "enablePullDownRefresh": true,
+ "app-plus": {
+ "pullToRefresh": {
+ "color": "#03a9f4",
+ "style": "circle"
+ }
+ }
+ }
+ },
+ {
+ "path": "comment/comment",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ },
+ "meta": {
+ "auth": "login"
+ }
+ },
+ {
+ "path": "disclaimers/disclaimers",
+ "style": {
+ "navigationBarTitleText": "免责声明",
+ "enablePullDownRefresh": false
+ }
+ },
+ {
+ "path": "contact/contact",
+ "style": {
+ "navigationBarTitleText": "联系博主",
+ "enablePullDownRefresh": false
+ }
+ },
+ {
+ "path": "about/about",
+ "style": {
+ "navigationBarTitleText": "关于博客",
+ "enablePullDownRefresh": false
+ }
+ },
+ {
+ "path": "setting/setting",
+ "style": {
+ "navigationBarTitleText": "设置",
+ "enablePullDownRefresh": false
+ }
+ },
+ {
+ "path": "tags/tags",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+ },
+ {
+ "path": "tag-detail/tag-detail",
+ "style": {
+ "navigationBarTitleText": "标签详情",
+ "enablePullDownRefresh": true,
+ "app-plus": {
+ "pullToRefresh": {
+ "color": "#03a9f4",
+ "style": "circle"
+ }
+ }
+ }
+ },
+ {
+ "path": "test-page/test-page",
+ "style": {
+ "navigationBarTitleText": ""
+ }
+ },
+ {
+ "path": "advertise/advertise",
+ "style": {
+ "navigationBarTitleText": "广告页面",
+ "enablePullDownRefresh": false
+ }
+ }
+ ]
+ },
+ {
+ "root": "pagesB",
+ "pages": [
+ {
+ "path": "login/login",
+ "style": {
+ "navigationBarTitleText": "登录",
+ "enablePullDownRefresh": false,
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "admin/admin",
+ "style": {
+ "navigationBarTitleText": "工作台",
+ "enablePullDownRefresh": true,
+ "app-plus": {
+ "pullToRefresh": {
+ "color": "#03a9f4",
+ "style": "circle"
+ }
+ }
+ },
+ "meta": {
+ "auth": "admin"
+ }
+ },
+ {
+ "path": "settings/settings",
+ "style": {
+ "navigationBarTitleText": "系统设置",
+ "enablePullDownRefresh": true,
+ "app-plus": {
+ "pullToRefresh": {
+ "color": "#03a9f4",
+ "style": "circle"
+ }
+ }
+ },
+ "meta": {
+ "auth": "admin"
+ }
+ },
+ {
+ "path": "journal/journal",
+ "style": {
+ "navigationBarTitleText": "日记管理",
+ "enablePullDownRefresh": true,
+ "app-plus": {
+ "pullToRefresh": {
+ "color": "#03a9f4",
+ "style": "circle"
+ }
+ }
+ },
+ "meta": {
+ "auth": "admin"
+ }
+ },
+ {
+ "path": "journal/journal-edit",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false,
+ "app-plus": {
+ "pullToRefresh": {
+ "color": "#03a9f4",
+ "style": "circle"
+ }
+ }
+ },
+ "meta": {
+ "auth": "admin"
+ }
+ },
+ {
+ "path": "articles/articles",
+ "style": {
+ "navigationBarTitleText": "文章管理",
+ "enablePullDownRefresh": true,
+ "app-plus": {
+ "pullToRefresh": {
+ "color": "#03a9f4",
+ "style": "circle"
+ }
+ }
+ },
+ "meta": {
+ "auth": "admin"
+ }
+ },
+ {
+ "path": "articles/article-edit",
+ "style": {
+ "navigationBarTitleText": "写文章",
+ "enablePullDownRefresh": false
+ },
+ "meta": {
+ "auth": "admin"
+ }
+ },
+ {
+ "path": "articles/article-setting",
+ "style": {
+ "navigationBarTitleText": "文章设置",
+ "enablePullDownRefresh": true,
+ "app-plus": {
+ "pullToRefresh": {
+ "color": "#03a9f4",
+ "style": "circle"
+ }
+ }
+ },
+ "meta": {
+ "auth": "admin"
+ }
+ },
+ {
+ "path": "category/category",
+ "style": {
+ "navigationBarTitleText": "分类管理",
+ "enablePullDownRefresh": true,
+ "app-plus": {
+ "pullToRefresh": {
+ "color": "#03a9f4",
+ "style": "circle"
+ }
+ }
+ },
+ "meta": {
+ "auth": "admin"
+ }
+ },
+ {
+ "path": "tags/tags",
+ "style": {
+ "navigationBarTitleText": "标签管理",
+ "enablePullDownRefresh": true,
+ "app-plus": {
+ "pullToRefresh": {
+ "color": "#03a9f4",
+ "style": "circle"
+ }
+ }
+ },
+ "meta": {
+ "auth": "admin"
+ }
+ },
+ {
+ "path": "attachment/attachment",
+ "style": {
+ "navigationBarTitleText": "附件管理",
+ "enablePullDownRefresh": true,
+ "app-plus": {
+ "pullToRefresh": {
+ "color": "#03a9f4",
+ "style": "circle"
+ }
+ }
+ },
+ "meta": {
+ "auth": "admin"
+ }
+ },
+ {
+ "path": "links/links",
+ "style": {
+ "navigationBarTitleText": "友链管理",
+ "enablePullDownRefresh": true,
+ "app-plus": {
+ "pullToRefresh": {
+ "color": "#03a9f4",
+ "style": "circle"
+ }
+ }
+ },
+ "meta": {
+ "auth": "admin"
+ }
+ },
+ {
+ "path": "photos/photos",
+ "style": {
+ "navigationBarTitleText": "图库管理",
+ "enablePullDownRefresh": true,
+ "app-plus": {
+ "pullToRefresh": {
+ "color": "#03a9f4",
+ "style": "circle"
+ }
+ }
+ },
+ "meta": {
+ "auth": "admin"
+ }
+ },
+ {
+ "path": "photos/photos-edit",
+ "style": {
+ "navigationBarTitleText": "新增/编辑图片",
+ "enablePullDownRefresh": true,
+ "app-plus": {
+ "pullToRefresh": {
+ "color": "#03a9f4",
+ "style": "circle"
+ }
+ }
+ },
+ "meta": {
+ "auth": "admin"
+ }
+ },
+ {
+ "path": "comments/comments",
+ "style": {
+ "navigationBarTitleText": "评论管理",
+ "enablePullDownRefresh": true,
+ "app-plus": {
+ "pullToRefresh": {
+ "color": "#03a9f4",
+ "style": "circle"
+ }
+ }
+ },
+ "meta": {
+ "auth": "admin"
+ }
+ },
+ {
+ "path": "menus/menus",
+ "style": {
+ "navigationBarTitleText": "菜单管理",
+ "enablePullDownRefresh": true,
+ "app-plus": {
+ "pullToRefresh": {
+ "color": "#03a9f4",
+ "style": "circle"
+ }
+ }
+ },
+ "meta": {
+ "auth": "admin"
+ }
+ },
+ {
+ "path": "password/password",
+ "style": {
+ "navigationBarTitleText": "修改密码",
+ "enablePullDownRefresh": false
+ },
+ "meta": {
+ "auth": "admin"
+ }
+ },
+ {
+ "path": "profile/profile",
+ "style": {
+ "navigationBarTitleText": "个人信息",
+ "enablePullDownRefresh": true,
+ "app-plus": {
+ "pullToRefresh": {
+ "color": "#03a9f4",
+ "style": "circle"
+ }
+ }
+ },
+ "meta": {
+ "auth": "admin"
+ }
+ },
+ {
+ "path": "logs/logs",
+ "style": {
+ "navigationBarTitleText": "日志管理",
+ "enablePullDownRefresh": true,
+ "app-plus": {
+ "pullToRefresh": {
+ "color": "#03a9f4",
+ "style": "circle"
+ }
+ }
+ },
+ "meta": {
+ "auth": "admin"
+ }
+ }
+ ]
+ },
+ {
+ "root": "pagesC",
+ "pages": [
+ {
+ "path": "website/website",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+ }
+ ]
+ }
+ ],
+ "globalStyle": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "uni-halo",
+ "navigationBarBackgroundColor": "#ffffff",
+ "backgroundColor": "#F8F8F8"
+ },
+ "tabBar": {
+ "backgroundColor": "#fff",
+ "borderStyle": "white",
+ "color": "#303133",
+ "selectedColor": "#03a9f4",
+ "list": [
+ {
+ "iconPath": "static/tabbar/select_home.png",
+ "selectedIconPath": "static/tabbar/select_home_active.png",
+ "pagePath": "pages/tabbar/home/home",
+ "text": "首页"
+ },
+ {
+ "iconPath": "static/tabbar/select_category.png",
+ "selectedIconPath": "static/tabbar/select_category_active.png",
+ "pagePath": "pages/tabbar/category/category",
+ "text": "分类"
+ },
+ {
+ "iconPath": "static/tabbar/select_gallery.png",
+ "selectedIconPath": "static/tabbar/select_gallery_active.png",
+ "pagePath": "pages/tabbar/gallery/gallery",
+ "text": "图库"
+ },
+ {
+ "iconPath": "static/tabbar/select_links.png",
+ "selectedIconPath": "static/tabbar/select_links_active.png",
+ "pagePath": "pages/tabbar/moments/moments",
+ "text": "瞬间"
+ },
+ {
+ "iconPath": "static/tabbar/select_mine.png",
+ "selectedIconPath": "static/tabbar/select_mine_active.png",
+ "pagePath": "pages/tabbar/about/about",
+ "text": "关于"
+ }
+ ]
+ }
+}
diff --git a/pagesA/advertise/advertise.vue b/pagesA/advertise/advertise.vue
index 6e36446..a2bdafc 100644
--- a/pagesA/advertise/advertise.vue
+++ b/pagesA/advertise/advertise.vue
@@ -1,142 +1,144 @@
-
-
-
-
-
- 获取注册码
-
-
-
-
-
-
-
+
+
+
+
+
+ 获取注册码
+
+
+
+
+
+
+
\ No newline at end of file
+
diff --git a/pagesA/article-detail/article-detail.vue b/pagesA/article-detail/article-detail.vue
index 4cab8f6..d61b80b 100644
--- a/pagesA/article-detail/article-detail.vue
+++ b/pagesA/article-detail/article-detail.vue
@@ -1,1169 +1,1173 @@
-
-
-
-
-
-
-
-
-
- {{ result.spec.title }}
-
-
- 作者:{{ result.owner.displayName }}
-
- 时间:{{ { d: result.spec.publishTime, f: 'yyyy年MM月dd日 星期w' } | formatTime }}
-
-
+
+
+
+
+
+
+
+
+
+ {{ result.spec.title }}
+
+
+ 作者:{{ result.owner.displayName }}
+
+ 时间:{{ {d: result.spec.publishTime, f: 'yyyy年MM月dd日 星期w'} | formatTime }}
+
+
-
-
-
-
-
- {{ result.stats.visit }}
- 阅读
-
-
- {{ result.stats.upvote }}
- 喜欢
-
-
- {{ result.stats.comment }}
- 评论
-
-
- {{ result.content.raw.length }}
- 字数
-
-
-
-
-
-
-
- 分类:
- 未选择分类
-
-
- {{ item.spec.displayName }}
-
-
-
-
- 标签:
- 未选择标签
-
-
- {{ item.spec.displayName }}
-
-
-
-
- 原文:
-
- {{ originalURL }}
- 阅读原文
-
-
-
-
-
-
-
-
-
-
- 以下内容已隐藏,请验证后查看完整内容……
+
+
+
+
+
+ {{ result.stats.visit }}
+ 阅读
+
+
+ {{ result.stats.upvote }}
+ 喜欢
+
+
+ {{ result.stats.comment }}
+ 评论
+
+
+ {{ result.content.raw.length }}
+ 字数
+
+
+
-
-
- 文章部分内容已加密点击解锁
-
-
-
-
-
-
-
- 广告
-
-
-
- {{ haloAdConfig.articleDetail.custom.title }}
- {{ haloAdConfig.articleDetail.custom.content }}
-
- 立即查看
-
-
-
+
+
+
+ 分类:
+ 未选择分类
+
+
+ {{ item.spec.displayName }}
+
+
+
+
+ 标签:
+ 未选择标签
+
+
+ {{ item.spec.displayName }}
+
+
+
+
+ 原文:
+
+ {{ originalURL }}
+
+ 阅读原文
+
+
+
+
+
+
+
+
+
+
+
+
+ 以下内容已隐藏,请验证后查看完整内容……
+
+
+
+ 文章部分内容已加密点击解锁
+
+
+
+
+
+
+
+ 广告
+
+
+
+ {{ haloAdConfig.articleDetail.title }}
+ {{ haloAdConfig.articleDetail.content }}
+
+ 立即查看
+
+
+
-
-
- 版权声明
-
-
- 版权归属:{{ copyright.author }}
-
-
- 版权说明:{{ copyright.description }}
-
-
- 侵权处理:{{ copyright.violation }}
-
-
-
+
+
+ 版权声明
+
+
+ 版权归属:{{ copyright.author }}
+
+
+ 版权说明:{{ copyright.description }}
+
+
+ 侵权处理:{{ copyright.violation }}
+
+
+
-
-
-
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
- 评论详情
-
-
+
+
+
+
+ 评论详情
+
+
-
-
-
-
- 加载中,请稍等...
-
-
-
-
- 刷新试试
-
-
-
-
-
-
-
-
+
+
+
+
+ 加载中,请稍等...
+
+
+
+
+ 刷新试试
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
- 海报正在生成...
-
-
-
-
-
- 保存到相册
-
-
- 分享给好友
-
-
- 关 闭
-
-
-
-
-
+
+
+
+
+
+ 海报正在生成...
+
+
+
+
+
+ 保存到相册
+
+
+ 分享给好友
+
+
+ 关 闭
+
+
+
+
+
-
-
-
-
+
+
+
+
-
+
\ No newline at end of file
+ &__btn {
+ flex-grow: 1;
+ flex-shrink: 0;
+ display: block;
+ text-align: right;
+ }
+ }
+}
+