...
|
...
|
@@ -38,6 +38,17 @@ $area.on('click', function() { |
|
|
* 提交表单
|
|
|
*/
|
|
|
$btnSure.on('click', function() {
|
|
|
let username = $areaForm.find('input[name=username]').val();
|
|
|
|
|
|
if (username && username.length > 20) {
|
|
|
tip.show('收货人姓名最多支持20个字');
|
|
|
}
|
|
|
|
|
|
if (username && /([^u4e00-\u9fa5])([^\p{P}])/.test(username)) {
|
|
|
tip.show('收货人姓名不支持特殊符号');
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
$.post('/home/orders/changeAddress', $areaForm.serialize(), function(result) {
|
|
|
if (result && result.code === 200) {
|
|
|
if (result.data && result.data.is_modified === 'Y') {
|
...
|
...
|
|