...
|
...
|
@@ -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;
|
...
|
...
|
@@ -298,10 +302,10 @@ function bindConfirmEvent() { |
|
|
if ($specialReason.length && $specialReason.get(0).style.display === 'block') {
|
|
|
goodObj.remark = $specialReason.find('.right-content').find('.mark-text').val();
|
|
|
|
|
|
$imgs = $specialReason.find('.right-content').find('img');
|
|
|
$imgs = $specialReason.find('.right-content').find('.thumb-box');
|
|
|
|
|
|
$imgs.each(function(idx, img) {
|
|
|
imgs.push(img.src);
|
|
|
imgs.push($(img).data('img'));
|
|
|
});
|
|
|
|
|
|
goodObj.evidence_images = imgs;
|
...
|
...
|
@@ -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);
|
|
|
});
|
|
|
}
|
...
|
...
|
@@ -373,10 +380,17 @@ function bindUploadEvent() { |
|
|
callback: function(result) {
|
|
|
var img;
|
|
|
var $t;
|
|
|
var o;
|
|
|
|
|
|
if (result.code === 200) {
|
|
|
n = parseInt($(that).siblings('.thumb-box').length, 10);
|
|
|
img = imgBoxTpl({src: result.data});
|
|
|
o = {src: result.data};
|
|
|
|
|
|
if (result.imgs && result.imgs.length) {
|
|
|
o.url = result.imgs[0];
|
|
|
}
|
|
|
|
|
|
img = imgBoxTpl(o);
|
|
|
$t = $(that).next('.img-up-tip');
|
|
|
$(that).before(img);
|
|
|
|
...
|
...
|
|