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
hf
9 years ago
Commit
60f943d26811aa4f6828389eb0253e666574fc5d
1 parent
89ab8827
modify cart chose-panel use tpl render front to end
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
35 deletions
framework
template/m.yohobuy.com/actions/cart/index/gift-info.phtml
template/m.yohobuy.com/partials/cart/chose-panel.phtml
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
framework
@
75bbc3b0
Subproject commit
e9d066dd88a8e7e37103021c427a205a5cfcdcec
Subproject commit
75bbc3b075de19f239532f60c5995d06c5f814e2
...
...
template/m.yohobuy.com/actions/cart/index/gift-info.phtml
0 → 100644
View file @
60f943d
{
{>
cart/chose-panel
}
}
\ No newline at end of file
...
...
template/m.yohobuy.com/partials/cart/chose-panel.phtml
View file @
60f943d
...
...
@@ -38,33 +38,33 @@
<ul
class=
"size-row clearfix hide"
>
{
{#
size
}
}
<li
class=
"block {{#if chosed}}chosed{{/if}} {{#unless sizeNum}}zero-stock{{/unless}}"
data-id=
{
{id
}
}
data-colorid=
"{{colorId}}"
data-num=
"{{sizeNum}}"
data-numstr=
"{{colorNumStr}}"
data-skuid=
"{{skuId}}"
data-goodid=
"{{goodsId}}"
>
{
{name
}
}
</li>
{
{/
size
}
}
</ul>
{
{name
}
}
</li>
{
{/
size
}
}
</ul>
{
{/
sizes
}
}
</div>
<p>
<div
class=
"num"
>
<span>数量</span>
<div
class=
"clearfix"
>
<a
class=
"btn btn-minus"
href=
"javascript:void(0);"
>
<span
class=
"iconfont"
>
625
;</span>
</a>
<input
id=
"good-num"
class=
"good-num"
type=
"text"
value=
"1"
>
<a
class=
"btn btn-plus"
href=
"javascript:void(0);"
>
<span
class=
"iconfont"
>
624
;</span>
</a>
{
{/
sizes
}
}
</div>
<p>
<div
class=
"num"
>
<span>数量</span>
<div
class=
"clearfix"
>
<a
class=
"btn btn-minus"
href=
"javascript:void(0);"
>
<span
class=
"iconfont"
>
625
;</span>
</a>
<input
id=
"good-num"
class=
"good-num"
type=
"text"
value=
"1"
>
<a
class=
"btn btn-plus"
href=
"javascript:void(0);"
>
<span
class=
"iconfont"
>
624
;</span>
</a>
</div>
<span
class=
"left-num"
></span>
<input
id=
"left-num"
type=
"hidden"
value=
"0"
>
</div>
<span
class=
"left-num"
></span>
<input
id=
"left-num"
type=
"hidden"
value=
"0"
>
</div>
</div>
</div>
<div
class=
"btn-wrap"
>
<button
id=
"chose-btn-sure"
class=
"btn btn-sure"
>确定</button>
<div
class=
"btn-wrap"
>
<button
id=
"chose-btn-sure"
class=
"btn btn-sure"
>确定</button>
</div>
</div>
</div>
</div>
{
{/cartInfo
}
}
\ No newline at end of file
{
{/cartInfo
}
}
\ No newline at end of file
...
...
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
View file @
60f943d
...
...
@@ -192,15 +192,15 @@ class IndexController extends AbstractAction
$this
->
echoJson
(
$result
);
}
/*
* 获取购物车加价购商品数据模板
*/
public
function
giftinfoTplAction
()
{
if
(
$this
->
isAjax
())
{
echo
file_get_contents
(
$this
->
_view
->
getScriptPath
()
.
'/../partials/cart/chose-panel.phtml'
);
}
}
// /*
// * 获取购物车加价购商品数据模板
// */
// public function giftinfoTplAction()
// {
// if ($this->isAjax()) {
// echo file_get_contents($this->_view->getScriptPath() . '/../partials/cart/chose-panel.phtml');
// }
// }
/*
* 获取购物车加价购商品数据
...
...
@@ -215,7 +215,7 @@ class IndexController extends AbstractAction
$result
=
CartModel
::
giftProductData
(
$skn
,
$promotionId
);
}
$this
->
echoJson
(
$result
);
$this
->
_view
->
display
(
'gift-info'
,
$result
);
}
/**
...
...
Please
register
or
login
to post a comment