实验台等修复

dev_2022-05-11
yujialong 3 years ago
parent bf02adea94
commit dbd354fe31
  1. 4
      src/pages/account/login/index.vue
  2. 48
      src/pages/station/list/index.vue
  3. 1
      src/setting.js

@ -154,8 +154,8 @@ export default {
util.successMsg("登录成功"); util.successMsg("登录成功");
this.setCustomer(res.customer); this.setCustomer(res.customer);
this.setCustomerName(res.customerName); this.setCustomerName(res.customerName);
let redirect = this.$route.query.redirect ? decodeURIComponent(this.$route.query.redirect) : "/index"; // let redirect = this.$route.query.redirect ? decodeURIComponent(this.$route.query.redirect) : "/index";
this.$router.replace(redirect); this.$router.replace('/index');
}).catch(res => {}); }).catch(res => {});
}, },
phoneCountdown() { phoneCountdown() {

@ -11,10 +11,13 @@
<div class="station"> <div class="station">
<div class="inner"> <div class="inner">
<template v-for="(item,index) in curriculumList"> <template v-for="(item,index) in curriculumList">
<a class="item" @click="goPreview(item)" :key="index" v-if="!keyword || item.curriculumName.includes(keyword)"> <div class="item" :title="item.curriculumName" @click="goPreview(item)" :key="index" v-if="!keyword || item.curriculumName.includes(keyword)">
<img :src="item.coverUrl" alt=""> <img :src="item.coverUrl" alt="">
<p class="text" :title="item.curriculumName"><span>{{ item.curriculumName }}</span></p> <div class="bottom">
</a> <p class="text"><span>{{ item.curriculumName }}</span></p>
<a>进入实验</a>
</div>
</div>
</template> </template>
</div> </div>
</div> </div>
@ -54,12 +57,12 @@ export default {
} }
.search { .search {
position: relative; position: relative;
padding: 121px 0 167px; padding: 100px 0 130px;
text-align: center; text-align: center;
background: url(../../../assets/img/station-bg.png) 0 0/100% 100% no-repeat; background: url(../../../assets/img/station-bg.png) 0 0/100% 100% no-repeat;
h6 { h6 {
margin-bottom: 25px; margin-bottom: 25px;
font-size: 32px; font-size: 26px;
color: #fff; color: #fff;
} }
.input { .input {
@ -98,25 +101,32 @@ export default {
} }
.item { .item {
position: relative; position: relative;
width: 256px; padding: 0 10px;
height: 195px; margin: 0 10px 40px;
margin: 0 6px 4px; text-align: center;
background-color: #fff;
border-radius: 8px;
cursor: pointer; cursor: pointer;
&:hover { &:hover {
opacity: .9; opacity: .9;
} }
img { img {
width: 100%; width: 215px;
height: 100%; height: 118px;
margin-top: -20px;
} }
.text { .bottom {
position: absolute;
bottom: 14px;
left: 25px;
display: flex; display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 5px;
}
.text {
display: inline-flex;
align-items: center; align-items: center;
width: 130px; width: 130px;
height: 50px; height: 40px;
text-align: left;
font-size: 12px; font-size: 12px;
line-height: 1.6; line-height: 1.6;
overflow: hidden; overflow: hidden;
@ -124,6 +134,14 @@ export default {
@include mul-ellipsis(2); @include mul-ellipsis(2);
} }
} }
a {
padding: 0 8px;
line-height: 28px;
font-size: 14px;
color: #7A7A7A;
border-radius: 20px;
border: 1px solid #DADADA;
}
} }
} }
</style> </style>

@ -65,6 +65,7 @@ const Setting = {
errorModalType: "Message", // 接口请求返回错误时,弹窗的类型,可选值为 Message 或 Notice errorModalType: "Message", // 接口请求返回错误时,弹窗的类型,可选值为 Message 或 Notice
cookiesExpires: 1, // Cookies 默认保存时间,单位:天 cookiesExpires: 1, // Cookies 默认保存时间,单位:天
tokenExpires: 1296000000, // token在localStorage的时间(毫秒) tokenExpires: 1296000000, // token在localStorage的时间(毫秒)
bankPath,
/** /**
* localStorage里保存的token的key * localStorage里保存的token的key
*/ */

Loading…
Cancel
Save