From 7123f2dc617877a7778d764a0338156e59113fbb Mon Sep 17 00:00:00 2001 From: youmengting <2080639302@qq.com> Date: Tue, 23 May 2023 10:00:34 +0800 Subject: [PATCH 1/2] address-5/23 --- Utils/physicalObject.js | 2 +- .../components/uni-combox/uni-combox.vue | 55 +++++--- .../address/addNewAddress/addNewAddress.vue | 125 +++++++++++------- .../classify/order/wuliuPupup/wuliuPupup.vue | 2 +- 4 files changed, 117 insertions(+), 67 deletions(-) diff --git a/Utils/physicalObject.js b/Utils/physicalObject.js index 37c2d9a..0f24b50 100644 --- a/Utils/physicalObject.js +++ b/Utils/physicalObject.js @@ -73,7 +73,7 @@ export const insertDeliveryAddress = params => { export const baiduApiMapSearch = params => { - return POST('GET', `${base}/common/baiduApiMapSearch`, params).then(res => res.data); + return POST('GET', `${base}/common/gaoDeApiMapSearch`, params).then(res => res.data); } // 更新收货地址 export const updateDeliveryAddress = params => { diff --git a/components/uni-combox/components/uni-combox/uni-combox.vue b/components/uni-combox/components/uni-combox/uni-combox.vue index 3fae44f..949546a 100644 --- a/components/uni-combox/components/uni-combox/uni-combox.vue +++ b/components/uni-combox/components/uni-combox/uni-combox.vue @@ -4,11 +4,13 @@ {{label}} - + - - + + {{emptyTips}} @@ -20,11 +22,11 @@ - + {{emptyTips}} - + @@ -86,6 +88,10 @@ type: String, default: '' }, + height:{ + type:Number, + default:0, + } }, data() { return { @@ -138,11 +144,17 @@ } }, - onBlur() { + + async onBlur() { this.$emit("blur") if(this.isAddress){ - this.showSelector = false; + if(this.inputVal==""){ + this.showSelector = false; + }else{ + this.showSelector = true; + } + return } @@ -169,7 +181,7 @@ /* #ifndef APP-NVUE */ display: flex; /* #endif */ - height: 40px; + // height: 40px; flex-direction: row; align-items: center; // border-bottom: solid 1px #DDDDDD; @@ -198,7 +210,17 @@ height: 22px; line-height: 22px; } - + .uni-combox__input2 { + flex: 1; + font-size: 16px; + line-height: 22px; + width: 100%; + background-color: #f6f6f6; + border-radius: 8px; + box-sizing: border-box; + padding: 10px; + height: 100px; + } .uni-combox__input-arrow { padding: 10px; } @@ -213,19 +235,18 @@ border-radius: 6px; box-shadow: #DDDDDD 4px 4px 8px, #DDDDDD -4px -4px 8px; z-index: 100; - .topmore{ - top:52px; - } + } - + .uni-combox__selector.topmore{ + top:110px; + // bottom: 75px; + } + .uni-combox__selector-scroll { max-height: 200px; box-sizing: border-box; } - .uni-combox__selector-scroll2 { - max-height:300px; - box-sizing: border-box; - } + .uni-combox__selector::before { content: ''; diff --git a/physical-merchants/address/addNewAddress/addNewAddress.vue b/physical-merchants/address/addNewAddress/addNewAddress.vue index 5667c79..902f084 100644 --- a/physical-merchants/address/addNewAddress/addNewAddress.vue +++ b/physical-merchants/address/addNewAddress/addNewAddress.vue @@ -1,13 +1,13 @@