Toggle navigation
Toggle navigation
This project
Loading...
Sign in
mobile
/
YH_RNComponent
·
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
陈林
2017-09-25 17:07:01 +0800
Commit
1afee86a6d240c62622f98442a13d65bf6110e6c
1 parent
459530e7
容错了部分店铺信息返回数据结构不对的问题。review by 李犇。
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
js/brandStore/services/BrandStoreService.js
js/redPersonBrand/services/RedBrandService.js
js/brandStore/services/BrandStoreService.js
View file @
1afee86
...
...
@@ -22,6 +22,10 @@ export default class BrandStoreService {
}
})
.
then
((
json
)
=>
{
//在shopInfo 数据为空时,会返回[]数组,导致崩溃,在此做兼容
if
(
JSON
.
stringify
(
json
)
==
"[]"
){
json
=
{};
}
return
json
;
})
.
catch
((
error
)
=>
{
...
...
js/redPersonBrand/services/RedBrandService.js
View file @
1afee86
...
...
@@ -40,6 +40,10 @@ export default class RedBrandService {
}
})
.
then
((
json
)
=>
{
//在shopInfo 数据为空时,会返回[]数组,导致崩溃,在此做兼容
if
(
JSON
.
stringify
(
json
)
==
"[]"
){
json
=
{};
}
return
json
;
})
.
catch
((
error
)
=>
{
...
...
Please
register
or
login
to post a comment