Browse Source

登录时查询列表条件

xiaohaizhao 8 months ago
parent
commit
9f8973abd2
1 changed files with 15 additions and 0 deletions
  1. 15 0
      pages/login/modules/login.js

+ 15 - 0
pages/login/modules/login.js

@@ -51,6 +51,21 @@ function init() {
 			url: '/pages/tabbar/home/index'
 		})
 	})
+
+	_Http.basic({
+		"classname": "sysmanage.develop.querytemplet.querytemplet",
+		"method": "query",
+		"content": {}
+	}).then(res => {
+		console.log("获取列表查询条件", res)
+		if (res.msg != '成功') return;
+		let data = res.data.find(v => v.templetname == '站点全部');
+		if (data) {
+			res.data = res.data.filter(v => v.templetname != '站点全部')
+			res.data.unshift(data)
+		}
+		wx.setStorageSync('templetList', res.data)
+	})
 }
 
 /* 站点数据查询 */