Browse Source

完善细节

remotes/origin/HEAD
songsong428 5 years ago
parent
commit
a69996e28d
  1. 2
      pages/add-stroke/components/date-selector.vue
  2. 2
      pages/apply-code/apply-code.vue
  3. 4
      pages/my-trips/my-trips.vue
  4. 2
      pages/punch-the-clock/punch-the-clock.vue
  5. 50
      pages/user-code/user-code.vue

2
pages/add-stroke/components/date-selector.vue

@ -11,7 +11,7 @@
export default { export default {
name: 'DateSelector', name: 'DateSelector',
data() { data() {
const time = this.$moment().format('YYYY-MM-DD'); const time = this.$moment().format('YYYY-MM-DD hh:mm:ss');
return { return {
time, time,
}; };

2
pages/apply-code/apply-code.vue

@ -85,7 +85,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="number" v-model="animalHeat" /> <input name="input" placeholder="请输入当前真实体温" type="text" v-model="animalHeat" />
</view> </view>
</form> </form>
<user-agreement @changeIntentions="changeIntentions"></user-agreement> <user-agreement @changeIntentions="changeIntentions"></user-agreement>

4
pages/my-trips/my-trips.vue

@ -5,7 +5,7 @@
<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.startTime | formatDate }}</view> <view class="cu-time">{{ +item.startTime | formatDate }}</view>
<view class="cu-item cuIcon-timefill text-blue"> <view class="cu-item cuIcon-timefill text-blue">
<view class="content shadow-blur bg-blue light"> <view class="content shadow-blur bg-blue light">formatDate(data, 'MM-dd hh:mm:ss')
{{ +item.startTime | formatDate }} {{ +item.endTime | formatDate }} {{ +item.startTime | formatDate }} {{ +item.endTime | formatDate }}
</view> </view>
</view> </view>
@ -92,7 +92,7 @@
formatDate(time) { formatDate(time) {
var data = new Date(time); var data = new Date(time);
return formatDate(data, 'MM-dd'); return formatDate(data, 'MM-dd');
} },
}, },
onLoad() { onLoad() {

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

@ -59,7 +59,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"><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="number" v-model="animalHeat" /> <input placeholder="请输入当前真实体温" name="input" type="text" v-model="animalHeat"/>
</view> </view>
</form> </form>
<user-agreement @changeIntentions="changeIntentions"></user-agreement> <user-agreement @changeIntentions="changeIntentions"></user-agreement>

50
pages/user-code/user-code.vue

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

Loading…
Cancel
Save