diff --git a/components/buns-address-sheet/buns-address-sheet.vue b/components/buns-address-sheet/buns-address-sheet.vue index 53c796d..35f6214 100644 --- a/components/buns-address-sheet/buns-address-sheet.vue +++ b/components/buns-address-sheet/buns-address-sheet.vue @@ -16,20 +16,24 @@ @@ -60,21 +64,10 @@ }, computed: { curShowData() { - const ret = [] - let letterMap = {} - this.curList.map(t => { - const firstUpCase = (t.nameEn || '').toLocaleUpperCase()[0] - if (!letterMap[firstUpCase]) { - letterMap[firstUpCase] = [] - } - letterMap[firstUpCase].push(t) - }) - Object.keys(letterMap).sort((a, b) => a - b > 0).map((key) => { - ret.push({ - letters: key, - data: letterMap[key] - }) - }) + let ret = this.curList || [] + if(this.keywords) { + ret = ret?.filter?.(t=> t.name?.indexOf(this.keywords) > -1) + } return ret } }, @@ -96,6 +89,7 @@ data() { return { curTabIndex: 0, + keywords: '', curCountryList: [], // { id , name, nameEn } curList: [], // { id , name, nameEn } submitVals: { @@ -144,6 +138,7 @@ return list }, changeCurTab(index) { + this.keywords = '' this.curTabIndex = index if (index == 0) { // 国家特殊处理 @@ -174,6 +169,7 @@ } }, async selectItemRegion(item = {}) { + this.keywords = '' // 选择数据变化,需清除下所有层级选中数据 if (item.code != this.submitVals.regIds[this.curTabIndex]) { this.submitVals.regIds.length = this.curTabIndex @@ -249,10 +245,6 @@ .showselect-list {} - .showselect-group { - display: flex; - } - .showselect-item { display: flex; align-items: center; diff --git a/pages/tabBar/deal/deal.vue b/pages/tabBar/deal/deal.vue index 6186c30..cc2f858 100644 --- a/pages/tabBar/deal/deal.vue +++ b/pages/tabBar/deal/deal.vue @@ -99,7 +99,7 @@ { ...dealBtnMap.baoJiaShiSuan }, { ...dealBtnMap.wenTiJian }, { ...dealBtnMap.mianDanDayin }, - { ...dealBtnMap.shuiFeiYuGu } + // { ...dealBtnMap.shuiFeiYuGu } ] } },