|
@ -6,14 +6,8 @@ |
|
|
<span class="text-red padding-right-xs">*</span>当前所在地区 |
|
|
<span class="text-red padding-right-xs">*</span>当前所在地区 |
|
|
</view> |
|
|
</view> |
|
|
<view class="flex align-center"> |
|
|
<view class="flex align-center"> |
|
|
<input |
|
|
<input @tap="handleSelectLocation" class="flex-sub padding-left-xs" name="input" placeholder="请选择当前所在地区" type="btn" |
|
|
@tap="handleSelectLocation" |
|
|
v-model="district" maxlength="128" /> |
|
|
class="flex-sub padding-left-xs" |
|
|
|
|
|
name="input" |
|
|
|
|
|
placeholder="请选择当前所在地区" |
|
|
|
|
|
type="btn" |
|
|
|
|
|
v-model="district" |
|
|
|
|
|
/> |
|
|
|
|
|
<text class="cuIcon-location timer"></text> |
|
|
<text class="cuIcon-location timer"></text> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
@ -21,7 +15,7 @@ |
|
|
<view class="title padding-bottom-sm"> |
|
|
<view class="title padding-bottom-sm"> |
|
|
<span class="text-red padding-right-xs">*</span>当前所在详细地址 |
|
|
<span class="text-red padding-right-xs">*</span>当前所在详细地址 |
|
|
</view> |
|
|
</view> |
|
|
<input name="input" placeholder="请输入详细地址(含门牌号)" type="text" v-model="address" /> |
|
|
<input name="input" placeholder="请输入详细地址(含门牌号)" type="text" v-model="address" maxlength="128" /> |
|
|
</view> |
|
|
</view> |
|
|
<view class="cu-form-group flex flex-direction padding-top"> |
|
|
<view class="cu-form-group flex flex-direction padding-top"> |
|
|
<view class="title padding-bottom-sm"> |
|
|
<view class="title padding-bottom-sm"> |
|
@ -31,11 +25,7 @@ |
|
|
<view class="cu-list menu text-left"> |
|
|
<view class="cu-list menu text-left"> |
|
|
<view :key="index" class="cu-item" v-for="(state,index) in status"> |
|
|
<view :key="index" class="cu-item" v-for="(state,index) in status"> |
|
|
<label class="flex justify-between align-center"> |
|
|
<label class="flex justify-between align-center"> |
|
|
<radio |
|
|
<radio :checked="index === healthTypeId" :value="state.id" class="round margin-right-xs"></radio> |
|
|
:checked="index === healthTypeId" |
|
|
|
|
|
:value="state.id" |
|
|
|
|
|
class="round margin-right-xs" |
|
|
|
|
|
></radio> |
|
|
|
|
|
<view class="flex-sub" style="font-size: 34rpx;">{{ state.name }}</view> |
|
|
<view class="flex-sub" style="font-size: 34rpx;">{{ state.name }}</view> |
|
|
</label> |
|
|
</label> |
|
|
</view> |
|
|
</view> |
|
@ -44,7 +34,7 @@ |
|
|
</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">就诊医院(若无填无)</view> |
|
|
<view class="title padding-bottom-sm">就诊医院(若无填无)</view> |
|
|
<input name="input" placeholder="请输入就诊医院" type="text" v-model="hospital" /> |
|
|
<input name="input" placeholder="请输入就诊医院" type="text" v-model="hospital" maxlength="32" /> |
|
|
</view> |
|
|
</view> |
|
|
<view class="cu-form-group flex flex-direction padding-top"> |
|
|
<view class="cu-form-group flex flex-direction padding-top"> |
|
|
<view class="title padding-bottom-sm"><span class="text-red padding-right-xs">*</span>最近14天是否有武汉居住史、旅游史或武汉亲戚来访</view> |
|
|
<view class="title padding-bottom-sm"><span class="text-red padding-right-xs">*</span>最近14天是否有武汉居住史、旅游史或武汉亲戚来访</view> |
|
@ -52,11 +42,7 @@ |
|
|
<view class="flex"> |
|
|
<view class="flex"> |
|
|
<view :key="index" class="flex-sub margin-tb-sm" v-for="(tour,index) in tours"> |
|
|
<view :key="index" class="flex-sub margin-tb-sm" v-for="(tour,index) in tours"> |
|
|
<label class="flex justify-between align-center"> |
|
|
<label class="flex justify-between align-center"> |
|
|
<radio |
|
|
<radio :checked="index === touchHubei" :value="tour.value" class="round margin-right-xs"></radio> |
|
|
:checked="index === touchHubei" |
|
|
|
|
|
:value="tour.value" |
|
|
|
|
|
class="round margin-right-xs" |
|
|
|
|
|
></radio> |
|
|
|
|
|
<text class="flex-sub" style="font-size: 34rpx;">{{ tour.name }}</text> |
|
|
<text class="flex-sub" style="font-size: 34rpx;">{{ tour.name }}</text> |
|
|
</label> |
|
|
</label> |
|
|
</view> |
|
|
</view> |
|
@ -70,11 +56,7 @@ |
|
|
<view class="flex"> |
|
|
<view class="flex"> |
|
|
<view :key="index" class="flex-sub margin-tb-sm" v-for="(touch,index) in touches"> |
|
|
<view :key="index" class="flex-sub margin-tb-sm" v-for="(touch,index) in touches"> |
|
|
<label class="flex justify-between align-center"> |
|
|
<label class="flex justify-between align-center"> |
|
|
<radio |
|
|
<radio :checked="index === touchSick" :value="touch.value" class="round margin-right-xs"></radio> |
|
|
:checked="index === touchSick" |
|
|
|
|
|
:value="touch.value" |
|
|
|
|
|
class="round margin-right-xs" |
|
|
|
|
|
></radio> |
|
|
|
|
|
<text class="flex-sub" style="font-size: 34rpx;">{{ touch.name }}</text> |
|
|
<text class="flex-sub" style="font-size: 34rpx;">{{ touch.name }}</text> |
|
|
</label> |
|
|
</label> |
|
|
</view> |
|
|
</view> |
|
@ -111,23 +93,21 @@ |
|
|
</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"> |
|
|
<view class="title padding-bottom-sm"><span class="text-red padding-right-xs">*</span>当前体温(℃)</view> |
|
|
<span class="text-red padding-right-xs">*</span>当前体温(℃) |
|
|
<input placeholder="请输入当前体温" name="input" type="digit" v-model="animalHeat" /> |
|
|
</view> |
|
|
|
|
|
<input name="input" placeholder="请输入当前真实体温" 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"><span class="text-red padding-right-xs">*</span>紧急联系人</view> |
|
|
<view class="flex"> |
|
|
<view class="flex"> |
|
|
<input placeholder="姓名" 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="联系方式" 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" /> |
|
|
</view> |
|
|
</view> |
|
|
</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">备注(选填)</view> |
|
|
<view class="title padding-bottom-sm">备注(选填)</view> |
|
|
<textarea placeholder="请填写具体情况..." name="input" v-model="remark"/> |
|
|
<textarea placeholder="请填写具体情况..." name="input" v-model="remark" /> |
|
|
|
|
|
|
|
|
<!-- 上传图片 --> |
|
|
<!-- 上传图片 --> |
|
|
<view class="grid col-4 grid-square flex-sub"> |
|
|
<view class="grid col-4 grid-square flex-sub"> |
|
@ -295,9 +275,9 @@ export default { |
|
|
|
|
|
|
|
|
ChooseImage() { |
|
|
ChooseImage() { |
|
|
uni.chooseImage({ |
|
|
uni.chooseImage({ |
|
|
count: 9, //默认9 |
|
|
count: 1, //默认9 |
|
|
sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有 |
|
|
sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有 |
|
|
sourceType: ['album'], //从相册选择 |
|
|
sourceType: ['album', 'camera'], //从相册选择 |
|
|
success: (res) => { |
|
|
success: (res) => { |
|
|
if (this.imgList.length != 0) { |
|
|
if (this.imgList.length != 0) { |
|
|
this.imgList = this.imgList.concat(res.tempFilePaths) |
|
|
this.imgList = this.imgList.concat(res.tempFilePaths) |
|
@ -305,7 +285,7 @@ export default { |
|
|
this.imgList = res.tempFilePaths |
|
|
this.imgList = res.tempFilePaths |
|
|
} |
|
|
} |
|
|
uni.uploadFile({ |
|
|
uni.uploadFile({ |
|
|
url: `https://test.tall.wiki/gateway${HEALTH_FILE}`, |
|
|
url: `https://www.tall.wiki/gateway${HEALTH_FILE}`, |
|
|
filePath: res.tempFilePaths[0], |
|
|
filePath: res.tempFilePaths[0], |
|
|
fileType: 'image', |
|
|
fileType: 'image', |
|
|
name: 'file', |
|
|
name: 'file', |
|
@ -322,7 +302,9 @@ export default { |
|
|
title: '图片提交成功', |
|
|
title: '图片提交成功', |
|
|
duration: 1000, |
|
|
duration: 1000, |
|
|
}); |
|
|
}); |
|
|
|
|
|
console.log(this.fileIdList); |
|
|
},fail: (err) => { |
|
|
},fail: (err) => { |
|
|
|
|
|
console.log('uploadImage fail', err); |
|
|
uni.showModal({ |
|
|
uni.showModal({ |
|
|
content: err.errMsg, |
|
|
content: err.errMsg, |
|
|
showCancel: false |
|
|
showCancel: false |
|
@ -442,8 +424,8 @@ export default { |
|
|
showToast('请选择状态'); |
|
|
showToast('请选择状态'); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
if (!animalHeat) { |
|
|
if (!animalHeat || animalHeat<30 || animalHeat>45) { |
|
|
showToast('请输入当前体温'); |
|
|
showToast('请输入正确的体温值(范围:30℃~45℃)'); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
if (!emergencyName) { |
|
|
if (!emergencyName) { |
|
|