学生资助-手写签名改为从学生资料获取
This commit is contained in:
@@ -262,6 +262,7 @@
|
||||
<script>
|
||||
import { addApply, updateApply, getApply, getOwnFamily, getOwnKnrd, getOwnExtraInfo, getOwnInfo, reApply } from '@/api/finance/special';
|
||||
import uploadFile from "@/plugins/upload.js"
|
||||
import { getUserProfile } from '@/api/system/user'
|
||||
import config from '@/config'
|
||||
|
||||
export default {
|
||||
@@ -456,6 +457,17 @@ export default {
|
||||
this.formData.familyAddr = extraData.xjtdz || '';
|
||||
this.formData.postCode = extraData.jtyzbm || '';
|
||||
}
|
||||
// 获取用户签名
|
||||
const userProfileRes = await getUserProfile();
|
||||
if (userProfileRes.code === 200 && userProfileRes.data) {
|
||||
const signature = userProfileRes.data.signature;
|
||||
if (signature) {
|
||||
// 设置表单签名字段
|
||||
this.formData.applySign = signature;
|
||||
// 构造完整的图片URL
|
||||
this.signImg = this.baseUrl + signature;
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('获取用户信息失败:', error);
|
||||
}
|
||||
@@ -772,7 +784,7 @@ export default {
|
||||
this.goBack();
|
||||
}, 1500);
|
||||
} else {
|
||||
uni.showToast({ title: res.message || '提交失败', icon: 'none' });
|
||||
uni.showToast({ title: res.msg || '提交失败', icon: 'none' });
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('提交申请失败:', error);
|
||||
|
||||
Reference in New Issue
Block a user