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
f8da4d9b2a05b159670634435284329d7bd9c263
1 parent
4a5e3078
detail page
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
8 deletions
static/sass/cart/_chose-panel.css
template/m.yohobuy.com/actions/product/detail/index.phtml
template/m.yohobuy.com/partials/cart/chose-panel.phtml
yohobuy/m.yohobuy.com/application/Bootstrap.php
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Detail.php
static/sass/cart/_chose-panel.css
View file @
f8da4d9
...
...
@@ -24,6 +24,10 @@
padding
:
0
22px
;
}
.tickets
{
}
.chose-items
{
height
:
325px
;
overflow
:
auto
;
...
...
template/m.yohobuy.com/actions/product/detail/index.phtml
View file @
f8da4d9
...
...
@@ -136,7 +136,7 @@
{
{#if
addToCartUrl
}
}
<!--
<a
id=
"addtoCart"
href=
"{{addToCartUrl}}"
class=
"addto-cart"
>加入购物车</a>
-->
<a
id=
"addtoCart"
href=
"javascript:;"
class=
"addto-cart"
>
加入购物车
</a>
<a
id=
"addtoCart"
href=
"javascript:;"
class=
"addto-cart"
>
{
{#if
../tickets
}
}立即购买
{
{else
}
}加入购物车
{
{/if
}
}
</a>
{
{/if
}
}
{
{#if
soldOut
}
}
...
...
template/m.yohobuy.com/partials/cart/chose-panel.phtml
View file @
f8da4d9
{
{#cartInfo
}
}
<div
class=
"chose-panel"
>
<div
class=
"main"
>
<div
class=
"infos"
>
<div
class=
"infos
{{#if ../tickets}}tickets-info{{/if}}
"
>
<div
class=
"basic-info"
>
{
{#thumbs
}
}
<img
class=
"thumb {{#unless @first}}hide{{/if}}"
src=
{
{img
}
}>
...
...
@@ -18,7 +18,7 @@
</div>
<div
class=
"chose-items"
>
<div
class=
"color-list block-list"
>
<span>
颜色
</span>
<span>
{
{colorName
}
}
</span>
{
{#
colors
}
}
<ul
id=
"{{id}}"
data-index=
"{{@index}}"
class=
"size-row clearfix {{#unless @first}}hide{{/if}}"
>
{
{#
color
}
}
...
...
@@ -29,8 +29,8 @@
</ul>
{
{/
colors
}
}
</div>
<div
class=
"size-list block-list"
>
<span>尺码</span>
<div
class=
"size-list block-list {{#if ../package}}hide{{/if}}"
>
<span>
{
{sizeName
}
}</span>
{
{#
sizes
}
}
<ul
class=
"size-row clearfix {{#unless @first}}hide{{/if}}"
>
{
{#
size
}
}
...
...
@@ -55,11 +55,12 @@
</div>
<span
class=
"left-num"
></span>
<input
id=
"left-num"
type=
"hidden"
value=
"0"
>
<input
id=
"limitNum"
type=
"hidden"
value=
"{{limit}}"
>
</div>
</div>
</div>
<div
class=
"btn-wrap"
>
<button
id=
"chose-btn-sure"
class=
"btn btn-sure"
>
加入购物车
</button>
<button
id=
"chose-btn-sure"
class=
"btn btn-sure"
>
{
{#if
../tickets
}
}立即购买
{
{else
}
}加入购物车
{
{/if
}
}
</button>
</div>
</div>
</div>
...
...
yohobuy/m.yohobuy.com/application/Bootstrap.php
View file @
f8da4d9
...
...
@@ -72,7 +72,7 @@ class Bootstrap extends Bootstrap_Abstract
$controller
=
'Index'
;
$action
=
'Index'
;
// 三级域名
if
(
3
===
$level
)
{
if
(
4
===
$level
)
{
$subDomain
=
strval
(
$hostParts
[
0
]);
switch
(
strtolower
(
$subDomain
))
{
case
'm'
:
// 老版(到频道选择)
...
...
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Detail.php
View file @
f8da4d9
...
...
@@ -51,7 +51,18 @@ class DetailController extends AbstractAction
if
(
!
$this
->
isApp
()){
$this
->
setNavHeader
(
'商品详情'
);
}
// 渲染模板
// 渲染模板 TODO
//门票
$data
[
'tickets'
]
=
true
;
$data
[
'cartInfo'
][
'colorName'
]
=
$data
[
'tickets'
]
?
'日期'
:
'颜色'
;
$data
[
'cartInfo'
][
'sizeName'
]
=
$data
[
'tickets'
]
?
'区域'
:
'尺码'
;
//单日票
$data
[
'single'
]
=
true
;
//套票
// $data['package'] = true;
//购票限制
$data
[
'cartInfo'
][
'limit'
]
=
'10'
;
// print_r($data); exit;
$this
->
_view
->
display
(
'index'
,
$data
);
}
...
...
Please
register
or
login
to post a comment