mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-13 04:46:48 +08:00
接口初始化 第一版
This commit is contained in:
@@ -24,9 +24,9 @@
|
||||
<div class="left">
|
||||
<div class="title">
|
||||
<img
|
||||
width="20px"
|
||||
height="20px"
|
||||
src="../../assets/image/yuan.png"
|
||||
width="20px"
|
||||
height="20px"
|
||||
src="../../assets/image/yuan.png"
|
||||
/>
|
||||
<div class="text">参与情况</div>
|
||||
<div class="box"></div>
|
||||
@@ -34,24 +34,24 @@
|
||||
<!-- <div style="display: flex; align-items: center"></div> -->
|
||||
<div class="all">
|
||||
<div class="item allbox1">
|
||||
<div class="item1" style="color: #089dff">123</div>
|
||||
<div class="item1" style="color: #089dff">{{ data.accessCnt }}</div>
|
||||
<div class="item2">参与数</div>
|
||||
</div>
|
||||
<div class="item allbox2">
|
||||
<div class="item1" style="color: #387df7">6172</div>
|
||||
<div class="item1" style="color: #387df7">{{ data.voteCnt }}</div>
|
||||
<div class="item2">总票数</div>
|
||||
</div>
|
||||
<div class="item allbox3">
|
||||
<div class="item1" style="color: #00c6ff">11241</div>
|
||||
<div class="item1" style="color: #00c6ff">{{ data.viewCnt }}</div>
|
||||
<div class="item2">浏览数</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="title">
|
||||
<img
|
||||
width="20px"
|
||||
height="20px"
|
||||
src="../../assets/image/yuan.png"
|
||||
width="20px"
|
||||
height="20px"
|
||||
src="../../assets/image/yuan.png"
|
||||
/>
|
||||
<div class="text">参与投票</div>
|
||||
<div class="box"></div>
|
||||
@@ -62,25 +62,26 @@
|
||||
<div class="imgone" style="margin-right: 10px"></div>
|
||||
<div class="imgone"></div>
|
||||
</div>
|
||||
<!-- todo #投票任务 参与投票下面这段文字是固定的么-->
|
||||
<div class="ontitle">
|
||||
通过对各级人员的软件平台培训,使其能够了解如何运用乾元坤和智能信息管理系统来提升企业管理水平,最大限度发挥软件产品在企业中的作用;
|
||||
<br />
|
||||
<br />
|
||||
<br/>
|
||||
<br/>
|
||||
● 培训目标
|
||||
<br />
|
||||
<br />
|
||||
<br/>
|
||||
<br/>
|
||||
1.使企业不同部门人员掌握便捷、有效的系统平台操作方法;
|
||||
<br />
|
||||
<br />
|
||||
<br/>
|
||||
<br/>
|
||||
2.通过系统平台的培训提高员工对企业的管理理念认识与提升。
|
||||
<br />
|
||||
<br />
|
||||
<br/>
|
||||
<br/>
|
||||
3.通过系统平台培训加强沟通,统一部署,协同工作,提高效率。
|
||||
<br />
|
||||
<br />
|
||||
<br/>
|
||||
<br/>
|
||||
●培训对象
|
||||
<br />
|
||||
<br />
|
||||
<br/>
|
||||
<br/>
|
||||
集团领导、各相关部门领导、总经理、车间主管、车间操作员等;
|
||||
</div>
|
||||
</div>
|
||||
@@ -88,43 +89,37 @@
|
||||
<div class="right">
|
||||
<div class="righttitle">
|
||||
<img
|
||||
width="20px"
|
||||
height="20px"
|
||||
src="../../assets/image/yuan.png"
|
||||
width="20px"
|
||||
height="20px"
|
||||
src="../../assets/image/yuan.png"
|
||||
/>
|
||||
<div class="text">投票时间</div>
|
||||
<div class="box"></div>
|
||||
</div>
|
||||
<div class="timebox clearfix">
|
||||
<div class="innertime">
|
||||
2022-7-20
|
||||
00:00 至 2022-8-29
|
||||
23:59:59
|
||||
{{data.detail?.voteStartTime
|
||||
}} 至 {{ data.detail?.voteEndTime }}
|
||||
</div>
|
||||
<div class="endtime clearfix">
|
||||
<div class="endtimetext">
|
||||
距离结束还有
|
||||
<span class="te">123</span> 小时 <span
|
||||
class="te"
|
||||
>42</span
|
||||
> 分钟
|
||||
<span class="te">{{parseInt(dayjs(data.detail?.voteEndTime).diff(dayjs(),'minute')/60)}}</span> 小时 <span class="te">{{dayjs(data.detail?.voteEndTime).diff(dayjs(),'minute')%60}}</span> 分钟
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="righttitle">
|
||||
<img
|
||||
width="20px"
|
||||
height="20px"
|
||||
src="../../assets/image/yuan.png"
|
||||
width="20px"
|
||||
height="20px"
|
||||
src="../../assets/image/yuan.png"
|
||||
/>
|
||||
|
||||
<div class="text">投票说明</div>
|
||||
<div class="box"></div>
|
||||
</div>
|
||||
<div class="explain clearfix">
|
||||
<div class="explaincontent">
|
||||
为提高核心项目讲解体验,现向广大学员征集较为接受的授课方式,每位学员可投票2个选项,我们将选取最高选项的两个做后续讲解。
|
||||
</div>
|
||||
<div class="explaincontent" v-html="data.detail?.voteExplain"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -135,19 +130,41 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { reactive, toRefs } from "vue";
|
||||
import {reactive, toRefs, ref} from "vue";
|
||||
import axios from 'axios';
|
||||
import {useRequest} from "@/api/request";
|
||||
import {ROUTER_CHAPTER_LIST, ROUTER_LIST, TASK_VOTE_DETAIL} from "@/api/api";
|
||||
import dayjs from "dayjs";
|
||||
export default {
|
||||
name: "balloT",
|
||||
setup() {
|
||||
const {data} = useRequest(TASK_VOTE_DETAIL, {})
|
||||
|
||||
const state = reactive({
|
||||
activeName: "first",
|
||||
});
|
||||
const test = ref({
|
||||
activeName: "first",
|
||||
});
|
||||
const testAsync = () => {
|
||||
axios({url: ROUTER_CHAPTER_LIST})
|
||||
.then(res => {
|
||||
console.log("login", res.data);
|
||||
})
|
||||
.catch(err =>
|
||||
console.error(err)
|
||||
)
|
||||
}
|
||||
const handleClick = (tab, event) => {
|
||||
console.log(tab, event);
|
||||
};
|
||||
return {
|
||||
...toRefs(state),
|
||||
test,
|
||||
handleClick,
|
||||
testAsync,
|
||||
dayjs,
|
||||
data
|
||||
};
|
||||
},
|
||||
};
|
||||
@@ -161,6 +178,7 @@ export default {
|
||||
display: table;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.moreactive {
|
||||
.crumb {
|
||||
color: #fff;
|
||||
@@ -173,6 +191,7 @@ export default {
|
||||
.preNext {
|
||||
position: absolute;
|
||||
right: 0px;
|
||||
|
||||
.content {
|
||||
font-size: 14px;
|
||||
color: #fff;
|
||||
@@ -183,6 +202,7 @@ export default {
|
||||
top: -6px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.btn {
|
||||
width: 23px;
|
||||
height: 23px;
|
||||
@@ -190,9 +210,11 @@ export default {
|
||||
border: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.btn01 {
|
||||
background-image: url("../../assets/image/prev.png");
|
||||
}
|
||||
|
||||
.btn02 {
|
||||
background-image: url("../../assets/image/next.png");
|
||||
}
|
||||
@@ -212,6 +234,7 @@ export default {
|
||||
width: 100%;
|
||||
margin-top: 20px;
|
||||
display: flex;
|
||||
|
||||
.detail {
|
||||
flex: 1;
|
||||
// margin-right: 20px;
|
||||
@@ -222,6 +245,7 @@ export default {
|
||||
color: rgba(51, 51, 51, 1);
|
||||
display: flex;
|
||||
padding-bottom: 20px;
|
||||
|
||||
.left {
|
||||
margin-left: 48px;
|
||||
flex: 1;
|
||||
@@ -230,16 +254,19 @@ export default {
|
||||
.right {
|
||||
width: 417px;
|
||||
margin-right: 48px;
|
||||
|
||||
.righttitle {
|
||||
display: flex;
|
||||
padding-top: 39px;
|
||||
position: relative;
|
||||
|
||||
.text {
|
||||
margin-left: 8px;
|
||||
font-size: 16px;
|
||||
color: rgba(51, 51, 51, 1);
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.box {
|
||||
width: 75px;
|
||||
height: 10px;
|
||||
@@ -249,6 +276,7 @@ export default {
|
||||
top: 53px;
|
||||
}
|
||||
}
|
||||
|
||||
.timebox {
|
||||
width: 417px;
|
||||
height: 149px;
|
||||
@@ -265,6 +293,7 @@ export default {
|
||||
color: #ffffff;
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
.endtime {
|
||||
margin-left: 10px;
|
||||
margin-top: 16px;
|
||||
@@ -272,9 +301,11 @@ export default {
|
||||
height: 81px;
|
||||
background: #f2f5f7;
|
||||
border-radius: 0px 8px 0px 8px;
|
||||
|
||||
.endtimetext {
|
||||
margin-top: 25px;
|
||||
margin-left: 46px;
|
||||
|
||||
.te {
|
||||
font-size: 28px;
|
||||
font-weight: 800;
|
||||
@@ -283,6 +314,7 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.explain {
|
||||
margin-top: 30px;
|
||||
width: 416px;
|
||||
@@ -290,6 +322,7 @@ export default {
|
||||
background: #f2f5f7;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.explaincontent {
|
||||
width: 368px;
|
||||
font-size: 16px;
|
||||
@@ -307,12 +340,14 @@ export default {
|
||||
padding-top: 39px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.title .text {
|
||||
margin-left: 8px;
|
||||
font-size: 16px;
|
||||
color: rgba(51, 51, 51, 1);
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.title .box {
|
||||
width: 75px;
|
||||
height: 10px;
|
||||
@@ -321,47 +356,54 @@ export default {
|
||||
left: 23px;
|
||||
top: 53px;
|
||||
}
|
||||
|
||||
.all {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
// width: 1280px;
|
||||
margin-right: 48px;
|
||||
margin-top: 43px;
|
||||
|
||||
.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%
|
||||
);
|
||||
}
|
||||
|
||||
.item {
|
||||
// width: 410px;
|
||||
width: calc(100% - 44px);
|
||||
height: 149px;
|
||||
text-align: center;
|
||||
border-radius: 4px;
|
||||
|
||||
.item1 {
|
||||
color: #089dff;
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
margin-top: 36px;
|
||||
}
|
||||
|
||||
.item2 {
|
||||
color: #333330;
|
||||
font-size: 14px;
|
||||
@@ -369,6 +411,7 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.join {
|
||||
// width: 1280px;
|
||||
margin-right: 48px;
|
||||
@@ -377,8 +420,10 @@ export default {
|
||||
// border-radius: 8px;
|
||||
margin-top: 32px;
|
||||
flex: 1;
|
||||
|
||||
.imgcontent {
|
||||
display: flex;
|
||||
|
||||
.imgone {
|
||||
width: 140px;
|
||||
height: 140px;
|
||||
@@ -388,6 +433,7 @@ export default {
|
||||
background-position: center;
|
||||
}
|
||||
}
|
||||
|
||||
.ontitle {
|
||||
margin-top: 27px;
|
||||
font-size: 14px;
|
||||
@@ -395,20 +441,24 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.detailB {
|
||||
min-height: 363px;
|
||||
background: #ffffff;
|
||||
border-radius: 8px;
|
||||
margin-top: 20px;
|
||||
|
||||
.el-tabs__item {
|
||||
height: 69px;
|
||||
padding: 25px 7px 0px 52px;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.el-tabs__nav-wrap::after {
|
||||
background-color: rgba(56, 125, 247, 0.2);
|
||||
}
|
||||
|
||||
.enclosure {
|
||||
height: 89px;
|
||||
margin-left: 51px;
|
||||
@@ -417,6 +467,7 @@ export default {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
.enclosureL {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -425,6 +476,7 @@ export default {
|
||||
color: #677d86;
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
.download {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -435,6 +487,7 @@ export default {
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.work {
|
||||
margin-left: 51px;
|
||||
margin-right: 40px;
|
||||
@@ -443,12 +496,14 @@ export default {
|
||||
align-items: center;
|
||||
margin-top: 37px;
|
||||
}
|
||||
|
||||
.work .question {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #333330;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
.work .active {
|
||||
width: 82px;
|
||||
height: 28px;
|
||||
@@ -464,6 +519,7 @@ export default {
|
||||
cursor: pointer;
|
||||
margin-right: 11px;
|
||||
}
|
||||
|
||||
.work .unactive {
|
||||
width: 80px;
|
||||
height: 26px;
|
||||
@@ -479,15 +535,19 @@ export default {
|
||||
margin-right: 11px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.work .btncolor {
|
||||
background: linear-gradient(90deg, #84aad2 0%, #a4c5e9 100%);
|
||||
}
|
||||
|
||||
.work .bordercolor {
|
||||
border: 1px solid #85aad2;
|
||||
}
|
||||
|
||||
.work .fontcolor {
|
||||
color: rgba(133, 170, 210, 1);
|
||||
}
|
||||
|
||||
.work .submit {
|
||||
width: 126px;
|
||||
height: 46px;
|
||||
|
||||
Reference in New Issue
Block a user