Browse Source

更新代码

master
lucky 5 years ago
parent
commit
f77d0c3cef
  1. 5
      src/common/portrait.styl
  2. 2
      src/components/Banner/Banner.vue
  3. 28
      src/views/Activity/Activity.vue
  4. 3
      src/views/ItInformation/ItInformation.vue
  5. 3
      src/views/Policy/components/PolicyList.vue

5
src/common/portrait.styl

@ -442,6 +442,11 @@ h2{
color: rgba(0, 0, 0, 0.25)!important; color: rgba(0, 0, 0, 0.25)!important;
} }
.ant-btn-disabled, .ant-btn.disabled, .ant-btn[disabled], .ant-btn-disabled:hover, .ant-btn.disabled:hover, .ant-btn[disabled]:hover, .ant-btn-disabled:focus, .ant-btn.disabled:focus, .ant-btn[disabled]:focus, .ant-btn-disabled:active, .ant-btn.disabled:active, .ant-btn[disabled]:active, .ant-btn-disabled.active, .ant-btn.disabled.active, .ant-btn[disabled].active{
color: rgba(0, 0, 0, 0.25)!important;
border-color: #d9d9d9!important;
}
.base-bg{ .base-bg{
background: #13ACC4 background: #13ACC4
} }

2
src/components/Banner/Banner.vue

@ -46,7 +46,7 @@ export default {
<style lang="stylus" scoped> <style lang="stylus" scoped>
.head { .head {
background: white; background: white;
max-height: 360px; max-height: 250px;
overflow: hidden; overflow: hidden;
position: relative; position: relative;
} }

28
src/views/Activity/Activity.vue

@ -37,8 +37,8 @@
<span class="source">地点{{ item.address }}</span> <span class="source">地点{{ item.address }}</span>
</p> </p>
<p class="original"> <p class="original">
<enroll :fnval="item.activityId" /> <enroll :fnval="item.activityId" v-if="item.closeTime < nowData" />
<!-- <a-button type="primary">立即报名</a-button> --> <a-button disabled v-else>报名已结束</a-button>
</p> </p>
</div> </div>
</div> </div>
@ -76,9 +76,11 @@ export default {
aList: [], aList: [],
lists: [], lists: [],
monthEnglish: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Spt', 'Oct', 'Nov', 'Dec'], monthEnglish: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Spt', 'Oct', 'Nov', 'Dec'],
nowData: '',
}; };
}, },
computed: mapState('home', ['actList', 'actIpCon', 'actCurrent']), computed: mapState('home', ['actList', 'actIpCon', 'actCurrent']),
created() { created() {
this.iptCon = this.actIpCon; this.iptCon = this.actIpCon;
this.aList = this.actList; this.aList = this.actList;
@ -94,6 +96,23 @@ export default {
} }
} }
this.getData(); this.getData();
//
var aData = new Date();
console.log(aData); //Wed Aug 21 2019 10:00:58 GMT+0800 ()
this.nowData =
aData.getFullYear() +
'-' +
(aData.getMonth() + 1) +
'-' +
aData.getDate() +
' ' +
aData.getHours() +
':' +
aData.getMinutes() +
':' +
aData.getSeconds();
console.log(this.nowData); //2019-8-20
}, },
methods: { methods: {
...mapMutations('home', ['setActList', 'setActIpCon', 'setActCurrent', 'setActDetail']), ...mapMutations('home', ['setActList', 'setActIpCon', 'setActCurrent', 'setActDetail']),
@ -106,7 +125,7 @@ export default {
activityType: this.actList, activityType: this.actList,
pageNum: this.actCurrent, pageNum: this.actCurrent,
pageSize: 5, pageSize: 5,
title: this.iptCon, titleKey: this.iptCon,
}, },
}; };
const res = await front(params); const res = await front(params);
@ -205,11 +224,12 @@ export default {
margin-left: 200px; margin-left: 200px;
text-indent: 2em; text-indent: 2em;
font-size: 16px; font-size: 16px;
line-height: 36px;
color: rgba(0, 0, 0, 0.35); color: rgba(0, 0, 0, 0.35);
font-family: Microsoft YaHei; font-family: Microsoft YaHei;
overflow: hidden; overflow: hidden;
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp: 4; -webkit-line-clamp: 2;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} }

3
src/views/ItInformation/ItInformation.vue

@ -127,10 +127,11 @@ export default {
text-indent: 2em; text-indent: 2em;
font-size: 16px; font-size: 16px;
color: rgba(0, 0, 0, 0.35); color: rgba(0, 0, 0, 0.35);
line-height: 36px;
font-family: Microsoft YaHei; font-family: Microsoft YaHei;
overflow: hidden; overflow: hidden;
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp: 4; -webkit-line-clamp: 2;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} }

3
src/views/Policy/components/PolicyList.vue

@ -217,11 +217,12 @@ export default {
margin-left: 200px; margin-left: 200px;
text-indent: 2em; text-indent: 2em;
font-size: 16px; font-size: 16px;
line-height: 36px;
color: rgba(0, 0, 0, 0.35); color: rgba(0, 0, 0, 0.35);
font-family: Microsoft YaHei; font-family: Microsoft YaHei;
overflow: hidden; overflow: hidden;
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp: 4; -webkit-line-clamp: 2;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} }

Loading…
Cancel
Save