You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
533 B
29 lines
533 B
var app = getApp() |
|
const profile = require('../../utils/profile.js') |
|
|
|
|
|
Page({ |
|
data: { |
|
userInfo: null, |
|
zichan_slides: [] |
|
}, |
|
|
|
onShow: function() { |
|
}, |
|
|
|
onLoad: function() { |
|
var that = this |
|
app.getUserInfo(function(userInfo){ |
|
that.setData({userInfo:userInfo}) |
|
}) |
|
|
|
profile.getZichanSlides({}, function(result) { |
|
var data = getApp().store.sync(result.data) |
|
that.setData({'zichan_slides': data}) |
|
wx.setStorage({ |
|
key:"zichan_slides", |
|
data:data |
|
}) |
|
}) |
|
}, |
|
}) |