diff --git a/src/components/comment-input/comment-input.vue b/src/components/comment-input/comment-input.vue index 556c00b8..48b56264 100644 --- a/src/components/comment-input/comment-input.vue +++ b/src/components/comment-input/comment-input.vue @@ -302,7 +302,8 @@ imgIdList: fileList.value, // 发表图片ID列表,文件ID集 bbsGrade: bbsGrade.value, // 综合评分(最高10分) bbsTag: bbsTag.value, // 评价标签 (SUG 建议 ASK 提问 ) - bbsContent: value.value // 评价内容 + bbsContent: value.value, // 评价内容 + imgTyp: isImg.value? '01':'02' } publishCrsEvaluation(_params).then((res) => { const loadingDuration = Date.now() - loadingStartTime; diff --git a/src/pages/courseDetail/components/comment.vue b/src/pages/courseDetail/components/comment.vue index 27d03010..840b5aec 100644 --- a/src/pages/courseDetail/components/comment.vue +++ b/src/pages/courseDetail/components/comment.vue @@ -30,7 +30,7 @@ { + const showPicture = (urls, item, itemInfo) => { + if(itemInfo.imgTyp === '02') return const base_url = get_base_url(); const current = urls.findIndex((res) => item === res); if (current === -1) { @@ -231,7 +232,6 @@ } const token = getToken() const urlsList = urls.map((res) => base_url + res+'?tk='+ token); - console.log(urlsList, current); uni.previewImage({ current: current || 0, urls: urlsList,