Authored by 周少峰

other post name

... ... @@ -47,6 +47,7 @@
{{/ expressList}}
</select>
{{/with}}
<input type="text" id="express-name" class="hide"placeholder="请填写物流公司">
<input type="text" id="express-number" value="{{number}}" placeholder="请填写快递单号">
<input type="hidden" id="return-id" value="{{returnId}}">
<button type="button" id="submit-btn">确定</button>
... ...
... ... @@ -13,6 +13,7 @@ var $returnState = $('.visual-return-state li'),
$courierCode = $('.courier-code'),
$expressCompany = $('#express-company'),
$expressNumber = $('#express-number'),
$expressName = $('#express-name'),
$expressViewBox = $('.express-view-box > span');
var returnId = $('#return-id').val(),
... ... @@ -33,6 +34,13 @@ function syncExpressInfo() {
$expressNumber.val(expNumber);
}
// 其他快递公司需要填写物流
$expressCompany.on('change', function () {
if ($(this).val() === 100) {
$expressName.removeClass('hide');
}
});
function validateExpress() {
var send = {};
... ...