Authored by 周少峰

other post name

@@ -47,6 +47,7 @@ @@ -47,6 +47,7 @@
47 {{/ expressList}} 47 {{/ expressList}}
48 </select> 48 </select>
49 {{/with}} 49 {{/with}}
  50 + <input type="text" id="express-name" class="hide"placeholder="请填写物流公司">
50 <input type="text" id="express-number" value="{{number}}" placeholder="请填写快递单号"> 51 <input type="text" id="express-number" value="{{number}}" placeholder="请填写快递单号">
51 <input type="hidden" id="return-id" value="{{returnId}}"> 52 <input type="hidden" id="return-id" value="{{returnId}}">
52 <button type="button" id="submit-btn">确定</button> 53 <button type="button" id="submit-btn">确定</button>
@@ -13,6 +13,7 @@ var $returnState = $('.visual-return-state li'), @@ -13,6 +13,7 @@ var $returnState = $('.visual-return-state li'),
13 $courierCode = $('.courier-code'), 13 $courierCode = $('.courier-code'),
14 $expressCompany = $('#express-company'), 14 $expressCompany = $('#express-company'),
15 $expressNumber = $('#express-number'), 15 $expressNumber = $('#express-number'),
  16 + $expressName = $('#express-name'),
16 $expressViewBox = $('.express-view-box > span'); 17 $expressViewBox = $('.express-view-box > span');
17 18
18 var returnId = $('#return-id').val(), 19 var returnId = $('#return-id').val(),
@@ -33,6 +34,13 @@ function syncExpressInfo() { @@ -33,6 +34,13 @@ function syncExpressInfo() {
33 $expressNumber.val(expNumber); 34 $expressNumber.val(expNumber);
34 } 35 }
35 36
  37 +// 其他快递公司需要填写物流
  38 +$expressCompany.on('change', function () {
  39 + if ($(this).val() === 100) {
  40 + $expressName.removeClass('hide');
  41 + }
  42 +});
  43 +
36 function validateExpress() { 44 function validateExpress() {
37 var send = {}; 45 var send = {};
38 46