Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
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
郭成尧
8 years ago
Commit
431c393f95e1b6b0cc4b1ce79b05fcf3a553dac0
1 parent
54570f8c
dirty-data-handle
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
utils/redshop-process.js
utils/redshop-process.js
View file @
431c393
...
...
@@ -2,7 +2,7 @@
* @Author: Targaryen
* @Date: 2017-03-23 11:02:31
* @Last Modified by: Targaryen
* @Last Modified time: 2017-0
5-26 16:42:29
* @Last Modified time: 2017-0
7-18 14:29:33
*/
/* 红人店铺数据处理 */
...
...
@@ -152,13 +152,18 @@ const _tools = {
* @param {*} moduleData
*/
tripleImage
(
moduleData
)
{
let
displayType
=
_
.
get
(
moduleData
,
'properties.displayType'
,
0
);
let
displayType
=
parseInt
(
_
.
get
(
moduleData
,
'properties.displayType'
,
0
),
10
);
// 没有展示方式,不展示此模块,处理接口返回数据异常的情况
if
(
!
displayType
)
{
return
{};
}
return
{
module_type
:
'TripleImage'
,
pics
:
_picsHandle
(
moduleData
),
isModuleMargin
:
_
.
get
(
moduleData
,
'properties.isModuleMargin'
,
0
),
displayType
:
parseInt
(
displayType
,
10
)
,
displayType
:
displayType
,
};
},
...
...
Please
register
or
login
to post a comment