From 01d7849da7163be0e69e81551248be4b5c070e34 Mon Sep 17 00:00:00 2001 From: lixg Date: Sat, 25 Feb 2023 11:02:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ballot/BallotPage.vue | 374 +++++++++++++--------- src/views/faceteach/FaceTeachNoCommon.vue | 3 +- src/views/faceteach/FaceTeachSignUp.vue | 1 + 3 files changed, 224 insertions(+), 154 deletions(-) diff --git a/src/views/ballot/BallotPage.vue b/src/views/ballot/BallotPage.vue index 59bc93e..be78b84 100644 --- a/src/views/ballot/BallotPage.vue +++ b/src/views/ballot/BallotPage.vue @@ -8,20 +8,26 @@
/
投票详情
- + 上一个 - + 下一个
-
-
- 返回 -
-
+
+
+ + 返回 +
+
【投票】{{ state.dataInfo?.voteName }}
@@ -32,8 +38,8 @@
参与情况
@@ -43,9 +49,10 @@
{{ - state.dataInfo.numberOfInvolved || state.dataInfo.numberOfInvolved == 0 - ? state.dataInfo.numberOfInvolved - : "-" + state.dataInfo.numberOfInvolved || + state.dataInfo.numberOfInvolved == 0 + ? state.dataInfo.numberOfInvolved + : "-" }}
参与数
@@ -54,8 +61,8 @@
{{ state.dataInfo.votesTotal || state.dataInfo.votesTotal == 0 - ? state.dataInfo.votesTotal - : "-" + ? state.dataInfo.votesTotal + : "-" }}
总票数
@@ -63,9 +70,10 @@
{{ - state.dataInfo.numberOfBrowse || state.dataInfo.numberOfBrowse == 0 - ? state.dataInfo.numberOfBrowse - : "-" + state.dataInfo.numberOfBrowse || + state.dataInfo.numberOfBrowse == 0 + ? state.dataInfo.numberOfBrowse + : "-" }}
浏览数
@@ -74,8 +82,8 @@
参与投票
@@ -83,31 +91,58 @@
-
{{ item.orderNumber }}、
+
{{ index + 1 }}、
{{ item.voteStemName }}
- + margin-bottom: 25px; + " + > +
-
-
投票时间
@@ -150,21 +199,25 @@
距离结束还有   {{ - parseInt( - dayjs(state.dataInfo?.voteEndTime).diff(dayjs(), "minute") / 60 - ) - }}   小时  {{ - dayjs(state.dataInfo?.voteEndTime).diff(dayjs(), "minute") % 60 + parseInt( + dayjs(state.dataInfo?.voteEndTime).diff( + dayjs(), + "minute" + ) / 60 + ) }}  分钟 + >   小时  {{ + dayjs(state.dataInfo?.voteEndTime).diff(dayjs(), "minute") % + 60 + }}  分钟
投票说明
@@ -172,9 +225,11 @@
@@ -187,18 +242,14 @@ @@ -357,14 +425,14 @@ const submitVote = () => { line-height: 24px; position: relative; } - .return{ + .return { position: absolute; right: 10%; - .text{ + .text { text-align: center; - display: flex; - flex-direction: row; - align-items: center; + display: flex; + flex-direction: row; + align-items: center; } } .preNext { @@ -546,26 +614,26 @@ const submitVote = () => { .allbox1 { margin-right: 22px; background: linear-gradient( - 0deg, - rgba(160, 193, 230, 0) 0%, - rgba(161, 195, 231, 0.2) 100% + 0deg, + rgba(160, 193, 230, 0) 0%, + rgba(161, 195, 231, 0.2) 100% ); } .allbox2 { margin-right: 22px; background: linear-gradient( - 0deg, - rgba(177, 219, 229, 0) 0%, - rgba(172, 216, 227, 0.2) 100% + 0deg, + rgba(177, 219, 229, 0) 0%, + rgba(172, 216, 227, 0.2) 100% ); } .allbox3 { background: linear-gradient( - 0deg, - rgba(195, 209, 234, 0) 0%, - rgba(191, 206, 231, 0.2) 100% + 0deg, + rgba(195, 209, 234, 0) 0%, + rgba(191, 206, 231, 0.2) 100% ); } diff --git a/src/views/faceteach/FaceTeachNoCommon.vue b/src/views/faceteach/FaceTeachNoCommon.vue index b7ae49b..d8a300d 100644 --- a/src/views/faceteach/FaceTeachNoCommon.vue +++ b/src/views/faceteach/FaceTeachNoCommon.vue @@ -157,7 +157,8 @@ const handleClick = (tab, event) => { console.log("附件", tab, event); }; const download = (url) => { - window.open(url); + console.log('下载url',url) + // window.open(url); }; const downloads = (url) => { ElMessage.warning("未在有效时间范围内,请耐心等待!"); diff --git a/src/views/faceteach/FaceTeachSignUp.vue b/src/views/faceteach/FaceTeachSignUp.vue index 6e92221..b2b30dc 100644 --- a/src/views/faceteach/FaceTeachSignUp.vue +++ b/src/views/faceteach/FaceTeachSignUp.vue @@ -157,6 +157,7 @@ const handleClick = (tab, event) => { console.log("附件", tab, event); }; const download = (url) => { + // console.log('下载url',url) window.open(url); }; const downloads = (url) => {