update: 修改我的页面文章归档的显示策略

This commit is contained in:
小莫唐尼 2024-10-28 18:28:56 +08:00
parent 2b717ad449
commit e8edc03526

View File

@ -84,25 +84,21 @@
</template>
<script>
import {
checkHasAdminLogin
} from '@/utils/auth.js';
import CheckAppUpdate from '@/uni_modules/uni-upgrade-center-app/utils/check-update';
import {
CheckWxUpdate
} from '@/utils/update.js';
import {checkHasAdminLogin} from '@/utils/auth.js';
import CheckAppUpdate from '@/uni_modules/uni-upgrade-center-app/utils/check-update';
import {CheckWxUpdate} from '@/utils/update.js';
import tmGrouplist from '@/tm-vuetify/components/tm-grouplist/tm-grouplist.vue';
import tmListitem from '@/tm-vuetify/components/tm-listitem/tm-listitem.vue';
import tmTranslate from '@/tm-vuetify/components/tm-translate/tm-translate.vue';
import tmPoup from '@/tm-vuetify/components/tm-poup/tm-poup.vue';
import tmMore from '@/tm-vuetify/components/tm-more/tm-more.vue';
import tmFlop from '@/tm-vuetify/components/tm-flop/tm-flop.vue';
import tmButton from '@/tm-vuetify/components/tm-button/tm-button.vue';
import tmIcons from '@/tm-vuetify/components/tm-icons/tm-icons.vue';
import wave from '@/components/wave/wave.vue';
import tmGrouplist from '@/tm-vuetify/components/tm-grouplist/tm-grouplist.vue';
import tmListitem from '@/tm-vuetify/components/tm-listitem/tm-listitem.vue';
import tmTranslate from '@/tm-vuetify/components/tm-translate/tm-translate.vue';
import tmPoup from '@/tm-vuetify/components/tm-poup/tm-poup.vue';
import tmMore from '@/tm-vuetify/components/tm-more/tm-more.vue';
import tmFlop from '@/tm-vuetify/components/tm-flop/tm-flop.vue';
import tmButton from '@/tm-vuetify/components/tm-button/tm-button.vue';
import tmIcons from '@/tm-vuetify/components/tm-icons/tm-icons.vue';
import wave from '@/components/wave/wave.vue';
export default {
export default {
components: {
tmGrouplist,
tmListitem,
@ -181,16 +177,16 @@
// #ifdef MP-WEIXIN
_isWx = true;
// #endif
this.navList = [{
this.navList = [
{
key: 'archives',
title: '文章归档',
title: this.haloConfigs.basicConfig.auditModeEnabled ? '内容归档' : '文章归档',
leftIcon: 'halocoloricon-classify',
leftIconColor: 'red',
rightText: '已归档的文章',
rightText: this.haloConfigs.basicConfig.auditModeEnabled ? '已归档的内容' : '已归档的文章',
path: '/pagesA/archives/archives',
isAdmin: false,
type: 'page',
// show: !this.haloConfigs.basicConfig.auditModeEnabled
show: true
}, {
key: 'love',
@ -292,28 +288,7 @@
// type: 'poup',
// show: true
// },
// {
// key: 'setting',
// title: '',
// leftIcon: 'icon-cog',
// leftIconColor: 'indigo',
// rightText: ``,
// path: '/pagesA/setting/setting',
// isAdmin: false,
// type: 'page',
// show: false
// },
// {
// key: 'admin',
// title: '',
// leftIcon: 'icon-lock',
// leftIconColor: 'gray',
// rightText: '',
// path: '/pagesB/admin/admin',
// isAdmin: true,
// type: 'page',
// show: false
// }
];
},
fnGetData() {
@ -363,7 +338,8 @@
url: '/pagesB/login/login'
});
})
.catch(err => {});
.catch(err => {
});
return;
}
@ -384,7 +360,8 @@
this.navList.find(x => x.key == 'cache').rightText =
uni.getStorageInfoSync().currentSize + 'KB';
})
.catch(err => {});
.catch(err => {
});
break;
case 'update':
// #ifdef APP-PLUS
@ -443,16 +420,16 @@
});
}
}
};
};
</script>
<style scoped lang="scss">
.app-page {
.app-page {
width: 100vw;
min-height: 100vh;
}
}
.blogger-info {
.blogger-info {
position: relative;
width: 100%;
height: 600rpx;
@ -499,9 +476,9 @@
mix-blend-mode: screen;
height: 100rpx;
}
}
}
.profile-card {
.profile-card {
position: relative;
background-color: #fff;
overflow: hidden;
@ -537,20 +514,20 @@
}
}
.photos-img+.photos-img {
.photos-img + .photos-img {
margin-left: 12rpx;
}
}
}
}
.statistics-wrap {
.statistics-wrap {
box-shadow: 0rpx 2rpx 24rpx rgba(0, 0, 0, 0.03);
border-radius: 0rpx 0rpx 24rpx 24rpx;
overflow: hidden;
.statistics {
&.has-solid {
.item+.item {
.item + .item {
border-left: 2rpx solid #fafafa;
}
}
@ -569,9 +546,9 @@
}
}
}
}
}
.quick-nav {
.quick-nav {
background-color: #fff;
box-sizing: border-box;
box-shadow: 0rpx 2rpx 24rpx rgba(0, 0, 0, 0.03);
@ -584,18 +561,18 @@
border-radius: 50%;
font-size: 80rpx;
}
}
}
.nav-wrap {
.nav-wrap {
box-shadow: 0rpx 2rpx 24rpx rgba(0, 0, 0, 0.03);
background-color: #fff;
}
}
.copyright {
.copyright {
color: #c0c4c7;
}
}
.right-value-btn {
.right-value-btn {
background-color: transparent;
border: none;
padding: 0;
@ -610,5 +587,5 @@
border-radius: 0;
transform: initial;
}
}
}
</style>