Authored by hongweigao

默认选中第一条

... ... @@ -23,23 +23,19 @@
{{# express}}
<h2>请填写寄回快递单号,以便我们查询</h2>
<div class="courier-code{{#unless id}} in-edit{{/unless}}">
{{#with detail}}
<ul style="display: none;">
{{# expressList}}
<li class="company-list" data-id="{{id}}" data-name="{{company_name}}"></li>
{{/ expressList}}
</ul>
{{/with}}
<p class="express-edit-box">
<input type="hidden" id="express-old-id" value="{{id}}">
{{#with detail}}
<select id="express-company">
<option value="0">选择快递公司</option>
<option value="0" >选择快递公司</option>
{{# expressList}}
<option value="{{id}}" selected="">{{company_name}}</option>
{{/ expressList}}
</select>
{{/with}}
<input type="text" id="express-number" value="{{number}}" placeholder="请填写快递单号">
<input type="hidden" id="return-id" value="{{returnId}}">
<button type="button" id="submit-btn">确定</button>
... ...
... ... @@ -17,7 +17,7 @@ var $returnState = $('.visual-return-state li'),
$expressViewBox = $('.express-view-box > span');
var returnId = $('#return-id').val(),
expId = $('#express-old-id').val(),
expId = $('#express-old-id').val() === '' ? '0' : $('#express-old-id').val(),
expNumber = $expressNumber.val(),
expCompany = '',
expList = {},
... ...