样式修改

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