Commit 90deeaf7 authored by Mac's avatar Mac

1

parent 98e77443
......@@ -358,7 +358,7 @@
type:3
},{
name:"期待的未来生活是怎样的",
field:"SingleReason",
field:"OtherInfo",
placehloder:"写下你期待的未来生活是怎样的",
type:3
},
......
......@@ -89,7 +89,8 @@
addMsg:{
Name:'',
cardNo:'',
}
},
Jumptype:0
}
},
......@@ -100,6 +101,11 @@
title: this.pageTitle
});
},
onLoad(options) {
if(options && options.Jumptype){
this.Jumptype = options.Jumptype
}
},
methods:{
gorenzheng(){
let regName =/^[\u4e00-\u9fa5]{2,4}$/;
......@@ -118,11 +124,67 @@
})
}else{
let birthday = this.getBirthdayFromIdCard(this.addMsg.cardNo)
console.log(birthday)
this.getCallinterface()
}
},
getBirthdayFromIdCard(idCard) {
getCallinterface(){
let pages = getCurrentPages(); // 当前页面
let beforePage = pages[pages.length - 2]; // 前一个页面
setTimeout(()=>{
if(this.Jumptype == 0){
uni.navigateBack({
delta: 1
});
}else if(this.Jumptype == 2){
uni.navigateBack({
success: function() {
beforePage.$vm.getisAttestation(); // 执行前一个页面的方法
}
});
}
},1000)
// this.request2({
// url: '/api/AppletMiai/GetSetMiAiBaseInfo',
// data: msg
// },
// res => {
// if (res.resultCode == 1) {
// uni.showToast({
// title: res.message,
// duration: 2000,
// icon:"success",
// success:()=>{
// setTimeout(()=>{
// if(this.Jumptype == 0){
// uni.navigateBack({
// delta: 1
// });
// }else if(this.Jumptype == 1){
// uni.reLaunch({
// url: '/pages/blindDate/persondetails?UserId='+ this.UserId+'&Jumptype=1'
// })
// }else if(this.Jumptype == 2){
// uni.navigateBack({
// success: function() {
// beforePage.$vm.getisAttestation(); // 执行前一个页面的方法
// }
// });
// }
// },1000)
// }
// });
// }
// }
// );
},
getBirthdayFromIdCard(idCard) { //获取出生日期
var birthday = "";
if(idCard != null && idCard != ""){
if(idCard.length == 15){
......
......@@ -105,7 +105,7 @@
align-items: center;
}
.box-grdt-i-box{
display: inline-block;margin-top: 10px;
display: inline-block;margin-top: 15px;
}
.box-grdt-i-t{
padding: 0 20rpx;
......@@ -350,7 +350,7 @@
</span>
</view>
<view class="box-grdt-i-c">
<text v-if="dataList.SingleReason!=''">{{dataList.SingleReason}}</text>
<text v-if="dataList.OtherInfo!=''">{{dataList.OtherInfo}}</text>
<view v-else class="box-grdt-i-c-w">暂无</view>
</view>
</view>
......
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