Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
xianyu-ufo-app-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
yyq
5 years ago
Commit
12ddecc58d20e6ab85a0dec05732448d5ed3ed62
1 parent
3984e9e7
添加设备型号
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
1 deletions
apps/common/xianyu.js
apps/entry-client.js
apps/store/yoho/index.js
apps/common/xianyu.js
View file @
12ddecc
...
...
@@ -163,6 +163,17 @@ const xianyu = {
errorAction
&&
errorAction
(
error
);
});
}
},
getClientInfo
(
okAction
,
errorAction
)
{
if
(
this
.
isAliApp
&&
window
.
WindVane
)
{
window
.
WindVane
.
call
(
'WVNativeDetector'
,
'getModelInfo'
,
{},
data
=>
{
okAction
&&
okAction
(
data
);
},
error
=>
{
errorAction
&&
errorAction
(
error
);
});
}
else
{
errorAction
&&
errorAction
();
}
}
};
...
...
apps/entry-client.js
View file @
12ddecc
...
...
@@ -78,6 +78,7 @@ Vue.use(ChangeBidPriceDialog);
initClient
(
store
);
initBaseLogs
();
store
.
$xianyu
=
xianyu
;
xianyu
.
$router
=
router
;
yoho
.
auth
=
async
(
args
)
=>
{
let
{
...
...
apps/store/yoho/index.js
View file @
12ddecc
import
*
as
Types
from
'./types'
;
import
cookie
from
'yoho-cookie'
;
import
{
merge
}
from
'lodash'
;
import
{
get
,
set
,
merge
}
from
'lodash'
;
export
default
function
(
mergeState
=
{})
{
return
{
...
...
@@ -201,12 +201,38 @@ export default function(mergeState = {}) {
{
params
:
{
appop
,
param
},
asyncindx
=
false
,
retry
=
false
},
)
{
try
{
// console.log(appop)
// console.log(param)
setTimeout
(()
=>
{
// 获取设备信息
if
(
!
retry
&&
!
get
(
window
,
'appBaseLogs.device.dm'
)
&&
this
.
$xianyu
.
getClientInfo
)
{
this
.
$xianyu
.
getClientInfo
(
info
=>
{
info
=
info
||
{}
set
(
window
,
'appBaseLogs.device.dm'
,
info
.
platformName
?
info
.
platformName
:
`
$
{
info
.
brand
}
$
{
info
.
model
}
`
);
this
.
dispatch
(
'reportYas'
,
{
params
:
{
appop
,
param
},
asyncindx
,
retry
:
true
});
},
(
error
)
=>
{
error
&&
set
(
window
,
'appBaseLogs.device.dm'
,
'unknown'
);
this
.
dispatch
(
'reportYas'
,
{
params
:
{
appop
,
param
},
asyncindx
,
retry
:
true
});
});
return
;
}
if
(
window
.
_yas
&&
window
.
_yas
.
sendAppLogs
)
{
param
=
param
||
{};
...
...
Please
register
or
login
to post a comment