kopia lustrzana
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-06-12 13:19:31 +08:00
update: 移除node_modules依赖
This commit is contained in:
@@ -174,38 +174,37 @@ export default {
|
||||
// #ifdef MP-WEIXIN
|
||||
_isWx = true;
|
||||
// #endif
|
||||
this.navList = [
|
||||
{
|
||||
key: 'archives',
|
||||
title: '文章归档',
|
||||
leftIcon: 'halocoloricon-classify',
|
||||
leftIconColor: 'red',
|
||||
rightText: '已归档的文章',
|
||||
path: '/pagesA/archives/archives',
|
||||
isAdmin: false,
|
||||
type: 'page',
|
||||
show: false
|
||||
}, {
|
||||
key: 'love',
|
||||
title: '恋爱日记',
|
||||
leftIcon: 'halocoloricon-attent',
|
||||
leftIconColor: 'red',
|
||||
rightText: '甜蜜恋人的专属',
|
||||
path: '/pagesA/love/love',
|
||||
isAdmin: false,
|
||||
type: 'page',
|
||||
show: this.haloConfigs.loveConfig.loveEnabled
|
||||
}, {
|
||||
key: 'disclaimers',
|
||||
title: '友情链接',
|
||||
leftIcon: 'icon-lianjie',
|
||||
leftIconColor: 'blue',
|
||||
rightText: '看看朋友们吧',
|
||||
path: '/pagesA/friend-links/friend-links',
|
||||
isAdmin: false,
|
||||
type: 'page',
|
||||
show: true
|
||||
},
|
||||
this.navList = [{
|
||||
key: 'archives',
|
||||
title: '文章归档',
|
||||
leftIcon: 'halocoloricon-classify',
|
||||
leftIconColor: 'red',
|
||||
rightText: '已归档的文章',
|
||||
path: '/pagesA/archives/archives',
|
||||
isAdmin: false,
|
||||
type: 'page',
|
||||
show: false
|
||||
}, {
|
||||
key: 'love',
|
||||
title: '恋爱日记',
|
||||
leftIcon: 'halocoloricon-attent',
|
||||
leftIconColor: 'red',
|
||||
rightText: '甜蜜恋人的专属',
|
||||
path: '/pagesA/love/love',
|
||||
isAdmin: false,
|
||||
type: 'page',
|
||||
show: this.haloConfigs.loveConfig.loveEnabled
|
||||
}, {
|
||||
key: 'disclaimers',
|
||||
title: '友情链接',
|
||||
leftIcon: 'icon-lianjie',
|
||||
leftIconColor: 'blue',
|
||||
rightText: '看看朋友们吧',
|
||||
path: '/pagesA/friend-links/friend-links',
|
||||
isAdmin: false,
|
||||
type: 'page',
|
||||
show: true
|
||||
},
|
||||
{
|
||||
key: 'disclaimers',
|
||||
title: '免责声明',
|
||||
@@ -400,9 +399,9 @@ export default {
|
||||
break;
|
||||
}
|
||||
} else if (type == 'page') {
|
||||
this.$Router.push({
|
||||
path: path
|
||||
});
|
||||
uni.navigateTo({
|
||||
url: path
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -90,7 +90,6 @@ import tmIcons from '@/tm-vuetify/components/tm-icons/tm-icons.vue';
|
||||
import tmEmpty from '@/tm-vuetify/components/tm-empty/tm-empty.vue';
|
||||
|
||||
import eSwiper from '@/components/e-swiper/e-swiper.vue';
|
||||
import qs from 'qs'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@@ -209,15 +208,8 @@ export default {
|
||||
});
|
||||
};
|
||||
|
||||
const paramsStr = qs.stringify(this.queryParams, {
|
||||
allowDots: true,
|
||||
encodeValuesOnly: true,
|
||||
skipNulls: true,
|
||||
encode: true,
|
||||
arrayFormat: 'repeat'
|
||||
})
|
||||
uni.request({
|
||||
url: this.$baseApiUrl + '/apis/api.content.halo.run/v1alpha1/posts?' + paramsStr,
|
||||
url: this.$baseApiUrl + '/apis/api.content.halo.run/v1alpha1/posts',
|
||||
method: 'GET',
|
||||
params: this.queryParams,
|
||||
success: (res) => {
|
||||
@@ -241,25 +233,14 @@ export default {
|
||||
},
|
||||
// 文章列表
|
||||
fnGetArticleList() {
|
||||
// uni.showLoading({
|
||||
// mask: true,
|
||||
// title: '加载中...'
|
||||
// });
|
||||
// 设置状态为加载中
|
||||
if (!this.isLoadMore) {
|
||||
this.loading = 'loading';
|
||||
}
|
||||
this.loadMoreText = '加载中...';
|
||||
|
||||
const paramsStr = qs.stringify(this.queryParams, {
|
||||
allowDots: true,
|
||||
encodeValuesOnly: true,
|
||||
skipNulls: true,
|
||||
encode: true,
|
||||
arrayFormat: 'repeat'
|
||||
})
|
||||
uni.request({
|
||||
url: this.$baseApiUrl + '/apis/api.content.halo.run/v1alpha1/posts?' + paramsStr,
|
||||
url: this.$baseApiUrl + '/apis/api.content.halo.run/v1alpha1/posts?',
|
||||
method: 'GET',
|
||||
params: this.queryParams,
|
||||
success: (res) => {
|
||||
|
||||
Reference in New Issue
Block a user