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
Plain Diff
Browse Files
Authored by
biao
9 years ago
Commit
12a1f997f5044456f7d64bb98ec81ee256d40614
2 parents
355493b8
23474efb
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
36 additions
and
7 deletions
static/js/me/coupons.js
static/js/me/fav.js
static/js/product/detail/desc.js
static/js/product/detail/detail.js
static/sass/me/_address.scss
static/sass/product/_detail.scss
template/m.yohobuy.com/actions/product/detail/index.phtml
template/m.yohobuy.com/partials/me/address/edit-address.phtml
template/m.yohobuy.com/partials/product/feedback-tab.phtml
static/js/me/coupons.js
View file @
12a1f99
...
...
@@ -3,6 +3,7 @@ var $ = require('jquery'),
var
employ
;
window
.
rePosFooter
();
$
(
'.yoho-footer'
).
css
(
'border-top'
,
'1px solid #e0e0e0'
);
$
(
'.employ span'
).
each
(
function
(
index
)
{
employ
=
new
Hammer
(
$
(
'.employ span'
)[
index
]);
employ
.
on
(
'tap'
,
function
(
e
)
{
...
...
static/js/me/fav.js
View file @
12a1f99
...
...
@@ -83,6 +83,7 @@ function loadData($parent, url, page) {
}
if
(
data
===
' '
)
{
$parent
.
closest
(
'.fav-type'
).
find
(
'.fav-content-loading'
).
addClass
(
'hide'
);
$parent
.
closest
(
'.fav-type'
).
find
(
'.fav-null-box'
).
removeClass
(
'hide'
);
}
else
if
(
data
===
'end'
)
{
$parent
.
closest
(
'.fav-type'
).
find
(
'.fav-load-background'
)
...
...
static/js/product/detail/desc.js
View file @
12a1f99
...
...
@@ -20,12 +20,27 @@ var sizeSwiper,
require
(
'../recommend-for-you.js'
);
//判断是否要显示向左滑动提示
function
hiddenTips
(
$ele
)
{
var
offsetContainer
=
$ele
[
0
].
getBoundingClientRect
().
right
;
var
offsetLastColumn
=
$ele
.
find
(
'.swiper-slide:last-child'
)[
0
].
getBoundingClientRect
().
right
;
if
(
offsetLastColumn
-
offsetContainer
<
0
)
{
$ele
.
next
(
'.tips'
).
css
(
'display'
,
'none'
);
}
else
{
$ele
.
next
(
'.tips'
).
css
(
'display'
,
'block'
);
}
}
function
search
()
{
if
(
searching
||
end
)
{
return
;
}
searching
=
true
;
// alert($('#reference-swiper-container .swiper-wrapper').width());
loading
.
showLoadingMask
();
$
.
ajax
({
...
...
@@ -47,6 +62,9 @@ function search() {
slidesPerView
:
'auto'
});
hiddenTips
(
$
(
'#size-swiper-container'
));
hiddenTips
(
$
(
'#reference-swiper-container'
));
searching
=
false
;
end
=
true
;
loading
.
hideLoadingMask
();
...
...
static/js/product/detail/detail.js
View file @
12a1f99
...
...
@@ -13,6 +13,7 @@ require('./desc');
require
(
'./comments-consults'
);
lazyLoad
(
$
(
'img.lazy'
));
//顶部swiper
...
...
static/sass/me/_address.scss
View file @
12a1f99
...
...
@@ -19,6 +19,14 @@
font-weight
:
bold
;
}
.name
{
display
:
inline-block
;
max-width
:
pxToRem
(
380px
);
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
.tel
{
float
:
right
;
}
...
...
static/sass/product/_detail.scss
View file @
12a1f99
...
...
@@ -101,10 +101,10 @@ $basicBtnC:#eb0313;
display
:
inline-block
;
box-sizing
:
border-box
;
margin-left
:
.5px
;
font-size
:
pxToRem
(
23
px
);
font-size
:
pxToRem
(
18
px
);
text-align
:
center
;
line-height
:
pxToRem
(
33px
);
padding
:
0
5px
;
line-height
:
pxToRem
(
30px
);
padding
:
0
10px
;
}
.new-tag
{
background-color
:
#78dc7e
;
...
...
template/m.yohobuy.com/actions/product/detail/index.phtml
View file @
12a1f99
...
...
@@ -47,7 +47,7 @@
{
{#if
periodOfMarket
}
}
<div
class=
"periodOfMarket"
>
<h
1
>上市期:</h
1
>
<h
1
>
{
{peridOfMarket
}
}</h
1
>
<h
1
>
{
{peri
o
dOfMarket
}
}</h
1
>
</div>
{
{/if
}
}
</div>
...
...
template/m.yohobuy.com/partials/me/address/edit-address.phtml
View file @
12a1f99
...
...
@@ -3,7 +3,7 @@
<input type="hidden" name="id" value="">
<label class="username">
收件人姓名
<input type="text" name="consignee" value="">
<input type="text" name="consignee"
maxlength="20"
value="">
</label>
<label class="mobile">
手机号码
...
...
@@ -17,7 +17,7 @@
</label>
<label class="address">
详细地址
<textarea name="address"></textarea>
<textarea name="address"
maxlength="100"
></textarea>
</label>
</form>
...
...
template/m.yohobuy.com/partials/product/feedback-tab.phtml
View file @
12a1f99
...
...
@@ -11,7 +11,7 @@
{{userName}}
</span>
<span class="goods-spec">
{{desc}}
购买了
{{desc}}
</span>
<p class="detail-content">
{{content}}
...
...
Please
register
or
login
to post a comment