zs 1 سال پیش
والد
کامیت
e4e88f5caa
2فایلهای تغییر یافته به همراه13 افزوده شده و 39 حذف شده
  1. 12 38
      pagesHome/notarization/detail.vue
  2. 1 1
      pagesHome/notarization/index.vue

+ 12 - 38
pagesHome/notarization/detail.vue

@@ -1,32 +1,10 @@
 <template>
 	<view class="content">
 		<view class="one">
-			<image class="image" :src="info.logo&&info.logo.length>0?info.logo[0].url:''">
-			</image>
+			业务详情
 		</view>
 		<view class="two">
-			<view class="name">{{info.zw||'暂无'}}: {{info.name||'暂无'}}</view>
-			<view class="other">
-				<text>姓名:</text>{{info.name||'暂无'}},<text>性别:</text>{{getDict(info.gender,'gender')}},<text>出生年月:</text>{{info.birth||'暂无'}}
-			</view>
-			<view class="other">
-				<text>职务:</text>{{info.zw||'暂无'}},<text>职称:</text>{{info.zc||'暂无'}}
-			</view>
-			<view class="other">
-				<text>执业证号:</text>{{info.number||'暂无'}}
-			</view>
-			<view class="list" v-if="info.work&&info.work.length>0">
-				<text>司法工作经历:</text>
-				<view class="list_1" v-for="(item, index) in info.work" :key="index" @click="toCommon(item.route)">
-					<view class="value">{{item.time}}</view>
-					<view class="value">{{item.address}}</view>
-					工作
-				</view>
-			</view>
-			<view class="list">
-				<text>业务专长:</text>
-				<view class="content">{{info.brief||'暂无'}}</view>
-			</view>
+			1
 		</view>
 	</view>
 </template>
@@ -42,10 +20,12 @@
 	const id = ref('');
 	const info = ref({});
 	// 字典表
-	const educationList = ref([]);
-	const genderList = ref([]);
+	const businessList = ref([]);
 	onLoad(async (options) => {
 		id.value = options && options.id
+		uni.setNavigationBarTitle({
+			title: options && options.name || '公证详情'
+		});
 		await searchConfig();
 		await searchOther();
 		await search();
@@ -57,17 +37,14 @@
 	// 其他查询信息
 	const searchOther = async () => {
 		let res;
-		// 性别
-		res = await $api(`dictData`, 'GET', { code: 'gender', is_use: '0' });
-		if (res.errcode === 0) genderList.value = res.data;
-		// 学历
-		res = await $api(`dictData`, 'GET', { code: 'education', is_use: '0' });
-		if (res.errcode === 0) educationList.value = res.data;
+		// 业务类型
+		res = await $api(`dictData`, 'GET', { code: 'business', is_use: '0' });
+		if (res.errcode === 0) businessList.value = res.data;
 	};
 	// 查询
 	const search = async () => {
 		if (id.value) {
-			const res = await $api(`personnel/${id.value}`, 'GET', {});
+			const res = await $api(`business/${id.value}`, 'GET', {});
 			if (res.errcode === 0) {
 				info.value = res.data
 			} else {
@@ -82,11 +59,8 @@
 	const getDict = (data, model) => {
 		let list;
 		switch (model) {
-			case 'gender':
-				list = genderList.value;
-				break;
-			case 'education':
-				list = educationList.value;
+			case 'business':
+				list = businessList.value;
 				break;
 			default:
 				break;

+ 1 - 1
pagesHome/notarization/index.vue

@@ -104,7 +104,7 @@
 	// 查看详情
 	const toView = (item) => {
 		uni.navigateTo({
-			url: `/pagesHome/notarization/detail?id=${item.id || item._id}`
+			url: `/pagesHome/notarization/detail?id=${item.id || item._id}&name=${item.name}`
 		})
 	};
 	// 分页