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

View File

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

View File

@ -6,10 +6,10 @@
</view> </view>
<view class="search-input round-12 pt-12 pb-12 flex pl-24" @click="fnToSearch"> <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> <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> </view>
<!-- #ifdef APP-PLUS || H5 --> <!-- #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 --> <!-- #endif -->
</tm-menubars> </tm-menubars>
<view v-if="loading !== 'success' && articleList.length===0" class="loading-wrap"> <view v-if="loading !== 'success' && articleList.length===0" class="loading-wrap">
@ -40,7 +40,7 @@
</view> </view>
<scroll-view class="category" scroll-x="true"> <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 v-if="categoryList.length == 0" class="cate-empty round-3 mr-5 flex flex-center text-grey">
还没有任何文章分类~ 还没有任何分类~
</view> </view>
<block v-else> <block v-else>
<view class="content" v-for="(category, index) in categoryList" :key="category.metadata.name" <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="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"> <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> <text class="iconfont icon-angle-right text-size-s text-grey-darken-1"></text>
</view> </view>
@ -63,7 +63,7 @@
</view> </view>
<view v-if="articleList.length == 0" class="article-empty"> <view v-if="articleList.length == 0" class="article-empty">
<tm-empty icon="icon-shiliangzhinengduixiang-" <tm-empty icon="icon-shiliangzhinengduixiang-"
label="博主还没有发表任何文章~"></tm-empty> label="博主还没有发表任何内容~"></tm-empty>
</view> </view>
<block v-else> <block v-else>
<view :class="globalAppSettings.layout.home"> <view :class="globalAppSettings.layout.home">

View File

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

View File

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