Authored by 郭成尧

seckill-modified

@@ -7,6 +7,8 @@ @@ -7,6 +7,8 @@
7 require('cart/order-ensure.page.css'); 7 require('cart/order-ensure.page.css');
8 require('common.js'); 8 require('common.js');
9 9
  10 +const dialog = require('plugin/dialog');
  11 +
10 let lazyLoad = require('yoho-jquery-lazyload'), 12 let lazyLoad = require('yoho-jquery-lazyload'),
11 tip = require('plugin/tip'), 13 tip = require('plugin/tip'),
12 cookie = require('yoho-cookie'); 14 cookie = require('yoho-cookie');
@@ -262,6 +264,13 @@ function submitOrder() { @@ -262,6 +264,13 @@ function submitOrder() {
262 } 264 }
263 cookie.set('order-info', '', actCkOpthn); 265 cookie.set('order-info', '', actCkOpthn);
264 window.location.href = url; 266 window.location.href = url;
  267 + } else if (res.code === 440) {
  268 + dialog.showDialog({
  269 + dialogText: res.message,
  270 + hasFooter: {
  271 + centerBtnText: '我知道了'
  272 + }
  273 + });
265 } else if (res.message) { 274 } else if (res.message) {
266 tip.show(res.message); 275 tip.show(res.message);
267 } 276 }