Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
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
biao
9 years ago
Commit
00c1095b8b2022676e58fb2befc59062e0f60842
1 parent
9551e31d
加入打开app链接
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
static/js/product/detail/detail.js
template/m.yohobuy.com/actions/product/detail/index.phtml
static/js/product/detail/detail.js
View file @
00c1095
...
...
@@ -18,8 +18,9 @@ var goodsDiscountEl = document.getElementById('goodsDiscount'),
var
$cart
=
$
(
'.cart-bar'
);
var
limitSaleBtn
=
document
.
getElementById
(
'limit-sale'
),
limitSaleHammer
=
limitSaleBtn
&&
new
Hammer
(
limitSaleBtn
);
var
limitSaleHammer
=
(
limitSaleHammer
=
document
.
getElementById
(
'limit-sale'
))
&&
new
Hammer
(
limitSaleHammer
);
var
appUrl
=
$
(
'input[name="limitCodeUrl"]'
).
val
();
var
dialog
=
require
(
'../../me/dialog'
);
...
...
@@ -80,7 +81,7 @@ if (goodsDiscountHammer && $discountFolder.children().length > 0) {
});
}
limitSaleHammer
?
limitSaleHammer
.
on
(
'tap'
,
function
(
e
)
{
limitSaleHammer
&&
limitSaleHammer
.
on
(
'tap'
,
function
(
e
)
{
e
.
srcEvent
.
stopPropagation
();
dialog
.
showDialog
({
dialogText
:
'进入有货APP尖货频道分享\n以获取限购码'
,
...
...
@@ -88,7 +89,7 @@ limitSaleHammer ? limitSaleHammer.on('tap', function(e) {
rightBtnText
:
'打开Yoho!Buy有货APP'
}
},
function
()
{
console
.
log
(
'111'
)
;
window
.
location
.
href
=
appUrl
;
},
undefined
,
true
);
$
(
'.dialog-wrapper'
).
off
(
'touchstart'
).
on
(
'touchstart'
,
function
(
e
)
{
...
...
@@ -97,7 +98,7 @@ limitSaleHammer ? limitSaleHammer.on('tap', function(e) {
dialog
.
hideDialog
();
}
});
})
:
null
;
});
require
(
'./desc'
);
require
(
'./comments-consults'
);
...
...
template/m.yohobuy.com/actions/product/detail/index.phtml
View file @
00c1095
...
...
@@ -56,9 +56,6 @@
<button
class=
"got-limit-sale"
>已获限购码</button>
{
{/if
}
}
{
{/noLimitGoodsBtn
}
}
{
{!--
<button
class=
"got-limit-sale"
>已获限购码</button>
}}
{
{#if
periodOfMarket
}
}
<div
class=
"periodOfMarket"
>
...
...
Please
register
or
login
to post a comment