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
9268ef226ac9b8084efd9aaf89be10116f3204d7
1 parent
1bfa4f1d
students price shop cart
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
7 deletions
compile/m.yohobuy.com/.DS_Store
library/Plugin/Helpers.php
template/m.yohobuy.com/actions/index/home/index.phtml
template/m.yohobuy.com/partials/cart/good.phtml
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
compile/m.yohobuy.com/.DS_Store
View file @
9268ef2
No preview for this file type
library/Plugin/Helpers.php
View file @
9268ef2
...
...
@@ -700,7 +700,8 @@ class Helpers
$oneGoods
[
'size'
]
=
$value
[
'size_name'
];
$oneGoods
[
'checked'
]
=
$value
[
'selected'
]
===
'Y'
;
$oneGoods
[
'price'
]
=
self
::
transPrice
(
$value
[
'last_vip_price'
]);
$oneGoods
[
'isVipPrice'
]
=
$value
[
'sales_price'
]
!==
$value
[
'last_vip_price'
];
$oneGoods
[
'isVipPrice'
]
=
$value
[
'sales_price'
]
!==
$value
[
'last_vip_price'
]
&&
$value
[
'discount_tag'
]
===
'V'
;
$oneGoods
[
'isStudents'
]
=
$value
[
'sales_price'
]
!==
$value
[
'last_vip_price'
]
&&
$value
[
'discount_tag'
]
===
'S'
;
$oneGoods
[
'count'
]
=
$value
[
'buy_number'
];
$oneGoods
[
'promotion_id'
]
=
$value
[
'promotion_id'
];
...
...
template/m.yohobuy.com/actions/index/home/index.phtml
View file @
9268ef2
...
...
@@ -15,7 +15,7 @@
<div
class=
"iconfont more-icon tap-hightlight"
>
604
;</div>
</a>
{
{^students
}
}
<a
class=
"students-entry"
href=
"
###
"
>学生认证</a>
<a
class=
"students-entry"
href=
"
{{verifyUrl}}
"
>学生认证</a>
{
{/students
}
}
{
{/isLogin
}
}
...
...
@@ -24,7 +24,7 @@
<a
class=
"login-btn"
href=
"{{signinUrl}}"
>
登录/注册
</a>
<a
class=
"students-entry"
href=
"
###
"
>学生认证</a>
<a
class=
"students-entry"
href=
"
{{verifyUrl}}
"
>学生认证</a>
</div>
{
{/isLogin
}
}
</div>
...
...
template/m.yohobuy.com/partials/cart/good.phtml
View file @
9268ef2
...
...
@@ -49,15 +49,15 @@
{{#if isGift}}
<span class="sale-price">¥{{salesPrice}}</span>
{{/if}}
{{#if isStudents}}
<span class="students">学</span>
{{}}
</p>
{{#if isVipPrice}}
<span class="vip">
VIP
</span>
{{/if}}
{{#if isStudents}}
<span class="vip">学</span>
{{/if}}
{{#unless isAdvanceBuy}}
{{#unless isGift}}
<span class="iconfont icon-edit" data-count="{{count}}"></span>
...
...
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
View file @
9268ef2
...
...
@@ -1001,7 +1001,7 @@ class CartModel
$result
[
'sumPrice'
]
=
Helpers
::
transPrice
(
$data
[
'shopping_cart_data'
][
'last_order_amount'
]);
}
while
(
0
);
return
$result
;
}
...
...
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
View file @
9268ef2
...
...
@@ -56,6 +56,7 @@ class IndexController extends AbstractAction
$shoppingKey
=
Helpers
::
getShoppingKeyByCookie
();
$uid
=
$this
->
getUid
(
true
);
$uid
=
13311991
;
$cartType
=
$this
->
get
(
'cartType'
,
'all'
);
$data
=
array
(
...
...
Please
register
or
login
to post a comment