正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
@@ -54,8 +54,8 @@ | @@ -54,8 +54,8 @@ | ||
54 | type:"GET", | 54 | type:"GET", |
55 | data:{'pid':province_id}, | 55 | data:{'pid':province_id}, |
56 | success:function(data) { | 56 | success:function(data) { |
57 | - var result = data; | ||
58 | - if(result.code==20000){ | 57 | + if(data.code==20000){ |
58 | + var result = data.data; | ||
59 | var mydata = "<option value=''>请选择</option>"; | 59 | var mydata = "<option value=''>请选择</option>"; |
60 | for (var i = 0; i < result.data.length; i++) { | 60 | for (var i = 0; i < result.data.length; i++) { |
61 | var data = result.data[i]; | 61 | var data = result.data[i]; |
@@ -77,8 +77,8 @@ | @@ -77,8 +77,8 @@ | ||
77 | type:"GET", | 77 | type:"GET", |
78 | data:{'pid':city_id}, | 78 | data:{'pid':city_id}, |
79 | success:function(data) { | 79 | success:function(data) { |
80 | - var result = data; | ||
81 | - if(result.code==1){ | 80 | + if(data.code==1){ |
81 | + var result = data.data; | ||
82 | var mydata = "<option value=''>请选择</option>"; | 82 | var mydata = "<option value=''>请选择</option>"; |
83 | for (var i = 0; i < result.data.length; i++) { | 83 | for (var i = 0; i < result.data.length; i++) { |
84 | var data = result.data[i]; | 84 | var data = result.data[i]; |
-
请 注册 或 登录 后发表评论