Commit f0cf8daa by 朱继来

禁止修改自提地址

parent 0104987e
...@@ -86,10 +86,10 @@ ...@@ -86,10 +86,10 @@
$('.shipping_type').change(function() { $('.shipping_type').change(function() {
if ($(this).val() == 2) { if ($(this).val() == 2) {
$('.address-info').hide(); $('.address-info').hide();
$('textarea[name=address]').val(self_addr); $('textarea[name=address]').val(self_addr).attr('disabled', true);
} else { } else {
$('.address-info').show(); $('.address-info').show();
$('textarea[name=address]').val(''); $('textarea[name=address]').val('').attr('disabled', false);
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment