|
@@ -1,8 +1,7 @@
|
|
|
<template>
|
|
|
<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>
|
|
|
+ <u-tabs :list="tabList" key-name="label" :current="curNow" @click="sectionChange"></u-tabs>
|
|
|
</view>
|
|
|
<view class="bottom">
|
|
|
<scroll-view scroll-y="true" class="scroll-view" @scrolltolower="toPage">
|
|
@@ -34,12 +33,12 @@
|
|
|
import { onShow, onPullDownRefresh } from "@dcloudio/uni-app";
|
|
|
// 请求接口
|
|
|
const $api = getCurrentInstance()?.appContext.config.globalProperties.$api;
|
|
|
- const $config = getCurrentInstance()?.appContext.config.globalProperties.$config;
|
|
|
// 基本信息
|
|
|
- const config = ref({ logoUrl: [] });
|
|
|
+ const config = ref({ logo: [] });
|
|
|
// 查询
|
|
|
const searchInfo = ref({});
|
|
|
const tabList = ref([{ label: "全部", value: '0' }, { label: "民事公证", value: '0' }, { label: "经济公证", value: '0' }, { label: "涉外(出国)公证", value: '0' }, { label: "其他公证项目", value: '0' }]);
|
|
|
+ const curNow = ref(0);
|
|
|
// 列表
|
|
|
const list = ref([]);
|
|
|
const total = ref(0);
|
|
@@ -95,12 +94,6 @@
|
|
|
});
|
|
|
}
|
|
|
};
|
|
|
- // 搜索
|
|
|
- const toChange = () => {
|
|
|
- uni.navigateTo({
|
|
|
- url: `/pagesHome/type/index`
|
|
|
- })
|
|
|
- };
|
|
|
// 跳转
|
|
|
const sectionChange = async (item) => {
|
|
|
if (item.index != 0) searchInfo.value.type = item.value
|