9999999999
This commit is contained in:
parent
a454d12600
commit
065fcd140e
|
|
@ -11,7 +11,10 @@
|
|||
<view class="shu"></view>
|
||||
<view class="content-weight">监护人基本信息</view>
|
||||
</view>
|
||||
|
||||
<view class="one">
|
||||
<view class="one-left">与长者关系</view>
|
||||
<input class="one-right" maxlength="11" placeholder="请输入与长者关系" v-model="form.relationship" />
|
||||
</view>
|
||||
<view class="one">
|
||||
<view class="one-left">姓名</view>
|
||||
<input class="one-right" maxlength="11" placeholder="请输入姓名" v-model="form.name" />
|
||||
|
|
@ -72,7 +75,7 @@
|
|||
workUnit: "",
|
||||
izJs: 1,
|
||||
openId: uni.getStorageSync('openid'),
|
||||
|
||||
relationship: ""
|
||||
})
|
||||
|
||||
function isValid11DigitNumber(val) {
|
||||
|
|
@ -84,7 +87,12 @@
|
|||
}
|
||||
const next = () => {
|
||||
|
||||
if (!form.name) {
|
||||
if (!form.relationship) {
|
||||
uni.showToast({
|
||||
title: '请填写与长者关系',
|
||||
icon: 'error'
|
||||
})
|
||||
} else if (!form.name) {
|
||||
uni.showToast({
|
||||
title: '请填写姓名',
|
||||
icon: 'error'
|
||||
|
|
@ -129,6 +137,7 @@
|
|||
data.guardianIdCard = form.idCard
|
||||
data.guardianHomeAddress = form.homeAddress
|
||||
data.guardianWorkUnit = form.workUnit
|
||||
data.relationship = form.relationship
|
||||
data.modifyType = "jhr"
|
||||
const urlpost = `${base_url}/api/elderInfo/updateElderInfo`;
|
||||
uni.request({
|
||||
|
|
@ -161,6 +170,7 @@
|
|||
data.guardianIdCard = form.idCard
|
||||
data.guardianHomeAddress = form.homeAddress
|
||||
data.guardianWorkUnit = form.workUnit
|
||||
data.relationship = form.relationship
|
||||
const urlpost = `${payurl.value}/api/elderInfo/addElder`;
|
||||
uni.request({
|
||||
url: urlpost,
|
||||
|
|
@ -180,40 +190,40 @@
|
|||
duration: 2000 // 显示时长 ms
|
||||
})
|
||||
return
|
||||
}else{
|
||||
} else {
|
||||
uni.reLaunch({
|
||||
url: '/pages/oldmanindex/oldmansuccess?type=1&jianhu=1'
|
||||
})
|
||||
}
|
||||
|
||||
// return
|
||||
// const connectinon = {
|
||||
// nuId: data.nuId,
|
||||
// openId: uni.getStorageSync('openid'),
|
||||
// elderId: r.data.result,
|
||||
// sysOrgCode: data.sysOrgCode,
|
||||
// const connectinon = {
|
||||
// nuId: data.nuId,
|
||||
// openId: uni.getStorageSync('openid'),
|
||||
// elderId: r.data.result,
|
||||
// sysOrgCode: data.sysOrgCode,
|
||||
|
||||
// }
|
||||
// const urlpost = `${payurl.value}/api/nuBaseInfo/bindNu`;
|
||||
// uni.request({
|
||||
// url: urlpost,
|
||||
// method: 'POST',
|
||||
// header: {
|
||||
// 'Content-Type': 'application/json',
|
||||
// 'X-Access-Token': uni.getStorageSync('token') || '',
|
||||
// },
|
||||
// data: connectinon,
|
||||
// success: (r) => {
|
||||
// uni.reLaunch({
|
||||
// url: '/pages/oldmanindex/oldmansuccess'
|
||||
// })
|
||||
// }
|
||||
// const urlpost = `${payurl.value}/api/nuBaseInfo/bindNu`;
|
||||
// uni.request({
|
||||
// url: urlpost,
|
||||
// method: 'POST',
|
||||
// header: {
|
||||
// 'Content-Type': 'application/json',
|
||||
// 'X-Access-Token': uni.getStorageSync('token') || '',
|
||||
// },
|
||||
// data: connectinon,
|
||||
// success: (r) => {
|
||||
// uni.reLaunch({
|
||||
// url: '/pages/oldmanindex/oldmansuccess'
|
||||
// })
|
||||
|
||||
// // console.log("????", r)
|
||||
// },
|
||||
// fail: (e) => {
|
||||
// // console.log("????", e)
|
||||
// }
|
||||
// });
|
||||
// // console.log("????", r)
|
||||
// },
|
||||
// fail: (e) => {
|
||||
// // console.log("????", e)
|
||||
// }
|
||||
// });
|
||||
|
||||
// console.log("????", r)
|
||||
},
|
||||
|
|
@ -263,12 +273,13 @@
|
|||
"homeAddress",
|
||||
"workUnit",
|
||||
"izJs",
|
||||
"relationship"
|
||||
]
|
||||
|
||||
keys.forEach(key => {
|
||||
form[key] = data[key] || ""
|
||||
})
|
||||
console.log("????",uni.getStorageSync('allinfo'))
|
||||
console.log("????", uni.getStorageSync('allinfo'))
|
||||
}
|
||||
|
||||
})
|
||||
|
|
|
|||
|
|
@ -62,8 +62,8 @@
|
|||
|
||||
const statusarray = ["loading", "success", "fail"]
|
||||
|
||||
const nameArray = ["姓名", "电话", "身份证号码", "家庭住址", "工作单位"];
|
||||
const textArray = reactive(["", "", "", "", ""]);
|
||||
const nameArray = ["与长者关系","姓名", "电话", "身份证号码", "家庭住址", "工作单位"];
|
||||
const textArray = reactive(["","", "", "", "", ""]);
|
||||
|
||||
|
||||
// 本地保存的临时文件路径
|
||||
|
|
@ -117,11 +117,12 @@
|
|||
if (data.content) {
|
||||
contentred.value = data.content
|
||||
}
|
||||
textArray[0] = data.guardianName;
|
||||
textArray[1] = data.guardianPhone;
|
||||
textArray[2] = data.guardianIdCard;
|
||||
textArray[3] = data.guardianHomeAddress;
|
||||
textArray[4] = data.guardianWorkUnit;
|
||||
textArray[0] = data.relationship
|
||||
textArray[1] = data.guardianName;
|
||||
textArray[2] = data.guardianPhone;
|
||||
textArray[3] = data.guardianIdCard;
|
||||
textArray[4] = data.guardianHomeAddress;
|
||||
textArray[5] = data.guardianWorkUnit;
|
||||
})
|
||||
const changeMessage = () => {
|
||||
if(alldata.value.guardianModifyStatus=='1'){
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -7052,7 +7052,7 @@ function isConsoleWritable() {
|
|||
function initRuntimeSocketService() {
|
||||
const hosts = "192.168.2.22,127.0.0.1";
|
||||
const port = "8090";
|
||||
const id = "mp-weixin_h-3n8h";
|
||||
const id = "mp-weixin_ZornqY";
|
||||
const lazy = typeof swan !== "undefined";
|
||||
let restoreError = lazy ? () => {
|
||||
} : initOnError();
|
||||
|
|
|
|||
|
|
@ -14,7 +14,8 @@ const _sfc_main = {
|
|||
homeAddress: "",
|
||||
workUnit: "",
|
||||
izJs: 1,
|
||||
openId: common_vendor.index.getStorageSync("openid")
|
||||
openId: common_vendor.index.getStorageSync("openid"),
|
||||
relationship: ""
|
||||
});
|
||||
function isValid11DigitNumber(val) {
|
||||
return /^(\d{11})$/.test(val);
|
||||
|
|
@ -23,7 +24,12 @@ const _sfc_main = {
|
|||
return /^(\d{18})$/.test(val);
|
||||
}
|
||||
const next = () => {
|
||||
if (!form.name) {
|
||||
if (!form.relationship) {
|
||||
common_vendor.index.showToast({
|
||||
title: "请填写与长者关系",
|
||||
icon: "error"
|
||||
});
|
||||
} else if (!form.name) {
|
||||
common_vendor.index.showToast({
|
||||
title: "请填写姓名",
|
||||
icon: "error"
|
||||
|
|
@ -68,6 +74,7 @@ const _sfc_main = {
|
|||
data.guardianIdCard = form.idCard;
|
||||
data.guardianHomeAddress = form.homeAddress;
|
||||
data.guardianWorkUnit = form.workUnit;
|
||||
data.relationship = form.relationship;
|
||||
data.modifyType = "jhr";
|
||||
const urlpost = `${request_index.base_url}/api/elderInfo/updateElderInfo`;
|
||||
common_vendor.index.request({
|
||||
|
|
@ -89,7 +96,7 @@ const _sfc_main = {
|
|||
}
|
||||
},
|
||||
fail: (e) => {
|
||||
common_vendor.index.__f__("log", "at pages/addoldman/IDcard.vue:154", "????", e);
|
||||
common_vendor.index.__f__("log", "at pages/addoldman/IDcard.vue:163", "????", e);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
|
@ -99,6 +106,7 @@ const _sfc_main = {
|
|||
data.guardianIdCard = form.idCard;
|
||||
data.guardianHomeAddress = form.homeAddress;
|
||||
data.guardianWorkUnit = form.workUnit;
|
||||
data.relationship = form.relationship;
|
||||
const urlpost = `${payurl.value}/api/elderInfo/addElder`;
|
||||
common_vendor.index.request({
|
||||
url: urlpost,
|
||||
|
|
@ -109,7 +117,7 @@ const _sfc_main = {
|
|||
},
|
||||
data,
|
||||
success: (r) => {
|
||||
common_vendor.index.__f__("log", "at pages/addoldman/IDcard.vue:175", "r", r);
|
||||
common_vendor.index.__f__("log", "at pages/addoldman/IDcard.vue:185", "r", r);
|
||||
if (r.data.code != 200) {
|
||||
common_vendor.index.showToast({
|
||||
title: r.data.message,
|
||||
|
|
@ -146,28 +154,31 @@ const _sfc_main = {
|
|||
"idCard",
|
||||
"homeAddress",
|
||||
"workUnit",
|
||||
"izJs"
|
||||
"izJs",
|
||||
"relationship"
|
||||
];
|
||||
keys.forEach((key) => {
|
||||
form[key] = data[key] || "";
|
||||
});
|
||||
common_vendor.index.__f__("log", "at pages/addoldman/IDcard.vue:271", "????", common_vendor.index.getStorageSync("allinfo"));
|
||||
common_vendor.index.__f__("log", "at pages/addoldman/IDcard.vue:282", "????", common_vendor.index.getStorageSync("allinfo"));
|
||||
}
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.o(goBack),
|
||||
b: form.name,
|
||||
c: common_vendor.o(($event) => form.name = $event.detail.value),
|
||||
d: form.tel,
|
||||
e: common_vendor.o(($event) => form.tel = $event.detail.value),
|
||||
f: form.idCard,
|
||||
g: common_vendor.o(($event) => form.idCard = $event.detail.value),
|
||||
h: form.homeAddress,
|
||||
i: common_vendor.o(($event) => form.homeAddress = $event.detail.value),
|
||||
j: form.workUnit,
|
||||
k: common_vendor.o(($event) => form.workUnit = $event.detail.value),
|
||||
l: common_vendor.o(next)
|
||||
b: form.relationship,
|
||||
c: common_vendor.o(($event) => form.relationship = $event.detail.value),
|
||||
d: form.name,
|
||||
e: common_vendor.o(($event) => form.name = $event.detail.value),
|
||||
f: form.tel,
|
||||
g: common_vendor.o(($event) => form.tel = $event.detail.value),
|
||||
h: form.idCard,
|
||||
i: common_vendor.o(($event) => form.idCard = $event.detail.value),
|
||||
j: form.homeAddress,
|
||||
k: common_vendor.o(($event) => form.homeAddress = $event.detail.value),
|
||||
l: form.workUnit,
|
||||
m: common_vendor.o(($event) => form.workUnit = $event.detail.value),
|
||||
n: common_vendor.o(next)
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
<view class="container data-v-5fcb8e22"><view class="title-back data-v-5fcb8e22"><view class="left-father data-v-5fcb8e22" bindtap="{{a}}"><image class="back-img data-v-5fcb8e22" src="https://www.focusnu.com/media/directive/index/left.png"/><view class="data-v-5fcb8e22" style="font-size:30rpx">监护人信息</view></view></view><view class="white-content data-v-5fcb8e22"><view class="content-title data-v-5fcb8e22"><view class="shu data-v-5fcb8e22"></view><view class="content-weight data-v-5fcb8e22">监护人基本信息</view></view><view class="one data-v-5fcb8e22"><view class="one-left data-v-5fcb8e22">姓名</view><input class="one-right data-v-5fcb8e22" maxlength="11" placeholder="请输入姓名" value="{{b}}" bindinput="{{c}}"/></view><view class="one data-v-5fcb8e22"><view class="one-left data-v-5fcb8e22">电话</view><input class="one-right data-v-5fcb8e22" type="number" maxlength="11" placeholder="请输入电话" value="{{d}}" bindinput="{{e}}"/></view><view class="one data-v-5fcb8e22"><view class="one-left data-v-5fcb8e22">身份证号</view><input class="one-right data-v-5fcb8e22" type="number" maxlength="18" placeholder="请输入身份证号" value="{{f}}" bindinput="{{g}}"/></view><view class="one data-v-5fcb8e22"><view class="one-left data-v-5fcb8e22">家庭住址</view><input class="one-right data-v-5fcb8e22" placeholder="请输入家庭住址" value="{{h}}" bindinput="{{i}}"/></view><view class="one data-v-5fcb8e22"><view class="one-left data-v-5fcb8e22">工作单位</view><input class="one-right data-v-5fcb8e22" placeholder="请输入工作单位" value="{{j}}" bindinput="{{k}}"/></view></view><view class="data-v-5fcb8e22" style="display:flex;width:100%;position:fixed;bottom:20rpx;left:0"><view class="finish-button data-v-5fcb8e22" bindtap="{{l}}"> 提交 </view></view></view>
|
||||
<view class="container data-v-5fcb8e22"><view class="title-back data-v-5fcb8e22"><view class="left-father data-v-5fcb8e22" bindtap="{{a}}"><image class="back-img data-v-5fcb8e22" src="https://www.focusnu.com/media/directive/index/left.png"/><view class="data-v-5fcb8e22" style="font-size:30rpx">监护人信息</view></view></view><view class="white-content data-v-5fcb8e22"><view class="content-title data-v-5fcb8e22"><view class="shu data-v-5fcb8e22"></view><view class="content-weight data-v-5fcb8e22">监护人基本信息</view></view><view class="one data-v-5fcb8e22"><view class="one-left data-v-5fcb8e22">与长者关系</view><input class="one-right data-v-5fcb8e22" maxlength="11" placeholder="请输入与长者关系" value="{{b}}" bindinput="{{c}}"/></view><view class="one data-v-5fcb8e22"><view class="one-left data-v-5fcb8e22">姓名</view><input class="one-right data-v-5fcb8e22" maxlength="11" placeholder="请输入姓名" value="{{d}}" bindinput="{{e}}"/></view><view class="one data-v-5fcb8e22"><view class="one-left data-v-5fcb8e22">电话</view><input class="one-right data-v-5fcb8e22" type="number" maxlength="11" placeholder="请输入电话" value="{{f}}" bindinput="{{g}}"/></view><view class="one data-v-5fcb8e22"><view class="one-left data-v-5fcb8e22">身份证号</view><input class="one-right data-v-5fcb8e22" type="number" maxlength="18" placeholder="请输入身份证号" value="{{h}}" bindinput="{{i}}"/></view><view class="one data-v-5fcb8e22"><view class="one-left data-v-5fcb8e22">家庭住址</view><input class="one-right data-v-5fcb8e22" placeholder="请输入家庭住址" value="{{j}}" bindinput="{{k}}"/></view><view class="one data-v-5fcb8e22"><view class="one-left data-v-5fcb8e22">工作单位</view><input class="one-right data-v-5fcb8e22" placeholder="请输入工作单位" value="{{l}}" bindinput="{{m}}"/></view></view><view class="data-v-5fcb8e22" style="display:flex;width:100%;position:fixed;bottom:20rpx;left:0"><view class="finish-button data-v-5fcb8e22" bindtap="{{n}}"> 提交 </view></view></view>
|
||||
|
|
@ -10,8 +10,8 @@ const _sfc_main = {
|
|||
const show = common_vendor.ref(false);
|
||||
const content = common_vendor.ref("");
|
||||
const statusarray = ["loading", "success", "fail"];
|
||||
const nameArray = ["姓名", "电话", "身份证号码", "家庭住址", "工作单位"];
|
||||
const textArray = common_vendor.reactive(["", "", "", "", ""]);
|
||||
const nameArray = ["与长者关系", "姓名", "电话", "身份证号码", "家庭住址", "工作单位"];
|
||||
const textArray = common_vendor.reactive(["", "", "", "", "", ""]);
|
||||
common_vendor.ref("");
|
||||
function isAtLeastEightChars(str) {
|
||||
return typeof str === "string" && str.length >= 12;
|
||||
|
|
@ -38,11 +38,12 @@ const _sfc_main = {
|
|||
if (data.content) {
|
||||
contentred.value = data.content;
|
||||
}
|
||||
textArray[0] = data.guardianName;
|
||||
textArray[1] = data.guardianPhone;
|
||||
textArray[2] = data.guardianIdCard;
|
||||
textArray[3] = data.guardianHomeAddress;
|
||||
textArray[4] = data.guardianWorkUnit;
|
||||
textArray[0] = data.relationship;
|
||||
textArray[1] = data.guardianName;
|
||||
textArray[2] = data.guardianPhone;
|
||||
textArray[3] = data.guardianIdCard;
|
||||
textArray[4] = data.guardianHomeAddress;
|
||||
textArray[5] = data.guardianWorkUnit;
|
||||
});
|
||||
const changeMessage = () => {
|
||||
if (alldata.value.guardianModifyStatus == "1") {
|
||||
|
|
@ -53,7 +54,7 @@ const _sfc_main = {
|
|||
alldata.value.idCard = alldata.value.guardianIdCard;
|
||||
alldata.value.homeAddress = alldata.value.guardianHomeAddress;
|
||||
alldata.value.workUnit = alldata.value.guardianWorkUnit;
|
||||
common_vendor.index.__f__("log", "at pages/addoldman/jianhurenall.vue:135", "!!!!!!!!!!!!!!!!!!", alldata.value);
|
||||
common_vendor.index.__f__("log", "at pages/addoldman/jianhurenall.vue:136", "!!!!!!!!!!!!!!!!!!", alldata.value);
|
||||
common_vendor.index.setStorageSync("allinfo", alldata.value);
|
||||
setTimeout(() => {
|
||||
common_vendor.index.navigateTo({
|
||||
|
|
|
|||
Loading…
Reference in New Issue