Browse Source

调整样式

master
lucky 5 years ago
parent
commit
65542f03c7
  1. 18
      src/common/platform.styl
  2. 4
      src/common/portrait.styl
  3. 4
      src/components/Introduce/PartnerShip.styl
  4. 2
      src/views/About/Children/Organ.vue
  5. 9
      src/views/About/components/LeftNav.vue
  6. 15
      src/views/Challenge/Children/Notice.vue
  7. 11
      src/views/Challenge/Children/Release.vue
  8. 9
      src/views/Challenge/components/LeftNav.vue
  9. 2
      src/views/ServiceMarket/components/LeftNav.vue
  10. 105
      src/views/Study/StuDetails.vue
  11. 67
      src/views/Study/Study.vue

18
src/common/platform.styl

@ -3,16 +3,26 @@
color: #000; color: #000;
font-size: 18px; font-size: 18px;
font-weight: bold; font-weight: bold;
div { .nav-item {
cursor: pointer; cursor: pointer;
height: 80px; height: 80px;
line-height: 80px; line-height: 80px;
background: #fff; background: #fff;
margin-bottom: 2px; margin: 0 4px 6px 0;
text-align: center text-align: center;
box-shadow: 0 3px 6px rgba(0,0,0,0.16);
}
.nav-item:hover{
color: #007CC1 !important;
} }
} }
.nav-box-active { .nav-item-active {
cursor: pointer;
height: 80px;
line-height: 80px;
margin: 0 4px 6px 0;
text-align: center;
background: #007CC1 !important; background: #007CC1 !important;
color: #fff !important; color: #fff !important;
} }

4
src/common/portrait.styl

@ -188,6 +188,10 @@
margin-top: 16px; margin-top: 16px;
} }
.mt-5{
margin-top: 20px;
}
.mt-8{ .mt-8{
margin-top: 32px; margin-top: 32px;
} }

4
src/components/Introduce/PartnerShip.styl

