From 15b965ced73cd168ee93bf327e704a8332e524fc Mon Sep 17 00:00:00 2001 From: woody Date: Tue, 12 Aug 2025 15:38:30 +0800 Subject: [PATCH] =?UTF-8?q?feat(regionSelect):=20=E4=BC=9A=E5=91=98?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E5=8C=BA=E5=9F=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/commonMixins/regionSelect.js | 5 +- pages/mine/index.vue | 190 ++++++++++++++++++++++------- pages/regiest/index.vue | 6 +- 3 files changed, 150 insertions(+), 51 deletions(-) diff --git a/pages/commonMixins/regionSelect.js b/pages/commonMixins/regionSelect.js index d66d0ae..5cba226 100644 --- a/pages/commonMixins/regionSelect.js +++ b/pages/commonMixins/regionSelect.js @@ -20,7 +20,7 @@ export default { if (!gradeValue) return this.gradeValue = gradeValue const params = { - type: gradeValue === 80 ? 'city' : 'county', + type: 'county', } getRegionAreaList(params).then(res => { this.provinceList = res.data.filter(item => item.parent === 0) @@ -44,7 +44,6 @@ export default { ) }, getCityFilterList() { - if (this.gradeValue === 80) return if (!this.countyList.length) { this.cityList = [] } @@ -53,7 +52,7 @@ export default { ) }, getCountyFilterList() { - if (!this.gradeValue || this.gradeValue === 80) { + if (!this.gradeValue) { this.countyList = [] } }, diff --git a/pages/mine/index.vue b/pages/mine/index.vue index 78f91af..efaa82b 100644 --- a/pages/mine/index.vue +++ b/pages/mine/index.vue @@ -97,49 +97,79 @@ - - - - 收益区域 - - - - + + + + + + + + {{ '省' }} + {{ + regionInfo.provinceVal || '-' + }} + + + {{ '市' }} + {{ + regionInfo.cityVal || '-' + }} + + + {{ '区' }} + {{ + regionInfo.countyVal || '-' + }} + + + + + + + + + {{ '省' }} + {{ + dstributionCenter.provinceVal || '-' + }} + + + {{ '市' }} + {{ + dstributionCenter.cityVal || '-' + }} + + + {{ '区' }} + {{ + dstributionCenter.countyVal || '-' + }} + + + + + + + + 暂无配送中心信息 + + + +