|
@@ -15,18 +15,18 @@ Page({
|
|
|
behaviors: [reachBottom, share, event],
|
|
|
data: {
|
|
|
firstWork: '',
|
|
|
- type: 'my'
|
|
|
+ type: 'my',
|
|
|
+ emptyText: '您还没有作品哦,赶快去发表吧!'
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
- if (options.type) {
|
|
|
+ if (options.type && options.type != 'my') {
|
|
|
this.setData({
|
|
|
- type: options.type
|
|
|
+ type: options.type,
|
|
|
+ emptyText: options.type == 'follow' ? '您还没有关注用户哦' : '快去收藏喜欢的作品吧!'
|
|
|
+ })
|
|
|
+ wx.setNavigationBarTitle({
|
|
|
+ title: options.type == 'follow' ? '关注作品' : '收藏作品'
|
|
|
})
|
|
|
- if(options.type!='my'){
|
|
|
- wx.setNavigationBarTitle({
|
|
|
- title:options.type=='follow'?'关注作品':'收藏作品'
|
|
|
- })
|
|
|
- }
|
|
|
}
|
|
|
if (options.id) {
|
|
|
this.getreadInfo(options.id)
|