|
@ -1,4 +1,4 @@ |
|
|
import { getTopicDetail, getRemarkList, closeTopic, publishStatement, getCloseReason } from '../../utils/api' |
|
|
import { getTopicDetail, getRemarkList, closeTopic, publishStatement } from '../../utils/api' |
|
|
import { getTimestamp } from '../../utils/common' |
|
|
import { getTimestamp } from '../../utils/common' |
|
|
const app = getApp() |
|
|
const app = getApp() |
|
|
|
|
|
|
|
@ -45,7 +45,6 @@ Page({ |
|
|
detailId: options.detailId, |
|
|
detailId: options.detailId, |
|
|
infoCompleted: app.globalData.infoCompleted |
|
|
infoCompleted: app.globalData.infoCompleted |
|
|
}) |
|
|
}) |
|
|
this.getCloseReason() |
|
|
|
|
|
}, |
|
|
}, |
|
|
onShow () { |
|
|
onShow () { |
|
|
this.setData({ |
|
|
this.setData({ |
|
@ -92,7 +91,7 @@ Page({ |
|
|
return false |
|
|
return false |
|
|
} else { |
|
|
} else { |
|
|
wx.navigateTo({ |
|
|
wx.navigateTo({ |
|
|
url: `/subpages/association/pages/replyOrRemark/replyOrRemark?topicId=${this.data.detailId}&faCommentId=` |
|
|
url: `/subpages/property/pages/replyOrRemark/replyOrRemark?topicId=${this.data.detailId}&faCommentId=` |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -241,7 +240,7 @@ Page({ |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|
wx.navigateTo({ |
|
|
wx.navigateTo({ |
|
|
url: `/subpages/association/pages/changeToIssue/changeToIssue?topicId=${this.data.detailId}` |
|
|
url: `/subpages/property/pages/changeToIssue/changeToIssue?topicId=${this.data.detailId}` |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// 支持某条评论 debounce防抖
|
|
|
// 支持某条评论 debounce防抖
|
|
@ -405,7 +404,7 @@ Page({ |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|
wx.navigateTo({ |
|
|
wx.navigateTo({ |
|
|
url: `/subpages/association/pages/replyOrRemark/replyOrRemark?topicId=${this.data.detailId}&faCommentId=${e.detail.commentId}` |
|
|
url: `/subpages/property/pages/replyOrRemark/replyOrRemark?topicId=${this.data.detailId}&faCommentId=${e.detail.commentId}` |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// 评论列表 type 切换
|
|
|
// 评论列表 type 切换
|
|
@ -440,22 +439,6 @@ Page({ |
|
|
console.log(err) |
|
|
console.log(err) |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// 获取关闭原因
|
|
|
|
|
|
getCloseReason () { |
|
|
|
|
|
getCloseReason(this.data.detailId).then(res => { |
|
|
|
|
|
console.log('获取关闭原因', res) |
|
|
|
|
|
if (res.data.length > 0) { |
|
|
|
|
|
this.setData({ |
|
|
|
|
|
closeObj: { |
|
|
|
|
|
createdTime: res.data[0].createdTime, |
|
|
|
|
|
processingOpinions: res.data[0].processingOpinions |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
console.log(err) |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
checkIsCompleteInfo () { |
|
|
checkIsCompleteInfo () { |
|
|
if (this.data.infoCompleted == 0) { |
|
|
if (this.data.infoCompleted == 0) { |
|
|
this.setData({ |
|
|
this.setData({ |
|
|