Commit b9ce6834 authored by 石盼盼's avatar 石盼盼

Merge branch 'shipanpan' into 'master'

Shipanpan

See merge request !38
parents be62932b f717172e
...@@ -22,6 +22,7 @@ Page({ ...@@ -22,6 +22,7 @@ Page({
*/ */
onLoad: function (options) { onLoad: function (options) {
this.getCitylist() this.getCitylist()
this.getMyarea()
}, },
showCitypop(e) { showCitypop(e) {
this.setData({ this.setData({
...@@ -34,6 +35,22 @@ Page({ ...@@ -34,6 +35,22 @@ Page({
show: false show: false
}) })
}, },
getMyarea : function () {
let params = {
url:'coach/myarea',
data : {
coach_id: app.globalData.coach_id,
},
callback : (data) => {
console.log(data)
this.setData({
myarea : data
})
}
}
base.newRequest(params)
},
getCitylist: function () { getCitylist: function () {
let params = { let params = {
url: 'coach/city', url: 'coach/city',
......
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