|
|
@ -2,17 +2,13 @@ |
|
|
|
<view> |
|
|
|
<!-- 添加 --> |
|
|
|
<button class="shadow round bg-cyan add-btn iconfont icon-plus" hover-class="cc-active" @tap="openPage('/pages/apply-code/apply-code')"></button> |
|
|
|
<view v-if="tableList && tableList.length>0" class="cu-timeline" :key="index" v-for="(item,index) in tableList"> |
|
|
|
<view v-if="tableList && tableList.length > 0" class="cu-timeline" :key="index" v-for="(item, index) in tableList"> |
|
|
|
<view class="cu-time">{{ +item.time | formatDate }}</view> |
|
|
|
<view class="cu-item text-blue cuIcon-locationfill"> |
|
|
|
<view class="content shadow-blur bg-blue light"> |
|
|
|
{{ item.district }},{{ item.address }} |
|
|
|
</view> |
|
|
|
<view class="content shadow-blur bg-blue light">{{ item.district }},{{ item.address }}</view> |
|
|
|
</view> |
|
|
|
<view class="cu-item text-green cuIcon-wefill"> |
|
|
|
<view class="content shadow-blur light" |
|
|
|
:class="item.healthLevel === 0 ? 'bg-green' : item.healthLevel === 1 ? 'bg-yellow' : 'bg-red'" |
|
|
|
> |
|
|
|
<view class="content shadow-blur light" :class="item.healthLevel === 0 ? 'bg-green' : item.healthLevel === 1 ? 'bg-yellow' : 'bg-red'"> |
|
|
|
<view class="margin-bottom flex"> |
|
|
|
体温:{{ item.animalHeat }}℃, |
|
|
|
<text v-for="state in status" :key="state.id"> |
|
|
@ -20,39 +16,27 @@ |
|
|
|
</text> |
|
|
|
</view> |
|
|
|
<view> |
|
|
|
<text class="radius bg-red margin-tb margin-right padding-xs" v-show="item.touchHubei === 1"> |
|
|
|
武汉接触史 |
|
|
|
</text> |
|
|
|
<text class="radius bg-red margin-tb margin-right padding-xs" v-show="item.touchSick === 1"> |
|
|
|
患者接触史 |
|
|
|
</text> |
|
|
|
<text class="radius bg-red margin-tb margin-right padding-xs" v-show="item.touchHubei === 1">武汉接触史</text> |
|
|
|
<text class="radius bg-red margin-tb margin-right padding-xs" v-show="item.touchSick === 1">患者接触史</text> |
|
|
|
</view> |
|
|
|
<view class="margin-tb-sm"> |
|
|
|
<text class="radius bg-red margin-tb margin-right padding-xs" v-show="item.touchOverseas === 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-red margin-tb margin-right padding-xs" v-show="item.touchOverseas === 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> |
|
|
|
</view> |
|
|
|
<view class="margin-top">紧急联系人:{{ item.emergencyName }} {{ item.emergencyPhone }}</view> |
|
|
|
<view class="margin-top" v-show="item.remark || item.filePath.length > 0"> |
|
|
|
备注:{{ item.remark }} |
|
|
|
<view class="margin-top"> |
|
|
|
<image @tap="viewImage(item.filePath,i)" :key="i" v-for="(file,i) in item.filePath" :src="file" style="width: 69px;height: 75px;" class="margin-lr-xs"></image> |
|
|
|
<view class="padding-top"> |
|
|
|
<image @tap="viewImage(item.filePath, i)" :key="i" v-for="(file, i) in item.filePath" :src="file" style="width: 69px;height: 75px;" |
|
|
|
class="margin-lr-xs"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view v-if="tableList && tableList.length === 0" class="padding-lg"> |
|
|
|
您还没有申请健康码,请点击右下角加号申请健康码。 |
|
|
|
<view v-if="tableList && tableList.length === 0" class="padding-lg">您还没有申请健康码,请点击右下角加号申请健康码。</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
@ -65,16 +49,19 @@ |
|
|
|
import { |
|
|
|
HEALTH_SIGN_HISTORY |
|
|
|
} from 'api/api'; |
|
|
|
import { mapState,mapMutations } from 'vuex'; |
|
|
|
import { |
|
|
|
mapState, |
|
|
|
mapMutations |
|
|
|
} from 'vuex'; |
|
|
|
|
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
tableList: [], |
|
|
|
tableList: [] |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
computed: mapState('user', ['token','userInfo','status']), |
|
|
|
computed: mapState('user', ['token', 'userInfo', 'status']), |
|
|
|
|
|
|
|
// 时间戳转化日期 |
|
|
|
filters: { |
|
|
@ -102,7 +89,7 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
...mapMutations('user', ['setStatus','setUserInfo']), |
|
|
|
...mapMutations('user', ['setStatus', 'setUserInfo']), |
|
|
|
|
|
|
|
// 获取健康打卡记录 |
|
|
|
async getHealthSignHistory(params) { |
|
|
@ -135,16 +122,16 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
// 预览图片 |
|
|
|
viewImage(filePath,index) { |
|
|
|
if(filePath && filePath.length > 0){ |
|
|
|
viewImage(filePath, index) { |
|
|
|
if (filePath && filePath.length > 0) { |
|
|
|
uni.previewImage({ |
|
|
|
urls: filePath, |
|
|
|
current:filePath[index] |
|
|
|
}) |
|
|
|
current: filePath[index], |
|
|
|
indicator: 'number', |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
}; |
|
|
|
</script> |
|
|
|
|
|
|
@ -163,14 +150,14 @@ |
|
|
|
font-size: 36rpx; |
|
|
|
margin-bottom: 20rpx; |
|
|
|
|
|
|
|
.data-title{ |
|
|
|
.data-title { |
|
|
|
line-height: 60rpx; |
|
|
|
color: $black; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.add-btn{ |
|
|
|
.add-btn { |
|
|
|
position: fixed; |
|
|
|
bottom: 40rpx; |
|
|
|
right: 40rpx; |
|
|
@ -180,7 +167,8 @@ |
|
|
|
padding: 0; |
|
|
|
z-index: 1; |
|
|
|
} |
|
|
|
.add-btn::after{ |
|
|
|
|
|
|
|
.add-btn::after { |
|
|
|
border: none; |
|
|
|
} |
|
|
|
</style> |
|
|
|