update: 调整部分显示的内容,如文章相关文字进行替换

This commit is contained in:
小莫唐尼 2024-07-16 11:13:52 +08:00
parent bb228c6705
commit a65ea2617b
5 changed files with 16 additions and 13 deletions

View File

@ -107,7 +107,7 @@
{
"path": "article-detail/article-detail",
"style": {
"navigationBarTitleText": "文章详情",
"navigationBarTitleText": "内容详情",
"enablePullDownRefresh": true,
"app-plus": {
"pullToRefresh": {
@ -163,7 +163,7 @@
{
"path": "archives/archives",
"style": {
"navigationBarTitleText": "文章归档",
"navigationBarTitleText": "归档",
"enablePullDownRefresh": true,
"app-plus": {
"pullToRefresh": {
@ -189,7 +189,7 @@
{
"path": "articles/articles",
"style": {
"navigationBarTitleText": "文章列表",
"navigationBarTitleText": "内容搜索",
"enablePullDownRefresh": true,
"app-plus": {
"pullToRefresh": {

View File

@ -22,7 +22,7 @@
<tm-flop :startVal="0" :decimals="0" :endVal="statistics.post"
:duration="3000"></tm-flop>
</view>
<view class="mt-6 text-align-center text-size-s text-grey-darken-1">文章总数</view>
<view class="mt-6 text-align-center text-size-s text-grey-darken-1">内容数量</view>
</view>
<view class="item flex-1 text-align-center">
<view class="number text-size-xl text-bg-gradient-green-accent">
@ -133,7 +133,10 @@ export default {
return this.$tm.vx.getters().getConfigs
},
pageConfig() {
return this.$tm.vx.getters().getConfigs?.pageConfig?.aboutConfig || {};
return this.haloConfigs.pageConfig.aboutConfig;
},
postDetailConfig() {
return this.haloConfigs.basicConfig.postDetailConfig;
},
bloggerInfo() {
return this.haloConfigs.authorConfig.blogger;

View File

@ -6,10 +6,10 @@
</view>
<view class="search-input round-12 pt-12 pb-12 flex pl-24" @click="fnToSearch">
<text class="search-input_icon iconfont text-size-m icon-search text-grey"></text>
<view class="search-input_text pl-12 text-size-m text-grey">搜索文章...</view>
<view class="search-input_text pl-12 text-size-m text-grey">搜索内容...</view>
</view>
<!-- #ifdef APP-PLUS || H5 -->
<view slot="right" class="mr-24 text-size-m text-grey">uni-halo</view>
<view slot="right" class="mr-24 text-size-m text-grey">{{ appInfo.name }}</view>
<!-- #endif -->
</tm-menubars>
<view v-if="loading !== 'success' && articleList.length===0" class="loading-wrap">
@ -40,7 +40,7 @@
</view>
<scroll-view class="category" scroll-x="true">
<view v-if="categoryList.length == 0" class="cate-empty round-3 mr-5 flex flex-center text-grey">
还没有任何文章分类~
还没有任何分类~
</view>
<block v-else>
<view class="content" v-for="(category, index) in categoryList" :key="category.metadata.name"
@ -52,7 +52,7 @@
<!-- 最新文章 -->
<view class="flex flex-between mt-24 mb-24 pl-24 pr-24">
<view class="page-item_title text-weight-b">文章列表</view>
<view class="page-item_title text-weight-b">最新列表</view>
<view class="show-more flex flex-center bg-white round-3" @click="fnToArticlesPage">
<text class="iconfont icon-angle-right text-size-s text-grey-darken-1"></text>
</view>
@ -63,7 +63,7 @@
</view>
<view v-if="articleList.length == 0" class="article-empty">
<tm-empty icon="icon-shiliangzhinengduixiang-"
label="博主还没有发表任何文章~"></tm-empty>
label="博主还没有发表任何内容~"></tm-empty>
</view>
<block v-else>
<view :class="globalAppSettings.layout.home">

View File

@ -29,7 +29,7 @@
<text class="value">{{ result.stats.upvote }}</text>
<text class="label">喜欢</text>
</view>
<view class="count-item">
<view v-if="postDetailConfig && postDetailConfig.showComment" class="count-item">
<text class="value">{{ result.stats.comment }}</text>
<text class="label">评论</text>
</view>

View File

@ -22,7 +22,7 @@
<!-- 空布局 -->
<tm-empty v-if="!queryParams.keyword" icon="icon-shiliangzhinengduixiang-" label="请输入关键词搜索"></tm-empty>
<tm-empty v-else icon="icon-shiliangzhinengduixiang-"
:label="`未搜到 ${queryParams.keyword} 相关文章`"></tm-empty>
:label="`未搜到 ${queryParams.keyword} 相关内容`"></tm-empty>
</view>
<block v-else>
<!-- 文章卡片 -->
@ -88,7 +88,7 @@ export default {
};
},
onLoad() {
this.fnSetPageTitle('文章列表');
this.fnSetPageTitle('内容搜索');
},
created() {
if (!this.queryParams.keyword) {