Commit cf2b42d6 authored by 徐一鸣's avatar 徐一鸣

首页样式优化

parent c8b0847e
...@@ -2,14 +2,16 @@ ...@@ -2,14 +2,16 @@
<div class="shop_list"> <div class="shop_list">
<h3 class="shop_list-title"> <h3 class="shop_list-title">
<span v-text="name"></span> <span v-text="name"></span>
<a @click.prevent="goto" :style="{ cursor: to ? 'pointer' : 'text' }"> <a @click.prevent="goto" :style="{ cursor: to ? 'pointer' : 'text' }"></a>
<i class="el-icon-arrow-right"></i>
</a>
</h3> </h3>
<ul class="shop_cards"> <ul class="shop_cards">
<li v-for="(item, index) in data" :key="'card_' + index"> <li v-for="(item, index) in data" :key="'card_' + index">
<shop-card :data="item" :showImg="showImg" :detail-path="detailPath"></shop-card> <shop-card
:data="item"
:showImg="showImg"
:detail-path="detailPath"
></shop-card>
</li> </li>
</ul> </ul>
</div> </div>
...@@ -20,37 +22,37 @@ import shopCard from "./shop-card"; ...@@ -20,37 +22,37 @@ import shopCard from "./shop-card";
export default { export default {
components: { components: {
shopCard shopCard,
}, },
props: { props: {
name: { name: {
type: String, type: String,
required: true required: true,
}, },
to: { to: {
type: String, type: String,
required: true required: true,
}, },
detailPath: { detailPath: {
type: String, type: String,
required: true required: true,
}, },
data: { data: {
type: Array, type: Array,
default: () => [] default: () => [],
}, },
showImg: { showImg: {
type: Boolean, type: Boolean,
default: false default: false,
} },
}, },
methods: { methods: {
goto() { goto() {
if (this.to) { if (this.to) {
this.$router.push(this.to); this.$router.push(this.to);
} }
} },
} },
}; };
</script> </script>
...@@ -59,26 +61,25 @@ export default { ...@@ -59,26 +61,25 @@ export default {
margin: 13px 20px; margin: 13px 20px;
} }
.shop_list-title > span { .shop_list-title > span {
display: inline-block;
vertical-align: middle;
font-size: 18px; font-size: 18px;
font-weight: bold; font-weight: bold;
color: #0d1847; color: #0d1847;
line-height: 27px; line-height: 27px;
} }
.shop_list-title > a { .shop_list-title > a {
display: inline-flex; display: inline-block;
justify-content: center; vertical-align: middle;
align-items: center; background-image: url("../assets/imgs/home_btn_enter.png");
width: 28px; width: 28px;
height: 28px; height: 28px;
background-color: #fff; background-size: 100%;
border: 1px solid #edeff6; vertical-align: -9px;
border-radius: 5px; margin-left: 5px;
overflow: hidden;
margin-left: 10px;
} }
.shop_list-title > a > i { .shop_list-title > a:hover {
font-weight: bolder; background-image: url("../assets/imgs/home_btn_enter_hov.png");
color: #1e3595;
} }
.shop_cards { .shop_cards {
display: flex; display: flex;
......
...@@ -57,9 +57,9 @@ ...@@ -57,9 +57,9 @@
<p <p
style="margin-top:15px;margin-bottom:10px;font-size:18px;color: #0d1847;font-weight:600;padding-left:20px;" style="margin-top:15px;margin-bottom:10px;font-size:18px;color: #0d1847;font-weight:600;padding-left:20px;"
> >
<span style="cursor:pointer;" @click="$router.push('/data_analysis')"> <span>
<span style="display: inline-block;vertical-align:middle;">数据分析中心</span> <span style="display: inline-block;vertical-align:middle;">数据分析中心</span>
<div class="enter_btn"></div> <div class="enter_btn" @click="$router.push('/data_analysis')"></div>
</span> </span>
</p> </p>
<div class="data_charts"> <div class="data_charts">
...@@ -158,9 +158,9 @@ ...@@ -158,9 +158,9 @@
<p <p
style="margin-top:15px;margin-bottom:10px;font-size:18px;color: #0d1847;font-weight:600;padding-left:20px;" style="margin-top:15px;margin-bottom:10px;font-size:18px;color: #0d1847;font-weight:600;padding-left:20px;"
> >
<span style="cursor:pointer;" @click="$router.push('/data_analysis')"> <span>
<span style="display: inline-block;vertical-align:middle;">数据分析中心</span> <span style="display: inline-block;vertical-align:middle;">数据分析中心</span>
<div class="enter_btn"></div> <div class="enter_btn" @click="$router.push('/data_analysis')"></div>
</span> </span>
</p> </p>
<div class="data_charts" style="width:100%;"> <div class="data_charts" style="width:100%;">
...@@ -201,9 +201,9 @@ ...@@ -201,9 +201,9 @@
<p <p
style="margin-top:15px;margin-bottom:10px;font-size:18px;color: #0d1847;font-weight:600;padding-left:20px;" style="margin-top:15px;margin-bottom:10px;font-size:18px;color: #0d1847;font-weight:600;padding-left:20px;"
> >
<span style="cursor:pointer;" @click="$router.push('/data_analysis')"> <span>
<span style="display: inline-block;vertical-align:middle;">数据分析中心</span> <span style="display: inline-block;vertical-align:middle;">数据分析中心</span>
<div class="enter_btn"></div> <div class="enter_btn" @click="$router.push('/data_analysis')"></div>
</span> </span>
</p> </p>
<div class="data_charts" style="width:100%;"> <div class="data_charts" style="width:100%;">
...@@ -235,9 +235,9 @@ ...@@ -235,9 +235,9 @@
<p <p
style="margin-top:10px;margin-bottom:10px;font-size:18px;color: #0d1847;font-weight:600;padding-left:20px;" style="margin-top:10px;margin-bottom:10px;font-size:18px;color: #0d1847;font-weight:600;padding-left:20px;"
> >
<span style="cursor:pointer;" @click="gotofw"> <span>
<span style="display: inline-block;vertical-align:middle;"> {{ now_user == 0||now_user == 4 ? "我的服务" : "服务管理" }}</span> <span style="display: inline-block;vertical-align:middle;"> {{ now_user == 0||now_user == 4 ? "我的服务" : "服务管理" }}</span>
<div class="enter_btn"></div> <div class="enter_btn" @click="gotofw"></div>
</span> </span>
</p> </p>
<div class="myservice"> <div class="myservice">
...@@ -281,9 +281,9 @@ ...@@ -281,9 +281,9 @@
<p <p
style="margin-top:10px;margin-bottom:10px;font-size:18px;color: #0d1847;font-weight:600;padding-left:20px;" style="margin-top:10px;margin-bottom:10px;font-size:18px;color: #0d1847;font-weight:600;padding-left:20px;"
> >
<span style="cursor:pointer;" @click="gotoyy"> <span>
<span style="display: inline-block;vertical-align:middle;">{{ now_user == 0||now_user == 4 ? "我的应用" : "平台应用" }}</span> <span style="display: inline-block;vertical-align:middle;">{{ now_user == 0||now_user == 4 ? "我的应用" : "平台应用" }}</span>
<div class="enter_btn"></div> <div class="enter_btn" @click="gotoyy"></div>
</span> </span>
</p> </p>
<div class="myapp"> <div class="myapp">
...@@ -2316,6 +2316,7 @@ export default { ...@@ -2316,6 +2316,7 @@ export default {
height: 28px; height: 28px;
background-size: 100%; background-size: 100%;
vertical-align: -9px; vertical-align: -9px;
cursor: pointer;
margin-left: 5px; margin-left: 5px;
} }
.enter_btn:hover{ .enter_btn:hover{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment