From db49a6f0e9c43fd6c3fa681bfe5129ff4380d458 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BD=AA?= Date: Thu, 15 May 2025 16:37:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E6=A5=9A=E6=9C=AC=E5=9C=B0=E7=BC=93?= =?UTF-8?q?=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/adminNfc/index.vue | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pages/adminNfc/index.vue b/pages/adminNfc/index.vue index 8d27441..e66dd51 100644 --- a/pages/adminNfc/index.vue +++ b/pages/adminNfc/index.vue @@ -115,15 +115,15 @@ export default { console.log(searchType, 'searchType---') if (searchType === 1) { this.selectVal = '筛选' - this.getAreaFn() + this.getAreaFn('local') } if (searchType === 2) { this.selectVal = '已绑定' - this.getAreaFn() + this.getAreaFn('local') } if (searchType === 3) { this.selectVal = '未绑定' - this.getAreaFn() + this.getAreaFn('local') } this.getDataFn() console.log('%c%s', 'color:red', 'onSHow') @@ -188,7 +188,7 @@ export default { Object.assign(this.form, res.data) }, // 获取区域列表 - async getAreaFn() { + async getAreaFn(local) { const res = await GetRegionDataListApi() console.log(res, '区域数据') this.tabsList = res.data @@ -196,6 +196,9 @@ export default { this.tabCurrentId = this.tabsList[0].id this.getSonAreaFn() } + if(local){ + uni.setStorageSync('search', 0) + } }, // 绑定成功 closeResFn() { @@ -325,7 +328,7 @@ export default { margin-left:20rpx; width: 120rpx; height: 60rpx; - line-height: 60rpx; + // line-height: 60rpx; border-radius: 20rpx; text-align: center;