Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHO-ACTIVITY-PHP
·
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
Plain Diff
Browse Files
Authored by
毕凯
9 years ago
Commit
91d0aa3e761e49a93c741232394670e5f23807c4
2 parents
674bc2cf
b44b8bff
master
...
beta
develop
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
67 additions
and
52 deletions
docs/data-structure.md
static/js/common.js
static/js/product/detail/comments-consults.js
static/sass/product/_comments-consults.scss
static/sass/product/_detail.scss
template/m.yohobuy.com/actions/index/home/i-help.phtml
template/m.yohobuy.com/actions/product/detail/comments.phtml
template/m.yohobuy.com/partials/product/feedback-tab.phtml
yohobuy/m.yohobuy.com/application/controllers/Home.php
docs/data-structure.md
View file @
91d0aa3
...
...
@@ -802,19 +802,23 @@
{
id: 1,
chosed: true,
name: '黄色'
},
...
],
sizes: [
{
id: 2,
chosed: true,
name: 'X'
name: '黄色',
colorNum:10,
shortUrl:'',
sizes: [
{
id: 2,
chosed: true,
name: 'X',
sizeNum: 2
},
...
]
},
...
],
num: 2
totalNum: 20
}
### 购物车商品
...
...
@@ -1113,7 +1117,8 @@
'feedbacks' : {
'commentsNum' : 0,
'consultsNum' : 1,
'link' : '',
'commentsUrl' : '',
'consultsUrl' : '',
'comments' : [
{
'userName' : 'Lynnic',
...
...
@@ -1243,6 +1248,20 @@
'id' : '',
'preferenceUrl' :''
}
### 评价列表页面
{
'comments':{
'list' :
[
{
'userName':'',
'desc':'',
'content':'',
'time':''
}
...
]
}
}
### 咨询列表页面
{
'link' : '咨询表单跳转url',
...
...
static/js/common.js
View file @
91d0aa3
...
...
@@ -182,8 +182,8 @@ $yohoPage.on('touchstart', '.tap-hightlight', function() {
$
(
this
).
addClass
(
'highlight'
);
}).
on
(
'touchend touchcancel'
,
'.tap-hightlight'
,
function
()
{
$
(
this
).
removeClass
(
'highlight'
);
});
});
$
(
'.nav-home'
).
on
(
'touchstart'
,
function
()
{
$
(
'.homebuttom'
).
toggleClass
(
'none'
);
});
...
...
static/js/product/detail/comments-consults.js
View file @
91d0aa3
...
...
@@ -9,10 +9,7 @@ var $ = require('jquery'),
var
commentsNum
,
consultsNum
;
var
consultFooterEle
=
$
(
'.consult-content-footer'
)[
0
],
consultFooterHammer
=
consultFooterEle
&&
new
Hammer
(
consultFooterEle
),
navtabEle
=
document
.
getElementById
(
'nav-tab'
),
var
navtabEle
=
document
.
getElementById
(
'nav-tab'
),
navtabHammer
=
navtabEle
&&
new
Hammer
(
navtabEle
),
gotoConsultEle
=
document
.
getElementById
(
'goto-consult'
),
...
...
@@ -66,12 +63,6 @@ if (navtabHammer) {
});
}
if
(
consultFooterHammer
)
{
consultFooterHammer
.
on
(
'tap'
,
function
()
{
location
.
href
=
$
(
consultFooterEle
).
data
(
'href'
);
});
}
if
(
gotoConsultHammer
)
{
gotoConsultHammer
.
on
(
'tap'
,
function
()
{
location
.
href
=
$
(
gotoConsultEle
).
data
(
'href'
);
...
...
static/sass/product/_comments-consults.scss
View file @
91d0aa3
...
...
@@ -168,9 +168,6 @@
&
.focus
{
color
:
#000
;
}
.comments-num
{
display
:
none
;
}
}
.comment-nav
{
border-right
:
1px
solid
#ccc
;
...
...
@@ -286,17 +283,16 @@
.comment-content-footer
,
.consult-content-footer
{
display
:
block
;
min-height
:
pxToRem
(
88px
);
text-align
:
center
;
background-color
:
#fff
;
border-bottom
:
1px
solid
$borderC
;
line-height
:
pxToRem
(
88px
);
font-size
:
pxToRem
(
28px
);
a
{
color
:
#b0b0b0
;
.iconfont
{
font-size
:
inherit
;
}
color
:
#b0b0b0
;
.iconfont
{
font-size
:
inherit
;
}
}
...
...
static/sass/product/_detail.scss
View file @
91d0aa3
...
...
@@ -250,8 +250,15 @@ $basicBtnC:#eb0313;
padding-right
:
pxToRem
(
28px
);
border-bottom
:
1px
solid
$borderC
;
background-color
:
$pageBgC
;
display
:
flex
;
align-items
:
center
;
@include
flexbox
((
box-flex
:
1
.0
,
display
:
box
,
box-align
:
center
)
,
$version
:
1
);
@include
flexbox
((
display
:
flex
,
align-items
:
center
));
span
{
// display: table-cell;
display
:
-
webkit-box
;
...
...
template/m.yohobuy.com/actions/index/home/i-help.phtml
View file @
91d0aa3
...
...
@@ -2,7 +2,7 @@
<div
class=
"iHelp"
>
<ul>
{
{#
iHelp
}
}
<li><a
href=
"/home/helpDetail?c
aption={{ caption}}"
><span>
{
{
caption
}
}</span><i
class=
"iconfont num"
>
604
;</i></a></li>
<li><a
href=
"/home/helpDetail?c
ode={{ code}}"
><span>
{
{
name
}
}</span><i
class=
"iconfont num"
>
604
;</i></a></li>
{
{/
iHelp
}
}
</ul>
</div>
...
...
template/m.yohobuy.com/actions/product/detail/comments.phtml
View file @
91d0aa3
...
...
@@ -8,7 +8,7 @@
{
{userName
}
}
</span>
<span
class=
"goods-spec"
>
{
{desc
}
}
购买了
{
{desc
}
}
</span>
<p
class=
"detail-content"
>
{
{content
}
}
...
...
template/m.yohobuy.com/partials/product/feedback-tab.phtml
View file @
91d0aa3
<ul id="nav-tab" class="nav-tab clearfix">
<li class="comment-nav tap-hightlight">商品评价
<span class="comments-num">{{commentsNum}}</span>
</li>
<li class="comment-nav tap-hightlight">商品评价
(<span class="comments-num">{{commentsNum}}</span>)
</li>
<li class="consult-nav tap-hightlight">购买咨询(<span class="consults-num">{{consultsNum}}</span>)</li>
</ul>
<div id="feedback-content" >
...
...
@@ -21,6 +21,10 @@
</span>
{{/ comments}}
</div>
<a class="comment-content-footer tap-hightlight" href="{{commentsUrl}}">
查看更多
<span class="iconfont"></span>
</a>
{{^}}
<div class="comment-content-main content-main no-item">
<span class="iconfont"></span>暂无评论
...
...
@@ -46,17 +50,16 @@
</div>
{{/ consults}}
</div>
<div class="consult-content-footer tap-hightlight" data-href="{{link}}">
<a href="javascript:;">
查看更多
<span class="iconfont"></span></a>
</div>
<a class="consult-content-footer tap-hightlight" href="{{consultsUrl}}">
查看更多
<span class="iconfont"></span>
</a>
{{else}}
<div class="consult-content-main content-main no-item">
<span class="iconfont"></span>暂无咨询
</div>
<div class="consult-content-footer tap-hightlight" data-href="{{
l
ink}}">
<div class="consult-content-footer tap-hightlight" data-href="{{
commentsL
ink}}">
<a href="javascript:;">
我要咨询
<span class="iconfont"></span></a>
...
...
yohobuy/m.yohobuy.com/application/controllers/Home.php
View file @
91d0aa3
...
...
@@ -874,17 +874,16 @@ class HomeController extends AbstractAction
/**
* 帮助列表页
*/
public
function
helpAction
()
{
$this
->
setTitle
(
'帮助中心'
);
$this
->
setNavHeader
(
'帮助中心'
);
$data
=
array
(
'iHelp'
=>
array
(
array
(
'caption'
=>
'新用户注册'
),
)
);
$this
->
_view
->
display
(
'i-help'
,
$data
);
}
public
function
helpAction
()
{
$service
=
Home\HelpModel
::
serviceInfo
();
$this
->
setTitle
(
'帮助中心'
);
$this
->
setNavHeader
(
'帮助中心'
);
$data
=
array
(
'iHelp'
=>
$service
,
);
$this
->
_view
->
display
(
'i-help'
,
$data
);
}
/**
* 帮助列表页
...
...
Please
register
or
login
to post a comment