From 71a103d6f5c55136f40535bccf23bc6129e342f7 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期四, 21 八月 2025 12:00:58 +0800
Subject: [PATCH] 前端
---
small-program/pages/employment-certification/employment-certification.vue | 48 ++++++++++++++++++++++++++++++++++++++++--------
1 files changed, 40 insertions(+), 8 deletions(-)
diff --git a/small-program/pages/employment-certification/employment-certification.vue b/small-program/pages/employment-certification/employment-certification.vue
index 5b178d8..b633584 100644
--- a/small-program/pages/employment-certification/employment-certification.vue
+++ b/small-program/pages/employment-certification/employment-certification.vue
@@ -208,8 +208,10 @@
bgImg: require('@/static/image/bg_renzheng_yonggong@2x.png'),
title: '鐢ㄦ埛璁よ瘉',
flag: null,
- isCompany: false,
- loading: false,
+
+ isCompany:false,
+ loading:false,
+ info: {},
form: {
"companyName": "",
authType: 0,
@@ -240,7 +242,8 @@
var flag = options.flag
this.flag = flag
this.initFormData()
- switch (flag) {
+ this.getApplyData()
+ switch(flag){
case '1':
this.title = '璐ц繍璁よ瘉'
this.bgImg = require('@/static/image/bg_renzheng_huoyun@2x.png')
@@ -340,15 +343,15 @@
tmplIds: ['4H9ztG4E9BxJLwMuYSZ6oiM7yb4KX7u7bYhkhYJP0-Y'],
success(res) {
console.log('鎻愪氦鍙傛暟锛�', param)
- this.$u.api.applyForIdentity(param).then(res => {
+ that.$u.api.applyForIdentity(param).then(res => {
if (res.code === 200) {
uni.showToast({
title: res.message || '鐢宠鎴愬姛 ',
icon: "none",
duration: 2000
});
- uni.navigateBack({
- delta: 1
+ uni.switchTab({
+ url:'/pages/mine/mine'
});
}
}).finally(() => {
@@ -430,9 +433,38 @@
})
}
})
+ },
+ 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
+ uploadImg(index){
+ var that =this
uni.chooseImage({
count: 1, // 榛樿9
sizeType: ['original', 'compressed'],
--
Gitblit v1.9.3