|
@@ -2,7 +2,9 @@ import {
|
|
|
getComment,
|
|
|
postReply,
|
|
|
ReplyComment,
|
|
|
- likeReply
|
|
|
+ likeReply,
|
|
|
+ getLikeNotes,
|
|
|
+ getLikeNote
|
|
|
} from '~/api/video'
|
|
|
import reachBottom from '~/mixins/reachBottom'
|
|
|
Component({
|
|
@@ -14,10 +16,6 @@ Component({
|
|
|
value: false
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
- /**
|
|
|
- * 组件的初始数据
|
|
|
- */
|
|
|
data: {
|
|
|
show: false,
|
|
|
quickShow: true,
|
|
@@ -33,7 +31,7 @@ Component({
|
|
|
animation: {}
|
|
|
},
|
|
|
methods: {
|
|
|
- open(columnId) {
|
|
|
+ open(columnId, type = 'comment') {
|
|
|
// 背景遮罩层
|
|
|
var animation = wx.createAnimation({
|
|
|
duration: 300,
|
|
@@ -44,8 +42,10 @@ Component({
|
|
|
this.setData({
|
|
|
animationData: animation.export(),
|
|
|
columnId,
|
|
|
+ type,
|
|
|
show: true,
|
|
|
})
|
|
|
+ console.log(type);
|
|
|
setTimeout(() => {
|
|
|
animation.translateY(0).step()
|
|
|
this.setData({
|
|
@@ -83,6 +83,9 @@ Component({
|
|
|
},
|
|
|
loadMore() {
|
|
|
if (this.data.type == 'like') {
|
|
|
+ this.getData(getLikeNotes, {
|
|
|
+ columnId: this.data.columnId,
|
|
|
+ })
|
|
|
return
|
|
|
}
|
|
|
let params = {
|