From 3282e95db0207ee133d1e98d9771dec9d83b0fc4 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 02 四月 2026 16:24:38 +0800
Subject: [PATCH] 2026.4.2 新增专题管理功能
---
pages/inspection/scene/index.js | 23 ++++++++++++++---------
1 files changed, 14 insertions(+), 9 deletions(-)
diff --git a/pages/inspection/scene/index.js b/pages/inspection/scene/index.js
index cb0c7f3..322defa 100644
--- a/pages/inspection/scene/index.js
+++ b/pages/inspection/scene/index.js
@@ -12,14 +12,19 @@
onLoad(options) {},
+ onShow() {
+ // this.getTabBar().init();
+ },
+
onReachBottom() {
this._loadMore();
},
_fetchData(page) {
const { area, onlineValue, sceneValue } = this.data;
+ if (!onlineValue || !sceneValue) return;
area.scensetypeid = sceneValue[0];
- area.online = onlineValue;
+ area.online = onlineValue[0];
return searchScene(area, page).then(res => {
if (res.success) {
this.setData({
@@ -42,14 +47,14 @@
onLocationChange(e) {
const { area } = this.data;
- area.provinceName = e.detail.provinceText;
- area.cityName = e.detail.cityText;
- area.districtName = e.detail.districtText;
- area.townName = e.detail.townText;
- area.provinceCode = e.detail.provinceValue;
- area.cityCode = e.detail.cityValue;
- area.districtCode = e.detail.districtValue;
- area.townCode = e.detail.townValue;
+ area.provincename = e.detail.provinceText;
+ area.cityname = e.detail.cityText;
+ area.districtname = e.detail.districtText;
+ area.townname = e.detail.townText;
+ area.provincecode = e.detail.provinceValue;
+ area.citycode = e.detail.cityValue;
+ area.districtcode = e.detail.districtValue;
+ area.towncode = e.detail.townValue;
area.locationValue = e.detail.locationValue;
this.setData({ area });
this._startLoad();
--
Gitblit v1.9.3