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.
36 lines
834 B
36 lines
834 B
Component({
|
|
data: {
|
|
},
|
|
properties: {
|
|
remarkList: {
|
|
type: Array,
|
|
value: []
|
|
},
|
|
statementNum: {
|
|
type: Number,
|
|
value: 0
|
|
},
|
|
remarkType: {
|
|
type: String,
|
|
value: "new"
|
|
}
|
|
},
|
|
methods: {
|
|
supportReply (e) {
|
|
this.triggerEvent("supportReply", {commentId: e.currentTarget.dataset.commentid })
|
|
},
|
|
dispportReply (e) {
|
|
this.triggerEvent("dispportReply", { commentId: e.currentTarget.dataset.commentid })
|
|
},
|
|
replyRemark (e) {
|
|
this.triggerEvent("replyRemark", { commentId: e.currentTarget.dataset.commentid })
|
|
},
|
|
changeRemarkType () {
|
|
if (this.data.remarkType === "new") {
|
|
this.triggerEvent("changeRemarkType", { type: "hot"})
|
|
} else {
|
|
this.triggerEvent("changeRemarkType", { type: "new"})
|
|
}
|
|
}
|
|
}
|
|
})
|