diff --git a/App.vue b/App.vue index 8fcf018..554c450 100644 --- a/App.vue +++ b/App.vue @@ -1,6 +1,7 @@ diff --git a/pages/apply-code/apply-code.vue b/pages/apply-code/apply-code.vue index 85a56df..b7a78cc 100644 --- a/pages/apply-code/apply-code.vue +++ b/pages/apply-code/apply-code.vue @@ -62,13 +62,7 @@ - - - - - 以上信息是我本人填写,本人对信息的真实性和完整性负责。 - - + @@ -129,6 +123,10 @@ }, }); }, + + changeIntentions(data) { + this.agree = data; + }, // 状态 StateChange: function(evt) { diff --git a/pages/basic-info/basic-info.vue b/pages/basic-info/basic-info.vue index 2d4b7c5..135e13a 100644 --- a/pages/basic-info/basic-info.vue +++ b/pages/basic-info/basic-info.vue @@ -76,7 +76,7 @@ /> - + - {{ $moment(+item.time).format('MM-DD') }} + {{ +item.time | datefmt('MM-DD') }} {{ item.district }},{{ item.address }} @@ -51,24 +51,31 @@ }; }, - created() { - this.getHealthSignHistory(); - }, - computed: mapState('user', ['token','userInfo','status']), + onLoad() { + const startTime = +this.$moment() + .startOf('year') + .format('x'); + const endTime = +this.$moment() + .endOf('day') + .format('x'); + const params = { + param: { + startTime, + endTime, + token: this.token + } + }; + this.getHealthSignHistory(params); + }, + methods: { ...mapMutations('user', ['setStatus','setUserInfo']), // 获取健康打卡记录 - async getHealthSignHistory() { + async getHealthSignHistory(params) { try { - const { token } = this; - const params = { - param: { - token - } - }; const res = await this.$http.post(HEALTH_SIGN_HISTORY, params); const { success, diff --git a/pages/my-trips/my-trips.vue b/pages/my-trips/my-trips.vue index b2dda7b..7f82153 100644 --- a/pages/my-trips/my-trips.vue +++ b/pages/my-trips/my-trips.vue @@ -3,43 +3,45 @@ - {{ item.startTime }} - - - - {{ item.startTime }} 到 {{ item.endTime }} + {{ +item.startTime | datefmt('MM-DD') }} + + + {{ +item.startTime | datefmt('MM月DD日') }} -- {{ +item.endTime | datefmt('MM月DD日') }} - - + + - 返校行程 - 日常外出 + 返校行程 + 日常外出 - + 同行人:{{ item.together }} - + 出行方式: {{ trip.name }} - + 乘坐航班车次或车牌号码及座位号: {{ item.carNo }} - + - + @@ -148,15 +146,15 @@ align-items: left; 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; @@ -166,7 +164,8 @@ padding: 0; z-index: 1; } - .add-btn::after{ + + .add-btn::after { border: none; } diff --git a/static/head-portrait.jpg b/static/head-portrait.jpg index 7b6c644..18ec786 100644 Binary files a/static/head-portrait.jpg and b/static/head-portrait.jpg differ