3,155
社区成员




Page({
data: {
options: [{
id: '001',
roomDesc: '北京'
}],
selected: {}
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
var that =this;
wx.request({
url: getApp().globalData.url+'GetGpRoom',
data:{},
header:{
'content-type': 'application/x-www-form-urlencoded',
'cookie': wx.getStorageSync('CookieKey')
},
success(res){
if(res.data.err == false)
{
that.setData({
options:JSON.parse(res.data.msg)
})
console.log(that.data.options);
}
}
})
}
})