|
@@ -90,6 +90,7 @@ import tmIcons from '@/tm-vuetify/components/tm-icons/tm-icons.vue';
|
|
|
import tmEmpty from '@/tm-vuetify/components/tm-empty/tm-empty.vue';
|
|
import tmEmpty from '@/tm-vuetify/components/tm-empty/tm-empty.vue';
|
|
|
|
|
|
|
|
import eSwiper from '@/components/e-swiper/e-swiper.vue';
|
|
import eSwiper from '@/components/e-swiper/e-swiper.vue';
|
|
|
|
|
+import qs from 'qs'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
@@ -208,10 +209,16 @@ export default {
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+ const paramsStr = qs.stringify(this.queryParams, {
|
|
|
|
|
+ allowDots: true,
|
|
|
|
|
+ encodeValuesOnly: true,
|
|
|
|
|
+ skipNulls: true,
|
|
|
|
|
+ encode: true,
|
|
|
|
|
+ arrayFormat: 'repeat'
|
|
|
|
|
+ })
|
|
|
uni.request({
|
|
uni.request({
|
|
|
- url: this.$baseApiUrl + '/apis/api.content.halo.run/v1alpha1/posts',
|
|
|
|
|
|
|
+ url: this.$baseApiUrl + '/apis/api.content.halo.run/v1alpha1/posts?'+ paramsStr,
|
|
|
method: 'GET',
|
|
method: 'GET',
|
|
|
- params: this.queryParams,
|
|
|
|
|
success: (res) => {
|
|
success: (res) => {
|
|
|
this.bannerList = _format(res.data.items);
|
|
this.bannerList = _format(res.data.items);
|
|
|
},
|
|
},
|
|
@@ -239,10 +246,16 @@ export default {
|
|
|
}
|
|
}
|
|
|
this.loadMoreText = '加载中...';
|
|
this.loadMoreText = '加载中...';
|
|
|
|
|
|
|
|
|
|
+ const paramsStr = qs.stringify(this.queryParams, {
|
|
|
|
|
+ allowDots: true,
|
|
|
|
|
+ encodeValuesOnly: true,
|
|
|
|
|
+ skipNulls: true,
|
|
|
|
|
+ encode: true,
|
|
|
|
|
+ arrayFormat: 'repeat'
|
|
|
|
|
+ })
|
|
|
uni.request({
|
|
uni.request({
|
|
|
- url: this.$baseApiUrl + '/apis/api.content.halo.run/v1alpha1/posts?',
|
|
|
|
|
|
|
+ url: this.$baseApiUrl + '/apis/api.content.halo.run/v1alpha1/posts?' + paramsStr,
|
|
|
method: 'GET',
|
|
method: 'GET',
|
|
|
- params: this.queryParams,
|
|
|
|
|
success: (res) => {
|
|
success: (res) => {
|
|
|
const data = res.data;
|
|
const data = res.data;
|
|
|
this.result.hasNext = data.hasNext;
|
|
this.result.hasNext = data.hasNext;
|