From 051b41992c298f10b0f73d6ac0e7d6c30d3e748e Mon Sep 17 00:00:00 2001 From: songsong428 Date: Mon, 30 Mar 2020 15:21:40 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/api/base.js | 2 +- pages/add-stroke/add-stroke.vue | 12 +- pages/apply-code/apply-code.vue | 254 ++++++++++------------ pages/basic-info/basic-info.vue | 6 +- pages/my-code/my-code.vue | 3 +- pages/my-trips/my-trips.vue | 2 +- pages/punch-the-clock/punch-the-clock.vue | 56 ++--- pages/user-code/user-code.vue | 4 +- utils/user.js | 8 +- 9 files changed, 171 insertions(+), 176 deletions(-) diff --git a/config/api/base.js b/config/api/base.js index 0e61a94..a6f79b9 100644 --- a/config/api/base.js +++ b/config/api/base.js @@ -1,5 +1,5 @@ // api基础地质 -export const BASE_URL = 'https://test.tall.wiki/gateway'; +export const BASE_URL = 'https://www.tall.wiki/gateway'; // 错误码 export const ERR_CODE = 200; diff --git a/pages/add-stroke/add-stroke.vue b/pages/add-stroke/add-stroke.vue index a5b3911..46c74bb 100644 --- a/pages/add-stroke/add-stroke.vue +++ b/pages/add-stroke/add-stroke.vue @@ -23,7 +23,7 @@ - 出行交通方式(必选) + *出行交通方式 @@ -37,11 +37,11 @@ *乘坐航班车次或车牌号码及座位号(没有填无) - + 同行人 - + @@ -67,7 +67,7 @@ export default { transports: [ { value: '0', - name: '铁路', + name: '火车', }, { value: '1', @@ -233,6 +233,10 @@ export default { showToast('请选择抵达时间'); return; } + if (this.startTime >= this.endTime){ + showToast('开始时间不能和抵达时间相同或者晚于抵达时间'); + return; + } if (this.journeyType<0) { showToast('请选择行程类型'); return; diff --git a/pages/apply-code/apply-code.vue b/pages/apply-code/apply-code.vue index d26f2ac..398b581 100644 --- a/pages/apply-code/apply-code.vue +++ b/pages/apply-code/apply-code.vue @@ -1,135 +1,115 @@