|
@@ -35,10 +35,12 @@ Component({
|
|
|
postIndex: '',
|
|
|
ifGetFocus: false,
|
|
|
replyType: 'works', // 回复类型,works是回复作品,comment是回复评论
|
|
|
- animation: {}
|
|
|
+ animation: {},
|
|
|
+ author: '',
|
|
|
+ uid: wx.getStorageSync('uid')
|
|
|
},
|
|
|
methods: {
|
|
|
- async open(columnId, type = 'comment', onceId) {
|
|
|
+ async open(author, columnId, type = 'comment', onceId) {
|
|
|
console.log(columnId, type, onceId);
|
|
|
// 背景遮罩层
|
|
|
var animation = wx.createAnimation({
|
|
@@ -52,6 +54,7 @@ Component({
|
|
|
columnId,
|
|
|
type,
|
|
|
onceId,
|
|
|
+ author,
|
|
|
show: true,
|
|
|
})
|
|
|
setTimeout(() => {
|
|
@@ -240,6 +243,9 @@ Component({
|
|
|
onLongPress({
|
|
|
currentTarget
|
|
|
}) {
|
|
|
+ if (this.data.uid != this.data.author) {
|
|
|
+ return
|
|
|
+ }
|
|
|
let {
|
|
|
id,
|
|
|
type
|