From e6a8b4ecba6151daee4a68b8877654dd1feeae03 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Sat, 25 Jun 2022 11:05:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8B=E5=95=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/activity/book.vue | 84 ++++++++++++++++++++++++----- pages/visit/book.vue | 115 ++++++++++++++++++++++++++++++++-------- 2 files changed, 163 insertions(+), 36 deletions(-) diff --git a/pages/activity/book.vue b/pages/activity/book.vue index d80f5dd..0cc0078 100644 --- a/pages/activity/book.vue +++ b/pages/activity/book.vue @@ -145,11 +145,14 @@ - + + + + @@ -177,11 +180,14 @@ - + + + + @@ -193,7 +199,11 @@ 确定 - + + + + + @@ -271,15 +281,32 @@ trigger: 'change' }] }, - cardType: [{ - id: 1, - name: '身份证', - }, - { - id: 2, - name: '护照', - } - ], + cardshow:false, + cardshows:false, + card_type_name:"身份证", + card_type_names:"身份证", + // cardLists:['身份证','港澳台居民居住证','护照','台胞证','港澳证'], + cardLists: [[{ + value: 1, + label: '身份证' + }, + { + value: 2, + label: '港澳台居民居住证' + }, + { + value: 3, + label: '护照' + }, + { + value: 4, + label: '台胞证' + }, + { + value: 5, + label: '港澳证' + } + ]], currentNotice: {}, notice: [{ title: "预约须知", @@ -323,6 +350,28 @@ clearTimeout(this.timer) }, methods: { + confirmCards(e){ + this.card_type_names = e.value[0].label + this.form.card_type = e.value[0].value + this.cardshows = false + }, + cancel(){ + this.cardshow = false + }, + cancels(){ + this.cardshows = false + }, + showCards(){ + this.cardshows = true + }, + confirmCard(e){ + this.card_type_name = e.value[0].label + this.formUser.card_type = e.value[0].value + this.cardshow = false + }, + showCard(){ + this.cardshow = true + }, goHome(){ uni.switchTab({ url: "/pages/index/index" @@ -737,5 +786,12 @@ text-align: center; line-height: 70rpx; margin:30rpx auto; + } + .u-radio-group{ + flex-wrap: wrap; + } + .u-radio-group .u-radio{ + margin-bottom:10rpx; + margin-right:10rpx } diff --git a/pages/visit/book.vue b/pages/visit/book.vue index 2c87570..3a1f341 100644 --- a/pages/visit/book.vue +++ b/pages/visit/book.vue @@ -183,11 +183,14 @@ - + + + + @@ -222,19 +225,26 @@ - + + + + + - - - - + + + + + + @@ -245,7 +255,11 @@ 确定 - + + + + + @@ -324,12 +338,14 @@ mobile: "", type: "", details_list: [] - }, + }, + formUser: { name: "", idcard: "", mobile: "", - card_type: 1 + card_type: 1, + is_disability: 0, }, rules: { name: [{ @@ -368,16 +384,42 @@ maxCount: 1, config: {}, info: {}, - editIndex: -1, - cardList: [{ - idx: 1, - name: '身份证' - }, - { - idx: 2, - name: '护照' - } - ] + editIndex: -1, + disabilitys:[{ + idx: 0, + name: '否' + }, + { + idx: 1, + name: '是' + }], + cardshow:false, + cardshows:false, + card_type_name:"身份证", + card_type_names:"身份证", + // cardLists:['身份证','港澳台居民居住证','护照','台胞证','港澳证'], + cardLists: [[{ + value: 1, + label: '身份证' + }, + { + value: 2, + label: '港澳台居民居住证' + }, + { + value: 3, + label: '护照' + }, + { + value: 4, + label: '台胞证' + }, + { + value: 5, + label: '港澳证' + } + ]], + } }, onReady() { @@ -425,6 +467,28 @@ clearTimeout(this.timer) }, methods: { + confirmCards(e){ + this.card_type_names = e.value[0].label + this.form.card_type = e.value[0].value + this.cardshows = false + }, + cancel(){ + this.cardshow = false + }, + cancels(){ + this.cardshows = false + }, + showCards(){ + this.cardshows = true + }, + confirmCard(e){ + this.card_type_name = e.value[0].label + this.formUser.card_type = e.value[0].value + this.cardshow = false + }, + showCard(){ + this.cardshow = true + }, goHome(){ uni.switchTab({ url: "/pages/index/index" @@ -685,7 +749,7 @@ if (!that.util.isValidCardID(that.formUser.idcard)) { uni.showToast({ icon: "none", - title: "请正确输入身份证号1" + title: "请正确输入身份证号" }) return false; } @@ -1120,5 +1184,12 @@ } .richp{ margin-bottom:10rpx; + } + .u-radio-group{ + flex-wrap: wrap; + } + .u-radio-group .u-radio{ + margin-bottom:10rpx; + margin-right:10rpx }