From 5de6699e1b487abed51e4a952542d5a0b739a877 Mon Sep 17 00:00:00 2001
From: tianyi <13521030702@163.com>
Date: Wed, 1 Apr 2026 18:06:48 +0800
Subject: [PATCH] 11
---
components/tab-bar/postList.vue | 291 ++++++++++++++++++++++++++++++--
1 file changed, 275 insertions(+), 16 deletions(-)
diff --git a/components/tab-bar/postList.vue b/components/tab-bar/postList.vue
index 0264831..a0d0f0e 100644
--- a/components/tab-bar/postList.vue
+++ b/components/tab-bar/postList.vue
@@ -1,15 +1,63 @@
+
-
+
-
-
+
+
搜索
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+
+
+
+ 更多分类
+
+ 点击进入分类
+
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+
+ {{item.shopName | sliceMsg}}
+
+
+
+
+
+
+
@@ -17,21 +65,96 @@
export default {
data() {
return {
+ shopList: [{
+ shopName: '高徒课堂',
+ img: 'https://jewel-shop.oss-cn-beijing.aliyuncs.com/6c4ab92a43c842d8bb22035bce1f65cc.png'
+ }, {
+ shopName: '赵一鸣',
+ img: 'https://jewel-shop.oss-cn-beijing.aliyuncs.com/6c4ab92a43c842d8bb22035bce1f65cc.png'
+ }, {
+ shopName: '蜜雪冰城',
+ img: 'https://jewel-shop.oss-cn-beijing.aliyuncs.com/6c4ab92a43c842d8bb22035bce1f65cc.png'
+ }, {
+ shopName: '怂柠',
+ img: 'https://jewel-shop.oss-cn-beijing.aliyuncs.com/6c4ab92a43c842d8bb22035bce1f65cc.png'
+ }, {
+ shopName: '麻辣烫酸辣粉',
+ img: 'https://jewel-shop.oss-cn-beijing.aliyuncs.com/6c4ab92a43c842d8bb22035bce1f65cc.png'
+ }, {
+ shopName: '鲸鱼AI教育',
+ img: 'https://jewel-shop.oss-cn-beijing.aliyuncs.com/6c4ab92a43c842d8bb22035bce1f65cc.png'
+ }],
+ showMoreTab: false,
+ tabIndex: 0,
+ tabList: [{
+ name: '兼职',
+ index: 0
+ }, {
+ name: '广告',
+ index: 1
+ }, {
+ name: '活动',
+ index: 2
+ }, {
+ name: '美妆个护',
+ index: 3
+ }, {
+ name: '考学职称',
+ index: 4
+ }, {
+ name: '技能服务',
+ index: 5
+ }, {
+ name: '省钱神券',
+ index: 6
+ }, {
+ name: '推荐',
+ index: 7
+ }, {
+ name: '摄影',
+ index: 8
+ }, {
+ name: '吃饭',
+ index: 8
+ }, {
+ name: '电影',
+ index: 8
+ }, {
+ name: '唱歌',
+ index: 8
+ }, {
+ name: '美妆个护',
+ index: 8
+ }, {
+ name: '考学职称',
+ index: 8
+ }, {
+ name: '技能服务',
+ index: 8
+ }, {
+ name: '二手旧物',
+ index: 8
+ }],
menuButtonInfo: {}
}
},
- props:{
-
+ filters:{
+ sliceMsg(val) {
+ return val.slice(0, 4);
+ }
+ },
+ props: {
+
},
watch: {
-
+
},
onReachBottom() {
if (this.searchForm.pageNumber >= this.totalPages) return;
// this.status = 'loading';
this.searchForm.pageNumber++;
this.getShopList();
-
+
},
methods: {
init() {
@@ -39,14 +162,17 @@
this.menuButtonInfo = uni.getMenuButtonBoundingClientRect()
this.$forceUpdate()
},
- getShopList(){
-
+ checkTab(index) {
+ this.tabIndex = index
+ },
+ getShopList() {
+
}
}
}
-
\ No newline at end of file