学生资助-手写签名改为从学生资料获取
This commit is contained in:
@@ -316,6 +316,7 @@
|
||||
<script>
|
||||
import { add, update, reApply, getOwnSign, getOwnFamily, getStudentInfo, getExtraInfo } from '@/api/finance/knzzZsg';
|
||||
import uploadFile from "@/plugins/upload.js"
|
||||
import { getUserProfile } from '@/api/system/user'
|
||||
import config from '@/config'
|
||||
|
||||
export default {
|
||||
@@ -427,11 +428,11 @@ export default {
|
||||
|
||||
// 并行调用多个API接口
|
||||
Promise.all([
|
||||
getOwnSign(),
|
||||
getUserProfile(),
|
||||
getOwnFamily(),
|
||||
getStudentInfo(),
|
||||
getExtraInfo()
|
||||
]).then(([signRes, familyRes, studentRes, extraRes]) => {
|
||||
]).then(([userProfileRes, familyRes, studentRes, extraRes]) => {
|
||||
uni.hideLoading();
|
||||
|
||||
// 处理学生基本信息
|
||||
@@ -483,8 +484,9 @@ export default {
|
||||
}
|
||||
|
||||
// 处理签名信息
|
||||
if (signRes.code === 200 && signRes.data) {
|
||||
// 这里可以处理签名信息,根据实际需求
|
||||
if (userProfileRes.code === 200 && userProfileRes.data && userProfileRes.data.signature) {
|
||||
this.formData.applySign = userProfileRes.data.signature;
|
||||
this.signImg = this.baseUrl + userProfileRes.data.signature;
|
||||
}
|
||||
}).catch(err => {
|
||||
uni.hideLoading();
|
||||
|
||||
Reference in New Issue
Block a user