Authored by 王洪广

fix order edit problem

@@ -20,7 +20,7 @@ var active; @@ -20,7 +20,7 @@ var active;
20 20
21 var dialogMessage = '<p class="message-title"><i class="order-icon {{messageIcon}}"></i>{{messageTitle}}</p><p class="message-summary">{{messageSummary}}</p>'; 21 var dialogMessage = '<p class="message-title"><i class="order-icon {{messageIcon}}"></i>{{messageTitle}}</p><p class="message-summary">{{messageSummary}}</p>';
22 var $dialogEdit = $('#edit-dialog-tpl'); 22 var $dialogEdit = $('#edit-dialog-tpl');
23 -var $addressManage, $province, $city, $county, $selectList, $name, $phone, $address, $telCode, $tel; 23 +var $addressManage, $province, $city, $county, $selectList, $name, $phone, $address, $telCode, $tel, isProvinceChecked = false;;
24 24
25 function cancelFactory(id) { 25 function cancelFactory(id) {
26 var options = { 26 var options = {
@@ -192,7 +192,7 @@ function newAddress(id) { @@ -192,7 +192,7 @@ function newAddress(id) {
192 $province = $addressManage.find('select[name="province"]'); 192 $province = $addressManage.find('select[name="province"]');
193 $city = $addressManage.find('select[name="city"]'); 193 $city = $addressManage.find('select[name="city"]');
194 $county = $addressManage.find('select[name="county"]'); 194 $county = $addressManage.find('select[name="county"]');
195 - $selectList = $addressManage.find('select[name="province"], select[name="city"]'); 195 + $selectList = $addressManage.find('select[name="province"],select[name="city"]');
196 $name = $addressManage.find('.inp[name="name"]'); 196 $name = $addressManage.find('.inp[name="name"]');
197 $phone = $addressManage.find('.inp[name="phone"]'); 197 $phone = $addressManage.find('.inp[name="phone"]');
198 $address = $addressManage.find('.inp[name="address"]'); 198 $address = $addressManage.find('.inp[name="address"]');
@@ -212,6 +212,7 @@ function newAddress(id) { @@ -212,6 +212,7 @@ function newAddress(id) {
212 var provinceId = $province.val(); 212 var provinceId = $province.val();
213 213
214 if (provinceId !== '0') { 214 if (provinceId !== '0') {
  215 + isProvinceChecked = true;
215 216
216 //如果获取的省有默认选中项则获取市 217 //如果获取的省有默认选中项则获取市
217 getAddress({ 218 getAddress({