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. 48
      pages/user-code/user-code.vue

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

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

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

@ -85,7 +85,7 @@
<view class="title padding-bottom-sm">
<span class="text-red padding-right-xs">*</span>当前体温
</view>
<input name="input" placeholder="请输入当前真实体温" type="number" v-model="animalHeat" />
<input name="input" placeholder="请输入当前真实体温" type="text" v-model="animalHeat" />
</view>
</form>
<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 class="cu-time">{{ +item.startTime | formatDate }}</view>
<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 }}
</view>
</view>
@ -92,7 +92,7 @@
formatDate(time) {
var data = new Date(time);
return formatDate(data, 'MM-dd');
}
},
},
onLoad() {

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

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

48
pages/user-code/user-code.vue

@ -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>

Loading…
Cancel
Save