Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
hongweigao
8 years ago
Commit
da3efd3562fe308f393b4331d69607fcd0e8b7b3
1 parent
a0323dc8
修改套装字体大小,跳转链接
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
public/js/product/detail.page.js
public/scss/product/_detail.css
public/js/product/detail.page.js
View file @
da3efd3
...
...
@@ -1558,6 +1558,11 @@ $(function() {
// 套餐点击事件
$
(
'.package-box'
).
on
(
'click'
,
'#buy-detail'
,
function
()
{
if
(
!
window
.
getUid
())
{
window
.
location
.
href
=
window
.
location
.
href
+
'#package'
;
return
window
.
jumpUrl
(
window
.
signinUrl
());
}
var
isSingle
=
true
,
singleSkuList
=
[];
...
...
@@ -1573,10 +1578,6 @@ $('.package-box').on('click', '#buy-detail', function() {
// 如果只有套餐中商品,都只有一个颜色一个尺码,就直接跳转结算页
if
(
isSingle
)
{
if
(
!
window
.
getUid
())
{
return
window
.
jumpUrl
(
window
.
signinUrl
());
}
window
.
location
.
href
=
'//www.yohobuy.com/cart/easypay?bundle='
+
pkgData
.
bundleId
+
'&sku='
+
singleSkuList
.
join
(
','
);
return
true
;
...
...
@@ -1682,6 +1683,7 @@ $('.package-box').on('click', '#buy-detail', function() {
// 立即购买跳转
pkgDialog
.
$el
.
on
(
'click'
,
'#pay-pkg'
,
function
()
{
if
(
!
window
.
getUid
())
{
window
.
location
.
href
=
window
.
location
.
href
+
'#package'
;
return
window
.
jumpUrl
(
window
.
signinUrl
());
}
...
...
public/scss/product/_detail.css
View file @
da3efd3
...
...
@@ -882,7 +882,7 @@
margin
:
0
25px
;
color
:
#b0b0b0
;
text-align
:
center
;
font-size
:
2
5
px
;
font-size
:
2
0
px
;
line-height
:
196px
;
}
...
...
@@ -2416,6 +2416,7 @@
height
:
30px
;
text-align
:
center
;
line-height
:
30px
;
font-size
:
15px
;
border
:
1px
solid
;
cursor
:
pointer
;
}
...
...
Please
register
or
login
to post a comment