- onLoad: function () {
- var that = this
- // 获取接口城市数据
- wx.request({
- url: userCarUtil.host + userCarUtil.getCity,
- success: function (res) {
- //console.log(res.data)
- that.setData({
- citysMap: res.data
- })
- }
- })
- }