Merge remote-tracking branch 'origin/release/1.0' into release/1.0
Showing
5 changed files
with
28 additions
and
10 deletions
@@ -17,7 +17,7 @@ exports.index = (req, res, next) => { | @@ -17,7 +17,7 @@ exports.index = (req, res, next) => { | ||
17 | cartModel.getCartData(shoppingKey, uid).then((result) => { | 17 | cartModel.getCartData(shoppingKey, uid).then((result) => { |
18 | if (result.code === 200) { | 18 | if (result.code === 200) { |
19 | 19 | ||
20 | - res.header('Cache-Control', 'no-cache'); | 20 | + res.header('Cache-Control', 'no-store'); |
21 | 21 | ||
22 | res.display('cart', _.merge({ | 22 | res.display('cart', _.merge({ |
23 | module: 'shopping', | 23 | module: 'shopping', |
@@ -3,6 +3,8 @@ var confirmReceive = require('./order/confirm-receive'); | @@ -3,6 +3,8 @@ var confirmReceive = require('./order/confirm-receive'); | ||
3 | var editOrder = require('./order/edit-order'); | 3 | var editOrder = require('./order/edit-order'); |
4 | var countDown = require('./order/countdown'); | 4 | var countDown = require('./order/countdown'); |
5 | 5 | ||
6 | +var Confirm = require('../plugins/dialog').Confirm; | ||
7 | + | ||
6 | var lazyLoad = require('yoho-jquery-lazyload'); | 8 | var lazyLoad = require('yoho-jquery-lazyload'); |
7 | 9 | ||
8 | // 个人中心共用代码加载 | 10 | // 个人中心共用代码加载 |
@@ -32,6 +34,8 @@ $('.order .edit-btn').on('click', function() { | @@ -32,6 +34,8 @@ $('.order .edit-btn').on('click', function() { | ||
32 | var mobile = $userInfo.find('.user-mo-sel').data('mobile'); | 34 | var mobile = $userInfo.find('.user-mo-sel').data('mobile'); |
33 | var phone = $userInfo.find('.user-ph-sel').data('phone'); | 35 | var phone = $userInfo.find('.user-ph-sel').data('phone'); |
34 | 36 | ||
37 | + $this.removeClass('white'); // 我不知道为啥产品会有这样的需求,点一次按钮后颜色变掉,按钮颜色和可不可点状态一毛钱关系都没 | ||
38 | + | ||
35 | editOrder.start({ | 39 | editOrder.start({ |
36 | data: { | 40 | data: { |
37 | orderCode: code, | 41 | orderCode: code, |
@@ -47,8 +51,12 @@ $('.order .edit-btn').on('click', function() { | @@ -47,8 +51,12 @@ $('.order .edit-btn').on('click', function() { | ||
47 | $('.complete-btn').on('click', function() { | 51 | $('.complete-btn').on('click', function() { |
48 | var code = $(this).closest('.order').data('code'); | 52 | var code = $(this).closest('.order').data('code'); |
49 | 53 | ||
50 | - confirmReceive.done(code); | ||
51 | - | 54 | + new Confirm({ |
55 | + content: '<h1 class="title">确认收货</h1><p>您确定要确认收货么?</p>', | ||
56 | + cb: function() { | ||
57 | + confirmReceive.done(code); | ||
58 | + } | ||
59 | + }).show(); | ||
52 | }); | 60 | }); |
53 | 61 | ||
54 | if ($('.left-time').length) { | 62 | if ($('.left-time').length) { |
@@ -7,6 +7,7 @@ | @@ -7,6 +7,7 @@ | ||
7 | var dialog = require('../plugins/dialog'); | 7 | var dialog = require('../plugins/dialog'); |
8 | var _dialog = dialog.Dialog; | 8 | var _dialog = dialog.Dialog; |
9 | var _alert = dialog.Alert; | 9 | var _alert = dialog.Alert; |
10 | +var _confirm = dialog.Confirm; | ||
10 | 11 | ||
11 | var expressTpl = require('../../tpl/me/express.hbs'); | 12 | var expressTpl = require('../../tpl/me/express.hbs'); |
12 | 13 | ||
@@ -335,7 +336,12 @@ function bindConfirmReceiveEvent() { | @@ -335,7 +336,12 @@ function bindConfirmReceiveEvent() { | ||
335 | $('.confirm-receive').on('click', function() { | 336 | $('.confirm-receive').on('click', function() { |
336 | var code = $(this).closest('.order').data('code'); | 337 | var code = $(this).closest('.order').data('code'); |
337 | 338 | ||
338 | - confirmReceive.done(code); | 339 | + new _confirm({ |
340 | + content: '<h1 class="title">确认收货</h1><p>您确定要确认收货么?</p>', | ||
341 | + cb: function() { | ||
342 | + confirmReceive.done(code); | ||
343 | + } | ||
344 | + }).show(); | ||
339 | }); | 345 | }); |
340 | } | 346 | } |
341 | 347 |
@@ -239,7 +239,6 @@ | @@ -239,7 +239,6 @@ | ||
239 | .subtext { | 239 | .subtext { |
240 | font-size: 12px; | 240 | font-size: 12px; |
241 | cursor: pointer; | 241 | cursor: pointer; |
242 | - color: #666; | ||
243 | } | 242 | } |
244 | 243 | ||
245 | .no-space { | 244 | .no-space { |
@@ -259,21 +258,26 @@ | @@ -259,21 +258,26 @@ | ||
259 | } | 258 | } |
260 | 259 | ||
261 | .msg { | 260 | .msg { |
262 | - margin-top: 50px; | 261 | + margin-top: 45px; |
263 | text-align: center; | 262 | text-align: center; |
264 | 263 | ||
265 | .msg-zh { | 264 | .msg-zh { |
266 | - font-size: $bigSize; | ||
267 | - margin-bottom: $space; | 265 | + font-size: 20px; |
266 | + line-height: 30px; | ||
267 | + margin-bottom: 15px; | ||
268 | } | 268 | } |
269 | 269 | ||
270 | .msg-en { | 270 | .msg-en { |
271 | margin-bottom: 40px; | 271 | margin-bottom: 40px; |
272 | + font-size: 14px; | ||
272 | } | 273 | } |
273 | 274 | ||
274 | .btn { | 275 | .btn { |
275 | display: inline-block; | 276 | display: inline-block; |
276 | - width: 100px !important; | 277 | + width: 130px !important; |
278 | + height: 40px !important; | ||
279 | + line-height: 40px !important; | ||
280 | + font-size: 14px; | ||
277 | } | 281 | } |
278 | } | 282 | } |
279 | } | 283 | } |
-
Please register or login to post a comment