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
htoooth
8 years ago
Commit
44c315fd6d8f71b2ab23f99c4daecff0f34a92ff
1 parent
9e367a18
add
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
public/hbs/product/coupon-item.hbs
public/js/product/detail.page.js
public/hbs/product/coupon-item.hbs
View file @
44c315f
...
...
@@ -7,7 +7,7 @@
</div>
<div
class=
"status"
data-id=
"
{{
couponId
}}
"
data-i
ndex=
"
{{
index
}}
"
data-i
=
"
{{
i
}}
"
data-status=
"
{{
acquireStatus
}}
"
>
{{#
if_cond
acquireStatus
'=='
1
}}
<div
class=
"coupon-status"
>
点击
</div>
...
...
public/js/product/detail.page.js
View file @
44c315f
...
...
@@ -69,7 +69,7 @@ bindEvent.add(function() {
var
$couponItem
=
$
(
'.coupon-item'
);
var
$coupons
=
$couponItem
.
map
(
function
(
val
,
i
)
{
var
$coupons
=
$couponItem
.
map
(
function
(
i
)
{
var
$this
=
$
(
this
);
return
{
...
...
@@ -78,7 +78,7 @@ bindEvent.add(function() {
amount
:
$this
.
data
(
'amount'
),
acquireStatus
:
$this
.
data
(
'status'
),
rule4ShortName
:
$this
.
data
(
'rule'
),
i
ndex
:
i
i
:
i
};
}).
get
();
...
...
@@ -112,11 +112,12 @@ bindEvent.add(function() {
$
(
document
).
on
(
'click'
,
'.status'
,
function
()
{
var
$this
=
$
(
this
);
var
id
=
$this
.
data
(
'id'
);
var
i
ndex
=
$this
.
data
(
'index
'
);
var
i
=
$this
.
data
(
'i
'
);
var
status
=
$this
.
data
(
'status'
);
console
.
log
(
$couponItem
.
get
(
index
)
);
console
.
log
(
i
);
$this
.
data
(
'status'
,
9
);
});
function
imgShow
(
src
)
{
...
...
Please
register
or
login
to post a comment