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.
39 lines
949 B
39 lines
949 B
5 months ago
|
// pages/favorite/favorite.js
|
||
|
var app = getApp()
|
||
|
Page({
|
||
|
data: {
|
||
|
moviearray:[],
|
||
|
talkarray:[],
|
||
|
show: 'movie_favorite',
|
||
|
},
|
||
|
onLoad: function (options) {
|
||
|
app.MovieHistoryRefresh()
|
||
|
app.TalkHistoryRefresh()
|
||
|
// console.log(app.globalData.moviearray)
|
||
|
this.setData({
|
||
|
moviearray: app.globalData.moviehistoryarray,
|
||
|
talkarray: app.globalData.talkhistoryarray
|
||
|
})
|
||
|
},
|
||
|
onPullDownRefresh: function () {
|
||
|
this.onLoad()
|
||
|
},
|
||
|
jumpBtnMovie:function(options){
|
||
|
var postId = options.currentTarget.dataset.postid;
|
||
|
wx.navigateTo({
|
||
|
url: '/pages/moviemore/moviemore?id='+postId,
|
||
|
})
|
||
|
},
|
||
|
jumpBtnTalk: function (options) {
|
||
|
var postId = options.currentTarget.dataset.postid;
|
||
|
wx.navigateTo({
|
||
|
url: '/pages/talkingmore/talkingmore?id=' + postId
|
||
|
})
|
||
|
},
|
||
|
changeViewType: function(e) {
|
||
|
var data = e.currentTarget.dataset
|
||
|
this.setData({
|
||
|
show: data.type,
|
||
|
})
|
||
|
}
|
||
|
})
|