版本回退,并做好代码备份

This commit is contained in:
aixianling
2022-05-27 16:21:25 +08:00
parent 341a77efb4
commit c575f1c5bd
36 changed files with 4735 additions and 1152 deletions

View File

@@ -1,13 +1,48 @@
<template>
<div class="album">
<div class="tips">请确保以下信息全部由本人填写本人对所填写内容的真实性和完整性负责</div>
<div class="form-item__group">
<div class="form-item">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>返乡人员姓名</h2>
</div>
<div class="form-item__right">
<input placeholder="请输入" v-model="form.name" disabled :maxlength="20"/>
</div>
</div>
</div>
<div class="form-item">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>身份证号</h2>
</div>
<div class="form-item__right">
<input placeholder="请输入" v-model="form.idNumber" disabled :maxlength="20"/>
</div>
</div>
</div>
</div>
<div class="form-item__group">
<div class="form-item">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>当前体温</h2>
</div>
<div class="form-item__right">
<input placeholder="请输入" v-model="form.temperature" :maxlength="20"/>
<i></i>
</div>
</div>
</div>
<div class="form-item form-item__imgs">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>个人健康状况可多选</h2>
<h2>14天内是否接触新冠确诊或疑似患者</h2>
</div>
<div class="form-item__right">
<AiRadio style="width: 100%;" v-model="form.touchInFourteen" dict="epidemicTouchInFourteen"></AiRadio>
@@ -18,7 +53,48 @@
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>当前状况</h2>
<h2>当前健康状况可多选</h2>
</div>
<div class="form-item__right">
<AiCheckbox style="width: 100%;" v-model="form.health" dict="epidemicRecentHealth"></AiCheckbox>
</div>
</div>
</div>
</div>
<div class="form-item__group">
<div class="form-item">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>核酸检测日期</h2>
</div>
<div class="form-item__right">
<div class="ai-area" @click="isShowDate = true">
<div class="ai-area__wrapper">
<span class="label" v-if="form.checkTime">{{ form.checkTime }}</span>
<i v-else>请选择</i>
<u-icon name="arrow-right" color="#ddd"/>
</div>
</div>
</div>
</div>
</div>
<div class="form-item form-item__imgs">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>核酸检测结果</h2>
</div>
<div class="form-item__right">
<AiRadio style="width: 100%;" v-model="form.checkResult" dict="epidemicRecentTestResult"></AiRadio>
</div>
</div>
</div>
<div class="form-item form-item__imgs">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>健康码类型</h2>
</div>
<div class="form-item__right">
<AiRadio style="width: 100%;" v-model="form.healthCode" dict="epidemicHealthCode"></AiRadio>
@@ -29,16 +105,26 @@
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>备注说明</h2>
<h2>已接种疫苗次数</h2>
</div>
<div class="form-item__right">
<textarea placeholder="请补充说明健康监测情况" v-model="form.temperature"/>
<AiRadio style="width: 100%;" v-model="form.vaccine" dict="epidemicVaccineTime"></AiRadio>
</div>
</div>
</div>
<div class="form-item form-item__imgs">
<div class="form-item__wrapper">
<div class="form-item__title">
<i style="margin-right: 8px"></i>
<h2>本人健康码截图<span style="color: #999; font-size:14px;font-weight:normal;">(最多9张)</span></h2>
</div>
<div class="form-item__right" style="padding-left: 5px">
<AiUploader v-model="form.checkPhoto" :limit="9" multiple></AiUploader>
</div>
</div>
</div>
</div>
<!-- <u-picker mode="time" :params="dataParams" v-model="isShowDate" @confirm="onDateChange"></u-picker> -->
<u-picker mode="time" :params="dataParams" v-model="isShowDate" @confirm="onDateChange"></u-picker>
<div class="btn-wrapper">
<div class="btn" hover-class="text-hover" @click="submit">提交</div>
</div>
@@ -49,7 +135,7 @@
import {mapState} from 'vuex'
export default {
appName:"上报今日状态",
appName:"今日上报",
data() {
return {
isShowDate: false,
@@ -134,6 +220,10 @@ export default {
return this.$toast('请选择已接种疫苗次数')
}
// if (!this.form.checkPhoto.length) {
// return this.$toast('请上传健康码截图')
// }
this.$loading()
this.$instance.post(`/app/appepidemichealthreport/addOrUpdate`, {
...this.form,
openid: this.user.openid,
@@ -148,6 +238,7 @@ export default {
uni.navigateBack()
}, 400)
}
this.$hideLoading()
})
}
}
@@ -260,7 +351,7 @@ export default {
input {
flex: 1;
height: 100%;
text-align: left;
text-align: right;
color: #333;
padding-right: 10px;
}
@@ -270,21 +361,22 @@ export default {
align-items: center;
font-size: 32px;
// .u-input {
// display: block;
// width: 100%;
// }
span {
max-width: 400px;
margin-right: 8px;
color: #333333;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
i {
margin-right: 8px;
color: #999999;
}
}
}
.form-item__wrapper_input {
display: block;
}
&:last-child {
.form-item__wrapper {
border-bottom: none;
@@ -309,10 +401,11 @@ export default {
padding: 0 4px;
font-weight: 600;
font-size: 32px;
color: #666666;
color: #333333;
}
}
&.form-item__imgs, &.form-item__textarea {
.form-item__wrapper {
display: block;
@@ -323,7 +416,6 @@ export default {
textarea {
width: 100%;
height: 90px;
}
.form-item__title {

View File

@@ -27,7 +27,7 @@
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>联系方式</h2>
<h2>手机号码</h2>
</div>
<div class="form-item__right">
<input placeholder="请输入" type="number" v-model="form.phone" :maxlength="11"/>
@@ -38,7 +38,7 @@
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>所属地区</h2>
<h2>上报地区</h2>
</div>
<div class="form-item__right">
<AiAreaPicker class="ai-area" :areaId="$areaId" v-model="form.areaId" :fullName.sync="form.areaName">
@@ -58,7 +58,7 @@
<h2>详细地址</h2>
</div>
<div class="form-item__right">
<textarea auto-height v-model="form.address" :maxlength="500" placeholder="如住所、酒店、单位等"
<textarea auto-height v-model="form.address" :maxlength="500" placeholder="请输入详细地址"
placeholder-style="font-size: 16px;"></textarea>
</div>
</div>

View File

@@ -9,15 +9,11 @@
</div>
</div>
<div class="home-list">
<div class="item" v-for="(item, index) in list" :key="index" >
<div class="item-top" @click.stop="$linkTo('./Detail?id=' + item.id)">
<div class="item" v-for="(item, index) in list" :key="index">
<div class="item-top">
<div class="item-top__left">
<h2>{{ item.name }}<span :class="item.status == 1? 'status0':'status1'">返乡人员</span></h2>
<!-- <p @click.stop="$linkTo('./UserInfo?id=' + item.id)" hover-class="text-hover">查看个人信息></p> -->
<div>
<p>登记于2021-10-15</p>
<span :class="item.status == 1? 'status0':'status1'">异常</span>
</div>
<h2>{{ item.name }}</h2>
<p @click.stop="$linkTo('./UserInfo?id=' + item.id)" hover-class="text-hover">查看个人信息></p>
</div>
<span v-if="item.status === '0'">健康数据异常</span>
</div>
@@ -42,40 +38,8 @@
<AiEmpty v-if="list.length==0"/>
</div>
<div class="btn-wrapper">
<div class="share" @click="show = true">分享</div>
<div class="addBtn" @click="toReport" hover-class="text-hover">添加上报人员</div>
<div class="btn" @click="toReport" hover-class="text-hover">添加上报人员</div>
</div>
<u-popup v-model="show" mode="bottom" border-radius="30">
<div class="shareBox">
<h2>分享到</h2>
<div class="card">
<div class="itemCard" @click="registerCode()">
<img src="./components/code.png" alt="" class="imgs" />
<div class="names">扫码登记</div>
</div>
<div class="itemCard" @click="invitation()">
<img src="./components/wechat.png" alt="" class="imgs" />
<div class="names">微信邀请</div>
</div>
</div>
<div class="close" @click="show = false">取消</div>
</div>
</u-popup>
<u-popup v-model="showCode" mode="center" border-radius="14" width="90%" height="450px">
<div class="showCode">
<div class="qrCode">
<img src="./components/code.png" alt="">
</div>
<h2>健康上报</h2>
<p>请使用微信扫码上报本人健康情况</p>
<div class="btn">
<div class="cancel" @click="showCode = false">取消</div>
<div class="save" @click="savePoster">保存海报</div>
</div>
</div>
</u-popup>
</div>
</template>
@@ -91,8 +55,6 @@ export default {
pageShow: false,
current: 1,
total: 0,
show: false,
showCode: false,
}
},
@@ -119,18 +81,6 @@ export default {
this.$linkTo('./AddUser')
},
// 扫码登记
registerCode() {
this.show = false;
this.showCode = true;
},
// 微信邀请
invitation() {
console.log('222');
},
// 保存海报
savePoster() {},
getList() {
this.$instance.post(`/app/appepidemicreportmember/list?openId=${this.user.openId}`, null, {
@@ -217,43 +167,17 @@ export default {
border-bottom: 1px solid #DDDDDD;
.item-top__left {
width: 100%;
h2 {
line-height: 44px;
margin-bottom: 8px;
color: #333;
font-size: 32px;
font-weight: 600;
span {
padding: 4px 8px;
font-size: 26px;
font-weight: normal;
margin-left: 24px;
}
}
div {
display: flex;
justify-content: space-between;
p {
color: #999999;
font-size: 26px;
}
span {
padding: 4px 8px;
font-size: 26px;
}
}
.status0 {
color: #FF4466;
background: #FFF5F7;
}
.status1 {
color: #1AAAFF;
background: #E8F6FF;
}
.status2 {
color: #42D784;
background: #ECFBF2;
p {
color: #999999;
font-size: 26px;
}
}
@@ -295,101 +219,5 @@ export default {
}
}
}
.btn-wrapper {
display: flex;
justify-content: space-between;
padding: 20px 32px !important;
box-sizing: border-box;
.addBtn,
.share {
height: 88px;
line-height: 88px;
text-align: center;
}
.share {
width: 35%;
border-radius: 16px;
border: 1px solid #A0C0FF;
}
.addBtn {
width: 60%;
background: #4181FF;
border-radius: 16px;
color: #fff;
}
}
.shareBox {
padding-top: 32px;
box-sizing: border-box;
h2 {
padding: 0 32px;
font-weight: 600;
}
.card {
display: flex;
padding: 60px 32px 32px 32px;
.itemCard {
flex: 1;
text-align: center;
// width: 25%;
img {
width: 96px;
height: 96px;
}
}
}
// ::v-deep .u-popup .u-drawer .u-drawer-bottom {
// bottom: 50px;
// }
.close {
height: 112px;
line-height: 112px;
text-align: center;
border-top: 2px solid #EEEEEE;
}
}
.showCode {
padding: 64px;
box-sizing: border-box;
text-align: center;
.qrCode {
img {
width: 320px;
height: 320px;
}
}
h2 {
font-size: 36px;
font-weight: 600;
padding: 32px 0;
}
p {
font-size: 32px;
margin-bottom: 80px;
}
.btn {
display: flex;
justify-content: space-between;
.cancel,
.save {
width: 45%;
text-align: center;
height: 80px;
line-height: 80px;
border-radius: 40px;
}
.cancel {
background: #EFF2F7;
}
.save {
background: #383A49;
color: #FFF;
}
}
}
}
</style>

View File

@@ -1,52 +1,72 @@
<template>
<div class="detail">
<div class="detail-header">
<div class="name">
<h2>张三<span>返乡人员</span></h2>
<p @click="call(info.phone)"><u-icon name="phone" color="#4181FF" size="28"></u-icon>拨打电话</p>
</div>
<div class="idNumber">
<span>身份证号</span>
<span>420107197309172837</span>
</div>
<div class="phone">
<span>手机号码</span>
<span>13827263092</span>
</div>
<div class="address">
<span>详细地址</span>
<span>辛店镇北靳楼-北靳楼大学学生宿舍560</span>
</div>
</div>
<div class="detail-info">
<div class="title">
<h2>健康状况</h2>
<div class="detail-info__item">
<div class="left">
<h2>上报记录</h2>
<p>个人连续无异常上报<span>7</span>>天后自动解除风险</p>
<label>当前体温</label>
</div>
<div class="right">
<span>3</span>/<span>7</span>
<span :style="{color: info.temperature >= 37.3 ? '#FF4466' : '#42D784'}">{{ info.temperature }}</span>
</div>
</div>
<div class="list">
<div class="item">
<div class="item_card">
<div class="left">
<span></span><span>2020-07-20</span><span>自主上报</span>
</div>
<div class="right">
<span :class="'status0'">异常</span>
<!-- :class="item.check ? 'img-active' : ''" -->
<img src="./components/down-icon.png" :class="checked == true ? '': 'img-active'" alt="" @click="putOn" />
</div>
</div>
<div class="item_info" v-if="checked">
<div class="items">
<label>当前健康状况</label>
<div>发烧乏力咳嗽</div>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>14天内是否接触新冠确诊或疑似患者</label>
</div>
<div class="right">
<span :style="{color: info.touchInFourteen === '0' ? '#42D784' : '#FF4466'}">{{ $dict.getLabel('epidemicTouchInFourteen', info.touchInFourteen) }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>当前健康状况</label>
</div>
<div class="right">
<span :style="{color: !info.isHealth ? '#42D784' : '#FF4466'}">{{ info.healthName }}</span>
</div>
</div>
</div>
<div class="detail-info">
<h2>核酸检测信息</h2>
<div class="detail-info__item">
<div class="left">
<label>核酸检测日期</label>
</div>
<div class="right">
<span>{{ info.checkTime.split(' ')[0] }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>核酸检测结果</label>
</div>
<div class="right">
<span :style="{color: info.checkResult === '0' ? '#42D784' : '#FF4466'}">{{ $dict.getLabel('epidemicRecentTestResult', info.checkResult) }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>健康码状态</label>
</div>
<div class="right">
<span :style="{color: info.healthCode === '0' || info.healthCode === '1' ? '#42D784' : '#FF4466'}">{{ $dict.getLabel('epidemicHealthCode', info.healthCode) }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>已接种疫苗次数</label>
</div>
<div class="right">
<span>{{ $dict.getLabel('epidemicVaccineTime', info.vaccine) }}</span>
</div>
</div>
<div class="detail-info__item detail-info__item--img">
<div class="left">
<label>本人健康码截图</label>
</div>
<div class="right">
<image :src="item.url" @click="preview(item.url)" v-for="(item, index) in info.checkPhoto" :key="index" />
</div>
</div>
</div>
@@ -55,19 +75,19 @@
<script>
export default {
appName:"上报记录",
appName:"上报详情",
data () {
return {
info: {},
checked: true,
pageShow: false
}
},
onLoad (query) {
this.$loading()
this.$dict.load(['epidemicTouchInFourteen', 'epidemicRecentHealth', 'epidemicRecentTestResult', 'epidemicHealthCode', 'epidemicVaccineTime']).then(() => {
this.getInfo(query.id)
})
this.getInfo(query.id)
},
methods: {
@@ -78,17 +98,6 @@
})
},
// 收起展开
putOn() {
this.checked = !this.checked
},
call(phone) {
uni.makePhoneCall({
phoneNumber: phone
})
},
getInfo (id) {
this.$instance.post(`/app/appepidemichealthreport/queryDetailById?id=${id}`).then(res => {
if (res.code === 0) {
@@ -103,7 +112,13 @@
healthName = healthName + this.$dict.getLabel('epidemicRecentHealth', v)
})
this.info.healthName = healthName
this.$nextTick(() => {
this.pageShow = true
})
}
this.$hideLoading()
})
},
@@ -122,146 +137,106 @@
.detail-header {
padding: 32px;
box-sizing: border-box;
background: #FFF;
background: #fff;
h2 {
margin-bottom: 32px;
color: #333333;
font-size: 40px;
font-weight: 600;
}
.item-info {
.item-info__item {
display: flex;
align-items: center;
margin-bottom: 8px;
&:last-child {
margin-bottom: 0;
}
image {
width: 32px;
height: 32px;
margin-right: 16px;
}
.name {
display: flex;
justify-content: space-between;
align-items: center;
h2 {
font-weight: 600;
font-size: 40px;
span {
font-weight: normal;
font-size: 26px;
padding: 4px 8px;
margin-left: 16px;
background: #FFF5F7;
color: #FF4466;
color: #333;
font-size: 28px;
}
}
p {
font-size: 26px;
color: #4181FF;
}
}
.idNumber,
.phone,
.address {
color: #999999;
font-size: 26px;
margin-top: 8px;
span:first-child {
display: inline-block;
width: 130px;
vertical-align: top;
}
span:last-child {
display: inline-block;
width: calc(100% - 130px);
vertical-align: top;
}
}
.idNumber {
margin-top: 16px;
}
}
.detail-info {
margin-top: 24px;
.title {
padding: 0 32px;
background: #fff;
& > h2 {
height: 116px;
line-height: 116px;
font-size: 38px;
font-weight: 600;
color: #333;
}
.detail-info__item {
display: flex;
justify-content: space-between;
align-items: center;
background: #FFF;
padding: 32px;
box-sizing: border-box;
padding: 34px 0;
border-bottom: 1px solid #DDDDDD;
&:last-child {
border: none;
}
.left {
h2 {
font-size: 38px;
color: #333333;
font-weight: 600;
}
p {
font-size: 26px;
display: flex;
line-height: 1.3;
max-width: 360px;
label {
position: relative;
color: #999999;
margin-top: 8px;
font-size: 32px;
}
}
.right {
display: flex;
color: #999999;
font-size: 28px;
span:first-child {
color: #4181FF;
max-width: 450px;
span {
color: #333333;
font-size: 32px;
text-align: right;
}
image {
width: 40px;
height: 40px;
}
}
}
.list {
.item {
.item_card {
display: flex;
justify-content: space-between;
align-items: center;
padding: 26px 32px;
background: #FFF;
.left {
span:first-child {
display: inline-block;
width: 4px;
height: 24px;
background: #1365DD;
vertical-align: center;
margin-right: 12px;
}
}
.right {
span {
display: inline-block;
vertical-align: center;
margin-right: 16px;
padding: 4px 8px;
}
.status0 {
color: #FF4466;
background: #FFF5F7;
}
.status1 {
color: #1AAAFF;
background: #E8F6FF;
}
.status2 {
color: #42D784;
background: #ECFBF2;
}
.detail-info__item--img {
display: block;
img {
width: 48px;
height: 48px;
transition: all 0.3s ease-in-out;
transform: rotate(180deg);
vertical-align: bottom;
}
.right {
flex-wrap: wrap;
max-width: 100%;
margin-top: 34px;
.img-active {
transform: rotate(0deg);
}
}
}
image {
width: 226px;
height: 226px;
margin: 0 9px 9px 0;
.item_info {
padding: 16px 32px;
background: #FAFAFA;
.items {
display: flex;
justify-content: space-between;
align-items: center;
&:nth-of-type(3n) {
margin-right: 0;
}
}
}

View File

@@ -0,0 +1,134 @@
<template>
<div class="userinfo" v-if="pageShow">
<div class="cell-group">
<div class="cell-item">
<div class="cell-item__wrapper">
<div class="left">
<span>上报人姓名</span>
</div>
<div class="right">
<span>{{ info.name }}</span>
</div>
</div>
</div>
<div class="cell-item">
<div class="cell-item__wrapper">
<div class="left">
<span>身份证号</span>
</div>
<div class="right">
<span>{{ info.idNumber }}</span>
</div>
</div>
</div>
<div class="cell-item">
<div class="cell-item__wrapper">
<div class="left">
<span>手机号码</span>
</div>
<div class="right">
<span>{{ info.phone }}</span>
</div>
</div>
</div>
<div class="cell-item">
<div class="cell-item__wrapper">
<div class="left">
<span>上报地区</span>
</div>
<div class="right">
<span>{{ info.areaName }}</span>
</div>
</div>
</div>
<div class="cell-item">
<div class="cell-item__wrapper">
<div class="left">
<span>详细地址</span>
</div>
<div class="right">
<span>{{ info.address }}</span>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
appName:"个人信息",
data () {
return {
info: {},
pageShow: false
}
},
onLoad (query) {
this.$loading()
this.getInfo(query.id)
},
methods: {
getInfo (id) {
this.$instance.post(`/app/appepidemicreportmember/queryDetailById?id=${id}`).then(res => {
if (res.code === 0) {
this.info = res.data
if (res.data.eventStatus > 1) {
this.result = res.data.processList[0]
}
this.$nextTick(() => {
this.pageShow = true
})
}
this.$hideLoading()
}).catch(() => {
this.$hideLoading()
})
}
}
}
</script>
<style lang="scss">
.userinfo {
.cell-group {
background: #fff;
.cell-item {
padding-left: 32px;
.cell-item__wrapper {
display: flex;
justify-content: space-between;
padding: 34px 32px 34px 0;
border-bottom: 1px solid #DDDDDD;
.left {
span {
color: #999999;
font-size: 32px;
}
}
.right {
max-width: 450px;
text-align: right;
span {
color: #333333;
font-size: 32px;
}
}
}
&:last-child {
.cell-item__wrapper {
border-bottom: none;
}
}
}
}
}
</style>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 486 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 KiB

View File

@@ -35,116 +35,35 @@
</div>
</div>
</div>
</div>
<div class="form-item__group">
<div class="form-item form-item__imgs">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<!-- <span style="color:#999; fontSize:14px; font-weight: normal;">(最多9张)</span> -->
<h2>健康码截图</h2>
</div>
<div class="form-item__right" style="padding-left: 5px;">
<AiUploader v-model="form.checkPhoto" :limit="1"></AiUploader>
</div>
</div>
</div>
</div>
<div class="form-item__group">
<div class="form-item form-item__imgs">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<!-- <span style="color:#999; fontSize:14px; font-weight: normal;">(最多9张)</span> -->
<h2>48小时核酸证明</h2>
</div>
<div class="form-item__right" style="padding-left: 5px;">
<AiUploader v-model="form.checkPhoto" :limit="1"></AiUploader>
</div>
</div>
</div>
</div>
<div class="form-item__group">
<div class="form-item">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>出发地</h2>
<h2>人员类别</h2>
</div>
<div class="form-item__right">
<AiAreaPicker class="ai-area" v-model="form.startAreaId" :fullName.sync="form.startAreaName" all>
<div class="ai-area__wrapper">
<span class="label" v-if="form.startAreaName">{{ form.startAreaName }}</span>
<i v-else>请选择</i>
<u-icon name="arrow-right" color="#ddd"/>
</div>
</AiAreaPicker>
<AiSelect v-model="form.type" dict="epidemicRecentPersonType" class="select"></AiSelect>
</div>
</div>
</div>
</div>
<div class="form-item__group">
<div class="form-item">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>交通工具</h2>
<h2>出行方式</h2>
</div>
<div class="form-item__right">
<AiSelect dict="epidemicRecentTravel" v-model="form.travelType" class="select"></AiSelect>
</div>
</div>
</div>
<div class="form-item form-item__textarea">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>火车车次/航班号/客运站</h2>
</div>
<div class="form-item__right">
<textarea auto-height v-model="form.arriveAddress" :maxlength="100" placeholder="如车次、座位号/车牌号等信息"
placeholder-style="font-size: 16px"></textarea>
</div>
</div>
</div>
<div class="form-item">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>目的地</h2>
</div>
<div class="form-item__right">
<AiAreaPicker class="ai-area" v-model="form.startAreaId" :fullName.sync="form.startAreaName" all>
<div class="ai-area__wrapper">
<span class="label" v-if="form.startAreaName">{{ form.startAreaName }}</span>
<i v-else>请选择</i>
<u-icon name="arrow-right" color="#ddd"/>
</div>
</AiAreaPicker>
</div>
</div>
</div>
<div class="form-item form-item__textarea">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>居住地点</h2>
</div>
<div class="form-item__right">
<textarea auto-height v-model="form.arriveAddress" :maxlength="100" placeholder="如住所、酒店、单位等"
placeholder-style="font-size: 16px"></textarea>
</div>
</div>
</div>
<!-- 行程安排 -->
<div class="form-item">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>预计/实际抵达时间</h2>
<h2>出发时间</h2>
</div>
<div class="form-item__right">
<div class="ai-area" @click="isShowStartTime = true">
@@ -161,7 +80,36 @@
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>预计离开时间</h2>
<h2>出发地区</h2>
</div>
<div class="form-item__right">
<AiAreaPicker class="ai-area" v-model="form.startAreaId" :fullName.sync="form.startAreaName" all>
<div class="ai-area__wrapper">
<span class="label" v-if="form.startAreaName">{{ form.startAreaName }}</span>
<i v-else>请选择</i>
<u-icon name="arrow-right" color="#ddd"/>
</div>
</AiAreaPicker>
</div>
</div>
</div>
<div class="form-item form-item__textarea">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>出发地址</h2>
</div>
<div class="form-item__right">
<textarea auto-height v-model="form.startAddress" :maxlength="500" placeholder="请输入详细的出发地址"
placeholder-style="font-size: 16px"></textarea>
</div>
</div>
</div>
<div class="form-item">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>到达时间</h2>
</div>
<div class="form-item__right">
<div class="ai-area" @click="isShowEndTime = true">
@@ -174,8 +122,125 @@
</div>
</div>
</div>
<div class="form-item">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>到达地区</h2>
</div>
<div class="form-item__right">
<AiAreaPicker class="ai-area" v-model="form.arriveAreaId" :fullName.sync="form.arriveAreaName" :areaId="$areaId">
<div class="ai-area__wrapper">
<span class="label" v-if="form.arriveAreaName">{{ form.arriveAreaName }}</span>
<i v-else>请选择</i>
<u-icon name="arrow-right" color="#ddd"/>
</div>
</AiAreaPicker>
</div>
</div>
</div>
<div class="form-item form-item__textarea">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>返乡地址</h2>
</div>
<div class="form-item__right">
<textarea auto-height v-model="form.arriveAddress" :maxlength="500" placeholder="请输入详细的返乡地址"
placeholder-style="font-size: 16px"></textarea>
</div>
</div>
</div>
<div class="form-item form-item__textarea">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>行程描述</h2>
</div>
<div class="form-item__right">
<textarea auto-height style="height: 90px" v-model="form.description" :maxlength="500" placeholder="请输入行程描述"
placeholder-style="font-size: 16px"></textarea>
</div>
</div>
</div>
</div>
<div class="form-item__group">
<div class="form-item">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>核酸检测日期</h2>
</div>
<div class="form-item__right">
<div class="ai-area" @click="isShowDate = true">
<div class="ai-area__wrapper">
<span class="label" v-if="form.checkTime">{{ form.checkTime }}</span>
<i v-else>请选择</i>
<u-icon name="arrow-right" color="#ddd"/>
</div>
</div>
</div>
</div>
</div>
<div class="form-item form-item__imgs">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>本人健康码截图或核酸检测报告<span style="color:#999; fontSize:14px; font-weight: normal;">(最多9张)</span></h2>
</div>
<div class="form-item__right" style="padding-left: 5px;">
<AiUploader v-model="form.checkPhoto" :limit="9" multiple></AiUploader>
</div>
</div>
</div>
<div class="form-item form-item__imgs">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>核酸检测结果</h2>
</div>
<div class="form-item__right">
<AiRadio style="width: 100%;" v-model="form.checkResult" dict="epidemicRecentTestResult"/>
</div>
</div>
</div>
</div>
<div class="form-item__group">
<div class="form-item">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>当前体温</h2>
</div>
<div class="form-item__right">
<input placeholder="请输入" v-model="form.temperature" :maxlength="20"/>
<i></i>
</div>
</div>
</div>
<div class="form-item form-item__imgs">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>14天内是否接触新冠确诊或疑似患者</h2>
</div>
<div class="form-item__right">
<AiRadio style="width: 100%;" v-model="form.touchInFourteen" dict="epidemicTouchInFourteen"></AiRadio>
</div>
</div>
</div>
<div class="form-item form-item__imgs">
<div class="form-item__wrapper">
<div class="form-item__title">
<i>*</i>
<h2>当前健康状况可多选</h2>
</div>
<div class="form-item__right">
<AiCheckbox style="width: 100%;" v-model="form.health" dict="epidemicRecentHealth"></AiCheckbox>
</div>
</div>
</div>
</div>
<u-picker mode="time" :params="dataParams" v-model="isShowDate" @confirm="onDateChange"></u-picker>
<u-picker mode="time" :params="params" v-model="isShowStartTime" @confirm="onStartChange"></u-picker>
<u-picker mode="time" :params="params" v-model="isShowEndTime" @confirm="onEndChange"></u-picker>
@@ -366,12 +431,11 @@ export default {
this.$hideLoading()
this.flag = false
if (res.code == 0) {
// uni.$emit('update')
// this.$toast('提交成功')
// setTimeout(() => {
// uni.navigateBack()
// }, 400)
this.$linkTo('./result')
uni.$emit('update')
this.$toast('提交成功')
setTimeout(() => {
uni.navigateBack()
}, 400)
}
})
}

View File

@@ -1,11 +1,7 @@
<template>
<div class="AppReturnHomeRegister">
<div class="tips">
<div>外地抵汉来汉人员疫情防控政策通</div>
<div @click="$linkTo('./policyDetail')">查看详情></div>
</div>
<div class="returnHomeRegister">
<div class="title">
<h2>报备记录</h2>
<h2>全部记录</h2>
<div class="right">
<span></span>
<i>{{ total }}</i>
@@ -38,40 +34,8 @@
<AiEmpty v-if="list.length==0"/>
</div>
<div class="btn-wrapper">
<div class="share" @click="show = true">分享</div>
<div class="addbtn" @click="toReport" hover-class="text-hover">添加返乡报备</div>
<div class="btn" @click="toReport" hover-class="text-hover">添加返乡记录</div>
</div>
<u-popup v-model="show" mode="bottom" border-radius="30">
<div class="shareBox">
<h2>分享到</h2>
<div class="card">
<div class="itemCard" @click="registerCode()">
<img src="./components/code.png" alt="" class="imgs" />
<div class="names">扫码登记</div>
</div>
<div class="itemCard" @click="invitation()">
<img src="./components/wechat.png" alt="" class="imgs" />
<div class="names">微信邀请</div>
</div>
</div>
<div class="close" @click="show = false">取消</div>
</div>
</u-popup>
<u-popup v-model="showCode" mode="center" border-radius="14" width="90%" height="450px">
<div class="showCode">
<div class="qrCode">
<img src="./components/code.png" alt="">
</div>
<h2>返乡登记</h2>
<p>请外来及返乡人员使用微信扫码主动报备行程</p>
<div class="btn">
<div class="cancel" @click="showCode = false">取消</div>
<div class="save" @click="savePoster">保存海报</div>
</div>
</div>
</u-popup>
</div>
</template>
@@ -85,9 +49,7 @@ export default {
return {
list: [],
current: 1,
total: 0,
show: false,
showCode: false,
total: 0
}
},
@@ -111,19 +73,6 @@ export default {
toReport() {
this.$linkTo('./Add')
},
// 扫码登记
registerCode() {
this.show = false;
this.showCode = true;
},
// 微信邀请
invitation() {
console.log('222');
},
// 保存海报
savePoster() {},
getList() {
this.$instance.post(`/app/appepidemicbackhomerecord/list`, null, {
params: {
@@ -144,8 +93,7 @@ export default {
}).catch(() => {
uni.hideLoading()
})
},
}
},
onReachBottom() {
@@ -156,28 +104,9 @@ export default {
</script>
<style lang="scss" socped>
.AppReturnHomeRegister {
.returnHomeRegister {
padding: 0 0 150px 0;
.tips {
height: 106px;
line-height: 106px;
display: flex;
justify-content: space-between;
background: #FFF8F3;
padding: 0 32px;
div:first-child {
width: 520px;
color: #FF883C;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
div:last-child {
color: #4181FF;
}
}
.title {
display: flex;
align-items: center;
@@ -264,99 +193,5 @@ export default {
font-size: 28px;
}
}
.btn-wrapper {
display: flex;
justify-content: space-between;
padding: 20px 32px !important;
box-sizing: border-box;
.addbtn,
.share {
height: 88px;
line-height: 88px;
text-align: center;
}
.share {
width: 35%;
border-radius: 16px;
border: 1px solid #A0C0FF;
}
.addbtn {
width: 60%;
background: #4181FF;
border-radius: 16px;
color: #fff;
}
}
.shareBox {
padding-top: 32px;
box-sizing: border-box;
h2 {
padding: 0 32px;
font-weight: 600;
}
.card {
display: flex;
padding: 60px 32px 32px 32px;
.itemCard {
flex: 1;
text-align: center;
img {
width: 96px;
height: 96px;
}
}
}
.close {
height: 112px;
line-height: 112px;
text-align: center;
border-top: 2px solid #EEEEEE;
}
}
.showCode {
padding: 64px;
box-sizing: border-box;
text-align: center;
.qrCode {
img {
width: 320px;
height: 320px;
}
}
h2 {
font-size: 36px;
font-weight: 600;
padding: 32px 0;
}
p {
font-size: 32px;
margin-bottom: 80px;
}
.btn {
display: flex;
justify-content: space-between;
.cancel,
.save {
width: 45%;
text-align: center;
height: 80px;
line-height: 80px;
border-radius: 40px;
}
.cancel {
background: #EFF2F7;
}
.save {
background: #383A49;
color: #FFF;
}
}
}
}
</style>

View File

@@ -1,135 +1,185 @@
<template>
<div class="detail" v-if="pageShow">
<div class="detail-header">
<div class="user">
<div class="header">
<h3>{{ info.name }}</h3>
<div style="color: #4181FF;" @click="call(info.phone)"><u-icon name="phone" color="#4181FF" size="28"></u-icon>拨打电话</div>
<h2>{{ info.name }}的返乡登记信息</h2>
<div class="item-info">
<div class="item-info__item">
<image src="/static/img/from-icon.png"/>
<span>{{ info.startAreaName }}</span>
</div>
<div class="idNumber">
<span>身份证号</span>
<div class="item-info__item">
<image src="/static/img/to-icon.png"/>
<span>{{ info.arriveAreaName }}</span>
</div>
<div class="item-info__item">
<image src="/static/img/to-date.png"/>
<span>{{ info.arriveTime && info.arriveTime.substr(0, info.arriveTime.length - 3) }} 到达</span>
</div>
</div>
</div>
<div class="detail-info">
<h2>基本信息</h2>
<div class="detail-info__item">
<div class="left">
<label>姓名</label>
</div>
<div class="right">
<span>{{ info.name }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>身份证号</label>
</div>
<div class="right">
<span>{{ info.idNumber }}</span>
</div>
<div class="phone">
<span>手机号码</span>
<span>{{ info.phone }}</span>
</div>
<div class="detail-info__item">
<div class="left">
<label>手机号码</label>
</div>
<div class="picture">
<div class="healthPic">
<img src="./components/resultPic.png" alt="" @click="preview()">
<span>健康码</span>
</div>
<div class="nucleinPic">
<img src="./components/resultPic.png" alt="" @click="preview()">
<span>核酸证明</span>
</div>
<div class="right" @click="call(info.phone)" hover-class="text-hover">
<image src="https://cdn.cunwuyun.cn/dvcp/h5/common/phone.png"/>
<span style="color: #4181FF">{{ info.phone }}</span>
</div>
</div>
<div class="card">
<div class="item-info">
<div class="item-info__item">
<div class="pic">
<img class="img" src="./components/start.png"/>
<div class="lines"></div>
</div>
<span>{{ info.startAreaName }}</span>
</div>
<div class="item-info__item">
<div class="pic">
<img class="img" src="./components/end.png"/>
</div>
<span>{{ info.arriveAreaName }}</span>
</div>
<div class="item-info__item">
<image class="image" src="/static/img/to-date.png"/>
<span>{{ info.arriveTime && info.arriveTime.substr(0, info.arriveTime.length - 3) }} 到达</span>
</div>
<div class="detail-info__item">
<div class="left">
<label>人员类别</label>
</div>
<div class="right">
<span :style="{color: /[03]/.test(info.type) ? '#42D784' : '#FF4466'}">{{
$dict.getLabel('epidemicMemberType', info.type)
}}</span>
</div>
</div>
<div class="info">
<div class="detail-info">
<h2>行程信息<span>省外高风险地区</span></h2>
<div class="detail-info__item">
<div class="left">
<label>出发地</label>
</div>
<div class="right">
<span :style="{color: info.denger == 1 ? '#FF4466' : '#333'}">{{ info.startAreaName }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>交通工具</label>
</div>
<div class="right">
<span>{{ $dict.getLabel('epidemicRecentTravel', info.travelType) }}</span>
</div>
</div>
<div class="detail-info__item_wrap">
<div class="left">
<label>火车车次/航班号/汽车出发地</label>
</div>
<div class="right">
<span>{{ $dict.getLabel('epidemicRecentTravel', info.travelType) }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>目的地</label>
</div>
<div class="right">
<span>{{ info.arriveAreaName }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>居住地点</label>
</div>
<div class="right">
<span>{{ info.startAreaName }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>行程安排</label>
</div>
<div class="right">
<span>{{ info.startAddress }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>预计/实际抵达时间</label>
</div>
<div class="right">
<span>{{ info.startTime && info.startTime.substr(0, info.startTime.length - 3) }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>预计离开时间</label>
</div>
<div class="right">
<span>{{ info.arriveTime && info.arriveTime.substr(0, info.arriveTime.length - 3) }}</span>
</div>
</div>
</div>
</div>
<div class="detail-info">
<h2>行程信息</h2>
<div class="detail-info__item">
<div class="left">
<label>出行方式</label>
</div>
<div class="right">
<span>{{ $dict.getLabel('epidemicRecentTravel', info.travelType) }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>出发时间</label>
</div>
<div class="right">
<span>{{ info.startTime && info.startTime.substr(0, info.startTime.length - 3) }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>出发地区</label>
</div>
<div class="right">
<span :style="{color: info.denger == 1 ? '#FF4466' : '#333'}">{{ info.startAreaName }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>出发地址</label>
</div>
<div class="right">
<span>{{ info.startAddress }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>到达时间</label>
</div>
<div class="right">
<span>{{ info.arriveTime && info.arriveTime.substr(0, info.arriveTime.length - 3) }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>返乡地区</label>
</div>
<div class="right">
<span>{{ info.arriveAreaName }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>返乡地址</label>
</div>
<div class="right">
<span>{{ info.arriveAddress }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>行程描述</label>
</div>
<div class="right">
<span>{{ info.description }}</span>
</div>
</div>
</div>
<div class="detail-info">
<h2>核酸检测信息</h2>
<div class="detail-info__item">
<div class="left">
<label>核酸检测日期</label>
</div>
<div class="right">
<span>{{ info.checkTime.split(' ')[0] }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>核酸检测结果</label>
</div>
<div class="right">
<span :style="{color: info.checkResult === '0' ? '#42D784' : '#FF4466'}">{{
$dict.getLabel('epidemicRecentTestResult', info.checkResult)
}}</span>
</div>
</div>
<div class="detail-info__item detail-info__item--img">
<div class="left" style="max-width: 100%;">
<label>本人健康码截图或核酸检测报告</label>
</div>
<div class="right">
<image :src="item.url" @click="preview(item.url)" v-for="(item, index) in info.checkPhoto" :key="index"/>
</div>
</div>
</div>
<div class="detail-info">
<h2>健康状况</h2>
<div class="detail-info__item">
<div class="left">
<label>当前体温</label>
</div>
<div class="right">
<span :style="{color: info.temperature >= 37.3 ? '#FF4466' : '#42D784'}">{{ info.temperature }}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>14天内是否接触新冠确诊或疑似患者</label>
</div>
<div class="right">
<span :style="{color: info.touchInFourteen === '0' ? '#42D784' : '#FF4466'}">{{
$dict.getLabel('epidemicTouchInFourteen', info.touchInFourteen)
}}</span>
</div>
</div>
<div class="detail-info__item">
<div class="left">
<label>当前健康状况</label>
</div>
<div class="right">
<span :style="{color: !info.isHealth ? '#42D784' : '#FF4466'}">{{ info.healthName }}</span>
</div>
</div>
</div>
</div>
</template>
@@ -139,8 +189,7 @@ export default {
data() {
return {
info: {},
pageShow: false,
files: [],
pageShow: false
}
},
@@ -159,13 +208,6 @@ export default {
})
},
// previewImg(images, img) {
// uni.previewImage({
// urls: images.map((v) => v.url),
// current: img,
// })
// },
getInfo(id) {
this.$instance.post(`/app/appepidemicbackhomerecord/queryDetailById?id=${id}`).then(res => {
if (res.code === 0) {
@@ -204,197 +246,111 @@ export default {
padding-bottom: 40px;
.detail-header {
padding: 32px 32px 100px 32px;
background: linear-gradient(135deg, #6496FF 0%, #4F75FF 100%);
position: relative;
padding: 32px;
background: #fff;
.user {
width: 100%;
background: #FFFFFF;
box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.02);
border-radius: 16px;
padding: 32px;
box-sizing: border-box;
.header {
h2 {
margin-bottom: 32px;
color: #333333;
font-size: 40px;
font-weight: 600;
}
.item-info {
.item-info__item {
display: flex;
justify-content: space-between;
align-items: center;
h3 {
font-size: 40px;
color: #333333;
font-weight: 600;
margin-bottom: 8px;
&:last-child {
margin-bottom: 0;
}
}
.idNumber,
.phone {
color: #999999;
font-size: 26px;
margin-top: 8px;
}
.picture {
display: flex;
margin-top: 24px;
.healthPic,
.nucleinPic {
width: 192px;
height: 192px;
border-radius: 8px;
position: relative;
img {
width: 100%;
height: 100%;
}
span {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 40px;
line-height: 40px;
background: rgb(27, 27, 27, 0.85);
color: #fff;
font-size: 22px;
text-align: center;
border-radius: 0 0 8px 8px;
}
image {
width: 32px;
height: 32px;
margin-right: 16px;
}
.healthPic {
margin-right: 24px;
}
}
}
.card {
margin-top: 32px;
background: rgba(70, 106, 233);
border-radius: 16px;
padding: 32px;
box-sizing: border-box;
.item-info {
.item-info__item {
display: flex;
margin-bottom: 8px;
&:last-child {
margin-bottom: 0;
}
.pic {
position: relative;
.img {
width: 12px;
height: 12px;
}
.lines {
position: absolute;
top: 32px;
left: 4px;
width: 4px;
height: 100%;
border-left: 4px dotted #CCCCCC;
}
}
.img {
width: 12px;
height: 12px;
position: relative;
}
.image {
width: 32px;
height: 32px;
}
span:last-child {
color: #fff;
font-size: 28px;
margin-left: 16px;
}
}
}
}
.info {
position: absolute;
top: 93%;
left: 50%;
width: 100%;
transform: translate(-50%, 1%);
.detail-info {
padding: 0 32px;
background: #fff;
border-radius: 16px 16px 0 0;
& > h2 {
height: 116px;
line-height: 116px;
font-size: 38px;
font-weight: 600;
span {
color: #333;
span {
float: right;
font-size: 28px;
color: #FF4466;
font-weight: normal;
}
font-size: 28px;
}
}
}
}
.detail-info {
margin-top: 24px;
padding: 0 32px;
background: #fff;
& > h2 {
height: 116px;
line-height: 116px;
font-size: 38px;
font-weight: 600;
color: #333;
}
.detail-info__item {
display: flex;
justify-content: space-between;
padding: 34px 0;
border-bottom: 1px solid #DDDDDD;
&:last-child {
border: none;
}
.left {
display: flex;
line-height: 1.3;
max-width: 360px;
label {
position: relative;
color: #999999;
font-size: 32px;
}
}
.right {
display: flex;
max-width: 450px;
span {
color: #333333;
font-size: 32px;
text-align: right;
}
.detail-info__item {
display: flex;
justify-content: space-between;
padding: 34px 0;
border-bottom: 1px solid #DDDDDD;
&:last-child {
border: none;
}
.left {
display: flex;
line-height: 1.3;
max-width: 360px;
label {
position: relative;
color: #999999;
font-size: 32px;
}
}
.right {
display: flex;
max-width: 450px;
span {
color: #333333;
font-size: 32px;
text-align: right;
}
image {
width: 40px;
height: 40px;
}
}
image {
width: 40px;
height: 40px;
}
}
}
.detail-info__item_wrap {
display: block;
border-bottom: 1px solid #DDDDDD;
padding: 34px 0;
.left {
color: #999999;
font-size: 32px;
}
.right {
margin-top: 20px;
.detail-info__item--img {
display: block;
.right {
flex-wrap: wrap;
max-width: 100%;
margin-top: 34px;
image {
width: 226px;
height: 226px;
margin: 0 9px 9px 0;
&:nth-of-type(3n) {
margin-right: 0;
}
}
}
}
}
}
}
</style>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 502 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 351 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 346 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 KiB

View File

@@ -1,43 +0,0 @@
<template>
<div class="policyDetail">
<h2>外地抵汉来汉人员疫情防控政策通知</h2>
<div class="tips">
<span>武昌区疫情防控中心</span><span>125人看过</span>
</div>
<u-parse :html="content"></u-parse>
</div>
</template>
<script>
export default {
data() {
return {
content: {}
}
},
methods: {},
}
</script>
<style lang="scss" scoped>
.policyDetail {
padding: 32px 32px;
box-sizing: border-box;
background: #FFF;
h2 {
font-size: 48px;
font-weight: 600;
}
.tips {
display: flex;
justify-content: space-between;
color: #999999;
margin-top: 16px;
}
u-parse {
margin-top: 64px;
}
}
</style>

View File

@@ -1,85 +0,0 @@
<template>
<div class="service-result" >
<!-- v-if="showPage" -->
<img src="./components/resultPic.png" />
<!-- <img src="./components/resultPic.png" /> -->
<h2>提交成功</h2>
<div class="service-btn" hover-class="text-hover" @click="myAdd">报备记录</div>
<div class="service-btn" hover-class="text-hover" @click="back">返回</div>
</div>
</template>
<script>
export default {
name: 'result',
data() {
return {
showPage: false,
title: '',
}
},
onLoad(query) {
this.title = query.title
uni.setNavigationBarTitle({
title: this.title,
})
if (this.title) {
this.showPage = true
}
},
methods: {
myAdd() {
uni.reLaunch({url: './AppReturnHomeRegister'})
},
back() {
uni.reLaunch({url: './AppHelpDeclaration'})
},
},
}
</script>
<style lang="scss" scoped>
.service-result {
min-height: 100vh;
padding-top: 96px;
text-align: center;
background: #fff;
box-sizing: border-box;
.service-btn {
width: 320px;
height: 88px;
line-height: 88px;
margin: 80px auto 0;
text-align: center;
background: #4181FF;
font-size: 36px;
color: #fff;
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.02);
border-radius: 16px;
}
.service-btn:last-child {
margin-top: 30px;
background: #FFF;
color: #4181FF;
border: 1px solid #4181FF;
}
h2 {
margin-bottom: 32px;
color: #333333;
font-size: 40px;
font-weight: 600;
}
image {
width: 240px;
height: 240px;
}
}
</style>

View File

@@ -1,35 +1,24 @@
<template>
<div class="wrapper">
<div class="tabs">
<u-tabs
:list="tabs"
font-size="36"
bg-color="transparent"
:bold="false"
inactive-color="#ccddff"
:is-scroll="true"
:gutter="16"
active-color="#fff"
:current="index"
@change="onChange">
</u-tabs>
</div>
<div class="search-wrap">
<div class="left">
<AiSelect :dict="yesOrNo" v-model="search.typeName" placeholder="请选择">
<span>{{ search.typeName ? search.typeName : "全部类型" }}</span>
<u-icon name="arrow-down" color="#333333" size="20"></u-icon>
</AiSelect>
<div class="left" @click="show=true">
<span>{{ search.typeName ? search.typeName : "全部" }}</span>
<u-icon name="arrow-down" color="#ffffff" size="20"></u-icon>
</div>
<div class="right">
<u-icon name="search" size="32" color="#999999" :custom-style="{marginRight:'8px'}"></u-icon>
<u-icon name="search" size="32" color="rgba(255,255,255,0.5)" :custom-style="{marginRight:'8px'}"></u-icon>
<input placeholder="请输入需要搜索的内容" style="flex: 1;color:#fff;" confirm-type="search"
placeholder-style="color:#999999" v-model="search.title"
@confirm="current=1;getList()" />
placeholder-style="color:rgba(255,255,255,0.5)" v-model="search.title"
@confirm="current=1;getList()"></input>
</div>
</div>
<div class="job-list" v-if="list.length">
<header>
<span>招工就业列表</span>
<div class="right">
<em>{{ total }}</em>个职位
</div>
</header>
<div class="card" v-for="(item,index) in list" :key="index">
<template v-if="item.type == 1">
<div class="top" @click="toDetail(0,item)">
@@ -73,8 +62,7 @@
</div>
<AiEmpty v-else></AiEmpty>
<div class="btn-wrapper">
<div class="perAdd" @click="$linkTo('./pubJob')" hover-class="text-hover">个人求职</div>
<div class="compAdd" @click="$linkTo('./addCompJop')" hover-class="text-hover">企业招工</div>
<div class="btn" @click="$linkTo('./pubJob')" hover-class="text-hover">我要找工作</div>
</div>
<u-select v-model="show" :list="selectList" @confirm="onConfirm"></u-select>
</div>
@@ -95,13 +83,9 @@ export default {
title: "",
type: "",
typeName: "",
},
index: 0,
}
}
},
onLoad() {
this.$dict.load('yesOrNo')
},
computed: {
selectList() {
return [{
@@ -115,39 +99,21 @@ export default {
value: '1',
label: '个人求职'
}];
},
tabs() {
return [{
name: '全部'
}, {
name: '我的发布'
}]
},
}
},
methods: {
preview(index) {
this.$previewImage(this.list, index, "url");
},
phone({linkPhone: phoneNumber}) {
uni.makePhoneCall({phoneNumber});
},
onConfirm(val) {
this.search.typeName = val[0].label;
this.search.type = val[0].value;
this.current = 1;
this.getList();
},
onChange(val) {
this.index = val;
this.current = 1;
// if (!!this.index) {
// this.getMine();
// } else this.getAll();
},
getList() {
this.$instance.post("/app/appjob/list", null, {
params: {
@@ -180,40 +146,31 @@ export default {
<style lang="scss" scoped>
.wrapper {
padding-top: 96px;
padding-top: 124px;
}
.tabs {
position: fixed;
top: 0;
left: 0;
z-index: 11;
width: 100%;
padding: 10px 0 10px 16px;
box-sizing: border-box;
background: #4181FF;
}
.search-wrap {
position: fixed;
left: 0;
top: 0;
z-index: 11;
width: 100%;
height: 124px;
background: #F3F6F9;
background: #4181FF;
box-sizing: border-box;
padding: 0 32px;
display: flex;
align-items: center;
box-sizing: border-box;
color: #333333;
.left {
display: flex;
align-items: center;
font-size: 38px;
& > span {
font-size: 40px;
font-weight: 600;
font-weight: 500;
color: #FFFFFF;
margin-right: 16px;
}
}
@@ -221,7 +178,7 @@ export default {
.right {
flex: 1;
height: 64px;
background: #FFFFFF;
background: rgba(0, 0, 0, .2);
border-radius: 32px;
margin-left: 32px;
box-sizing: border-box;
@@ -392,25 +349,4 @@ export default {
}
}
}
.btn-wrapper {
display: flex;
justify-content: space-between;
padding: 20px 32px !important;
box-sizing: border-box;
.perAdd,
.compAdd {
height: 88px;
line-height: 88px;
text-align: center;
border-radius: 16px;
width: 47%;
}
.perAdd {
border: 1px solid #A0C0FF;
}
.compAdd {
background: #4181FF;
color: #fff;
}
}
</style>

View File

@@ -1,193 +0,0 @@
<template>
<div class="addCompJob">
<div class="card">
<div class="form border">
<em>*</em>
<label>招聘岗位</label>
<div class="right">
<u-input trim placeholder="请输入" input-align="right"
placeholder-style="color:#999;font-size: 17px;font-weight:normal;" v-model="form.linkName"
:custom-style="{fontWeight:600,color:'#333',fontSize:'17px'}"></u-input>
</div>
</div>
<div class="form border">
<em>*</em>
<label>招聘人数</label>
<div class="right">
<u-input trim placeholder="请输入" input-align="right"
placeholder-style="color:#999;font-size: 17px;font-weight:normal;" v-model="form.linkPhone"
:custom-style="{fontWeight:600,color:'#333',fontSize:'17px'}" maxlength="11"></u-input>
</div>
</div>
<div class="form">
<em>*</em>
<label>薪资待遇</label>
<div class="right">
<u-input trim placeholder="如5k-10k" input-align="right"
placeholder-style="color:#999;font-size: 17px;font-weight:normal;" v-model="form.linkPhone"
:custom-style="{fontWeight:600,color:'#333',fontSize:'17px'}" maxlength="11"></u-input>
</div>
</div>
</div>
<div class="card">
<div class="form border">
<em>*</em>
<label>学历要求</label>
<div class="right">
<u-input trim placeholder="请输入" input-align="right"
placeholder-style="color:#999;font-size: 17px;font-weight:normal;" v-model="form.linkName"
:custom-style="{fontWeight:600,color:'#333',fontSize:'17px'}"></u-input>
</div>
</div>
<div class="form border">
<em>*</em>
<label>年龄要求</label>
<div class="right">
<u-input trim placeholder="请输入" input-align="right"
placeholder-style="color:#999;font-size: 17px;font-weight:normal;" v-model="form.linkPhone"
:custom-style="{fontWeight:600,color:'#333',fontSize:'17px'}" maxlength="11"></u-input>
</div>
</div>
<div class="form border">
<em>*</em>
<label>性别要求</label>
<div class="right">
<u-input trim placeholder="如5k-10k" input-align="right"
placeholder-style="color:#999;font-size: 17px;font-weight:normal;" v-model="form.linkPhone"
:custom-style="{fontWeight:600,color:'#333',fontSize:'17px'}" maxlength="11"></u-input>
</div>
</div>
<div class="forms">
<label><span>*</span>岗位说明</label>
<div class="bottom">
<u-input type="textarea" auto-height trim placeholder="请输入详细描述信息"
placeholder-style="color:#999;font-size: 17px;font-weight:normal;" v-model="form.linkPhone"
:custom-style="{fontWeight:600,color:'#333',fontSize:'17px'}" maxlength="11"></u-input>
</div>
</div>
</div>
<div class="card">
<div class="forms">
<label><span>*</span>单位名称</label>
<div class="bottom">
<u-input trim placeholder="请输入单位名称"
placeholder-style="color:#999;font-size: 17px;font-weight:normal;" v-model="form.linkPhone"
:custom-style="{fontWeight:600,color:'#333',fontSize:'17px'}" maxlength="11"></u-input>
</div>
</div>
<div class="form border border-top">
<em>*</em>
<label>联系人</label>
<div class="right">
<u-input trim placeholder="请输入" input-align="right"
placeholder-style="color:#999;font-size: 17px;font-weight:normal;" v-model="form.linkPhone"
:custom-style="{fontWeight:600,color:'#333',fontSize:'17px'}" maxlength="11"></u-input>
</div>
</div>
<div class="form">
<em>*</em>
<label>联系方式</label>
<div class="right">
<u-input trim placeholder="如5k-10k" input-align="right"
placeholder-style="color:#999;font-size: 17px;font-weight:normal;" v-model="form.linkPhone"
:custom-style="{fontWeight:600,color:'#333',fontSize:'17px'}" maxlength="11"></u-input>
</div>
</div>
</div>
<div class="btn-wrapper">
<div class="btn" @click="submit" hover-class="text-hover">提交</div>
</div>
</div>
</template>
<script>
export default {
appName: "我要招员工",
data() {
return {}
},
methods: {},
}
</script>
<style lang="scss" scoped>
.addCompJob {
padding-bottom: 150px;
.card {
box-sizing: border-box;
padding: 0 32px;
background-color: #fff;
margin-bottom: 24px;
.form {
height: 112px;
background: #FFFFFF;
display: flex;
align-items: center;
& > em {
width: 16px;
height: 44px;
font-weight: 400;
color: #FF4466;
line-height: 54px;
font-style: normal;
margin-right: 8px;
}
& > label {
font-size: 32px;
font-weight: 600;
color: #666666;
& > span {
font-size: 28px;
font-weight: 400;
color: #999999;
}
}
.right {
flex: 1;
display: flex;
align-items: center;
flex-direction: row-reverse;
.value {
font-size: 34px;
font-weight: 600;
color: #333333;
}
}
}
.forms {
padding: 24px 0;
label {
color: #666666;
font-size: 32px;
font-weight: 600;
span {
color: #FF4466;
font-weight: normal;
}
}
}
.border-top {
border-top: 1px solid #DDDDDD;
}
.border {
border-bottom: 1px solid #DDDDDD;
}
}
}
</style>

View File

@@ -29,11 +29,6 @@
</div>
</template>
</div>
<div class="btn">
<div>撤销发布</div>
</div>
</div>
</template>
@@ -76,103 +71,81 @@ export default {
</script>
<style lang="scss" scoped>
.wrapper {
padding-bottom: 120px;
.card {
padding: 32px 0 32px 32px;
background-color: #ffffff;
.card {
padding: 32px 0 32px 32px;
background-color: #ffffff;
.post-info {
padding-right: 32px;
.post-info {
padding-right: 32px;
.post-name {
display: flex;
justify-content: space-between;
line-height: 56px;
& > span:first-child {
font-size: 40px;
font-weight: 600;
color: #333333;
}
& > span:last-child {
font-size: 36px;
font-weight: 600;
color: #FF3521;
flex-shrink: 0;
}
}
& > p {
font-size: 32px;
font-weight: 400;
color: #999999;
margin: 16px 0 32px;
}
}
.form {
height: 112px;
background: #FFFFFF;
border-bottom: 1px solid #DDDDDD;
.post-name {
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid #DDDDDD;
padding-right: 32px;
line-height: 56px;
.label {
font-size: 32px;
font-weight: 400;
color: #999999;
}
.value {
font-size: 32px;
font-weight: 400;
& > span:first-child {
font-size: 40px;
font-weight: 600;
color: #333333;
}
.phone {
font-size: 28px;
color: #4181FF;
& > span:last-child {
font-size: 36px;
font-weight: 600;
color: #FF3521;
flex-shrink: 0;
}
}
header {
font-size: 38px;
font-weight: 600;
color: #333333;
padding: 32px 0;
}
.post-require {
& > p {
font-size: 32px;
font-weight: 400;
color: #333333;
line-height: 56px;
padding-right: 20px;
color: #999999;
margin: 16px 0 32px;
}
}
.btn {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 120px;
background: #F3F6F9;
padding: 16px 32px;
box-sizing: border-box;
div {
height: 88px;
line-height: 88px;
text-align: center;
background: #FFFFFF;
border-radius: 16px;
border: 1px solid #FF4466;
.form {
height: 112px;
background: #FFFFFF;
border-bottom: 1px solid #DDDDDD;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid #DDDDDD;
padding-right: 32px;
.label {
font-size: 32px;
font-weight: 400;
color: #999999;
}
}
.value {
font-size: 32px;
font-weight: 400;
color: #333333;
}
.phone {
font-size: 28px;
color: #4181FF;
}
}
header {
font-size: 38px;
font-weight: 600;
color: #333333;
padding: 32px 0;
}
.post-require {
font-size: 32px;
font-weight: 400;
color: #333333;
line-height: 56px;
padding-right: 20px;
}
}
</style>

View File

@@ -26,11 +26,6 @@
<div class="post-require">{{ detail.remark }}
</div>
</div>
<div class="btn">
<div>撤销发布</div>
</div>
</div>
</template>
@@ -79,7 +74,6 @@ export default {
.padding {
min-height: 100%;
background-color: #ffffff;
padding-bottom: 120px;
.card {
padding: 32px 0 32px 32px;
@@ -158,24 +152,5 @@ export default {
padding-right: 20px;
}
}
.btn {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 120px;
background: #F3F6F9;
padding: 16px 32px;
box-sizing: border-box;
div {
height: 88px;
line-height: 88px;
text-align: center;
background: #FFFFFF;
border-radius: 16px;
border: 1px solid #FF4466;
}
}
}
</style>