Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
王水玲
6 years ago
Commit
8660ff3e6b142b140768e1ec0f425e1023342d37
2 parents
34e0a094
3a667f51
Merge branch 'feature/food-setting' into 'release/6.8.3'
食品类去除过期日期 See merge request
!400
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
20 deletions
apps/product/models/detail-service.js
public/js/product/detail.page.js
apps/product/models/detail-service.js
View file @
8660ff3
...
...
@@ -540,10 +540,6 @@ function _getBasicDescription(productDescBo) {
basic
.
push
({
key
:
'保质期'
,
value
:
productDescBo
.
guaranteeDay
});
}
if
(
productDescBo
.
releaseTime
)
{
basic
.
push
({
key
:
'过期时间'
,
value
:
productDescBo
.
releaseTime
});
}
if
(
productDescBo
.
productionTime
)
{
basic
.
push
({
key
:
'生产日期'
,
value
:
productDescBo
.
productionTime
});
}
...
...
public/js/product/detail.page.js
View file @
8660ff3
...
...
@@ -2024,28 +2024,16 @@ $(function() {
// 调整食品类商品信息的间距
let
$productionTime
=
$
(
'.description-content .basic span[data-key=生产日期]'
).
parents
(
'.justpostion'
);
let
$releaseTime
=
$
(
'.description-content .basic span[data-key=过期时间]'
).
parents
(
'.justpostion'
);
let
releaseTimeIndex
=
$releaseTime
.
parents
(
'li'
).
index
();
let
productionTimeIndex
=
$productionTime
.
parents
(
'li'
).
index
();
let
postionLeft1
=
'100px'
;
let
postionLeft2
=
'56px'
;
if
(
$releaseTime
.
length
)
{
if
((
releaseTimeIndex
+
1
)
%
3
===
1
&&
$productionTime
.
width
()
>
285
)
{
if
(
$productionTime
.
length
)
{
if
((
productionTimeIndex
+
1
)
%
3
===
2
&&
$productionTime
.
width
()
>
285
)
{
postionLeft2
=
0
;
}
if
((
releaseTimeIndex
+
1
)
%
3
===
2
)
{
if
(
$releaseTime
.
width
()
>
285
)
{
postionLeft2
=
0
;
}
if
(
$productionTime
.
width
()
>
285
)
{
postionLeft1
=
0
;
postionLeft2
=
0
;
}
}
if
((
releaseTimeIndex
+
1
)
%
3
===
0
&&
$releaseTime
.
width
()
>
285
)
{
if
((
productionTimeIndex
+
1
)
%
3
===
0
&&
$productionTime
.
width
()
>
285
)
{
postionLeft1
=
0
;
}
}
...
...
Please
register
or
login
to post a comment