diff --git a/.env b/.env index ac9e939..0f1e628 100644 --- a/.env +++ b/.env @@ -1,5 +1,5 @@ VITE_BASE=/fe-student-h5 -VITE_BASE_API= +VITE_BASE_API=/ VITE_OUTPUT_DIR=./dist VITE_BASE_LOGIN_URL=//u-pre.boe.com/web?returnUrl= VITE_PROXY_URL=http://43.143.139.204/manageApi @@ -16,4 +16,6 @@ VITE_BOE_API_URL=https://u-pre.boe.com VITE_TASK_WHITE_TYPE=-8-,-12-,-13- # boe域名 -VUE_APP_BOE_API_URL=//u-pre.boe.com \ No newline at end of file +VUE_APP_BOE_API_URL=//u-pre.boe.com +#评论上传图片 +VITE_IMG=/manageApi \ No newline at end of file diff --git a/.env.boe b/.env.boe index 1dedcd7..aa80821 100644 --- a/.env.boe +++ b/.env.boe @@ -8,4 +8,6 @@ VITE_BOE_TEST_OUT_DETAIL_URL=//u-pre.boe.com/api/b1/tale/do-quiz?quizKid= VITE_BOE_EXAM_DETAIL_URL=//u-pre.boe.com/mobile/pages/exam/exam?id= VITE_BOE_API_URL=https://u-pre.boe.com -VUE_APP_BOE_API_URL=//u-pre.boe.com \ No newline at end of file +VUE_APP_BOE_API_URL=//u-pre.boe.com + +VITE_IMG=/manageApi \ No newline at end of file diff --git a/.env.prod b/.env.prod index 16eede7..4320f82 100644 --- a/.env.prod +++ b/.env.prod @@ -13,4 +13,6 @@ VITE_BOE_PATH_DETAIL_URL=//u.boe.com/pc/forward?to=/student-h5 VITE_BOE_API_URL=https://u.boe.com VITE_TASK_WHITE_TYPE=-8-,-12-,-13- -VUE_APP_BOE_API_URL=//u.boe.com \ No newline at end of file +VUE_APP_BOE_API_URL=//u.boe.com + +VITE_IMG=/manageApi \ No newline at end of file diff --git a/.env.release b/.env.release index 7b73af2..a74ee91 100644 --- a/.env.release +++ b/.env.release @@ -10,4 +10,6 @@ VITE_BOE_EXAM_DETAIL_URL=//u.boe.com/pc-release/mobile/pages/exam/exam?id= VITE_BOE_PATH_DETAIL_URL=//u.boe.com/pc-release/forward?to=/student-h5-release VITE_BOE_API_URL=https://u.boe.com -VUE_APP_BOE_API_URL=//u.boe.com \ No newline at end of file +VUE_APP_BOE_API_URL=//u.boe.com + +VITE_IMG=/manageApi-release \ No newline at end of file diff --git a/src/api/api.js b/src/api/api.js index 44a7d2a..932052b 100644 --- a/src/api/api.js +++ b/src/api/api.js @@ -2,7 +2,7 @@ * @Author: lixg lixg@dongwu-inc.com * @Date: 2023-01-13 11:42:48 * @LastEditors: lixg lixg@dongwu-inc.com - * @LastEditTime: 2023-02-20 17:57:40 + * @LastEditTime: 2023-02-22 14:17:37 * @FilePath: /stu_h5/src/api/api.js * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ @@ -66,6 +66,7 @@ export const PostDetails = `/statement/info` export const COMMENT_LIST = '/comment/list' export const COMMENT_PRAISE = '/comment/praise' +export const COMMENT_ADD = '/comment/add post' // 外部考试详情接口 export const EXTERNALEXAM = `/external/exam/queryExternalExam` @@ -79,4 +80,5 @@ export const FACETEACH_SIGNUP = `/stu/project/stuFaceTeachSignUp` export const SubmitExternalExam = `/stu/externalExam/submitExternalExam post` export const UPDATE_CURRENT_TASK = `/admin/student/updateCurrentTask post` // 测评任务去学习 -export const EvaluationToLearn = '/evaluation/evaluationToLearn post' \ No newline at end of file +export const EvaluationToLearn = '/evaluation/evaluationToLearn post' +export const FILE_UPLOAD_IMG = import.meta.env.VITE_IMG + '/file/img' \ No newline at end of file diff --git a/src/components/img/UploadPostImg.vue b/src/components/img/UploadPostImg.vue new file mode 100644 index 0000000..91ecc53 --- /dev/null +++ b/src/components/img/UploadPostImg.vue @@ -0,0 +1,101 @@ + + + + diff --git a/src/views/discuss/DiscussDetail.vue b/src/views/discuss/DiscussDetail.vue index 4ba263c..0b46376 100644 --- a/src/views/discuss/DiscussDetail.vue +++ b/src/views/discuss/DiscussDetail.vue @@ -39,35 +39,75 @@
评论
{{ hfPage?.total }}条
-
- - +
+
+ + + + +
+
+ + + + +
-
- - +
+ +
+
取消
+
发布
+
@@ -116,15 +156,15 @@ >
+
{{ itemc.studentName }}
-
{{ itemc.createName }}
{{ itemc.content }}
{{ itemc.createTime }}
-
+
- -
- -
+
+ + +
@@ -592,7 +657,7 @@ function submitReplayComment() { flex-direction: column; align-items: center; position: relative; - height: 100px; + margin-bottom: 10px; .headn { width: 90%; display: flex; @@ -613,7 +678,41 @@ function submitReplayComment() { align-items: center; width: 90%; position: absolute; - bottom: 15px; + } + .imgbtns { + width: 90%; + display: flex; + justify-content: space-between; + // margin-top: 10px; + .btns { + display: flex; + } + .btns1 { + width: 50px; + height: 25px; + border: 1px solid #999999; + border-radius: 4px; + display: flex; + align-items: center; + justify-content: center; + font-size: 14px; + font-weight: 400; + color: #999999; + margin-right: 16px; + } + .btns2 { + width: 50px; + height: 25px; + background: #2478ff; + border: 1px solid #2478ff; + border-radius: 4px; + display: flex; + align-items: center; + justify-content: center; + font-size: 14px; + font-weight: 400; + color: #ffffff; + } } } .linee { @@ -715,24 +814,28 @@ function submitReplayComment() { .it { margin-left: 12.5px; width: 92%; - display: flex; + // display: flex; margin-top: 20px; // margin-bottom: 20px; .ava { // margin-top: 20px; + display: flex; + align-items: center; .avainner { width: 36px; height: 36px; border-radius: 50%; } + .rename { + color: #02172a; + font-size: 14px; + margin-left: 5px; + } } .redetail { width: 100%; margin-left: 12.5px; - .rename { - color: #02172a; - font-size: 14px; - } + .rein { color: #5f6d75; font-size: 14px; @@ -780,24 +883,23 @@ function submitReplayComment() { } } } - - .btncon { - width: 100%; - height: 60px; - position: relative; - .btnn { - margin-top: 30px; - position: absolute; - left: 50%; - transform: translate(-50%, 0); - border: 0; - background-color: #fff; - color: #2478ff; - } - } } } } + .btncon { + width: 100%; + height: 60px; + position: relative; + .btnn { + margin-top: 30px; + position: absolute; + left: 50%; + transform: translate(-50%, 0); + border: 0; + background-color: #fff; + color: #2478ff; + } + } .reply1 { display: flex; align-items: center; diff --git a/src/views/discuss/DiscussPage.vue b/src/views/discuss/DiscussPage.vue index 4e6bbe1..018d53f 100644 --- a/src/views/discuss/DiscussPage.vue +++ b/src/views/discuss/DiscussPage.vue @@ -184,7 +184,7 @@ function getPostList(discussId) { console.log("我是当前讨论下的帖子", e); state.postList = state.postList.concat(e.data.records); state.total = Number(e.data.total); - if (e.data.records.length === 0) { + if (e.data.records.length === 0 || e.data.records.length < 10) { state.noMore = true; } })