This commit is contained in:
parent
ce56d02e9f
commit
dbfd20f2a0
|
@ -9,13 +9,13 @@
|
|||
<view class="data_itm_box">
|
||||
|
||||
<u-form-item prop="userInfo.name" ref="item1" class="data_itm">
|
||||
<text class="label_t">姓名</text>
|
||||
<text class="label_t"><text style="color: #99241B;">*</text>姓名</text>
|
||||
<u--input class="p32" placeholder="请填写姓名" inputAlign="right" clearable
|
||||
v-model="model1.userInfo.name" border="none"></u--input>
|
||||
</u-form-item>
|
||||
|
||||
<u-form-item prop="userInfo.sex" ref="item1" @click="showSex=true" class="data_itm">
|
||||
<text class="label_t">性别</text>
|
||||
<text class="label_t"><text style="color: #99241B;">*</text>性别</text>
|
||||
<u--input class="p32" placeholder="请填选择性别" v-model="model1.userInfo.sex" readonly
|
||||
inputAlign="right" border="none">
|
||||
<u-icon slot="suffix" name="arrow-right"></u-icon>
|
||||
|
@ -24,7 +24,7 @@
|
|||
</u-form-item>
|
||||
|
||||
<u-form-item ref="item1" @click="showBirthday=true" class="data_itm">
|
||||
<text class="label_t">出生日期</text>
|
||||
<text class="label_t"><text style="color: #99241B;">*</text>出生日期</text>
|
||||
<u--input class="p32" placeholder="请填选择出生日期" v-model="model1.userInfo.birthday" readonly
|
||||
inputAlign="right" border="none">
|
||||
<u-icon slot="suffix" name="calendar"></u-icon>
|
||||
|
@ -33,7 +33,7 @@
|
|||
</u-form-item>
|
||||
|
||||
<u-form-item prop="userInfo.idCOde" ref="item1" class="data_itm">
|
||||
<text class="label_t">身份证号</text>
|
||||
<text class="label_t"><text style="color: #99241B;">*</text>身份证号</text>
|
||||
<u--input class="p32" placeholder="请输入身份证号码" inputAlign="right" clearable
|
||||
v-model="model1.userInfo.idCOde" border="none"></u--input>
|
||||
</u-form-item>
|
||||
|
@ -43,25 +43,23 @@
|
|||
<view class="data_itm_box">
|
||||
|
||||
<!-- <u-form-item ref="item1" @click="zuShow=true" class="data_itm"> -->
|
||||
<u-form-item ref="item1" class="data_itm">
|
||||
<text class="label_t">民族</text>
|
||||
<u--input class="p32" placeholder="请输入民族" v-model="zuValue" inputAlign="right"
|
||||
border="none">
|
||||
<u-form-item ref="item1" class="data_itm">
|
||||
<text class="label_t"><text style="color: #99241B;">*</text>民族</text>
|
||||
<u--input class="p32" placeholder="请输入民族" v-model="zuValue" inputAlign="right" border="none">
|
||||
<!-- <u-icon slot="suffix" name="arrow-right"></u-icon> -->
|
||||
</u--input>
|
||||
</u-form-item>
|
||||
|
||||
<!-- <u-form-item ref="item1" @click="jigaunShow=true" class="data_itm"> -->
|
||||
<u-form-item ref="item1" class="data_itm">
|
||||
<text class="label_t">籍贯</text>
|
||||
<u--input class="p32" placeholder="请选择籍贯" v-model="jiguan" inputAlign="right"
|
||||
border="none">
|
||||
<u-form-item ref="item1" class="data_itm">
|
||||
<text class="label_t"><text style="color: #99241B;">*</text>籍贯</text>
|
||||
<u--input class="p32" placeholder="请选择籍贯" v-model="jiguan" inputAlign="right" border="none">
|
||||
<!-- <u-icon slot="suffix" name="arrow-right"></u-icon> -->
|
||||
</u--input>
|
||||
</u-form-item>
|
||||
|
||||
<u-form-item ref="item1" @click="zhengzhiShow=true" class="data_itm">
|
||||
<text class="label_t">政治面貌</text>
|
||||
<text class="label_t"><text style="color: #99241B;">*</text>政治面貌</text>
|
||||
<u--input class="p32" placeholder="请选择政治面貌" v-model="zhengzhiValue" readonly inputAlign="right"
|
||||
border="none">
|
||||
<u-icon slot="suffix" name="arrow-right"></u-icon>
|
||||
|
@ -78,7 +76,7 @@
|
|||
v-model="model1.userInfo.phoneNum" border="none"></u--input>
|
||||
</u-form-item> -->
|
||||
<u-form-item prop="userInfo.pasw" ref="item1" class="data_itm">
|
||||
<text class="label_t">密码</text>
|
||||
<text class="label_t"><text style="color: #99241B;">*</text>密码</text>
|
||||
<u--input class="p32" placeholder="请输入密码" inputAlign="right" clearable
|
||||
v-model="model1.userInfo.pasw" border="none"></u--input>
|
||||
</u-form-item>
|
||||
|
@ -89,7 +87,7 @@
|
|||
|
||||
<view class="data_itm">
|
||||
<view class="data_itm_key label_t">
|
||||
头像上传
|
||||
<text style="color: #99241B;">*</text>头像上传
|
||||
</view>
|
||||
</view>
|
||||
<u-upload class="upload" accept="image" width="172rpx" height="172rpx" :fileList="fileList3"
|
||||
|
@ -122,7 +120,7 @@
|
|||
</view>
|
||||
<!-- 文艺人才 -->
|
||||
<view class="wenyi" v-if="pageTypeId=='wyrc'">
|
||||
<!-- <view class="wenyi"> -->
|
||||
<!-- <view class="wenyi"> -->
|
||||
<view class="data_itm_box">
|
||||
|
||||
<u-form-item ref="item1" @click="renCaiShow=true" class="data_itm">
|
||||
|
@ -391,6 +389,7 @@
|
|||
xieValue: '',
|
||||
zuShow: false,
|
||||
xieShow: false,
|
||||
upLoadReady: true,
|
||||
artResultList: '',
|
||||
artlist: [''],
|
||||
honorList: [''],
|
||||
|
@ -452,7 +451,7 @@
|
|||
rules: {
|
||||
'userInfo.pasw': [{
|
||||
required: true,
|
||||
message: '请填写密码',
|
||||
message: '请设置登录密码',
|
||||
trigger: ['blur', 'change']
|
||||
}, {
|
||||
min: 6,
|
||||
|
@ -571,16 +570,10 @@
|
|||
res.data.records.map((v, i) => {
|
||||
return this.xiehuiObj[v.name] = v.id
|
||||
})
|
||||
|
||||
var xieList = res.data.records.map((v, i) => {
|
||||
return v.name
|
||||
})
|
||||
this.xiecolumns.push(xieList)
|
||||
|
||||
|
||||
|
||||
console.log('this.xiehuiObj', this.xiehuiObj);
|
||||
|
||||
}).catch((error) => {
|
||||
console.log("error", error);
|
||||
})
|
||||
|
@ -714,7 +707,6 @@
|
|||
}))
|
||||
fileListLen++
|
||||
}
|
||||
console.log("fileList", this[`fileList${event.name}`]);
|
||||
},
|
||||
// 新增图片
|
||||
async afterRead1(event) {
|
||||
|
@ -743,10 +735,11 @@
|
|||
}))
|
||||
fileListLen++
|
||||
}
|
||||
console.log("fileList", this.fileList2[event.name]);
|
||||
},
|
||||
|
||||
uploadFilePromise(url) {
|
||||
this.upLoadReady = false
|
||||
let that = this
|
||||
let token = uni.getStorageSync('token');
|
||||
return new Promise((resolve, reject) => {
|
||||
let a = uni.uploadFile({
|
||||
|
@ -759,13 +752,14 @@
|
|||
success: (res) => {
|
||||
setTimeout(() => {
|
||||
resolve(JSON.parse(res.data).data.path)
|
||||
that.upLoadReady = true
|
||||
}, 1000)
|
||||
}
|
||||
});
|
||||
})
|
||||
},
|
||||
submit() {
|
||||
if (this.fileList3) {
|
||||
if (this.fileList3.length > 0) {
|
||||
var fl3 = this.fileList3[0].url
|
||||
} else {
|
||||
var fl3 = ''
|
||||
|
@ -804,8 +798,6 @@
|
|||
} else {
|
||||
opsArr = []
|
||||
}
|
||||
console.log("opsArr====", opsArr);
|
||||
console.log("honorList", this.honorList);
|
||||
|
||||
var yishucj = null
|
||||
if (this.artlist[0] == "") {
|
||||
|
@ -850,8 +842,10 @@
|
|||
"fzr": that.DutyPeopleName,
|
||||
"wyrc": this.wyrc,
|
||||
}
|
||||
console.log("dataddddddddd", data);
|
||||
this.$refs.form1.validate().then(res => {
|
||||
if (!data.userName || !data.sex || !data.idCard || !data.images || !data.password || !data.politics) {
|
||||
this.upLoadReady = false
|
||||
}
|
||||
if (this.upLoadReady) {
|
||||
this.http.request('/auth/init', data, "POST").then(res => {
|
||||
if (res.code == 200) {
|
||||
uni.navigateTo({
|
||||
|
@ -868,10 +862,15 @@
|
|||
icon: "none",
|
||||
});
|
||||
})
|
||||
}).catch(errors => {
|
||||
} else {
|
||||
uni.$u.toast('您的资料还未补充完整')
|
||||
return
|
||||
})
|
||||
}
|
||||
// this.$refs.form1.validate().then(res => {
|
||||
//
|
||||
// }).catch(errors => {
|
||||
// uni.$u.toast('您的资料还未补充完整')
|
||||
// return
|
||||
// })
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -75,6 +75,9 @@ export default {
|
|||
} else if (response.data.code == 401) { //登录过期
|
||||
reject(response)
|
||||
} else if (response.data.code == 402) { //信息未完善
|
||||
if(response.data.data){
|
||||
uni.setStorageSync('token', response.data.data.tokenValue)
|
||||
}
|
||||
uni.showToast({
|
||||
title: '信息未完善',
|
||||
icon: 'none',
|
||||
|
@ -84,7 +87,6 @@ export default {
|
|||
url: '../SelectId/SelectId'
|
||||
})
|
||||
}, 1200)
|
||||
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: response.data.msg,
|
||||
|
|
Loading…
Reference in New Issue