Showing
3 changed files
with
3 additions
and
3 deletions
@@ -10,7 +10,7 @@ | @@ -10,7 +10,7 @@ | ||
10 | {{/isEqualOr}} | 10 | {{/isEqualOr}} |
11 | 11 | ||
12 | {{#isEqualOr status 2}} | 12 | {{#isEqualOr status 2}} |
13 | - <a class="btn ok js-join" href="/activity/yoluck/{{id}}.html">参加抽奖</a> | 13 | + <a class="btn ok js-join" data-id="{{id}}">参加抽奖</a> |
14 | {{/isEqualOr}} | 14 | {{/isEqualOr}} |
15 | 15 | ||
16 | {{#isEqualOr status 3 4}} | 16 | {{#isEqualOr status 3 4}} |
@@ -10,7 +10,7 @@ | @@ -10,7 +10,7 @@ | ||
10 | {{/is-equal-or}} | 10 | {{/is-equal-or}} |
11 | 11 | ||
12 | {{#is-equal-or status 2}} | 12 | {{#is-equal-or status 2}} |
13 | - <a class="btn ok js-join" href="/activity/yoluck/{{id}}.html">参加抽奖</a> | 13 | + <a class="btn ok js-join" data-id="{{id}}">参加抽奖</a> |
14 | {{/is-equal-or}} | 14 | {{/is-equal-or}} |
15 | 15 | ||
16 | {{#is-equal-or status 3 4}} | 16 | {{#is-equal-or status 3 4}} |
@@ -219,7 +219,7 @@ $tabpanel.on('click', '.js-tab', function() { | @@ -219,7 +219,7 @@ $tabpanel.on('click', '.js-tab', function() { | ||
219 | }); | 219 | }); |
220 | 220 | ||
221 | $tabpanel | 221 | $tabpanel |
222 | - .on('click', '.js-prizeitem', function() { | 222 | + .on('click', '.js-prizeitem,.js-join', function() { |
223 | let id = $(this).data('id'); | 223 | let id = $(this).data('id'); |
224 | let href = DETAIL_URI + '/' + id + '.html'; | 224 | let href = DETAIL_URI + '/' + id + '.html'; |
225 | 225 |
-
Please register or login to post a comment