From 13d0fc75a48f91cb1e6efa124d5f838b382ea53c Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 18 七月 2025 18:59:45 +0800
Subject: [PATCH] 调接口

---
 small-program/pages/employment-certification/employment-certification.vue |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 46 insertions(+), 0 deletions(-)

diff --git a/small-program/pages/employment-certification/employment-certification.vue b/small-program/pages/employment-certification/employment-certification.vue
index 5b178d8..61d1915 100644
--- a/small-program/pages/employment-certification/employment-certification.vue
+++ b/small-program/pages/employment-certification/employment-certification.vue
@@ -208,8 +208,14 @@
 				bgImg: require('@/static/image/bg_renzheng_yonggong@2x.png'),
 				title: '鐢ㄦ埛璁よ瘉',
 				flag: null,
+<<<<<<< HEAD
 				isCompany: false,
 				loading: false,
+=======
+				isCompany:false,
+				loading:false,
+				info: {},
+>>>>>>> 66fcf61061d6d275c1848df5d3f8e0082f6b02ba
 				form: {
 					"companyName": "",
 					authType: 0,
@@ -240,7 +246,12 @@
 			var flag = options.flag
 			this.flag = flag
 			this.initFormData()
+<<<<<<< HEAD
 			switch (flag) {
+=======
+			this.getApplyData()
+			switch(flag){
+>>>>>>> 66fcf61061d6d275c1848df5d3f8e0082f6b02ba
 				case '1':
 					this.title = '璐ц繍璁よ瘉'
 					this.bgImg = require('@/static/image/bg_renzheng_huoyun@2x.png')
@@ -431,8 +442,43 @@
 					}
 				})
 			},
+<<<<<<< HEAD
 			uploadImg(index) {
 				var that = this
+=======
+			getApplyData(){
+				var that = this 
+				var param ={ type:that.flag}
+				this.$u.api.getIdentityInfo(param).then(res =>{
+					if(res.code ===200){
+						if(res.data && res.data.id){
+							that.info = res.data
+							for (const key in that.form) {
+							  that.form[key] = that.info[key]
+							}
+							if(that.info.authType == 1){
+								that.form.img1Full = that.info.imgList.length>0?that.info.imgList[0]:null
+								that.form.img2Full = that.info.imgList.length>1?that.info.imgList[1]:null
+								that.form.img3Full = that.info.imgList.length>2?that.info.imgList[2]:null
+								that.form.img4Full = that.info.imgList.length>3?that.info.imgList[3]:null
+							}else{
+								that.form.img1= null
+								that.form.img1 = null
+								that.form.img2 = null
+								that.form.img2Full = null
+								that.form.img11 = that.info.img1
+								that.form.img11Full = that.info.imgList.length>0?that.info.imgList[0]:null
+								that.form.img21 = that.info.img2
+								that.form.img21Full = that.info.imgList.length>1?that.info.imgList[1]:null
+							}
+						}
+						
+					}
+				 }) 
+			},
+			uploadImg(index){
+				var that =this
+>>>>>>> 66fcf61061d6d275c1848df5d3f8e0082f6b02ba
 				uni.chooseImage({
 					count: 1, // 榛樿9
 					sizeType: ['original', 'compressed'],

--
Gitblit v1.9.3