修改些问题
This commit is contained in:
parent
e29e119dd4
commit
3a92f5f69d
|
@ -75,7 +75,7 @@
|
|||
|
||||
|
||||
|
||||
<view class="person_itm_sign" @click="goChangeInfo('头像','头像地址')">
|
||||
<view class="person_itm_sign" @click="goChangeInfo('头像','头像地址')">
|
||||
<text class="person_itm_sign_tit">头像</text>
|
||||
<view class="person_itm_sign_right">
|
||||
<image style="width: 80rpx; height: 80rpx;" src="../../static/RewardWork/avator.png" mode="">
|
||||
|
@ -86,7 +86,7 @@
|
|||
</view>
|
||||
|
||||
<view class="person_itm">
|
||||
<view class="person_itm_sign" @click="goChangeInfo('所属协会','协会名称')">
|
||||
<view class="person_itm_sign" @click="goChangeInfo('所属协会','协会名称')">
|
||||
<text class="person_itm_sign_tit">所属协会</text>
|
||||
<view class="person_itm_sign_right">
|
||||
<text>协会名称</text>
|
||||
|
@ -116,24 +116,24 @@
|
|||
|
||||
|
||||
|
||||
<view class="person_itm_sign">
|
||||
<view class="person_itm_sign" @click="goChangeInfo('艺术成就',artList)">
|
||||
<text class="person_itm_sign_tit">艺术成就</text>
|
||||
<view class="person_itm_sign_right">
|
||||
<!-- <text>2022/02/01</text> -->
|
||||
|
||||
<u-icon name="arrow-right"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
<view class="person_itm_sign">
|
||||
<view class="person_itm_sign" @click="goChangeInfo('荣誉奖项',honorList)">
|
||||
<text class="person_itm_sign_tit">荣誉奖项</text>
|
||||
<view class="person_itm_sign_right">
|
||||
<!-- <text>2022/02/01</text> -->
|
||||
|
||||
<u-icon name="arrow-right"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
<view class="person_itm_sign">
|
||||
<view class="person_itm_sign" @click="goChangeInfo('代表作',stanWorkList)">
|
||||
<text class="person_itm_sign_tit">代表作</text>
|
||||
<view class="person_itm_sign_right">
|
||||
<!-- <text>2022/02/01</text> -->
|
||||
|
||||
<u-icon name="arrow-right"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -141,9 +141,8 @@
|
|||
<view class="person_itm_sign">
|
||||
<text class="person_itm_sign_tit">是否已入协会</text>
|
||||
<view class="person_itm_sign_right">
|
||||
<!-- <text>2022/02/01</text> -->
|
||||
<!-- <u-icon name="arrow-right"></u-icon> -->
|
||||
<u-switch disabled v-model="isJioned" activeColor="#99241B" size=20></u-switch>
|
||||
|
||||
<u-switch disabled v-model="isJioned" activeColor="#99241B" size=20></u-switch>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
@ -165,7 +164,7 @@
|
|||
</view>
|
||||
</view>
|
||||
|
||||
<view class="person_itm_sign" @click="goChangeInfo('地址','宁波象山县')" >
|
||||
<view class="person_itm_sign" @click="goChangeInfo('地址','宁波象山县')">
|
||||
<text class="person_itm_sign_tit">地址</text>
|
||||
<view class="person_itm_sign_right">
|
||||
<text>地址</text>
|
||||
|
@ -200,15 +199,15 @@
|
|||
</view>
|
||||
</view>
|
||||
|
||||
<view class="person_itm_sign"@click="goChangeInfo('服务时间','2022/02/01')">
|
||||
<view class="person_itm_sign" @click="goChangeInfo('服务时间','2022/02/01')">
|
||||
<text class="person_itm_sign_tit">服务时间</text>
|
||||
<view class="person_itm_sign_right">
|
||||
<text>2022/02/01</text>
|
||||
<u-icon name="calendar"></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="person_itm_sign" @click="goChangeInfo('电话','13888888888')">
|
||||
|
||||
<view class="person_itm_sign" @click="goChangeInfo('电话','13888888888')">
|
||||
<text class="person_itm_sign_tit">电话</text>
|
||||
<view class="person_itm_sign_right">
|
||||
<text>13888888888</text>
|
||||
|
@ -224,17 +223,20 @@
|
|||
export default {
|
||||
data() {
|
||||
return {
|
||||
isJioned: true
|
||||
isJioned: true,
|
||||
artList: ['文艺大家', '集大成者'],
|
||||
honorList:['荣誉','无上荣誉'],
|
||||
stanWorkList:['蒙娜丽莎','高月']
|
||||
};
|
||||
},
|
||||
methods:{
|
||||
goChangeInfo(k,v){
|
||||
console.log(k,v);
|
||||
methods: {
|
||||
goChangeInfo(k, v) {
|
||||
console.log(k, v);
|
||||
uni.navigateTo({
|
||||
url: `/pages/PersonalCenter/ReEditSingleInfo?key=${k}&value=${v}`
|
||||
url: `/pages/PersonalCenter/ReEditSingleInfo?key=${JSON.stringify(k)}&value=${JSON.stringify(v)}`
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
|
||||
<u--form :model="model1" ref="form1">
|
||||
|
||||
<u-form-item prop="userInfo.EdValue" ref="item1" class="data_itm" v-if="model1.userInfo.Edkey=='姓名'||model1.userInfo.Edkey=='负责人姓名'||model1.userInfo.Edkey=='服务名称'||model1.userInfo.Edkey=='地址'||model1.userInfo.Edkey=='协会名称'">
|
||||
<u-form-item prop="userInfo.EdValue" ref="item1" class="data_itm"
|
||||
v-if="model1.userInfo.Edkey=='姓名'||model1.userInfo.Edkey=='负责人姓名'||model1.userInfo.Edkey=='服务名称'||model1.userInfo.Edkey=='地址'||model1.userInfo.Edkey=='协会名称'">
|
||||
<u--input class="p32" placeholder="请填写" clearable v-model="model1.userInfo.Edvalue" border="none"
|
||||
@blur="CheckValue" @clear="clearFun">
|
||||
</u--input>
|
||||
|
@ -17,7 +18,8 @@
|
|||
</view>
|
||||
|
||||
|
||||
<view class="date" @click="DatePicker" v-if="model1.userInfo.Edkey=='出生日期'||model1.userInfo.Edkey=='入会时间'||model1.userInfo.Edkey=='服务时间'">
|
||||
<view class="date" @click="DatePicker"
|
||||
v-if="model1.userInfo.Edkey=='出生日期'||model1.userInfo.Edkey=='入会时间'||model1.userInfo.Edkey=='服务时间'">
|
||||
<u--input class="p32" readonly v-model="model1.userInfo.Edvalue" border="none">
|
||||
</u--input>
|
||||
</view>
|
||||
|
@ -31,25 +33,48 @@
|
|||
<!-- 身份证号码 -->
|
||||
<view class="creat_id" v-if="model1.userInfo.Edkey=='身份证号码'">
|
||||
<u--input class="p32" placeholder="请填写" clearable v-model="model1.userInfo.Edvalue" border="none"
|
||||
@blur="CheckId" >
|
||||
@blur="CheckId">
|
||||
</u--input>
|
||||
</view>
|
||||
<!-- 身份证号码 ed -->
|
||||
<!--phone number -->
|
||||
<view class="phoneNumber" v-if="model1.userInfo.Edkey=='联系电话'||model1.userInfo.Edkey=='电话'">
|
||||
<!--phone number -->
|
||||
<view class="phoneNumber" v-if="model1.userInfo.Edkey=='联系电话'||model1.userInfo.Edkey=='电话'">
|
||||
<u--input class="p32" placeholder="请填写" clearable v-model="model1.userInfo.Edvalue" border="none"
|
||||
@blur="CheckNumber" >
|
||||
@blur="CheckNumber">
|
||||
</u--input>
|
||||
</view>
|
||||
<!--phone number ed-->
|
||||
|
||||
<!--phone number ed-->
|
||||
|
||||
<!-- 成就类 -->
|
||||
<view class="chengjiu" v-if="model1.userInfo.Edkey=='艺术成就'||model1.userInfo.Edkey=='代表作'||model1.userInfo.Edkey=='荣誉奖项'">
|
||||
<view class="chen_itm" v-for="(v,i) in model1.userInfo.Edvalue" :key="i"
|
||||
style="display: flex; justify-content: space-between; align-items: center;">
|
||||
<input type="text" v-model="model1.userInfo.Edvalue[i]" placeholder="请输入艺术成就" class="chengjiu" />
|
||||
|
||||
<view class="right_img_box">
|
||||
|
||||
<view style="width: 80rpx; height: 80rpx;" class="addImg" @click="AddItem"
|
||||
v-if="model1.userInfo.Edvalue.length==i+1">
|
||||
<image style="width: 80rpx; height: 80rpx;" src="../../static/improveData/redAdd.png" mode="">
|
||||
</image>
|
||||
</view>
|
||||
|
||||
<view class="delImg" @click="delItem"
|
||||
v-if="model1.userInfo.Edvalue.length>1&&model1.userInfo.Edvalue.length!=i+1">
|
||||
<img style="width: 80rpx; height: 80rpx;" src="../../static/improveData/del.png" alt="">
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 成就类ed -->
|
||||
<u-picker :show="zhengzhiShow" confirmColor="#99241B" @confirm="confimZheng" immediateChange
|
||||
closeOnClickOverlay @close="zhengzhiClose" @cancel="zhengzhiClose"
|
||||
:columns="model1.userInfo.Edkey=='政治面貌'? zhengzhiShow : model1.userInfo.Edkey =='民族' ? Zucolumns : model1.userInfo.Edkey=='籍贯' ? Jicolumns : model1.userInfo.Edkey=='人才类型'? peopleSkillColums:[]">
|
||||
</u-picker>
|
||||
|
||||
<u-datetime-picker confirmColor="#99241B" :minDate="-2207520000000" :show="showBirthday"
|
||||
v-if="model1.userInfo.Edkey=='出生日期'||model1.userInfo.Edkey=='入会时间'||model1.userInfo.Edkey=='服务时间'"
|
||||
:value="model1.userInfo.Edvalue" mode="date" closeOnClickOverlay @confirm="birthdayConfirm"
|
||||
@cancel="birthdayClose" @close="birthdayClose"></u-datetime-picker>
|
||||
<!-- #D5D4D6 -->
|
||||
|
@ -71,6 +96,7 @@
|
|||
export default {
|
||||
data() {
|
||||
return {
|
||||
artlist: [''],
|
||||
showBirthday: false,
|
||||
isSubmit: true,
|
||||
tempValue: '',
|
||||
|
@ -90,7 +116,8 @@
|
|||
|
||||
Jicolumns: [
|
||||
["河南", "浙江", '上海', '宁波'],
|
||||
], peopleSkillColums: [
|
||||
],
|
||||
peopleSkillColums: [
|
||||
["书法家", "画家", "雕塑家"]
|
||||
],
|
||||
// 校验规则
|
||||
|
@ -115,11 +142,11 @@
|
|||
},
|
||||
onLoad(opt) {
|
||||
console.log(opt);
|
||||
this.model1.userInfo.Edkey = opt.key
|
||||
this.model1.userInfo.Edvalue = opt.value
|
||||
this.tempValue = opt.value
|
||||
this.model1.userInfo.Edkey = JSON.parse(opt.key)
|
||||
this.model1.userInfo.Edvalue = JSON.parse(opt.value)
|
||||
this.tempValue = JSON.parse(opt.value)
|
||||
uni.setNavigationBarTitle({
|
||||
title: opt.key
|
||||
title: JSON.parse(opt.key)
|
||||
})
|
||||
},
|
||||
|
||||
|
@ -128,12 +155,22 @@
|
|||
this.$refs.form1.setRules(this.rules);
|
||||
},
|
||||
methods: {
|
||||
AddItem( ) {
|
||||
this.model1.userInfo.Edvalue.push("")
|
||||
|
||||
|
||||
},
|
||||
delItem( ) {
|
||||
this.model1.userInfo.Edvalue.splice(num, 1)
|
||||
|
||||
|
||||
},
|
||||
CheckId() {
|
||||
var value = this.model1.userInfo.Edvalue
|
||||
const reg =
|
||||
/^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;
|
||||
/^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;
|
||||
if (reg.test(value) === false && value) {
|
||||
this.isSubmit=true
|
||||
this.isSubmit = true
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: '请输入正确格式的身份证号码',
|
||||
|
@ -143,28 +180,29 @@
|
|||
this.isSubmit = false
|
||||
console.log('身份证号码格式正确')
|
||||
}
|
||||
},CheckNumber(){
|
||||
},
|
||||
CheckNumber() {
|
||||
var tele = this.model1.userInfo.Edvalue
|
||||
let reg = /^[1][3,4,5,7,8,9][0-9]{9}$/ //正则表达式定义手机号正确格式
|
||||
if (!tele) { //判断如果手机号(this.tele)为空,提示用户输入手机号
|
||||
this.isSubmit=true
|
||||
uni.showToast({
|
||||
title: '请输入手机号',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
let reg = /^[1][3,4,5,7,8,9][0-9]{9}$/ //正则表达式定义手机号正确格式
|
||||
if (!tele) { //判断如果手机号(this.tele)为空,提示用户输入手机号
|
||||
this.isSubmit = true
|
||||
uni.showToast({
|
||||
title: '请输入手机号',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
if (!reg.test(tele)) { //判断手机号格式时候正确
|
||||
this.isSubmit=true
|
||||
uni.showToast({
|
||||
title: '请输入正确的手机号',
|
||||
icon: 'none'
|
||||
})
|
||||
|
||||
return
|
||||
|
||||
if (!reg.test(tele)) { //判断手机号格式时候正确
|
||||
this.isSubmit = true
|
||||
uni.showToast({
|
||||
title: '请输入正确的手机号',
|
||||
icon: 'none'
|
||||
})
|
||||
|
||||
return
|
||||
}
|
||||
this.isSubmit=false
|
||||
this.isSubmit = false
|
||||
},
|
||||
zhengzhiClose() {
|
||||
this.zhengzhiShow = false
|
||||
|
|
Loading…
Reference in New Issue