...
|
...
|
@@ -10,7 +10,7 @@ var addr; |
|
|
|
|
|
|
|
|
var addressReg = /^[\s\S]{2,100}$/;
|
|
|
var phoneReg = /^(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$/;
|
|
|
var phoneReg = /^(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])(\*{4}[0-9]{4}|[0-9]{8})$/;
|
|
|
|
|
|
var validate = require('./order/validation');
|
|
|
|
...
|
...
|
@@ -48,6 +48,9 @@ lazyLoad($('.banner-img')); |
|
|
// 添加.check方法
|
|
|
require('../plugins/check');
|
|
|
|
|
|
// 个人中心共用代码加载
|
|
|
require('./me');
|
|
|
|
|
|
function setActive($item) {
|
|
|
var color = $item.find('.color-text').data('color');
|
|
|
var size = $item.find('.size-text').data('size');
|
...
|
...
|
@@ -269,6 +272,7 @@ function bindConfirmEvent() { |
|
|
var $specialReason = $changeGood.find('.special-reason');
|
|
|
var $imgs;
|
|
|
var imgs = [];
|
|
|
var mobile = $('#mob').val();
|
|
|
|
|
|
if ($(this).hasClass('disable')) {
|
|
|
return false;
|
...
|
...
|
@@ -315,9 +319,12 @@ function bindConfirmEvent() { |
|
|
changeData.order_code = $('.returns-wrap>.order').data('code');
|
|
|
changeData.consignee_name = $('#user').val();
|
|
|
changeData.address = $('#addr').val();
|
|
|
changeData.mobile = $('#mob').val();
|
|
|
changeData.delivery_tpye = $('.change-type .type.active').data('type');
|
|
|
|
|
|
if (!/\*/.test(mobile)) {
|
|
|
changeData.mobile = $('#mob').val();
|
|
|
}
|
|
|
|
|
|
submitChange(changeData);
|
|
|
});
|
|
|
}
|
...
|
...
|
|