From d9b23974d29a59fa5d5c410d7a40e7f2dc854a04 Mon Sep 17 00:00:00 2001 From: kuaileWu <1432334894@qq.com> Date: Thu, 19 Jun 2025 10:11:37 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=82=A3=E8=80=85=E7=AB=AF=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=82=A3=E8=80=85=E5=87=BA=E7=94=9F=E5=B9=B4=E4=BB=BD=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E9=80=89=E6=8B=A9=E5=BD=93=E5=B9=B4=E4=BB=BD=E5=89=8D?= =?UTF-8?q?10=E5=B9=B4=E7=9A=84=E5=B9=B4=E4=BB=BD/2.=E6=82=A3=E8=80=85?= =?UTF-8?q?=E7=AB=AF=E6=82=A3=E8=80=85=E9=A2=84=E7=BA=A6=E5=A6=82=E6=9E=9C?= =?UTF-8?q?=E6=9C=AA=E6=B7=BB=E5=8A=A0=E8=BF=87=E6=82=A3=E8=80=85,?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E7=82=B9=E5=87=BB=E2=80=9C=E5=BC=80=E5=A7=8B?= =?UTF-8?q?=E9=A2=84=E7=BA=A6=E2=80=9D=E7=9B=B4=E6=8E=A5=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E5=88=B0=E6=B7=BB=E5=8A=A0=E6=82=A3=E8=80=85=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/SelectYear.vue | 8 +++++--- pages/index/index.vue | 1 - pages/visitors/visitors.vue | 5 +++++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/components/SelectYear.vue b/components/SelectYear.vue index 3eb17a3..309c976 100644 --- a/components/SelectYear.vue +++ b/components/SelectYear.vue @@ -30,13 +30,15 @@ export default { const date = new Date() const years = [] const year = date.getFullYear() - for (let i = 1900; i <= date.getFullYear(); i++) { + for (let i = 1900; i <= year; i++) { years.push(i) } + var currentYear = year - 10 + var value = [years.indexOf(currentYear)] return { + value, + currentYear, cssUrl:this.cssUrl, - value:[90], - currentYear: 1990, years: years, }; }, diff --git a/pages/index/index.vue b/pages/index/index.vue index dd481ea..7cdbc79 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -343,7 +343,6 @@ export default { uni.setStorageSync('depart', JSON.stringify(hospital)) uni.setStorageSync('doctor_info', JSON.stringify(this.doctorInfo)) this.$nav.navToPath("/pages/visitors/visitors?type=1&is_preview=1") - }, toPrebookList() { this.$nav.navToPath("/pages/prebook_list/prebook_list") diff --git a/pages/visitors/visitors.vue b/pages/visitors/visitors.vue index b398368..1c053eb 100644 --- a/pages/visitors/visitors.vue +++ b/pages/visitors/visitors.vue @@ -282,6 +282,11 @@ this.$http.req('api/user/get_visitors', obj, 'POST').then(data=>{ this.visitUsers = data; + if(this.visitUsers.length == 0) { + this.addVisitor() + return; + } + this.visitUsers = [...this.visitUsers] this.popMsgs = [] this.selectCount = 0