|
@@ -1,7 +1,6 @@
|
|
|
const _Http = getApp().globalData.http;
|
|
|
-
|
|
|
function loginMsg(res) {
|
|
|
- wx.setStorageSync('account_list', res.account_list)
|
|
|
+ wx.setStorageSync('account_list', res.account_list);
|
|
|
if (res.account_list.length == 1) {
|
|
|
wx.setStorageSync('userMsg', res.account_list[0])
|
|
|
query_userauth();
|
|
@@ -17,7 +16,10 @@ function query_userauth(i = 0) {
|
|
|
title: '权限查询失败,请稍后再试',
|
|
|
icon: "none"
|
|
|
})
|
|
|
- if (i == 0) querySite_Parameter();
|
|
|
+ if (i == 0) {
|
|
|
+ query_adspacelist();
|
|
|
+ querySite_Parameter();
|
|
|
+ }
|
|
|
_Http.basic({
|
|
|
"classname": "sysmanage.develop.userauth.userauth",
|
|
|
"method": "query_userauth",
|
|
@@ -38,7 +40,7 @@ function query_userauth(i = 0) {
|
|
|
if (!getApp().globalData.socketEstablish) getApp().initSocket();
|
|
|
console.log(getApp().globalData.SocketTask)
|
|
|
}
|
|
|
-
|
|
|
+/* 查询站点数据 */
|
|
|
function querySite_Parameter(i = 0) {
|
|
|
if (i == 5) return;
|
|
|
_Http.basic({
|
|
@@ -50,7 +52,18 @@ function querySite_Parameter(i = 0) {
|
|
|
wx.setStorageSync('siteP', res.data);
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
+/* 查询轮播图 */
|
|
|
+function query_adspacelist(i = 0) {
|
|
|
+ if (i == 5) return;
|
|
|
+ _Http.basic({
|
|
|
+ "classname": "common.adspace.adspace",
|
|
|
+ "method": "query_adspacelist",
|
|
|
+ "content": {}
|
|
|
+ }).then(res => {
|
|
|
+ if (res.msg != '成功') return query_adspacelist(i + 1);
|
|
|
+ console.log("轮播图", res)
|
|
|
+ })
|
|
|
+}
|
|
|
/* 站点数据查询 */
|
|
|
module.exports = {
|
|
|
loginMsg,
|