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