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