Showing
3 changed files
with
3 additions
and
17 deletions
@@ -12339,6 +12339,7 @@ define("js/life/login", ["jquery","hammer"], function(require, exports, module){ | @@ -12339,6 +12339,7 @@ define("js/life/login", ["jquery","hammer"], function(require, exports, module){ | ||
12339 | var $ = require("jquery"); | 12339 | var $ = require("jquery"); |
12340 | 12340 | ||
12341 | require("js/common"); | 12341 | require("js/common"); |
12342 | +require("js/plugin/wx-share")(); | ||
12342 | $('.notice').click(function() { | 12343 | $('.notice').click(function() { |
12343 | $('.code').show(); | 12344 | $('.code').show(); |
12344 | $('.mark').show(); | 12345 | $('.mark').show(); |
@@ -12380,25 +12381,10 @@ $('.coupon-btn').click(function() { | @@ -12380,25 +12381,10 @@ $('.coupon-btn').click(function() { | ||
12380 | }); | 12381 | }); |
12381 | 12382 | ||
12382 | }); | 12383 | }); |
12383 | -define("js/life/coupon", ["jquery"], function(require, exports, module){ | 12384 | +define("js/life/coupon", ["jquery","hammer"], function(require, exports, module){ |
12384 | var $ = require("jquery"); | 12385 | var $ = require("jquery"); |
12385 | 12386 | ||
12386 | -var queryString = function() { | ||
12387 | - var vars = [], | ||
12388 | - hash, | ||
12389 | - i; | ||
12390 | - var hashes = window.location.search.slice(1).split('&'); | ||
12391 | - | ||
12392 | - for (i = 0; i < hashes.length; i++) { | ||
12393 | - hash = hashes[i].split('='); | ||
12394 | - vars.push(hash[0]); | ||
12395 | - vars[hash[0]] = hash[1]; | ||
12396 | - } | ||
12397 | - return vars; | ||
12398 | -}; | ||
12399 | - | ||
12400 | -var qs = queryString(); | ||
12401 | - | 12387 | +require("js/common"); |
12402 | $('.coupon-input').val(window.cookie('lifeCoupon') || ''); | 12388 | $('.coupon-input').val(window.cookie('lifeCoupon') || ''); |
12403 | require("js/plugin/wx-share")(); | 12389 | require("js/plugin/wx-share")(); |
12404 | 12390 |
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
-
Please register or login to post a comment