Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
毕凯
9 years ago
Commit
27ac04fa0edb7c92da41e864ba67558330927d1c
1 parent
2f10aeb0
增加加价购页面
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
24 deletions
template/m.yohobuy.com/actions/cart/index/gift-advance.phtml
template/m.yohobuy.com/partials/cart/gift-advance-good.phtml
template/m.yohobuy.com/partials/layout/use.phtml
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
template/m.yohobuy.com/actions/cart/index/gift-advance.phtml
View file @
27ac04f
{
{>
layout/header
}
}
<div
class=
"gift-advance-page yoho-page"
>
{
{#
shoppingCart
}
}
{
{#if
gift
}
}
{
{#
gift
}
}
{
{>
cart/gift-advance-good
}
}
{
{/
gift
}
}
{
{^
}
}
{
{#
advance
}
}
<div
class=
"advance-block"
>
<p
class=
"title"
>
{
{title
}
}</p>
{
{#
goods
}
}
{
{>
cart/gift-advance-good
}
}
{
{/
goods
}
}
</div>
{
{/
advance
}
}
{
{/if
}
}
{
{/
shoppingCart
}
}
{
{#if
advanceBuyPage
}
}
{
{#
advanceBuy
}
}
<div
class=
"advance-block"
>
<p
class=
"title"
>
{
{title
}
}</p>
{
{#goods
}
}
{
{>
cart/gift-advance-good
}
}
{
{/goods
}
}
</div>
{
{/
advanceBuy
}
}
{
{else
}
}
{
{#
gift
}
}
{
{>
cart/gift-advance-good
}
}
{
{/
gift
}
}
{
{/if
}
}
</div>
{
{>
layout/footer
}
}
...
...
template/m.yohobuy.com/partials/cart/gift-advance-good.phtml
View file @
27ac04f
...
...
@@ -23,7 +23,7 @@
¥{{price}}
</span>
<span class="price">
¥{{
sale
Price}}
¥{{
market
Price}}
</span>
<span class="count">
×{{count}}
...
...
@@ -33,4 +33,4 @@
</div>
</div>
\ No newline at end of file
</div>
...
...
template/m.yohobuy.com/partials/layout/use.phtml
View file @
27ac04f
...
...
@@ -225,7 +225,12 @@
seajs.use('js/product/recommend-for-you');
</script>
{{/if}}
{{#if giftAdvancePage}}
{{#if giftPage}}
<script>
seajs.use('js/shopping-cart/gift-advance');
</script>
{{/if}}
{{#if advanceBuyPage}}
<script>
seajs.use('js/shopping-cart/gift-advance');
</script>
...
...
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
View file @
27ac04f
...
...
@@ -143,11 +143,11 @@ class IndexController extends AbstractAction
$shoppingKey
=
Helpers
::
getShoppingKeyByCookie
();
$uid
=
$this
->
getUid
(
true
);
$cartType
=
$this
->
get
(
'cartType'
,
'ordinary'
);
$data
=
array
(
'
shoppingCar
tPage'
=>
true
);
$data
=
array
(
'
gif
tPage'
=>
true
);
$data
+=
CartModel
::
getCartData
(
$uid
,
$shoppingKey
,
$cartType
,
true
);
// 渲染模板
$this
->
_view
->
display
(
'gift-advance
-good
'
,
$data
);
$this
->
_view
->
display
(
'gift-advance'
,
$data
);
}
/*
...
...
@@ -161,12 +161,11 @@ class IndexController extends AbstractAction
$shoppingKey
=
Helpers
::
getShoppingKeyByCookie
();
$uid
=
$this
->
getUid
(
true
);
$cartType
=
$this
->
get
(
'cartType'
,
'ordinary'
);
$data
=
array
(
'
shoppingCart
Page'
=>
true
);
$data
=
array
(
'
advanceBuy
Page'
=>
true
);
$data
+=
CartModel
::
getCartData
(
$uid
,
$shoppingKey
,
$cartType
,
false
,
true
);
// 渲染模板
var_dump
(
$data
);
$this
->
_view
->
display
(
'gift-advance-good'
,
$data
);
$this
->
_view
->
display
(
'gift-advance'
,
$data
);
}
/*
...
...
Please
register
or
login
to post a comment