Commit 465009ed by 陈超

T

parent 0e10e14e
...@@ -259,14 +259,12 @@ ...@@ -259,14 +259,12 @@
//Helper //Helper
getCity: function(id, call) { getCity: function(id, call) {
let that = this let that = this
that.loading = true
$.ajax({ $.ajax({
type:'POST', type:'POST',
url:"{:U('home/User/getAreaList')}", url:"{:U('home/User/getAreaList')}",
data: { id: id }, data: { id: id },
dataType:'json', dataType:'json',
success:function(res){ success:function(res){
that.loading = false
if(res.status == 1) { if(res.status == 1) {
call && call(res.data) call && call(res.data)
} }
...@@ -275,14 +273,12 @@ ...@@ -275,14 +273,12 @@
}, },
getArea: function(id, call) { getArea: function(id, call) {
let that = this let that = this
that.loading = true
$.ajax({ $.ajax({
type:'POST', type:'POST',
url:"{:U('home/User/getAreaList')}", url:"{:U('home/User/getAreaList')}",
data:{ id: id }, data:{ id: id },
dataType:'json', dataType:'json',
success:function(res){ success:function(res){
that.loading = false
if(res.status == 1) { if(res.status == 1) {
call && call(res.data) call && call(res.data)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment