Commit 26160e26 authored by 罗超's avatar 罗超

1

parent 2b8a76c4
......@@ -68,13 +68,13 @@
<view class="subName">
{{item1.name}}
</view>
<input type="text" :placeholder="item1.placehloder" v-model="data[item1.field]" :type="item1.showType" class="subInput" v-if="item1.subType==1"/>
<input type="text" :placeholder="item1.placehloder" :disabled="item1.disabled" v-model="data[item1.field]" :type="item1.showType" class="subInput" v-if="item1.subType==1"/>
<view class="unit" v-if="item1.unit">
{{item1.unit}}
</view>
<view class="subpicker" v-if="item1.subType==2">
<picker :mode ="item1.mode" class="subpicker" :range="item1.array" @change="changPicker($event,item1.field,item1.mode,item1.array)">
<input class="subInput" disabled type="text" :placeholder="item1.placehloder" v-model="data[item1.field]" />
<picker :mode ="item1.mode" class="subpicker" :disabled="item1.disabled" :range="item1.array" @change="changPicker($event,item1.field,item1.mode,item1.array)">
<input class="subInput" disabled type="text" :disabled="item1.disabled" :placeholder="item1.placehloder" v-model="data[item1.field]" />
</picker>
<!-- <u-icon style="flex-grow: 4;" name="arrow-right"></u-icon> -->
</view>
......@@ -124,74 +124,85 @@
field:"Name",
placehloder:"请填写昵称",
subType:1,
showType:"text"
showType:"text",
disabled:true
},{
name:"性别",
field:"SexStr",
placehloder:"请选择性别",
subType:2,
array:['男','女'],
mode:"selector"
mode:"selector",
disabled:true
},{
name:"出生日期",
field:"Birthday",
placehloder:"请选择出生日期",
subType:2,
array:"",
mode:"date"
mode:"date",
disabled:false
},{
name:"身高",
field:"Height",
placehloder:"请填写身高",
subType:1,
unit:"厘米",
showType:"number"
showType:"number",
disabled:false
},{
name:"体重",
field:"Weight",
placehloder:"请填写体重",
subType:1,
unit:"公斤",
showType:"number"
showType:"number",
disabled:false
},{
name:"学历",
field:"EducationTypeStr",
placehloder:"请选择学历",
subType:2,
array:['高中及以下','大专','本科','硕士及以上'],
mode:"selector"
mode:"selector",
disabled:false
},{
name:"毕业院校",
field:"SchoolInfo",
placehloder:"请填写毕业院校",
subType:1,
showType:"text"
showType:"text",
disabled:false
},{
name:"婚姻",
field:"MarriageStr",
placehloder:"请选择婚姻状况",
subType:2,
array:['未婚','离异','丧偶'],
mode:"selector"
mode:"selector",
disabled:false
},{
name:"职位",
field:"Job",
placehloder:"请填写职位",
subType:1,
showType:"text"
showType:"text",
disabled:false
},{
name:"工作单位",
field:"WorkUnit",
placehloder:"请填写工作单位",
subType:1,
showType:"text"
showType:"text",
disabled:false
},{
name:"年收入",
field:"YearMoney",
placehloder:"请填写年收入",
subType:1,
unit:"万",
showType:"number"
showType:"number",
disabled:false
},{
name:"籍贯",
field:"nativePlace",
......@@ -204,7 +215,8 @@
field:"HouseInfo",
placehloder:"请填写资产",
subType:1,
showType:"text"
showType:"text",
disabled:false
}],
type:2
},{
......@@ -473,14 +485,14 @@
});
return
}
// if(this.data.EducationTypeStr==""){
// uni.showToast({
// title: '请选择学历',
// duration: 2000,
// icon:"none"
// });
// return
// }
if(this.data.EducationTypeStr==""){
uni.showToast({
title: '请选择学历',
duration: 2000,
icon:"none"
});
return
}
if(this.data.MarriageStr==""){
uni.showToast({
title: '请选择婚姻状况',
......@@ -489,7 +501,7 @@
});
return
}
// if(this.data.nativePlace==""){
// if(this.data.address==""){
// uni.showToast({
// title: '请选择籍贯',
// duration: 2000,
......@@ -508,12 +520,12 @@
duration: 2000,
icon:"success",
success:()=>{
let mall_UserInfo = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo"):null;
if(mall_UserInfo!=null){
uni.navigateTo({
url: '/pages/blindDate/persondetails?UserId='+ mall_UserInfo.UserId
setTimeout(()=>{
uni.navigateBack({
delta: 1
});
}
},1000)
}
});
......@@ -584,10 +596,8 @@
},
},
onLoad(options) {
if(options && options.UserId){
this.UserId=options.UserId;
this.getInfo();
}
this.UserId = uni.getStorageSync("mall_UserInfo")?uni.getStorageSync("mall_UserInfo").UserId:null;
this.getInfo();
},
created() {
this.mainColor = this.$uiConfig.mainColor;
......@@ -757,6 +767,9 @@
height: 180rpx;
width: 100%;
border-bottom: 1rpx solid #E2E2E2FF;
font-size: 24rpx;
font-weight: bold;
color: #111111;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment