-
-
-
-
+
+
+
+
- | {{ index+ 1}} |
- {{ item.cardNo }} |
- {{ item.mile }} |
- 查询 |
+
+ {{ index+ 1}}
+ |
+
+ {{ item.cardNo }}
+ |
+ {{ item.mile }} |
+ 查询 |
@@ -52,20 +57,22 @@ export default {
methods: {
//定位
queryMap(item) {
- this.$emit('doMap',item);
+ this.$emit('doMap', item);
},
//昨日里程
queryYesterdayMile() {
lunzApi.getYesterdayMile(key).then(res => {
let resData = res.Data;
- this.carList.map(item => {
- let idx = resData.findIndex(item2 => item2.Imei == item.deviceId);
- item.mile = idx > -1 ? res.Data[idx].Mile : 0;
- this.carMile.push(item);
- })
- this.carMile.sort((a, b) => {
- return b.mile - a.mile;
- })
+ if (resData && resData != undefined) {
+ this.carList.map(item => {
+ let idx = resData.findIndex(item2 => item2.Imei == item.deviceId);
+ item.mile = idx > -1 ? res.Data[idx].Mile : 0;
+ this.carMile.push(item);
+ })
+ this.carMile.sort((a, b) => {
+ return b.mile - a.mile;
+ })
+ }
})
},
},
@@ -80,17 +87,104 @@ export default {
.table_box {
width: 100%;
+ margin-top: 0.15rem;
+
+ thead {
+ font-style: italic;
+ height: 0.38rem;
+ background: url(~@/assets/img/tab_bg.png);
+ background-size: 100% 100%;
- tr {
td {
- font-size: 0.18rem;
color: #fff;
- padding: 0.08rem 0;
+ font-family: "FZSK";
+ font-size: 0.16rem;
}
}
- a{
- color:#0e94ea;
- text-decoration: none;
+
+ tbody {
+
+ tr {
+ td {
+ color: #fff;
+ font-size: 0.14rem;
+ padding: 0.08rem 0;
+ }
+
+ &:nth-child(1) {
+ td {
+ padding-top: 0;
+ }
+
+ background: url(~@/assets/img/tab1.png);
+ background-size: 100% 100%;
+
+ div {
+ font-family: "FZSK";
+ font-size: 0.18rem;
+ letter-spacing: 0px;
+ background-image: linear-gradient(to bottom,
+ #fceece,
+ #e39054);
+ /* 线性渐变背景,方向向上 */
+ -webkit-background-clip: text;
+ /* 背景被裁剪成文字的前景色 */
+ -webkit-text-fill-color: transparent;
+ /* 文字填充颜色变透明 */
+ }
+ }
+
+ &:nth-child(2) {
+ background: url(~@/assets/img/tab2.png);
+ background-size: 100% 100%;
+
+ div {
+ font-family: "FZSK";
+ font-size: 0.18rem;
+ letter-spacing: 0px;
+ background-image: linear-gradient(to bottom,
+ #cefce7,
+ #16da85);
+ /* 线性渐变背景,方向向上 */
+ -webkit-background-clip: text;
+ /* 背景被裁剪成文字的前景色 */
+ -webkit-text-fill-color: transparent;
+ /* 文字填充颜色变透明 */
+ }
+ }
+
+ &:nth-child(3) {
+ background: url(~@/assets/img/tab3.png);
+ background-size: 100% 100%;
+
+ div {
+ font-family: "FZSK";
+ font-size: 0.18rem;
+ letter-spacing: 0px;
+ background-image: linear-gradient(to bottom,
+ #cef6fc,
+ #1ca4f2);
+ /* 线性渐变背景,方向向上 */
+ -webkit-background-clip: text;
+ /* 背景被裁剪成文字的前景色 */
+ -webkit-text-fill-color: transparent;
+ /* 文字填充颜色变透明 */
+ }
+ }
+ }
+
+ .btn_path {
+ display: inline-block;
+ width: 0.6rem;
+ color: #ffffff;
+ font-size: 0.14rem;
+ font-style: italic;
+ line-height: 0.2rem;
+ text-align: center;
+ border-radius: 0.1rem 0.08rem 0.1rem 0.08rem;
+ text-decoration: none;
+ background-color: #16da85;
+ }
}
}
}
diff --git a/src/views/components/carWarn.vue b/src/views/components/carWarn.vue
index a8278d6..b7da7ce 100644
--- a/src/views/components/carWarn.vue
+++ b/src/views/components/carWarn.vue
@@ -87,12 +87,31 @@ export default {
.table_box {
width: 100%;
+ margin-top: 0.15rem;
+
+ thead {
+ font-style: italic;
+ height: 0.38rem;
+ background: url(~@/assets/img/tab_bg.png);
+ background-size: 100% 100%;
- tr {
td {
- font-size: 0.18rem;
color: #fff;
- padding: 0.08rem 0;
+ font-family: "FZSK";
+ font-size: 0.16rem;
+ }
+ }
+
+ tbody {
+ tr {
+ td {
+ color: #fff;
+ font-size: 0.14rem;
+ padding: 0.08rem 0;
+ }
+ &:nth-child(1) td{
+ padding-top:0;
+ }
}
}
}