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.
35 lines
640 B
35 lines
640 B
5 years ago
|
import { getCommentList } from '../../../../../../api/reality'
|
||
|
Component({
|
||
|
properties: {
|
||
|
eventId: {
|
||
|
type: String,
|
||
|
value: '',
|
||
|
observer: function (value) {
|
||
|
if (value) {
|
||
|
this.getCommentList(value)
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
data: {
|
||
|
list: [
|
||
|
]
|
||
|
},
|
||
|
methods: {
|
||
|
getCommentList(eventId: string) {
|
||
|
let that = this
|
||
|
let params = {
|
||
|
eventId,
|
||
|
pageIndex: 1,
|
||
|
pageSize: 10,
|
||
|
orderType: '1'
|
||
|
}
|
||
|
getCommentList(params).then( (res: any) => {
|
||
|
console.log(res)
|
||
|
that.setData({
|
||
|
list: res.data
|
||
|
})
|
||
|
})
|
||
|
}
|
||
|
}
|
||
|
})
|