Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
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
Email Patches
Plain Diff
Browse Files
Authored by
王水玲
6 years ago
Commit
65495cdb0b8901eefab1ff09a84f7a3dbc3e8a24
1 parent
64651d3b
mars 商品详情
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
apps/product/models/detail.js
public/js/product/new-detail.js
apps/product/models/detail.js
View file @
65495cd
...
...
@@ -101,7 +101,7 @@ module.exports = class extends global.yoho.BaseModel {
break
;
case
4
:
// 开售后,立即购买(用户已领取限购码)
data
.
gotCode
=
true
;
data
.
cartInfo
.
canNotBuy
=
true
;
data
.
cartInfo
.
appBuy
=
'limitProduct'
;
break
;
case
5
:
// 开售前,限购码已被抢光(用户未领取限购码)
data
.
codeEmpty
=
true
;
...
...
@@ -611,9 +611,7 @@ module.exports = class extends global.yoho.BaseModel {
let
isBeginSale
=
(
result
.
data
.
saleStatus
===
1
);
// 限购商品有关的展示状态
let
showStatus
=
1
;
origin
.
showStatus
&&
(
showStatus
=
parseInt
(
result
.
data
.
showStatus
,
10
));
let
showStatus
=
parseInt
(
result
.
data
.
showStatus
,
10
);
// 处理限购商品有关的按钮状态
dest
=
this
.
_procShowStatus
(
dest
,
showStatus
,
isBeginSale
);
...
...
public/js/product/new-detail.js
View file @
65495cd
...
...
@@ -330,9 +330,17 @@ setTimeout(() => {
$
(
'.mars-jump-min-app'
).
on
(
'click'
,
function
()
{
if
(
yoho
&&
yoho
.
isMarsApp
)
{
yoho
.
invokeMethod
(
'go.minAppGoodsDetail'
,
{
url
:
'/pages/goodsDetail/goodsDetail?productSkn='
+
productSkn
});
let
Limitcode
=
$
(
'#limitProductCode'
).
val
();
if
(
Limitcode
)
{
yoho
.
invokeMethod
(
'go.minAppLimitDetail'
,
{
url
:
'/pages/product/detail/detail?limitProductCode='
+
Limitcode
// eslint-disable-line
});
}
else
{
yoho
.
invokeMethod
(
'go.minAppGoodsDetail'
,
{
url
:
'/pages/goodsDetail/goodsDetail?productSkn='
+
productSkn
});
}
}
});
...
...
Please
register
or
login
to post a comment