精简页面初始化代码
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { OSSBaseUrl } from '@/utils/config';
|
||||
import { loginStatus, post } from '@/utils/https';
|
||||
import { loginStatusPage, post } from '@/utils/https';
|
||||
import {
|
||||
formatFileSize,
|
||||
getAuthInfo,
|
||||
@@ -76,16 +76,7 @@ Page({
|
||||
this.data.order_no = order_no;
|
||||
this.data.head_id = head_id;
|
||||
this.data.head_id2 = head_id2;
|
||||
this.setData({ loading: true });
|
||||
loginStatus()
|
||||
.then(() => {
|
||||
this.setData({ isLogin: true, loading: false });
|
||||
this.init();
|
||||
})
|
||||
.catch((err) => {
|
||||
this.setData({ isLogin: false, loading: false });
|
||||
console.log('调用登录状态请求失败', err);
|
||||
});
|
||||
loginStatusPage(this);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user