@ -39,9 +39,9 @@
} }
.enterprise-box{ .enterprise-box{
width: 26%; width: 31.3%;
height: 382px; height: 382px;
margin-right: 11%; margin-right: 3%;
position: relative; position: relative;
padding: 0 16px; padding: 0 16px;

2
src/views/About/Children/Organ.vue

@ -1,6 +1,6 @@
<template> <template>
<div> <div>
<div class="white"> <div class="white pa-3">
<rich-text :title="title" /> <rich-text :title="title" />
</div> </div>
</div> </div>

9
src/views/About/components/LeftNav.vue

@ -7,9 +7,12 @@
--> -->
<template> <template>
<div class="nav-box"> <div class="nav-box">
<div :class="activeNum === index ? 'nav-box-active' : ''" :key="index" @click="jump(item.url, index)" v-for="(item, index) in list"> <div
{{ item.title }} :class="activeNum === index ? 'nav-item-active' : 'nav-item'"
</div> :key="index"
@click="jump(item.url, index)"
v-for="(item, index) in list"
>{{ item.title }}</div>
</div> </div>
</template> </template>

15
src/views/Challenge/Children/Notice.vue

@ -10,14 +10,17 @@
@click="choose(index)" @click="choose(index)"
class="ins-name" class="ins-name"
v-for="(item, index) in list" v-for="(item, index) in list"
> >{{ item.name }}</span>
{{ item.name }}
</span>
</div> </div>
</div> </div>
</div> </div>
<div class="d-flex flex-wrap"> <div class="d-flex flex-wrap">
<div :class="(index + 1) % 3 === 0 ? 'margin-0' : ''" :key="index" class="pro-box" v-for="(item, index) in lists"> <div
:class="(index + 1) % 3 === 0 ? 'margin-0' : ''"
:key="index"
class="pro-box"
v-for="(item, index) in lists"
>
<p class="pro-title">{{ item.title }}</p> <p class="pro-title">{{ item.title }}</p>
<p class="pro-content">{{ item.content }}</p> <p class="pro-content">{{ item.content }}</p>
<p class="pro-time">时间{{ item.time }}</p> <p class="pro-time">时间{{ item.time }}</p>
@ -163,8 +166,8 @@ export default {
} }
.pro-box { .pro-box {
width: 26%; width: 31.3%;
margin-right: 11%; margin-right: 3%;
height: auto; height: auto;
background: #FFFFFF; background: #FFFFFF;
padding: 24px 20px; padding: 24px 20px;

11
src/views/Challenge/Children/Release.vue

@ -1,7 +1,12 @@
<template> <template>
<div> <div>
<div class="d-flex flex-wrap"> <div class="d-flex flex-wrap">
<div :class="(index + 1) % 4 === 0 ? 'margin-0' : ''" :key="index" class="pro-box" v-for="(item, index) in lists"> <div
:class="(index + 1) % 4 === 0 ? 'margin-0' : ''"
:key="index"
class="pro-box"
v-for="(item, index) in lists"
>
<p class="pro-title">{{ item.title }}</p> <p class="pro-title">{{ item.title }}</p>
<p class="pro-content">{{ item.content }}</p> <p class="pro-content">{{ item.content }}</p>
<p class="pro-time">时间{{ item.time }}</p> <p class="pro-time">时间{{ item.time }}</p>
@ -171,8 +176,8 @@ export default {
} }
.pro-box { .pro-box {
width: 20.5%; width: 23.5%;
margin-right: 6%; margin-right: 2%;
height: 300px; height: 300px;
background: #FFFFFF; background: #FFFFFF;
padding: 24px 20px; padding: 24px 20px;

9
src/views/Challenge/components/LeftNav.vue

@ -1,8 +1,11 @@
<template> <template>
<div class="nav-box"> <div class="nav-box">
<div :class="activeNum === index ? 'nav-box-active' : ''" :key="index" @click="jump(item.url, index)" v-for="(item, index) in list"> <div
{{ item.title }} :class="activeNum === index ? 'nav-item-active' : 'nav-item'"
</div> :key="index"
@click="jump(item.url, index)"
v-for="(item, index) in list"
>{{ item.title }}</div>
</div> </div>
</template> </template>

2
src/views/ServiceMarket/components/LeftNav.vue

@ -8,7 +8,7 @@
<template> <template>
<div class="nav-box"> <div class="nav-box">
<div <div
:class="activeNum === index ? 'nav-box-active' : ''" :class="activeNum === index ? 'nav-item-active' : 'nav-item'"
:key="index" :key="index"
@click="jump(item.url, index)" @click="jump(item.url, index)"
v-for="(item, index) in list" v-for="(item, index) in list"

105
src/views/Study/StuDetails.vue

@ -1,31 +1,45 @@
<template> <template>
<div class="box"> <div class="inner">
<div> <div class="d-flex flex-column">
<div class="policy-title"> <div class="font-24 title-color pa-5">
<span>{{ postDetail.title }}</span> <span>{{ postDetail.title }}</span>
</div> </div>
<div class="policy-info"> <div class="px-5 font-16 line-height-30" v-dompurify-html="postDetail.content"></div>
<span> <div class="px-5 py-8 d-flex flex-row-reverse secondary">
<span class="ml-8">
时间 时间
<span>{{ postDetail.createdTime }}</span> <span>{{ postDetail.createdTime }}</span>
</span> </span>
<span style="margin-left: 60px"> 地点太原 </span> <span>地点太原</span>
</div> </div>
<div class="policy-content" v-dompurify-html="postDetail.content"></div>
</div> </div>
<div class="coms-style"> <div class="px-3">
<div class="coms-top"> <a-divider />
<div :key="index" style="margin-top: 2em" v-for="(item, index) in coms"> </div>
<div class="fill-width px-3">
<div class="coms-top mt-8">
<div :key="index" class="my-8" v-for="(item, index) in coms">
<p style="color: #999"> <p style="color: #999">
<a-avatar :size="30" :src="item.avatarUrl" alt style="margin-top: -4px; margin-right: 4px" /> <a-avatar
:size="30"
:src="item.avatarUrl"
alt
style="margin-top: -4px; margin-right: 4px"
/>
<span style="margin-right: 10px">{{ item.userName }}</span> <span style="margin-right: 10px">{{ item.userName }}</span>
<span class="coms-content">{{ item.content }}{{ item.content }}{{ item.content }}</span> <span class="coms-content">{{ item.content }}{{ item.content }}{{ item.content }}</span>
</p> </p>
</div> </div>
</div> </div>
<div class="coms-btm"> <div class="fill-width mt-8">
<a-textarea placeholder="请输入内容..." style="height: 140px;min-height: 140px;max-height: 140px" v-model="comment" /> <a-textarea
<a-button @click="sub" class="sub" type="primary">提交</a-button> placeholder="请输入内容..."
style="height: 140px;min-height: 140px;max-height: 140px"
v-model="comment"
/>
<div class="d-flex flex-row-reverse">
<a-button @click="sub" class="sub" type="primary">发表</a-button>
</div>
</div> </div>
<!-- <div class="txtara"> <!-- <div class="txtara">
<a-textarea placeholder="请输入..." :rows="4" v-model="comment" /> <a-textarea placeholder="请输入..." :rows="4" v-model="comment" />
@ -95,73 +109,18 @@ export default {
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
.box { .inner {
width: 1260px;
position: relative;
margin: 80px auto; margin: 80px auto;
background: #fff; background: #fff;
min-height: 1037px;
overflow: hidden; overflow: hidden;
opacity: 1; opacity: 1;
padding-bottom: 480px;
}
.back-btn {
width: 80px;
position: absolute;
right: 0;
}
.policy-title {
height: 120px;
font-size: 24px;
font-family: Microsoft YaHei;
font-weight: 400;
color: rgba(0, 0, 0, 0.85);
opacity: 1;
text-align: left;
display: flex;
align-items: center;
justify-content: left;
padding: 0 25px;
}
.policy-info {
position: absolute;
height: 76px;
line-height: 76px;
right: 25px;
bottom: 500px;
text-align: center;
}
.policy-content {
padding: 0 25px;
font-size: 16px;
color: rgba(0, 0, 0, 0.65);
font-weight: 400;
font-family: Microsoft YaHei;
}
.coms-style {
height: 480px;
padding: 25px 0;
border-top: 2px solid #ccc;
position: absolute;
bottom: 0;
width: 100%;
} }
.coms-top { .coms-top {
height: 280px; height: 280px;
padding: 0 25px; padding: 0 25px;
overflow: auto; overflow: auto;
box-shadow: 0 0 5px #ccc; // box-shadow: 0 0 5px #ccc;
}
.coms-btm {
margin-top: 20px;
padding: 0 10px;
} }
.coms-content { .coms-content {
@ -169,8 +128,6 @@ export default {
} }
.sub { .sub {
position: absolute; margin: 20px 0 100px;
right: 20px;
bottom: 20px;
} }
</style> </style>

67
src/views/Study/Study.vue

@ -6,10 +6,9 @@
<template> <template>
<div class="inner"> <div class="inner">
<div class="search-list"> <div class="d-flex flex-row-reverse mb-8">
<a-input-search <a-input-search
@search="searchData" @search="searchData"
class="search"
enter-button="搜索" enter-button="搜索"
placeholder="请输入..." placeholder="请输入..."
style="width: 381px" style="width: 381px"
@ -17,36 +16,22 @@
/> />
</div> </div>
<div :key="index" class="post" v-for="(item, index) in lists"> <div :key="index" class="post" v-for="(item, index) in lists">
<div class="d-flex flex-nowrap"> <div class="d-flex flex-nowrap fill-height">
<img :src="item.visitLocation" alt class="post-img" v-if="item.visitLocation" /> <img :src="item.visitLocation" alt class="post-img" v-if="item.visitLocation" />
<div> <div class="flex-1 flex-column">
<div class="post-content">
<p class="post-title">{{ item.title }}</p> <p class="post-title">{{ item.title }}</p>
<div class="con-con" v-dompurify-html="item.content"></div> <div class="con-con" v-dompurify-html="item.content"></div>
</div> <div class="d-flex flex-nowrap secondary line-height-30 mt-8">
<p style="color: rgba(0, 0, 0, 0.45); line-height: 30px; margin: 0 0 0 30px !important; margin-left: 0 !important">
<span>{{ item.createdTime }}</span> <span>{{ item.createdTime }}</span>
<span style="margin-left: 20px">地点太原</span> <span style="margin-left: 20px">地点太原</span>
</p> <div class="flex-1"></div>
</div> <span @click="getDet(item.id, index)" class="baseColor pointer">
</div>
<p class="look-down baseColor">
<span @click="getDet(item.id, index)">
查看详情 查看详情
<a-icon type="arrow-right" /> <a-icon type="arrow-right" />
</span> </span>
</p>
<!-- <div class="comment">
<div :key="b" v-for="(a, b) in coms">
<p style="padding-left: 20px">
<a-avatar :size="20" :src="a.avatarUrl" style="margin-top: -4px" />
<span>{{ a.userName }}</span>
<span style="margin-left: 20px">{{ a.creatTime }}</span>
</p>
<p class="coms-con">{{ a.content }}</p>
</div> </div>
</div> --> </div>
</div>
</div> </div>
<a-pagination <a-pagination
:current="comCurrent" :current="comCurrent"
@ -145,7 +130,7 @@ export default {
} }
.post-title { .post-title {
// width: 165px; width: 100%;
height: 26px; height: 26px;
font-size: 20px; font-size: 20px;
font-family: Microsoft YaHei; font-family: Microsoft YaHei;
@ -159,19 +144,6 @@ export default {
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} }
.search-list {
height: 72px;
line-height: 72px;
padding: 0 24px;
position: relative;
}
.search {
position: absolute;
right: 0;
top: 20px;
}
.btn { .btn {
width: 75px; width: 75px;
height: 32px; height: 32px;
@ -185,7 +157,7 @@ export default {
padding: 25px; padding: 25px;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
height: 270px; height: 290px;
background: #fff; background: #fff;
border-bottom: 1px solid #ccc; border-bottom: 1px solid #ccc;
transition: all 0.25s; transition: all 0.25s;
@ -198,28 +170,15 @@ export default {
margin-right: 30px; margin-right: 30px;
} }
.post-content {
// margin-left: 30px;
overflow: hidden;
height: 180px;
text-indent: left;
}
.con-con { .con-con {
max-height: 130px; line-height: 30px;
height: 120px;
overflow: hidden;
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp: 4; -webkit-line-clamp: 4;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} }
.look-down {
position: absolute;
right: 25px;
bottom: 10px;
cursor: pointer;
margin-bottom: 0;
}
.pagination { .pagination {
margin-top: 48px; margin-top: 48px;
text-align: right; text-align: right;

Loading…
Cancel
Save