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
288b9cfb8047ed76ca426c75400553a4f7374f68
2 parents
c0dfac1f
a49ed130
resolve conflict for mergerequest codereview by guanning
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
60 additions
and
13 deletions
static/js/product/detail/consultform.js
static/sass/product/_comments-consults.scss
static/sass/product/_detail.scss
template/m.yohobuy.com/actions/product/detail/index.phtml
template/m.yohobuy.com/partials/product/feedback-tab.phtml
static/js/product/detail/consultform.js
0 → 100644
View file @
288b9cf
/**
* 购买咨询的提交页
* @author: liangzhifeng<zhifeng.liang@yoho.cn>
* @date: 2015/12/01
*/
var
$
=
require
(
'jquery'
),
tip
=
require
(
'../../plugin/tip'
);
var
$consultForm
=
$
(
'.consult-form'
);
// 提交表单请求
$consultForm
.
on
(
'submit'
,
function
()
{
if
(
isSubmiting
)
{
return
false
;
}
// 简单的表单校验
if
(
!
$
(
content
).
val
())
{
tip
.
show
(
'咨询内容不能为空'
);
return
false
;
}
isSubmiting
=
true
;
loading
.
showLoadingMask
();
$
.
ajax
({
method
:
'POST'
,
url
:
'/product/detail/consultsubmit'
,
data
:
$
(
this
).
serialize
()
}).
then
(
function
(
res
)
{
if
(
$
.
type
(
res
)
!==
'object'
)
{
res
=
{};
}
if
(
res
.
code
!==
200
)
{
tip
.
show
(
res
.
message
||
'网络出了点问题~'
);
isSubmiting
=
false
;
loading
.
hideLoadingMask
();
}
else
{
window
.
location
.
href
=
'/product/detail/index'
;
}
}).
fail
(
function
()
{
tip
.
show
(
'网络出了点问题~'
);
isSubmiting
=
false
;
});
return
false
;
});
...
...
static/sass/product/_comments-consults.scss
View file @
288b9cf
...
...
@@ -261,7 +261,13 @@
height
:
pxToRem
(
200px
);
line-height
:
pxToRem
(
200px
);
color
:
#e0e0e0
;
font-size
:
20px
;
text-align
:
center
;
span
{
display
:
inline-block
;
font-size
:
20px
;
padding-right
:
5px
;
}
}
}
}
...
...
static/sass/product/_detail.scss
View file @
288b9cf
...
...
@@ -33,11 +33,8 @@ $basicBtnC:#eb0313;
line-height
:
pxToRem
(
36px
);
&
.table
{
width
:
100%
;
// .row {
// display: table-row;
.column
{
box-sizing
:
border-box
;
display
:
table-cell
;
padding
:
pxToRem
(
20px
)
pxToRem
(
12px
);
width
:
50%
;
border-bottom
:
1px
solid
#fff
;
...
...
@@ -45,9 +42,6 @@ $basicBtnC:#eb0313;
font-size
:
pxToRem
(
24px
);
background-color
:
$tableCellC
;
float
:
left
;
// &:nth-child(even) {
// border-right: none;
// }
}
}
}
...
...
@@ -89,7 +83,6 @@ $basicBtnC:#eb0313;
left
:
pxToRem
(
108px
);
top
:
pxToRem
(
40px
);
height
:
pxToRem
(
35px
);
// width: pxToRem(70px);
color
:
#fff
;
font-size
:
pxToRem
(
20px
);
line-height
:
pxToRem
(
35px
);
...
...
@@ -137,6 +130,12 @@ $basicBtnC:#eb0313;
background-color
:
#fff
;
// overflow: hidden;
}
.banner-top-single
{
height
:pxToRem
(
600px
)
;
width
:
pxToRem
(
448px
);
margin
:pxToRem
(
30px
)
pxToRem
(
72px
)
;
overflow
:
hidden
;
}
.banner-top
{
// width: 100%;
min-height
:
660rem
/
$pxConvertRem
;
...
...
@@ -163,14 +162,12 @@ $basicBtnC:#eb0313;
min-height
:
pxToRem
(
600px
);
min-width
:
pxToRem
(
448px
);
margin
:
pxToRem
(
30px
)
pxToRem
(
96px
);
// position: relative;
overflow
:
hidden
;
ul
{
position
:
relative
;
height
:
100%
;
li
{
float
:
left
;
// height: 100%;
}
}
}
...
...
template/m.yohobuy.com/actions/product/detail/index.phtml
View file @
288b9cf
...
...
@@ -4,7 +4,7 @@
<div
class=
"tag-container"
>
{
{#
tags
}
}
{
{#
is_new
}
}
<p
class=
"good-tag new-tag"
>NEW</p>
<p
class=
"good-tag new-tag"
>NEW</p>
{
{/
is_new
}
}
{
{#
is_advance
}
}
<p
class=
"good-tag renew-tag"
>再到着</p>
...
...
@@ -113,7 +113,6 @@
{
{/
enterStore
}
}
<div
id=
"productDesc"
>
</div>
<!--
{
{>
product/product-description
}
}
-->
{
{>
product/recommend-for-you
}
}
{
{#cartInfo
}
}
...
...
template/m.yohobuy.com/partials/product/feedback-tab.phtml
View file @
288b9cf
...
...
@@ -44,7 +44,7 @@
</div>
<div class="answer">
<span class="iconfont">๣
c
;</span>
<span class="iconfont">๣
d
;</span>
<p>{{answer}}</p>
</div>
{{/ consults}}
...
...
@@ -56,7 +56,7 @@
</div>
{{else}}
<div class="consult-content-main content-main no-item">
<span class="iconfont">๣
c
;</span>暂无咨询
<span class="iconfont">๣
d
;</span>暂无咨询
</div>
<div class="consult-content-footer">
<a href="/product/detail/consultform">
...
...
Please
register
or
login
to post a comment