Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
高东东-金蝶建发
/
jf-yzj-resume
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b16d82d6
authored
Nov 14, 2023
by
golton_gao
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update: 逻辑调整
parent
b1579ffa
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
src/config/test.js
src/js/index.js
src/config/test.js
View file @
b16d82d6
...
...
@@ -43,7 +43,7 @@ const config = {
product
:
false
,
ssoToken
:
'token'
,
userid
:
'10001285'
,
app
K
ey
:
'd504275e'
,
app
k
ey
:
'd504275e'
,
uid
:
'xycao@cndrealty.com'
,
token
:
'T4777979921957888'
,
baseUrl
:
'https://mxytest.cndrealty.com:4433/'
,
...
...
src/js/index.js
View file @
b16d82d6
...
...
@@ -53,10 +53,15 @@ app.ready(() => {
},
configuration
.
product
);
function
initUser
()
{
return
Promise
.
all
([
app
.
getUser
(),
app
.
getExtra
(
configuration
.
identifier
)])
.
then
(([
user
,
{
extra
}])
=>
{
// return Promise.all([app.getUser(), app.getExtra(configuration.identifier)])
return
app
.
getUser
()
.
then
((
user
)
=>
{
console
.
log
(
'user:'
,
user
)
// todo: 需要通过接口抓取。
const
extra
=
{
employeenumber
:
'10004534'
,
extra
:
'{"orgType": 1}'
}
userid
=
extra
.
employeenumber
||
user
.
employeenumber
;
token
=
user
.
ssoToken
;
_uid
=
extra
.
uid
||
user
.
uid
;
...
...
@@ -109,6 +114,7 @@ function initUser() {
}
})
.
catch
(
e
=>
{
console
.
log
(
'e:'
,
e
.
toString
())
if
(
!
configuration
.
product
)
{
_uid
=
configuration
.
uid
;
userid
=
configuration
.
userid
;
...
...
@@ -122,6 +128,7 @@ function initUser() {
}
function
mount
()
{
const
customEvt
=
window
.
customEvt
;
scrollBehavior
();
attachAtivated
(
backButton
);
attachAtivated
(
photo
);
...
...
@@ -141,7 +148,7 @@ function mount() {
);
*/
// 清除backbutton上的历史事件,绑定新事件
customEvt
.
removeListener
(
'backbutton'
)
customEvt
.
remove
Event
Listener
(
'backbutton'
)
customEvt
.
addEventListener
(
'backbutton'
,
()
=>
{
app
.
exit
();
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment