样式修改

This commit is contained in:
宋伟佳
2021-05-26 22:54:34 +08:00
parent 55cfd6d7cf
commit 1bed0992f8
7 changed files with 70 additions and 130 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

+1 -1
View File
@@ -72,7 +72,7 @@ export default {
cancelButtonText: '取消',
type: 'warning',
confirmButtonClass: 'common-button-primary',
roundButton: true
roundButton: false
}).then(() => {
this.$store.commit('setTypeFlag', 'loginOut')
this.$http.get('logout', {}, {
@@ -4,7 +4,7 @@
<ul>
<li v-for="item in realimeinfoList" :key="item.id" class="time-title">
<a class="title" :title="item.title">{{ item.title }}</a>
<span class="time">{{ putTime }}</span>
<span class="time">{{ getDate(item.pubTime) }}</span>
</li>
</ul>
</div>
@@ -18,56 +18,33 @@ export default {
data() {
return {
putTime: '',
realimeinfoList: [
{
id: 1,
title: '资讯1',
},
{
id: 2,
title: '资讯2',
},
{
id: 3,
title: '资讯3',
},
{
id: 4,
title: '资讯4',
},
{
id: 5,
title: '资讯5',
},
{
id: 6,
title: '资讯6',
},
],
realimeinfoList: [], //资讯数据
}
},
computed: {},
watch: {},
mounted() {
this.getDate()
this.getDynamicInformation()
},
methods: {
getDate() {
//获取当前时间
var date = new Date()
var year = date.getFullYear()
var month = date.getMonth() + 1
var day = date.getDate()
if (month < 10) {
month = '0' + month
}
if (day < 10) {
day = '0' + day
}
var nowDate = year + '-' + month + '-' + day
this.putTime = nowDate
//截取时间
getDate (date) {
return date != null ? date.substring(0, date.indexOf(' ')) : ''
},
//获取数据
getDynamicInformation () {
let obj = {}
obj.msgType = 'RESOURCE'
obj.rowLimit = 8
this.$http.get('lawss/msgDynamicInfo/page', obj, {
_this: this
}, res => {
this.realimeinfoList = res.data.list
}, e => {
})
},
},
},
}
</script>
+19 -41
View File
@@ -4,7 +4,7 @@
<ul>
<li v-for="item in standardReleaseList" :key="item.id" class="time-title">
<a class="title" :title="item.title">{{ item.title }}</a>
<span class="time">{{ putTime }}</span>
<span class="time">{{ getDate(item.pubTime) }}</span>
</li>
</ul>
</div>
@@ -18,56 +18,34 @@ export default {
data() {
return {
putTime: '',
standardReleaseList: [
{
id: 1,
title: '标准发布1',
},
{
id: 2,
title: '标准发布2',
},
{
id: 3,
title: '标准发布3',
},
{
id: 4,
title: '标准发布4',
},
{
id: 5,
title: '标准发布5',
},
{
id: 6,
title: '标准发布6',
},
],
standardReleaseList: [], //标准发布数据
}
},
computed: {},
watch: {},
mounted() {
this.getDate()
this.getAdvice()
},
methods: {
getDate() {
//获取当前时间
var date = new Date()
var year = date.getFullYear()
var month = date.getMonth() + 1
var day = date.getDate()
if (month < 10) {
month = '0' + month
}
if (day < 10) {
day = '0' + day
}
var nowDate = year + '-' + month + '-' + day
this.putTime = nowDate
//截取时间
getDate (date) {
return date != null ? date.substring(0, date.indexOf(' ')) : ''
},
//获取数据
getAdvice() {
let obj = {}
obj.msgType = 'RESOURCE'
obj.rowLimit = 8
this.$http.get('lawss/msgDynamicInfo/page', obj, {
_this: this
}, res => {
this.standardReleaseList = res.data.list
}, e => {
})
},
},
}
</script>
@@ -77,8 +77,10 @@ export default {
::v-deep {
.el-input__inner {
width: 18vm;
height: 40px;
height: 50px;
color: #fff;
border: 0;
border-radius: 0px;
background: rgba(182, 213, 255, 0.22);
}
}
@@ -88,16 +90,20 @@ export default {
flex: 1;
::v-deep {
.el-input__inner {
height: 40px;
height: 50px;
font-size: 16px;
color: #fff;
border: 0;
border-radius: 0px;
background: rgba(182, 213, 255, 0.22);
}
}
}
.primary_button {
width: 8.2vw;
height: 40px;
height: 50px;
border: 0;
border-radius: 0px;
background-color: #1885f5;
}
}
@@ -4,7 +4,7 @@
<ul>
<li v-for="item in domesticDynamics" :key="item.id" class="time-title">
<a class="title" :title="item.title">{{ item.title }}</a>
<span class="time">{{ putTime }}</span>
<span class="time">{{ getDate(item.pubTime) }}</span>
</li>
</ul>
</div>
@@ -18,55 +18,32 @@ export default {
data() {
return {
putTime: '',
domesticDynamics: [
{
id: 1,
title: '标准征求意见1',
},
{
id: 2,
title: '标准征求意见2',
},
{
id: 3,
title: '标准征求意见3',
},
{
id: 4,
title: '标准征求意见4',
},
{
id: 5,
title: '标准征求意见5',
},
{
id: 6,
title: '标准征求意见6',
},
],
domesticDynamics: [], //标准征求意见数据
}
},
computed: {},
watch: {},
mounted() {
this.getDate()
this.getAdvice()
},
methods: {
getDate() {
//获取当前时间
var date = new Date()
var year = date.getFullYear()
var month = date.getMonth() + 1
var day = date.getDate()
if (month < 10) {
month = '0' + month
}
if (day < 10) {
day = '0' + day
}
var nowDate = year + '-' + month + '-' + day
this.putTime = nowDate
//截取时间
getDate (date) {
return date != null ? date.substring(0, date.indexOf(' ')) : ''
},
//获取数据
getAdvice() {
let obj = {}
obj.msgType = 'RESOURCE'
obj.rowLimit = 8
this.$http.get('lawss/msgDynamicInfo/page', obj, {
_this: this
}, res => {
this.domesticDynamics = res.data.list
}, e => {
})
}
},
}
</script>
+4 -2
View File
@@ -7,6 +7,7 @@
</div>
<div class="user_exit">
<span>您好{{ $store.getters.userInfo.uName }}</span>
&nbsp;&nbsp;&nbsp;
<span class="exit" @click="logout">退出</span>
</div>
</div>
@@ -84,7 +85,7 @@ export default {
cancelButtonText: '取消',
type: 'warning',
confirmButtonClass: 'common-button-primary',
roundButton: true
roundButton: false
}).then(() => {
this.$store.commit('setTypeFlag', 'loginOut')
this.$http.get('logout', {}, {
@@ -118,7 +119,8 @@ export default {
.logo {
width: 500px;
height: 70px;
background: url("../../assets/images/shangqi/home/logo2.png") no-repeat;
margin-top: 20px;
background: url("../../assets/images/shangqi/home/logo3.png") no-repeat;
.logo_title {
height: 50px;
margin-top: 50px;