Showing
5 changed files
with
12 additions
and
0 deletions
@@ -14,6 +14,8 @@ var $ = require('jquery'), | @@ -14,6 +14,8 @@ var $ = require('jquery'), | ||
14 | var $page = $('.gift-advance-page'), | 14 | var $page = $('.gift-advance-page'), |
15 | queryString = $.queryString(); | 15 | queryString = $.queryString(); |
16 | 16 | ||
17 | +require('../common'); | ||
18 | + | ||
17 | lazyLoad($('.lazy')); | 19 | lazyLoad($('.lazy')); |
18 | 20 | ||
19 | function getProductInfo(skn, promotionId) { | 21 | function getProductInfo(skn, promotionId) { |
@@ -26,6 +26,8 @@ var dispatchModeHammer, | @@ -26,6 +26,8 @@ var dispatchModeHammer, | ||
26 | orderInfo = order.orderInfo, | 26 | orderInfo = order.orderInfo, |
27 | isSubmiting; | 27 | isSubmiting; |
28 | 28 | ||
29 | +require('../common'); | ||
30 | + | ||
29 | lazyLoad(); | 31 | lazyLoad(); |
30 | 32 | ||
31 | if (window.getUid() !== orderInfo('uid')) { | 33 | if (window.getUid() !== orderInfo('uid')) { |
@@ -6,6 +6,8 @@ | @@ -6,6 +6,8 @@ | ||
6 | var $ = require('jquery'); | 6 | var $ = require('jquery'); |
7 | var info = window.cookie('order-info'); | 7 | var info = window.cookie('order-info'); |
8 | 8 | ||
9 | +require('../common'); | ||
10 | + | ||
9 | function init() { | 11 | function init() { |
10 | info = { | 12 | info = { |
11 | uid: window.getUid(), | 13 | uid: window.getUid(), |
@@ -10,6 +10,8 @@ var $ = require('jquery'), | @@ -10,6 +10,8 @@ var $ = require('jquery'), | ||
10 | var $confim = $('.confim-mask'), | 10 | var $confim = $('.confim-mask'), |
11 | deleteId; | 11 | deleteId; |
12 | 12 | ||
13 | +require('../common'); | ||
14 | + | ||
13 | $('.address-item').on('touchend', function() { | 15 | $('.address-item').on('touchend', function() { |
14 | var $this = $(this); | 16 | var $this = $(this); |
15 | var addressId = $this.data('address-id'); | 17 | var addressId = $this.data('address-id'); |
@@ -19,6 +21,7 @@ $('.address-item').on('touchend', function() { | @@ -19,6 +21,7 @@ $('.address-item').on('touchend', function() { | ||
19 | mobile: $this.find('.tel').text(), | 21 | mobile: $this.find('.tel').text(), |
20 | address_info: $this.find('.address-info').text() | 22 | address_info: $this.find('.address-info').text() |
21 | }; | 23 | }; |
24 | + | ||
22 | orderInfo('addressId', addressId); | 25 | orderInfo('addressId', addressId); |
23 | orderInfo('address', address); | 26 | orderInfo('address', address); |
24 | }).on('touchend', '.edit', function() { | 27 | }).on('touchend', '.edit', function() { |
@@ -21,6 +21,8 @@ var conponTmpl = Handlebars.compile($('#tmpl-coupon').html()), | @@ -21,6 +21,8 @@ var conponTmpl = Handlebars.compile($('#tmpl-coupon').html()), | ||
21 | 21 | ||
22 | var winH = $(window).height(); | 22 | var winH = $(window).height(); |
23 | 23 | ||
24 | +require('../common'); | ||
25 | + | ||
24 | // conponNotAvaliableTmpl = Handlebars.compile($('#tmpl-coupon-not-avaliable').html()), | 26 | // conponNotAvaliableTmpl = Handlebars.compile($('#tmpl-coupon-not-avaliable').html()), |
25 | 27 | ||
26 | function fixedLayOut() { | 28 | function fixedLayOut() { |
@@ -77,6 +79,7 @@ $('#coupon-list').on('touchend', '.employ-main', function() { | @@ -77,6 +79,7 @@ $('#coupon-list').on('touchend', '.employ-main', function() { | ||
77 | } | 79 | } |
78 | }).then(function(res) { | 80 | }).then(function(res) { |
79 | if (res.code === 200) { | 81 | if (res.code === 200) { |
82 | + | ||
80 | //tip.show('优惠券可用'); | 83 | //tip.show('优惠券可用'); |
81 | orderInfo('couponCode', res.data.coupon_code); | 84 | orderInfo('couponCode', res.data.coupon_code); |
82 | orderInfo('couponName', res.data.coupon_title); | 85 | orderInfo('couponName', res.data.coupon_title); |
-
Please register or login to post a comment