|
@ -9,8 +9,8 @@ |
|
|
</view> |
|
|
</view> |
|
|
<input v-if="item.type === 3" placeholder="请选择" name="input" disabled @click="showBox" v-model.trim="item.content"/> |
|
|
<input v-if="item.type === 3" placeholder="请选择" name="input" disabled @click="showBox" v-model.trim="item.content"/> |
|
|
<view v-if="item.type === 3" class="group-box" v-show="showview === 1"> |
|
|
<view v-if="item.type === 3" class="group-box" v-show="showview === 1"> |
|
|
<view v-for="(item,index) in groupList" :key="index" @click="choice(index)"> |
|
|
<view v-for="(item,index) in groupList" :key="index" @click="choice(item.value)"> |
|
|
{{ item }} |
|
|
{{ item.text }} |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
@ -74,7 +74,7 @@ |
|
|
<view class="grid col-4 grid-square flex-sub"> |
|
|
<view class="grid col-4 grid-square flex-sub"> |
|
|
<view class="solids" @click="jump(item.content)"> |
|
|
<view class="solids" @click="jump(item.content)"> |
|
|
<text class='cuIcon-cameraadd'></text> |
|
|
<text class='cuIcon-cameraadd'></text> |
|
|
<image class="img-box" :src="insuranceRecord"></image> |
|
|
<image class="img-box" :src="responsibilityRiskFile"></image> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
@ -128,13 +128,13 @@ import { mapState } from 'vuex' |
|
|
that.studentRecordId = data.studentRecordId |
|
|
that.studentRecordId = data.studentRecordId |
|
|
that.healthRecord = data.healthRecord |
|
|
that.healthRecord = data.healthRecord |
|
|
that.healthRecordId = data.healthRecordId |
|
|
that.healthRecordId = data.healthRecordId |
|
|
that.insuranceRecord = data.insuranceRecord |
|
|
that.responsibilityRiskFile = data.responsibilityRiskFile |
|
|
that.insuranceRecordId = data.insuranceRecordId |
|
|
that.responsibilityRiskFileId = data.responsibilityRiskFileId |
|
|
|
|
|
|
|
|
// for( var i=0; i<data1.length; i++){ |
|
|
// for( var i=0; i<data1.length; i++){ |
|
|
// if(data1[i].groupId - 0 === data.groupId - 0) { |
|
|
// if(data1[i].groupId - 0 === data.groupId - 0) { |
|
|
var num = data.groupRemark - 0 - 1 |
|
|
var num = data.groupRemark - 0 - 1 |
|
|
that.list[2].content = that.groupList[`${num}`] |
|
|
that.list[2].content = that.groupList[`${num}`].text |
|
|
// console.log(data1[i].groupName) |
|
|
// console.log(data1[i].groupName) |
|
|
// } |
|
|
// } |
|
|
// } |
|
|
// } |
|
@ -175,7 +175,8 @@ import { mapState } from 'vuex' |
|
|
}, { |
|
|
}, { |
|
|
title:'一寸证件照(图片大小不得大于2M)', |
|
|
title:'一寸证件照(图片大小不得大于2M)', |
|
|
type: 5, |
|
|
type: 5, |
|
|
tips: '用于生成参赛证及比赛证书', |
|
|
tips: '', |
|
|
|
|
|
// tips: '用于生成参赛证及比赛证书', |
|
|
content: 'idPhone' |
|
|
content: 'idPhone' |
|
|
}, { |
|
|
}, { |
|
|
title:'学籍证明/俱乐部证明(图片大小不得大于2M)', |
|
|
title:'学籍证明/俱乐部证明(图片大小不得大于2M)', |
|
@ -188,10 +189,10 @@ import { mapState } from 'vuex' |
|
|
tips: '', |
|
|
tips: '', |
|
|
content: 'healthRecord' |
|
|
content: 'healthRecord' |
|
|
}, { |
|
|
}, { |
|
|
title:'人身意外保险(图片大小不得大于2M)', |
|
|
title:'自愿参赛责任及风险告知书', |
|
|
type: 8, |
|
|
type: 8, |
|
|
tips: '', |
|
|
tips: '', |
|
|
content: 'insuranceRecord' |
|
|
content: 'responsibilityRiskFile' |
|
|
}], |
|
|
}], |
|
|
idCardFront: '', //身份证正面照片 或户口本照片 (文件类型) |
|
|
idCardFront: '', //身份证正面照片 或户口本照片 (文件类型) |
|
|
idCardFrontId: '', //身份证正面照片 或户口本照片 (文件类型) |
|
|
idCardFrontId: '', //身份证正面照片 或户口本照片 (文件类型) |
|
@ -203,12 +204,45 @@ import { mapState } from 'vuex' |
|
|
studentRecordId: '', //学籍证明(文件类型) |
|
|
studentRecordId: '', //学籍证明(文件类型) |
|
|
healthRecord: '', //体检证明(文件类型) |
|
|
healthRecord: '', //体检证明(文件类型) |
|
|
healthRecordId: '', //体检证明(文件类型) |
|
|
healthRecordId: '', //体检证明(文件类型) |
|
|
insuranceRecord: '', //保险证明(文件类型) |
|
|
responsibilityRiskFile: '', //保险证明(文件类型) |
|
|
insuranceRecordId: '', //保险证明(文件类型) |
|
|
responsibilityRiskFileId: '', //保险证明(文件类型) |
|
|
che: 0, |
|
|
che: 0, |
|
|
isId: 0, |
|
|
isId: 0, |
|
|
playerId: 0, |
|
|
playerId: 0, |
|
|
groupList: ['小学','中学','高职院校','本科院校','俱乐部'], |
|
|
groupList: [ |
|
|
|
|
|
{ |
|
|
|
|
|
text: '小学乙组', |
|
|
|
|
|
value: 0 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
text: '小学甲组', |
|
|
|
|
|
value: 1 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
text: '初中组', |
|
|
|
|
|
value: 2 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
text: '高中(职中)组', |
|
|
|
|
|
value: 3 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
text: '普通院校组', |
|
|
|
|
|
value: 4 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
text: '专科院校组', |
|
|
|
|
|
value: 5 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
text: '特教学校组', |
|
|
|
|
|
value: 6 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
text: '社会俱乐部组', |
|
|
|
|
|
value: 7 |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
groupRemark: 0, |
|
|
groupRemark: 0, |
|
|
showview: 0 |
|
|
showview: 0 |
|
|
} |
|
|
} |
|
@ -303,34 +337,6 @@ import { mapState } from 'vuex' |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// urlTobase64(url,type){ |
|
|
|
|
|
// const that = this |
|
|
|
|
|
// uni.request({ |
|
|
|
|
|
// url: url, |
|
|
|
|
|
// method: 'GET', |
|
|
|
|
|
// responseType: 'arraybuffer', |
|
|
|
|
|
// success: async res => { |
|
|
|
|
|
// let base64 = wx.arrayBufferToBase64(res.data); //把arraybuffer转成base64 |
|
|
|
|
|
// base64 = 'data:image/jpeg;base64,' + base64; //不加上这串字符,在页面无法显示 |
|
|
|
|
|
// // console.log(base64); |
|
|
|
|
|
|
|
|
|
|
|
// try{ |
|
|
|
|
|
// const params = { |
|
|
|
|
|
// fileBase64: base64 |
|
|
|
|
|
// } |
|
|
|
|
|
// const data = await photoBase64(params) |
|
|
|
|
|
// // console.log(data) |
|
|
|
|
|
|
|
|
|
|
|
// // console.log(that[`${type}Id`]) |
|
|
|
|
|
// // console.log(that.idCardFrontId) |
|
|
|
|
|
// // console.log(`${type}Id`) |
|
|
|
|
|
// }catch(e){ |
|
|
|
|
|
// //TODO handle the exception |
|
|
|
|
|
// // console.log(e) |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
|
|
|
// }); |
|
|
|
|
|
// }, |
|
|
|
|
|
showBox() { |
|
|
showBox() { |
|
|
const that = this |
|
|
const that = this |
|
|
if (that.showview === 0) { |
|
|
if (that.showview === 0) { |
|
@ -341,7 +347,7 @@ import { mapState } from 'vuex' |
|
|
}, |
|
|
}, |
|
|
choice(index) { |
|
|
choice(index) { |
|
|
const that = this |
|
|
const that = this |
|
|
that.list[2].content = that.groupList[`${index}`] |
|
|
that.list[2].content = that.groupList[`${index}`].text |
|
|
that.groupRemark = index - 0 + 1 |
|
|
that.groupRemark = index - 0 + 1 |
|
|
that.showview = 0 |
|
|
that.showview = 0 |
|
|
}, |
|
|
}, |
|
@ -395,9 +401,9 @@ import { mapState } from 'vuex' |
|
|
icon: 'none', |
|
|
icon: 'none', |
|
|
duration: 1500 |
|
|
duration: 1500 |
|
|
}) |
|
|
}) |
|
|
} else if (that.insuranceRecordId === '') { |
|
|
} else if (that.responsibilityRiskFileId === '') { |
|
|
uni.showToast({ |
|
|
uni.showToast({ |
|
|
title: '请上传保险证明', |
|
|
title: '自愿参赛责任及风险告知书', |
|
|
icon: 'none', |
|
|
icon: 'none', |
|
|
duration: 1500 |
|
|
duration: 1500 |
|
|
}) |
|
|
}) |
|
@ -415,7 +421,7 @@ import { mapState } from 'vuex' |
|
|
idPhone: that.idPhoneId,//一寸证件照(文件类型) |
|
|
idPhone: that.idPhoneId,//一寸证件照(文件类型) |
|
|
studentRecord: that.studentRecordId,//学籍证明(文件类型) |
|
|
studentRecord: that.studentRecordId,//学籍证明(文件类型) |
|
|
healthRecord: that.healthRecordId,//体检证明(文件类型) |
|
|
healthRecord: that.healthRecordId,//体检证明(文件类型) |
|
|
insuranceRecord: that.insuranceRecordId//保险证明(文件类型) |
|
|
responsibilityRiskFile: that.responsibilityRiskFileId//保险证明(文件类型) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
const data = await saveplayer(params) |
|
|
const data = await saveplayer(params) |
|
@ -502,9 +508,9 @@ import { mapState } from 'vuex' |
|
|
icon: 'none', |
|
|
icon: 'none', |
|
|
duration: 1500 |
|
|
duration: 1500 |
|
|
}) |
|
|
}) |
|
|
} else if (that.insuranceRecordId === '') { |
|
|
} else if (that.responsibilityRiskFileId === '') { |
|
|
uni.showToast({ |
|
|
uni.showToast({ |
|
|
title: '请上传保险证明', |
|
|
title: '自愿参赛责任及风险告知书', |
|
|
icon: 'none', |
|
|
icon: 'none', |
|
|
duration: 1500 |
|
|
duration: 1500 |
|
|
}) |
|
|
}) |
|
@ -523,7 +529,7 @@ import { mapState } from 'vuex' |
|
|
idPhone: that.idPhoneId,//一寸证件照(文件类型) |
|
|
idPhone: that.idPhoneId,//一寸证件照(文件类型) |
|
|
studentRecord: that.studentRecordId,//学籍证明(文件类型) |
|
|
studentRecord: that.studentRecordId,//学籍证明(文件类型) |
|
|
healthRecord: that.healthRecordId,//体检证明(文件类型) |
|
|
healthRecord: that.healthRecordId,//体检证明(文件类型) |
|
|
insuranceRecord: that.insuranceRecordId//保险证明(文件类型) |
|
|
responsibilityRiskFile: that.responsibilityRiskFileId//保险证明(文件类型) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
const data = await saveplayer(params) |
|
|
const data = await saveplayer(params) |
|
|