Authored by 王洪广

fix order edit problem

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