|
@ -94,11 +94,11 @@ |
|
|
|
|
|
|
|
|
<view class="cu-form-group flex flex-direction padding-tb"> |
|
|
<view class="cu-form-group flex flex-direction padding-tb"> |
|
|
<view class="title padding-bottom-sm"><span class="text-red padding-right-xs">*</span>当前体温(℃)</view> |
|
|
<view class="title padding-bottom-sm"><span class="text-red padding-right-xs">*</span>当前体温(℃)</view> |
|
|
<input placeholder="请输入当前体温" name="input" type="digit" v-model="animalHeat" /> |
|
|
<input placeholder="0" name="input" type="digit" v-model="animalHeat" /> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="cu-form-group flex flex-direction padding-tb"> |
|
|
<view class="cu-form-group flex flex-direction padding-tb"> |
|
|
<view class="title padding-bottom-sm"><span class="text-red padding-right-xs">*</span>紧急联系人</view> |
|
|
<view class="title padding-bottom-sm">紧急联系人</view> |
|
|
<view class="flex"> |
|
|
<view class="flex"> |
|
|
<input placeholder="姓名" maxlength="6" class="flex flex-sub" name="input" type="text" v-model="emergencyName" /> |
|
|
<input placeholder="姓名" maxlength="6" class="flex flex-sub" name="input" type="text" v-model="emergencyName" /> |
|
|
<input placeholder="联系方式" maxlength="11" class="flex flex-sub" name="input" type="number" v-model="emergencyPhone" /> |
|
|
<input placeholder="联系方式" maxlength="11" class="flex flex-sub" name="input" type="number" v-model="emergencyPhone" /> |
|
@ -182,12 +182,12 @@ export default { |
|
|
value: '1', |
|
|
value: '1', |
|
|
name: '是' |
|
|
name: '是' |
|
|
}], |
|
|
}], |
|
|
animalHeat: 0, |
|
|
animalHeat: '', |
|
|
healthTypeId: 0, |
|
|
healthTypeId: 0, |
|
|
touchHubei: 0, |
|
|
touchHubei: 0, |
|
|
touchSick: 0, |
|
|
touchSick: 0, |
|
|
touchOverseas: 0, |
|
|
touchOverseas: 0, |
|
|
schoolLocation: 0, |
|
|
schoolLocation: 1, |
|
|
emergencyName: '', |
|
|
emergencyName: '', |
|
|
emergencyPhone: '', |
|
|
emergencyPhone: '', |
|
|
remark: '', |
|
|
remark: '', |
|
@ -286,6 +286,7 @@ export default { |
|
|
} |
|
|
} |
|
|
uni.uploadFile({ |
|
|
uni.uploadFile({ |
|
|
url: `https://www.tall.wiki/gateway${HEALTH_FILE}`, |
|
|
url: `https://www.tall.wiki/gateway${HEALTH_FILE}`, |
|
|
|
|
|
// url: `https://test.tall.wiki/gateway${HEALTH_FILE}`, |
|
|
filePath: res.tempFilePaths[0], |
|
|
filePath: res.tempFilePaths[0], |
|
|
fileType: 'image', |
|
|
fileType: 'image', |
|
|
name: 'file', |
|
|
name: 'file', |
|
@ -410,7 +411,7 @@ export default { |
|
|
|
|
|
|
|
|
// 验证信息 |
|
|
// 验证信息 |
|
|
checkRules() { |
|
|
checkRules() { |
|
|
const { district, address, healthTypeId, animalHeat,emergencyName,emergencyPhone, agree,agree1,agree2 } = this; |
|
|
const { district, address, healthTypeId, animalHeat, agree,agree1,agree2 } = this; |
|
|
if (!district || district === '请选择当前所在地区') { |
|
|
if (!district || district === '请选择当前所在地区') { |
|
|
showToast('请选择当前所在地区'); |
|
|
showToast('请选择当前所在地区'); |
|
|
return; |
|
|
return; |
|
@ -427,14 +428,6 @@ export default { |
|
|
showToast('请输入正确的体温值(范围:30℃~45℃)'); |
|
|
showToast('请输入正确的体温值(范围:30℃~45℃)'); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
if (!emergencyName) { |
|
|
|
|
|
showToast('请输入紧急联系人姓名'); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
if (!this.verifyPhone(emergencyPhone)) { |
|
|
|
|
|
showToast('请输入正确的紧急联系人手机号'); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
if (!agree) { |
|
|
if (!agree) { |
|
|
showToast('请选择是否同意《用户服务协议》和《隐私政策》'); |
|
|
showToast('请选择是否同意《用户服务协议》和《隐私政策》'); |
|
|
return; |
|
|
return; |
|
|