diff --git a/src/api/api.js b/src/api/api.js
index 591c295..d66a927 100644
--- a/src/api/api.js
+++ b/src/api/api.js
@@ -2,7 +2,7 @@
* @Author: lixg lixg@dongwu-inc.com
* @Date: 2022-12-11 16:57:58
* @LastEditors: lixg lixg@dongwu-inc.com
- * @LastEditTime: 2022-12-11 21:21:16
+ * @LastEditTime: 2022-12-12 13:42:24
* @FilePath: /fe-stu/src/api/api.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
@@ -39,7 +39,7 @@ export const DISCUSS_SUBMIT_REVIEW_LIST = '/discussSubmit/queryDiscussSubmitAndR
export const COMMENT_LIST = '/comment/list'
-export const VOTE_DETAIL2 = ballotId => `/vote/queryStemByStemId?ballotId=${ballotId} post`
+export const VOTE_DETAIL2 = voteId => `/vote/queryVoteAndVoteStemDetailByVoteId?voteId=${voteId} post`
export const COMMENT_ADD = '/comment post'
export const COMMENT_PRAISE = '/comment/praise post'
export const COMMENT_COLLECTION = '/comment/collection post'
diff --git a/src/views/ballot/BallotPage.vue b/src/views/ballot/BallotPage.vue
index 4848c1d..8be9eba 100644
--- a/src/views/ballot/BallotPage.vue
+++ b/src/views/ballot/BallotPage.vue
@@ -16,7 +16,7 @@
-
【投票】{{ dataInfo?.ballotName }}
+ 【投票】{{ dataInfo?.voteName }}
@@ -24,8 +24,7 @@
参与情况
@@ -34,29 +33,40 @@
-
+
+ {{
+ dataInfo.numberOfInvolved || dataInfo.numberOfInvolved == 0
+ ? dataInfo.numberOfInvolved
+ : "-"
+ }}
+
参与数
-
+
+ {{
+ dataInfo.votesTotal || dataInfo.votesTotal == 0
+ ? dataInfo.votesTotal
+ : "-"
+ }}
+
总票数
-
+
+ {{
+ dataInfo.numberOfBrowse || dataInfo.numberOfBrowse == 0
+ ? dataInfo.numberOfBrowse
+ : "-"
+ }}
+
浏览数
参与投票
@@ -65,10 +75,10 @@
-
+
{{ item.orderNumber }}、
{{ item.voteStemName }}
@@ -89,26 +99,25 @@
-
+
@@ -123,10 +132,12 @@
-
+ v-html="
+ dataInfo?.voteExplain ? dataInfo?.voteExplain : '暂无说明'
+ "
+ >
@@ -154,10 +165,10 @@ import { watch, reactive, toRefs } from "vue";
// });
// let { votedetail } = toRefs(state);
const {
- query: { ballotId = 3 },
+ query: { voteId = 136 },
} = useRoute();
//获取基本信息
-const { data: dataInfo } = useRequest(VOTE_DETAIL2(ballotId));
+const { data: dataInfo } = useRequest(VOTE_DETAIL2(voteId));
console.log("dataInfo", dataInfo);
// watch(dataInfo, () => {
// if (dataInfo._rawValue) {
@@ -417,8 +428,15 @@ console.log("dataInfo", dataInfo);
// background: #f5f6f7;
// border-radius: 8px;
margin-top: 32px;
+ margin-left: 21px;
flex: 1;
-
+ .stem {
+ display: flex;
+ font-size: 16px;
+ font-weight: 500;
+ color: #333330;
+ line-height: 38px;
+ }
.imgcontent {
display: flex;