|
|
@ -2,14 +2,24 @@ import { |
|
|
|
getIssueDetail, |
|
|
|
getIssueTypeStatistics, |
|
|
|
getRemarkList, |
|
|
|
showRemarkStatement, |
|
|
|
showIssueStatement, |
|
|
|
// showRemarkStatement,
|
|
|
|
issueComLike, |
|
|
|
issueComUnlike, |
|
|
|
itemComLike, |
|
|
|
itemComUnlike, |
|
|
|
// showIssueStatement,
|
|
|
|
issueSupport, |
|
|
|
issueOpposition, |
|
|
|
itemSupport, |
|
|
|
itemOpposition, |
|
|
|
getProjectDetail, |
|
|
|
getProjectTypeStatistics, |
|
|
|
getIssueHandleProgressV2, |
|
|
|
getProjectHandleProgressV2 |
|
|
|
} from '../../utils/api' |
|
|
|
import { formatTimestamp } from '../../utils/common' |
|
|
|
import { |
|
|
|
formatTimestamp |
|
|
|
} from '../../utils/common' |
|
|
|
const app = getApp() |
|
|
|
Page({ |
|
|
|
data: { |
|
|
@ -354,11 +364,24 @@ Page({ |
|
|
|
issueId: this.data.detailType === 'issue' ? this.data.issueId : '', |
|
|
|
itemId: this.data.detailType === 'project' ? this.data.projectId : '' |
|
|
|
} |
|
|
|
showRemarkStatement(para).then(res => { |
|
|
|
if (this.data.detailType == 'issue') { //议题
|
|
|
|
issueComLike(para).then(res => { |
|
|
|
console.log('评论支持', res) |
|
|
|
}).catch(err => { |
|
|
|
console.log(err) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
itemComLike(para).then(res => { |
|
|
|
console.log('评论支持', res) |
|
|
|
}).catch(err => { |
|
|
|
console.log(err) |
|
|
|
}) |
|
|
|
} |
|
|
|
// showRemarkStatement(para).then(res => {
|
|
|
|
// console.log('评论支持', res)
|
|
|
|
// }).catch(err => {
|
|
|
|
// console.log(err)
|
|
|
|
// })
|
|
|
|
}, |
|
|
|
debounceDispportRemark(e) { |
|
|
|
clearTimeout(this.data.dispportTimer) |
|
|
@ -397,11 +420,24 @@ Page({ |
|
|
|
issueId: this.data.detailType === 'issue' ? this.data.issueId : '', |
|
|
|
itemId: this.data.detailType === 'project' ? this.data.projectId : '' |
|
|
|
} |
|
|
|
showRemarkStatement(para).then(res => { |
|
|
|
if (this.data.detailType == 'issue') { //议题
|
|
|
|
issueComUnlike(para).then(res => { |
|
|
|
console.log('评论不支持', res) |
|
|
|
}).catch(err => { |
|
|
|
console.log(err) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
itemComUnlike(para).then(res => { |
|
|
|
console.log('评论不支持', res) |
|
|
|
}).catch(err => { |
|
|
|
console.log(err) |
|
|
|
}) |
|
|
|
} |
|
|
|
// showRemarkStatement(para).then(res => {
|
|
|
|
// console.log('评论不支持', res)
|
|
|
|
// }).catch(err => {
|
|
|
|
// console.log(err)
|
|
|
|
// })
|
|
|
|
}, |
|
|
|
// 对 议题/项目 进行评论
|
|
|
|
navigateToReply() { |
|
|
@ -459,11 +495,26 @@ Page({ |
|
|
|
issueId: this.data.detailType === 'issue' ? this.data.issueId : '', |
|
|
|
itemId: this.data.detailType === 'project' ? this.data.projectId : '' |
|
|
|
} |
|
|
|
showIssueStatement(para).then(res => { |
|
|
|
console.log('点赞议题或项目', res) |
|
|
|
|
|
|
|
// showIssueStatement(para).then(res => {
|
|
|
|
// console.log('点赞议题或项目', res)
|
|
|
|
// }).catch(err => {
|
|
|
|
// console.log(err)
|
|
|
|
// })
|
|
|
|
if (this.data.detailType == 'issue') { //议题
|
|
|
|
issueSupport(para).then(res => { //v2新接口 2020.5.8
|
|
|
|
console.log('点赞议题', res) |
|
|
|
}).catch(err => { |
|
|
|
console.log(err) |
|
|
|
}) |
|
|
|
} else { //项目 itemSupport,
|
|
|
|
itemSupport(para).then(res => { //v2新接口 2020.5.8
|
|
|
|
console.log('点赞项目', res) |
|
|
|
}).catch(err => { |
|
|
|
console.log(err) |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
debounceDispportIssueOrProject() { |
|
|
|
clearTimeout(this.data.dispportTimer) |
|
|
@ -497,11 +548,26 @@ Page({ |
|
|
|
issueId: this.data.detailType === 'issue' ? this.data.issueId : '', |
|
|
|
itemId: this.data.detailType === 'project' ? this.data.projectId : '' |
|
|
|
} |
|
|
|
showIssueStatement(para).then(res => { |
|
|
|
console.log('点踩议题或项目', res) |
|
|
|
|
|
|
|
// showIssueStatement(para).then(res => {
|
|
|
|
// console.log('点踩议题或项目', res)
|
|
|
|
// }).catch(err => {
|
|
|
|
// console.log(err)
|
|
|
|
// })
|
|
|
|
if (this.data.detailType == 'issue') { //议题
|
|
|
|
issueOpposition(para).then(res => { //v2新接口 2020.5.8
|
|
|
|
console.log('点踩议题', res) |
|
|
|
}).catch(err => { |
|
|
|
console.log(err) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
itemOpposition(para).then(res => { //v2新接口 2020.5.8
|
|
|
|
console.log('点踩项目', res) |
|
|
|
}).catch(err => { |
|
|
|
console.log(err) |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
// 跳转到 分类列表
|
|
|
|
navigateToCategoryList() { |
|
|
|