Commit 5925a57a by 胡悦

修复权益服务商样式

1 parent 8884b66b
@import '../common.scss';
.banner-header { .banner-header {
width: 100%;
height: 100%;
background: url("#{$imgUrl}equity/service-banner.png") no-repeat;
background-size: 100%;
.data-time.service-time { .data-time.service-time {
background: rgba(0, 0, 0, 0.1); background: rgba(0, 0, 0, 0.1);
} }
} }
.service-report {
min-height: 100vh;
.banner-store {
visibility: hidden;
}
.data-time {
position: relative;
margin-bottom: -47px;
display: inline-block;
float: right;
}
.service-name {
position: static;
height: 100px;
margin-top: -365px;
padding-left: 56px;
float: left;
}
}
.clearfix:after{/*伪元素是行内元素 正常浏览器清除浮动方法*/
content: "";
display: block;
height: 0;
clear:both;
visibility: hidden;
}
.service-name { .service-name {
position: absolute; position: absolute;
left: 56px; left: 56px;
......
...@@ -337,7 +337,7 @@ ...@@ -337,7 +337,7 @@
bottom: 0; bottom: 0;
width: 100% width: 100%
} }
.logo { .equity-logo {
position: absolute; position: absolute;
bottom: 64px; bottom: 64px;
left: 50%; left: 50%;
......
...@@ -3,12 +3,13 @@ ...@@ -3,12 +3,13 @@
* @Author: huyue * @Author: huyue
* @Date: 2023-05-12 15:26:33 * @Date: 2023-05-12 15:26:33
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-08-29 13:57:45 * @LastEditTime: 2023-08-30 17:23:37
--> -->
<template> <template>
<div class="banner-header"> <div class="service-report">
<img class="banner-store" :src="getImageUrl('service-banner')" alt=""> <div class="banner-header clearfix">
<div class="data-time service-time">数据生成于{{data.reportInfo!.createTime}}</div> <div class="data-time service-time">数据生成于{{data.reportInfo!.createTime}}</div>
<img class="banner-store" :src="getImageUrl('service-banner')" alt="">
<div class="service-name">{{ data.reportInfo!.merchantName4s }}</div> <div class="service-name">{{ data.reportInfo!.merchantName4s }}</div>
</div> </div>
<div class="wrapper-box service-box"> <div class="wrapper-box service-box">
...@@ -60,8 +61,9 @@ ...@@ -60,8 +61,9 @@
</div> </div>
</div> </div>
</div> </div>
<div class="wrapper-content" v-if="data.reportInfo!.merchantList && data.reportInfo!.merchantList!.length > 0"> <div class="wrapper-content">
<div class="wrapper-title">产值排名(本月)</div> <div class="wrapper-title">产值排名(本月)</div>
<div v-if="data.reportInfo!.merchantList && data.reportInfo!.merchantList!.length > 0">
<div class="wrapper-bg output-content"> <div class="wrapper-bg output-content">
<div class="output service-box" v-for="(item, index) in data.reportInfo!.merchantList" :key="index"> <div class="output service-box" v-for="(item, index) in data.reportInfo!.merchantList" :key="index">
<div class="service-info"> <div class="service-info">
...@@ -97,11 +99,16 @@ ...@@ -97,11 +99,16 @@
</div> </div>
</div> </div>
</div> </div>
<div class="wrapper-bg no-data" v-else>
<img :src="getImageUrl('service-no-data')" alt="">
<div class="no-data-text">暂无数据</div>
</div>
</div>
<img class="firework" :src="getImageUrl('service-firework')" alt=""> <img class="firework" :src="getImageUrl('service-firework')" alt="">
<img class="bg-footer" :src="getImageUrl('service-bg-footer')" alt=""> <img class="bg-footer" :src="getImageUrl('service-bg-footer')" alt="">
<img class="logo" :src="getImageUrl('logo')" alt=""> <img class="equity-logo" :src="getImageUrl('logo')" alt="">
</div>
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { reactive, onMounted, inject } from "vue"; import { reactive, onMounted, inject } from "vue";
...@@ -126,8 +133,6 @@ const getInfo = async () => { ...@@ -126,8 +133,6 @@ const getInfo = async () => {
"dj.api.quotation.smartcarlife.vd.service.battlefield", "dj.api.quotation.smartcarlife.vd.service.battlefield",
query query
); );
const merchantList = data.reportInfo?.merchantList
data.reportInfo!.merchantList = merchantList?.concat(merchantList)
}; };
const getImageUrl = (name: any, path = "equity") => { const getImageUrl = (name: any, path = "equity") => {
return new URL(`./${path}/${name}.png?v=${global.version}`, global.$imgUrl) return new URL(`./${path}/${name}.png?v=${global.version}`, global.$imgUrl)
......
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
</div> </div>
<img class="firework" :src="getImageUrl('store-firework')" alt=""> <img class="firework" :src="getImageUrl('store-firework')" alt="">
<img class="bg-footer" :src="getImageUrl('bg-footer')" alt=""> <img class="bg-footer" :src="getImageUrl('bg-footer')" alt="">
<img class="logo" :src="getImageUrl('logo')" alt=""> <img class="equity-logo" :src="getImageUrl('logo')" alt="">
</div> </div>
</div> </div>
</template> </template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!