zs 1 rok temu
rodzic
commit
cf83ceb006
1 zmienionych plików z 8 dodań i 1 usunięć
  1. 8 1
      pagesHome/notarization/index.vue

+ 8 - 1
pagesHome/notarization/index.vue

@@ -2,6 +2,7 @@
 	<view class="content">
 		<view class="top">
 			<u-search shape="square" :show-action="false" placeholder="搜索公证名称" @focus="toChange"></u-search>
+			<u-tabs :list="tabList" key-name="label" @click="sectionChange"></u-tabs>
 		</view>
 		<view class="bottom">
 			<scroll-view scroll-y="true" class="scroll-view" @scrolltolower="toPage">
@@ -36,6 +37,7 @@
 	const $config = getCurrentInstance()?.appContext.config.globalProperties.$config;
 	// 基本信息
 	const config = ref({ logoUrl: [] });
+	const tabList = ref([{ label: "全部", value: '0' }, { label: "民事公证", value: '0' }, { label: "经济公证", value: '0' }, { label: "涉外(出国)公证", value: '0' }, { label: "其他公证项目", value: '0' }]);
 	// 列表
 	const list = ref([]);
 	const total = ref(0);
@@ -83,6 +85,11 @@
 			url: `/pagesHome/type/index`
 		})
 	};
+	// 跳转
+	const sectionChange = (index) => {
+		// curNow.value = index;
+		console.log(index);
+	};
 	// 查看详情
 	const toView = (item) => {
 		uni.navigateTo({
@@ -144,7 +151,7 @@
 					color: var(--mainColor);
 					font-weight: bold;
 					border: 1px solid var(--f5Color);
-					background: #2979ff;
+					background: var(--fFFColor);
 				}
 
 				.right {