1
0
duplikat dari https://github.com/ialley-workshop-open/uni-halo.git synced 2026-06-12 21:29:31 +08:00

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

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