Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
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
周少峰
9 years ago
Commit
0b408b599d3e1ca809bf518acf7e7eeaa8766d85
1 parent
a166f4e6
product list
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
library/Plugin/Helpers.php
static/sass/_good.css
library/Plugin/Helpers.php
View file @
0b408b5
...
...
@@ -278,9 +278,7 @@ class Helpers
$result
[
'salePrice'
]
&&
$result
[
'salePrice'
]
.=
'.00'
;
}
// TODO student price
if
(
$productData
[
'student_price'
]
||
1
)
{
$result
[
'studentPrice'
]
=
$productData
[
'sales_price'
];
}
$result
[
'studentPrice'
]
=
sprintf
(
"%.2f"
,
$productData
[
'sales_price'
]
*
0.9
);
$result
[
'is_soon_sold_out'
]
=
(
$productData
[
'is_soon_sold_out'
]
===
'Y'
);
$url
=
self
::
url
(
'/product/pro_'
.
$productData
[
'product_id'
]
.
'_'
.
$productData
[
'goods_list'
][
0
][
'goods_id'
]
...
...
static/sass/_good.css
View file @
0b408b5
...
...
@@ -119,14 +119,15 @@
}
.students-price-tag
{
display
:
inline-block
;
width
:
80
px
;
width
:
65
px
;
text-align
:
center
;
height
:
22px
;
line-height
:
22px
;
background
:
resolve
(
'product/price-tag.png'
)
no-repeat
;
background-size
:
contain
;
color
:
#fff
;
font-size
:
16px
;
font-size
:
12px
;
padding
:
0
2px
;
}
}
.student-price
{
...
...
Please
register
or
login
to post a comment