|
|
@ -1,42 +1,56 @@ |
|
|
|
<template> |
|
|
|
<view class="padding-lg"> |
|
|
|
<template v-if="userInfo"> |
|
|
|
<!-- <template v-if="userInfo"> --> |
|
|
|
<template> |
|
|
|
<view class="padding bg-purple shadow-blur radius margin-bottom-xl"> |
|
|
|
<view> |
|
|
|
<view class="text-lg text-bold margin-bottom">个人申报信息</view> |
|
|
|
<view class="text-df text-grey"> |
|
|
|
<view class="text-xl text-bold margin-bottom">个人申报信息</view> |
|
|
|
<view class="text-lg text-grey"> |
|
|
|
<text class="margin-right">{{ userInfo.name }}</text> |
|
|
|
<text>{{ post }}</text> |
|
|
|
</view> |
|
|
|
<view class="text-df text-grey"> |
|
|
|
<view class="text-lg text-grey"> |
|
|
|
身份证: |
|
|
|
<text>{{ userInfo.idCard }}</text> |
|
|
|
</view> |
|
|
|
<view class="text-df text-grey"> |
|
|
|
<view class="text-lg text-grey"> |
|
|
|
手机号: |
|
|
|
<text>{{ userInfo.phone }}</text> |
|
|
|
</view> |
|
|
|
<view class="text-df text-grey"> |
|
|
|
<view class="text-lg text-grey"> |
|
|
|
学号: |
|
|
|
<text>{{ userInfo.no }}</text> |
|
|
|
</view> |
|
|
|
<view class="text-df text-grey"> |
|
|
|
<view class="text-lg text-grey"> |
|
|
|
登记时间: |
|
|
|
<text>{{ time }}</text> |
|
|
|
</view> |
|
|
|
<view class="text-df text-grey"> |
|
|
|
<view class="text-lg text-grey"> |
|
|
|
健康状态: |
|
|
|
<text>{{ level }}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="padding-top-xl"> |
|
|
|
<image |
|
|
|
<!-- <image |
|
|
|
:src="userInfo.healthCodeList[0].healthCode" |
|
|
|
class="img solid radius" |
|
|
|
mode="aspectFit" |
|
|
|
/> --> |
|
|
|
<image |
|
|
|
:src="healthCode" |
|
|
|
class="img solid radius" |
|
|
|
mode="aspectFit" |
|
|
|
/> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 返回首页 --> |
|
|
|
<button |
|
|
|
@tap="openPage('/pages/index/index')" |
|
|
|
class="shadow round bg-purple index-btn iconfont icon-home" |
|
|
|
hover-class="cc-active" |
|
|
|
>首页</button> |
|
|
|
|
|
|
|
</template> |
|
|
|
</view> |
|
|
|
</template> |
|
|
@ -69,7 +83,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
computed: { |
|
|
|
...mapState('user', ['token']), |
|
|
|
...mapState('user', ['token','healthCode']), |
|
|
|
|
|
|
|
// 身份 |
|
|
|
post() { |
|
|
@ -173,4 +187,18 @@ export default { |
|
|
|
height: 400rpx; |
|
|
|
margin: 0 auto; |
|
|
|
} |
|
|
|
|
|
|
|
.index-btn { |
|
|
|
position: fixed; |
|
|
|
bottom: 40rpx; |
|
|
|
right: 40rpx; |
|
|
|
width: 96rpx; |
|
|
|
height: 96rpx; |
|
|
|
line-height: 96rpx; |
|
|
|
padding: 0; |
|
|
|
} |
|
|
|
|
|
|
|
.index-btn::after { |
|
|
|
border: none; |
|
|
|
} |
|
|
|
</style> |
|
|
|