|
@@ -1,4 +1,7 @@
|
|
|
let count = 0; //接口完成数量
|
|
|
+import {
|
|
|
+ parsingAuth
|
|
|
+} from "../../../utils/auth";
|
|
|
|
|
|
function loginMsg(account_list, _Http) {
|
|
|
uni.setStorageSync("account_list", account_list);
|
|
@@ -6,7 +9,7 @@ function loginMsg(account_list, _Http) {
|
|
|
if (account_list.length == 1) {
|
|
|
uni.setStorageSync('userMsg', account_list[0])
|
|
|
query_userauth(_Http);
|
|
|
- query_adspacelist(_Http);
|
|
|
+ // query_adspacelist(_Http);
|
|
|
querySite_Parameter(_Http);
|
|
|
} else {
|
|
|
uni.navigateTo({
|
|
@@ -28,7 +31,8 @@ function query_userauth(_Http) {
|
|
|
title: res.msg,
|
|
|
icon: "none"
|
|
|
});
|
|
|
- uni.setStorageSync('userauth', res.data);
|
|
|
+ parsingAuth(res.data)
|
|
|
+ // uni.setStorageSync('userauth', res.data);
|
|
|
count += 1;
|
|
|
toHome();
|
|
|
});
|
|
@@ -67,7 +71,7 @@ function query_adspacelist(_Http) {
|
|
|
}
|
|
|
|
|
|
function toHome() {
|
|
|
- if (count < 3) return;
|
|
|
+ if (count < 2) return;
|
|
|
uni.reLaunch({
|
|
|
url: '/pages/index/index',
|
|
|
})
|