mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-06-12 13:19:31 +08:00
update: 优化代码格式
This commit is contained in:
@@ -6,6 +6,7 @@ import HttpHandler from '@/common/http/request.js'
|
|||||||
import {
|
import {
|
||||||
getCache
|
getCache
|
||||||
} from '@/utils/storage.js'
|
} from '@/utils/storage.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
/**
|
/**
|
||||||
* 获取文章列表
|
* 获取文章列表
|
||||||
|
|||||||
+107
-58
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"pages": [{
|
"pages": [
|
||||||
|
{
|
||||||
"path": "pages/index/index",
|
"path": "pages/index/index",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "uni-halo",
|
"navigationBarTitleText": "uni-halo",
|
||||||
@@ -20,7 +21,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "pages/tabbar/category/category",
|
"path": "pages/tabbar/category/category",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "分类",
|
"navigationBarTitleText": "分类",
|
||||||
@@ -32,7 +34,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "pages/tabbar/gallery/gallery",
|
"path": "pages/tabbar/gallery/gallery",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "图库",
|
"navigationBarTitleText": "图库",
|
||||||
@@ -44,7 +47,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "pages/tabbar/moments/moments",
|
"path": "pages/tabbar/moments/moments",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "瞬间",
|
"navigationBarTitleText": "瞬间",
|
||||||
@@ -56,7 +60,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "pages/tabbar/about/about",
|
"path": "pages/tabbar/about/about",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "关于",
|
"navigationBarTitleText": "关于",
|
||||||
@@ -69,7 +74,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "uni_modules/uni-upgrade-center-app/pages/upgrade-popup",
|
"path": "uni_modules/uni-upgrade-center-app/pages/upgrade-popup",
|
||||||
"style": {
|
"style": {
|
||||||
"disableScroll": true,
|
"disableScroll": true,
|
||||||
@@ -86,16 +92,19 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
//此配置为小程序的分包加载机制。在5+App里始终为整包。
|
//此配置为小程序的分包加载机制。在5+App里始终为整包。
|
||||||
"subPackages": [{
|
"subPackages": [
|
||||||
|
{
|
||||||
"root": "pagesA",
|
"root": "pagesA",
|
||||||
"pages": [{
|
"pages": [
|
||||||
|
{
|
||||||
"path": "start/start",
|
"path": "start/start",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "uni-halo",
|
"navigationBarTitleText": "uni-halo",
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": false,
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "article-detail/article-detail",
|
"path": "article-detail/article-detail",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "文章详情",
|
"navigationBarTitleText": "文章详情",
|
||||||
@@ -107,7 +116,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "love/love",
|
"path": "love/love",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "恋爱日记",
|
"navigationBarTitleText": "恋爱日记",
|
||||||
@@ -120,15 +130,16 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "love/list",
|
"path": "love/list",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "恋爱清单",
|
"navigationBarTitleText": "恋爱清单",
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": false,
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
}, {
|
{
|
||||||
"path": "love/album",
|
"path": "love/album",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "恋爱相册",
|
"navigationBarTitleText": "恋爱相册",
|
||||||
@@ -140,14 +151,16 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "love/journey",
|
"path": "love/journey",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "我们的故事",
|
"navigationBarTitleText": "我们的故事",
|
||||||
"navigationStyle": "custom",
|
"navigationStyle": "custom",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "archives/archives",
|
"path": "archives/archives",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "文章归档",
|
"navigationBarTitleText": "文章归档",
|
||||||
@@ -159,8 +172,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
}, {
|
{
|
||||||
"path": "friend-links/friend-links",
|
"path": "friend-links/friend-links",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "友情链接",
|
"navigationBarTitleText": "友情链接",
|
||||||
@@ -172,7 +185,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "journal/journal",
|
"path": "journal/journal",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "个人日记",
|
"navigationBarTitleText": "个人日记",
|
||||||
@@ -184,7 +198,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "articles/articles",
|
"path": "articles/articles",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "文章列表",
|
"navigationBarTitleText": "文章列表",
|
||||||
@@ -196,7 +211,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "category-detail/category-detail",
|
"path": "category-detail/category-detail",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "分类详情",
|
"navigationBarTitleText": "分类详情",
|
||||||
@@ -208,7 +224,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "comment/comment",
|
"path": "comment/comment",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
@@ -217,37 +234,43 @@
|
|||||||
"meta": {
|
"meta": {
|
||||||
"auth": "login"
|
"auth": "login"
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "disclaimers/disclaimers",
|
"path": "disclaimers/disclaimers",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "免责声明",
|
"navigationBarTitleText": "免责声明",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "contact/contact",
|
"path": "contact/contact",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "联系博主",
|
"navigationBarTitleText": "联系博主",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "about/about",
|
"path": "about/about",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "关于博客",
|
"navigationBarTitleText": "关于博客",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "setting/setting",
|
"path": "setting/setting",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "设置",
|
"navigationBarTitleText": "设置",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "tags/tags",
|
"path": "tags/tags",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "tag-detail/tag-detail",
|
"path": "tag-detail/tag-detail",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "标签详情",
|
"navigationBarTitleText": "标签详情",
|
||||||
@@ -262,8 +285,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "test-page/test-page",
|
"path": "test-page/test-page",
|
||||||
"style" :
|
"style": {
|
||||||
{
|
|
||||||
"navigationBarTitleText": ""
|
"navigationBarTitleText": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -273,18 +295,21 @@
|
|||||||
"navigationBarTitleText": "广告页面",
|
"navigationBarTitleText": "广告页面",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
}]
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"root": "pagesB",
|
"root": "pagesB",
|
||||||
"pages": [{
|
"pages": [
|
||||||
|
{
|
||||||
"path": "login/login",
|
"path": "login/login",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "登录",
|
"navigationBarTitleText": "登录",
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": false,
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "admin/admin",
|
"path": "admin/admin",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "工作台",
|
"navigationBarTitleText": "工作台",
|
||||||
@@ -299,7 +324,8 @@
|
|||||||
"meta": {
|
"meta": {
|
||||||
"auth": "admin"
|
"auth": "admin"
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "settings/settings",
|
"path": "settings/settings",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "系统设置",
|
"navigationBarTitleText": "系统设置",
|
||||||
@@ -314,7 +340,8 @@
|
|||||||
"meta": {
|
"meta": {
|
||||||
"auth": "admin"
|
"auth": "admin"
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "journal/journal",
|
"path": "journal/journal",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "日记管理",
|
"navigationBarTitleText": "日记管理",
|
||||||
@@ -329,7 +356,8 @@
|
|||||||
"meta": {
|
"meta": {
|
||||||
"auth": "admin"
|
"auth": "admin"
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "journal/journal-edit",
|
"path": "journal/journal-edit",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
@@ -344,7 +372,8 @@
|
|||||||
"meta": {
|
"meta": {
|
||||||
"auth": "admin"
|
"auth": "admin"
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "articles/articles",
|
"path": "articles/articles",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "文章管理",
|
"navigationBarTitleText": "文章管理",
|
||||||
@@ -359,7 +388,8 @@
|
|||||||
"meta": {
|
"meta": {
|
||||||
"auth": "admin"
|
"auth": "admin"
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "articles/article-edit",
|
"path": "articles/article-edit",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "写文章",
|
"navigationBarTitleText": "写文章",
|
||||||
@@ -368,7 +398,8 @@
|
|||||||
"meta": {
|
"meta": {
|
||||||
"auth": "admin"
|
"auth": "admin"
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "articles/article-setting",
|
"path": "articles/article-setting",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "文章设置",
|
"navigationBarTitleText": "文章设置",
|
||||||
@@ -383,7 +414,8 @@
|
|||||||
"meta": {
|
"meta": {
|
||||||
"auth": "admin"
|
"auth": "admin"
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "category/category",
|
"path": "category/category",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "分类管理",
|
"navigationBarTitleText": "分类管理",
|
||||||
@@ -398,7 +430,8 @@
|
|||||||
"meta": {
|
"meta": {
|
||||||
"auth": "admin"
|
"auth": "admin"
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "tags/tags",
|
"path": "tags/tags",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "标签管理",
|
"navigationBarTitleText": "标签管理",
|
||||||
@@ -413,7 +446,8 @@
|
|||||||
"meta": {
|
"meta": {
|
||||||
"auth": "admin"
|
"auth": "admin"
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "attachment/attachment",
|
"path": "attachment/attachment",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "附件管理",
|
"navigationBarTitleText": "附件管理",
|
||||||
@@ -428,7 +462,8 @@
|
|||||||
"meta": {
|
"meta": {
|
||||||
"auth": "admin"
|
"auth": "admin"
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "links/links",
|
"path": "links/links",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "友链管理",
|
"navigationBarTitleText": "友链管理",
|
||||||
@@ -443,7 +478,8 @@
|
|||||||
"meta": {
|
"meta": {
|
||||||
"auth": "admin"
|
"auth": "admin"
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "photos/photos",
|
"path": "photos/photos",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "图库管理",
|
"navigationBarTitleText": "图库管理",
|
||||||
@@ -458,7 +494,8 @@
|
|||||||
"meta": {
|
"meta": {
|
||||||
"auth": "admin"
|
"auth": "admin"
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "photos/photos-edit",
|
"path": "photos/photos-edit",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "新增/编辑图片",
|
"navigationBarTitleText": "新增/编辑图片",
|
||||||
@@ -473,7 +510,8 @@
|
|||||||
"meta": {
|
"meta": {
|
||||||
"auth": "admin"
|
"auth": "admin"
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "comments/comments",
|
"path": "comments/comments",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "评论管理",
|
"navigationBarTitleText": "评论管理",
|
||||||
@@ -488,7 +526,8 @@
|
|||||||
"meta": {
|
"meta": {
|
||||||
"auth": "admin"
|
"auth": "admin"
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "menus/menus",
|
"path": "menus/menus",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "菜单管理",
|
"navigationBarTitleText": "菜单管理",
|
||||||
@@ -503,7 +542,8 @@
|
|||||||
"meta": {
|
"meta": {
|
||||||
"auth": "admin"
|
"auth": "admin"
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "password/password",
|
"path": "password/password",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "修改密码",
|
"navigationBarTitleText": "修改密码",
|
||||||
@@ -512,7 +552,8 @@
|
|||||||
"meta": {
|
"meta": {
|
||||||
"auth": "admin"
|
"auth": "admin"
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "profile/profile",
|
"path": "profile/profile",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "个人信息",
|
"navigationBarTitleText": "个人信息",
|
||||||
@@ -527,7 +568,8 @@
|
|||||||
"meta": {
|
"meta": {
|
||||||
"auth": "admin"
|
"auth": "admin"
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"path": "logs/logs",
|
"path": "logs/logs",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "日志管理",
|
"navigationBarTitleText": "日志管理",
|
||||||
@@ -542,17 +584,20 @@
|
|||||||
"meta": {
|
"meta": {
|
||||||
"auth": "admin"
|
"auth": "admin"
|
||||||
}
|
}
|
||||||
}]
|
}
|
||||||
}, {
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
"root": "pagesC",
|
"root": "pagesC",
|
||||||
"pages": [{
|
"pages": [
|
||||||
|
{
|
||||||
"path": "website/website",
|
"path": "website/website",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
@@ -566,7 +611,8 @@
|
|||||||
"borderStyle": "white",
|
"borderStyle": "white",
|
||||||
"color": "#303133",
|
"color": "#303133",
|
||||||
"selectedColor": "#03a9f4",
|
"selectedColor": "#03a9f4",
|
||||||
"list": [{
|
"list": [
|
||||||
|
{
|
||||||
"iconPath": "static/tabbar/select_home.png",
|
"iconPath": "static/tabbar/select_home.png",
|
||||||
"selectedIconPath": "static/tabbar/select_home_active.png",
|
"selectedIconPath": "static/tabbar/select_home_active.png",
|
||||||
"pagePath": "pages/tabbar/home/home",
|
"pagePath": "pages/tabbar/home/home",
|
||||||
@@ -577,17 +623,20 @@
|
|||||||
"selectedIconPath": "static/tabbar/select_category_active.png",
|
"selectedIconPath": "static/tabbar/select_category_active.png",
|
||||||
"pagePath": "pages/tabbar/category/category",
|
"pagePath": "pages/tabbar/category/category",
|
||||||
"text": "分类"
|
"text": "分类"
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"iconPath": "static/tabbar/select_gallery.png",
|
"iconPath": "static/tabbar/select_gallery.png",
|
||||||
"selectedIconPath": "static/tabbar/select_gallery_active.png",
|
"selectedIconPath": "static/tabbar/select_gallery_active.png",
|
||||||
"pagePath": "pages/tabbar/gallery/gallery",
|
"pagePath": "pages/tabbar/gallery/gallery",
|
||||||
"text": "图库"
|
"text": "图库"
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"iconPath": "static/tabbar/select_links.png",
|
"iconPath": "static/tabbar/select_links.png",
|
||||||
"selectedIconPath": "static/tabbar/select_links_active.png",
|
"selectedIconPath": "static/tabbar/select_links_active.png",
|
||||||
"pagePath": "pages/tabbar/moments/moments",
|
"pagePath": "pages/tabbar/moments/moments",
|
||||||
"text": "瞬间"
|
"text": "瞬间"
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"iconPath": "static/tabbar/select_mine.png",
|
"iconPath": "static/tabbar/select_mine.png",
|
||||||
"selectedIconPath": "static/tabbar/select_mine_active.png",
|
"selectedIconPath": "static/tabbar/select_mine_active.png",
|
||||||
"pagePath": "pages/tabbar/about/about",
|
"pagePath": "pages/tabbar/about/about",
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
import tmCoupon from '@/tm-vuetify/components/tm-coupon/tm-coupon.vue'
|
import tmCoupon from '@/tm-vuetify/components/tm-coupon/tm-coupon.vue'
|
||||||
import tmButton from "@/tm-vuetify/components/tm-button/tm-button.vue"
|
import tmButton from "@/tm-vuetify/components/tm-button/tm-button.vue"
|
||||||
import tmImages from "@/tm-vuetify/components/tm-images/tm-images.vue"
|
import tmImages from "@/tm-vuetify/components/tm-images/tm-images.vue"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
tmFullView,
|
tmFullView,
|
||||||
@@ -72,7 +73,8 @@
|
|||||||
videoAd = wx.createRewardedVideoAd({
|
videoAd = wx.createRewardedVideoAd({
|
||||||
adUnitId: haloAdConfig.rewardedVideoAd //你的广告key
|
adUnitId: haloAdConfig.rewardedVideoAd //你的广告key
|
||||||
})
|
})
|
||||||
videoAd.onError(err => {})
|
videoAd.onError(err => {
|
||||||
|
})
|
||||||
videoAd.onClose((status) => {
|
videoAd.onClose((status) => {
|
||||||
if (status && status.isEnded || status === undefined) {
|
if (status && status.isEnded || status === undefined) {
|
||||||
//这里写广告播放完成后的事件
|
//这里写广告播放完成后的事件
|
||||||
|
|||||||
@@ -66,9 +66,12 @@
|
|||||||
<view class="original-url_left text-weight-b">原文:</view>
|
<view class="original-url_left text-weight-b">原文:</view>
|
||||||
<view class="original-url_right text-grey">
|
<view class="original-url_right text-grey">
|
||||||
<text class="original-url_right__link"
|
<text class="original-url_right__link"
|
||||||
@click.stop="fnToOriginal(originalURL)">{{ originalURL }}</text>
|
@click.stop="fnToOriginal(originalURL)">{{ originalURL }}
|
||||||
<text class="original-url_right__btn" @click.stop="fnToOriginal(originalURL)">阅读原文<text
|
</text>
|
||||||
class="iconfont icon-angle-right ml-5 text-size-s"></text> </text>
|
<text class="original-url_right__btn" @click.stop="fnToOriginal(originalURL)">阅读原文
|
||||||
|
<text
|
||||||
|
class="iconfont icon-angle-right ml-5 text-size-s"></text>
|
||||||
|
</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -95,15 +98,15 @@
|
|||||||
</tm-more>
|
</tm-more>
|
||||||
</view>
|
</view>
|
||||||
<!-- 广告区域:自定义广告位 -->
|
<!-- 广告区域:自定义广告位 -->
|
||||||
<view class="ad-card mt-24" v-if="haloAdConfig.articleDetail.custom">
|
<view class="ad-card mt-24" v-if="haloAdConfig.articleDetail.use">
|
||||||
<text class="ad-card_tip">广告</text>
|
<text class="ad-card_tip">广告</text>
|
||||||
<image class="ad-card_cover" :src="haloAdConfig.articleDetail.custom.cover" mode="scaleToFill">
|
<image class="ad-card_cover" :src="haloAdConfig.articleDetail.cover" mode="scaleToFill">
|
||||||
</image>
|
</image>
|
||||||
<view class="ad-card_info">
|
<view class="ad-card_info">
|
||||||
<view class="ad-card_info-title">{{ haloAdConfig.articleDetail.custom.title }}</view>
|
<view class="ad-card_info-title">{{ haloAdConfig.articleDetail.title }}</view>
|
||||||
<view class="ad-card_info-desc">{{ haloAdConfig.articleDetail.custom.content }}</view>
|
<view class="ad-card_info-desc">{{ haloAdConfig.articleDetail.content }}</view>
|
||||||
<view v-if="haloAdConfig.articleDetail.custom.url" class="ad-card_info-link"
|
<view v-if="haloAdConfig.articleDetail.url" class="ad-card_info-link"
|
||||||
@click="fnToWebview(haloAdConfig.articleDetail.custom)">
|
@click="fnToWebview(haloAdConfig.articleDetail)">
|
||||||
立即查看
|
立即查看
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -211,7 +214,8 @@
|
|||||||
content="博主设置了需要密码才能查看该文章内容,请输入文章密码进行验证" theme="split" confirmColor="blue shadow-blue-0"
|
content="博主设置了需要密码才能查看该文章内容,请输入文章密码进行验证" theme="split" confirmColor="blue shadow-blue-0"
|
||||||
@cancel="closeValidVisitPop" @confirm="fnValidVisitPwd"></tm-dialog>
|
@cancel="closeValidVisitPop" @confirm="fnValidVisitPwd"></tm-dialog>
|
||||||
<!-- 是否前往获取验证码 -->
|
<!-- 是否前往获取验证码 -->
|
||||||
<tm-dialog v-model="showGetPassword" title="免费获取验证码" content="是否前往获取验证码?" @confirm="toAdvertise" @cancel="closeAllPop"></tm-dialog>
|
<tm-dialog v-model="showGetPassword" title="免费获取验证码" content="是否前往获取验证码?" @confirm="toAdvertise"
|
||||||
|
@cancel="closeAllPop"></tm-dialog>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -237,6 +241,7 @@
|
|||||||
import {
|
import {
|
||||||
haloWxShareMixin
|
haloWxShareMixin
|
||||||
} from '@/common/mixins/wxshare.mixin.js';
|
} from '@/common/mixins/wxshare.mixin.js';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
tmSkeleton,
|
tmSkeleton,
|
||||||
@@ -332,9 +337,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {},
|
||||||
|
|
||||||
},
|
|
||||||
onLoad(e) {
|
onLoad(e) {
|
||||||
this.fnSetPageTitle('文章加载中...');
|
this.fnSetPageTitle('文章加载中...');
|
||||||
this.queryParams.name = e.name;
|
this.queryParams.name = e.name;
|
||||||
@@ -954,7 +957,8 @@
|
|||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
color: #666;
|
color: #666;
|
||||||
|
|
||||||
&-name {}
|
&-name {
|
||||||
|
}
|
||||||
|
|
||||||
&-time {
|
&-time {
|
||||||
margin-left: 36rpx;
|
margin-left: 36rpx;
|
||||||
|
|||||||
Reference in New Issue
Block a user