diff --git a/epdc-resident-mp-yushan/subpages/safety/pages/newsDetail/newsDetail.js b/epdc-resident-mp-yushan/subpages/safety/pages/newsDetail/newsDetail.js index f9c64bc..cdeea90 100644 --- a/epdc-resident-mp-yushan/subpages/safety/pages/newsDetail/newsDetail.js +++ b/epdc-resident-mp-yushan/subpages/safety/pages/newsDetail/newsDetail.js @@ -128,34 +128,13 @@ Page({ newsId: this.data.detailId, attitude: attitudeState } - if (attitudeState == 0) { //表态 0赞;1踩;2取消赞;3取消踩 - api.newsSupport(para).then(() => { - - }).catch(err => { - console.log(err) - }) - } else if (attitudeState == 1) { - api.newsOpposition(para).then(() => { - - }).catch(err => { - console.log(err) - }) - } else { - // const res = await newsPosition(para) - // console.log('新闻表态', res) - api.newsPosition(para).then(() => { - - }).catch(err => { - console.log(err) - }) - } // const res = await newsPosition(para) // console.log('新闻表态', res) - // api.newsPosition(para).then(res => { + api.newsPosition(para).then(res => { - // }).catch(err => { - // console.log(err) - // }) + }).catch(err => { + console.log(err) + }) } } }) \ No newline at end of file