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;