|
@@ -1,5 +1,6 @@
|
|
|
const pages = require('../../mixin/pages')
|
|
|
const { postFollowUser, postAddComment, postGood } = require('./api/index')
|
|
|
+const app = getApp()
|
|
|
|
|
|
Page({
|
|
|
|
|
@@ -276,5 +277,12 @@ Page({
|
|
|
current: imgs[index]
|
|
|
})
|
|
|
}
|
|
|
+ },
|
|
|
+ jumpMyNews() {
|
|
|
+ const { id } = app.globalData.userInfo
|
|
|
+
|
|
|
+ wx.navigateTo({
|
|
|
+ url: '/pages/myNews/myNews?user_id=' + id
|
|
|
+ })
|
|
|
}
|
|
|
})
|