Browse Source

修改健康上报默认数据

remotes/origin/HEAD
songsong428 5 years ago
parent
commit
f6ca9ba3cf
  1. 19
      pages/apply-code/apply-code.vue
  2. 2
      pages/my-code/my-code.vue
  3. 21
      pages/punch-the-clock/punch-the-clock.vue

19
pages/apply-code/apply-code.vue

@ -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;

2
pages/my-code/my-code.vue

@ -25,7 +25,7 @@
<text class="radius bg-green margin-tb margin-right padding-xs" v-if="item.schoolLocation === 1">在校</text> <text class="radius bg-green margin-tb margin-right padding-xs" v-if="item.schoolLocation === 1">在校</text>
<text class="radius bg-green margin-tb margin-right padding-xs" v-else>不在校</text> <text class="radius bg-green margin-tb margin-right padding-xs" v-else>不在校</text>
</view> </view>
<view class="margin-top">紧急联系人:{{ item.emergencyName }}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{ item.emergencyPhone }}</view> <view class="margin-top" v-if="item.emergencyName || item.emergencyPhone">紧急联系人:{{ item.emergencyName }}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{ item.emergencyPhone }}</view>
<view class="margin-top" v-show="item.remark || item.filePath.length > 0"> <view class="margin-top" v-show="item.remark || item.filePath.length > 0">
备注:{{ item.remark }} 备注:{{ item.remark }}
<view class="padding-top"> <view class="padding-top">

21
pages/punch-the-clock/punch-the-clock.vue

@ -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" />
@ -178,12 +178,12 @@
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: '',
@ -299,7 +299,8 @@
this.imgList = res.tempFilePaths this.imgList = res.tempFilePaths
} }
uni.uploadFile({ uni.uploadFile({
url: `https://www.tall.wiki/gateway${HEALTH_FILE}`, usrl: `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',
@ -434,8 +435,6 @@
address, address,
healthTypeId, healthTypeId,
animalHeat, animalHeat,
emergencyName,
emergencyPhone,
agree, agree,
agree1, agree1,
agree2 agree2
@ -456,14 +455,6 @@
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;

Loading…
Cancel
Save