锦水居民端小程序
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

6 years ago
Component({
data: {
},
properties: {
remarkList: {
type: Array,
value: []
},
statementNum: {
type: Number,
value: 0
},
remarkType: {
type: String,
value: "new"
6 years ago
}
},
methods: {
supportReply (e) {
this.triggerEvent("supportReply", {commentId: e.currentTarget.dataset.commentid })
6 years ago
},
dispportReply (e) {
this.triggerEvent("dispportReply", { commentId: e.currentTarget.dataset.commentid })
6 years ago
},
replyRemark (e) {
this.triggerEvent("replyRemark", { commentId: e.currentTarget.dataset.commentid })
6 years ago
},
changeRemarkType () {
if (this.data.remarkType === "new") {
this.triggerEvent("changeRemarkType", { type: "hot"})
6 years ago
} else {
this.triggerEvent("changeRemarkType", { type: "new"})
6 years ago
}
}
}
})