123456789101112131415161718192021222324252627282930 |
- 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
- })
- };
- config.open = function(e)
- {
- var param = this.param(e);
- this.location('view', param);
- };
- Page(config);
|