123456789101112131415161718192021222324 |
- var config = getApp().page;
- /**
- * 页面加载
- */
- config.oLoad = function (options)
- {
- var self = this;
- var success = function(data, res)
- {
- self.set('focus', data.push_focus);
- self.set('news', data.news);
- };
- self.request('main.content.home', {}, {success: success});
- };
- config.isCard = function(e)
- {
- this.setData({
- isCard: e.detail.value
- })
- };
- Page(config);
|