Authored by biao

update for mobile check in change page

... ... @@ -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])(\*{4}[0-9]{4}|[0-9]{8})$/;
var phoneReg = /^(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$/;
var validate = require('./order/validation');
... ... @@ -272,7 +272,6 @@ function bindConfirmEvent() {
var $specialReason = $changeGood.find('.special-reason');
var $imgs;
var imgs = [];
var mobile = $('#mob').val();
if ($(this).hasClass('disable')) {
return false;
... ... @@ -320,12 +319,7 @@ function bindConfirmEvent() {
changeData.consignee_name = $('#user').val();
changeData.address = $('#addr').val();
changeData.delivery_tpye = $('.change-type .type.active').data('type');
if (!/\*/.test(mobile)) {
changeData.mobile = $('#mob').val();
} else {
changeData.mobile = '';
}
changeData.mobile = $('#mob').val();
submitChange(changeData);
});
... ...