Commit c787dc7b by 张立顺

Merge branch 'v1.0.0' of http://192.168.3.233:8090/h5/glsk-data-view-scene into v1.0.0

2 parents 29172719 f9d79c19
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
justify-content: space-between; justify-content: space-between;
background: url('../assets/images/top_bg.png') no-repeat center bottom; background: url('../assets/images/top_bg.png') no-repeat center bottom;
background-size: 100% auto; background-size: 100% auto;
height: 9.44vh; //height: 9.44vh;
height: 102px;
.logo, .logo,
.right_box { .right_box {
...@@ -26,6 +27,7 @@ ...@@ -26,6 +27,7 @@
text-align: center; text-align: center;
.title { .title {
position: relative;
flex: 2; flex: 2;
font-family: SourceHanSansCN-Bold; font-family: SourceHanSansCN-Bold;
font-weight: 700; font-weight: 700;
...@@ -45,6 +47,26 @@ ...@@ -45,6 +47,26 @@
-webkit-background-clip: text; -webkit-background-clip: text;
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
} }
.title:before,
.title:after{
position: absolute;
display: block;
content:"";
width: 64px;
height: 21px;
top:50%;
transform: translateY(-50%);
}
.title:before{
background:url('../assets/images/title_left.png') no-repeat;
background-size:64px auto;
left:-110px;
}
.title:after{
background:url('../assets/images/title_right.png') no-repeat;
background-size:64px auto;
right:-110px;
}
} }
.right_box { .right_box {
......

1.37 MB | W: | H:

5.02 MB | W: | H:

src/assets/images/bg.png
src/assets/images/bg.png
src/assets/images/bg.png
src/assets/images/bg.png
  • 2-up
  • Swipe
  • Onion skin

4.09 KB | W: | H:

6.28 KB | W: | H:

src/assets/images/car/car_5.1.png
src/assets/images/car/car_5.1.png
src/assets/images/car/car_5.1.png
src/assets/images/car/car_5.1.png
  • 2-up
  • Swipe
  • Onion skin

3.97 KB | W: | H:

5.55 KB | W: | H:

src/assets/images/car/car_5.4.png
src/assets/images/car/car_5.4.png
src/assets/images/car/car_5.4.png
src/assets/images/car/car_5.4.png
  • 2-up
  • Swipe
  • Onion skin

206 KB | W: | H:

708 KB | W: | H:

src/assets/images/car/road.png
src/assets/images/car/road.png
src/assets/images/car/road.png
src/assets/images/car/road.png
  • 2-up
  • Swipe
  • Onion skin

164 KB | W: | H:

145 KB | W: | H:

src/assets/images/top_bg.png
src/assets/images/top_bg.png
src/assets/images/top_bg.png
src/assets/images/top_bg.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2023-07-04 13:55:35 * @Date: 2023-07-04 13:55:35
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-26 20:59:19 * @LastEditTime: 2024-01-29 10:14:25
--> -->
<template> <template>
<div class="introduce-container"> <div class="introduce-container">
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
</div> </div>
</div> </div>
</div> </div>
<el-carousel class="swiper-box" :autoplay="false"> <el-carousel class="swiper-box" ref="slideCarousel" :interval="10000">
<el-carousel-item v-for="(item, index) in Introduce.booksList" :key="'sw' + index"> <el-carousel-item v-for="(item, index) in Introduce.booksList" :key="'sw' + index">
<div class="swiper-body"> <div class="swiper-body">
<div class="books-item" v-for="(i, idx) in 6" :key="'book' + idx"> <div class="books-item" v-for="(i, idx) in 6" :key="'book' + idx">
...@@ -53,7 +53,54 @@ export default { ...@@ -53,7 +53,54 @@ export default {
Introduce: detail.Introduce Introduce: detail.Introduce
} }
}, },
created() {} mounted() {
//调用方法
this.slideBanner()
},
methods: {
// 滑动切换
slideBanner() {
//选中的轮播图
var box = document.querySelector('.swiper-box')
var startPoint = 0
var stopPoint = 0
//重置坐标
var resetPoint = function () {
startPoint = 0
stopPoint = 0
}
//手指按下
box.addEventListener('touchstart', function (e) {
//手指点击位置的X坐标
startPoint = e.changedTouches[0].pageX
})
//手指滑动
box.addEventListener('touchmove', function (e) {
//手指滑动后终点位置X的坐标
stopPoint = e.changedTouches[0].pageX
})
//当手指抬起的时候,判断图片滚动离左右的距离
let that = this
box.addEventListener('touchend', function (e) {
console.log('1:' + startPoint)
console.log('2:' + stopPoint)
if (stopPoint == 0 || startPoint - stopPoint == 0) {
resetPoint()
return
}
if (startPoint - stopPoint > 0) {
resetPoint()
that.$refs.slideCarousel.next()
return
}
if (startPoint - stopPoint < 0) {
resetPoint()
that.$refs.slideCarousel.prev()
return
}
})
}
}
} }
</script> </script>
...@@ -119,7 +166,9 @@ export default { ...@@ -119,7 +166,9 @@ export default {
color: #6578ff; color: #6578ff;
line-height: 36px; line-height: 36px;
margin-top: 10px; margin-top: 10px;
font-weight: 700;
span { span {
font-weight: 500;
font-size: 16px; font-size: 16px;
color: #0ffadf; color: #0ffadf;
margin-left: -10px; margin-left: -10px;
......
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
* @Description: 基础数据 * @Description: 基础数据
* @Author: huyue * @Author: huyue
* @Date: 2023-07-04 11:46:53 * @Date: 2023-07-04 11:46:53
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: huyue
* @LastEditTime: 2024-01-26 17:35:31 * @LastEditTime: 2024-01-26 22:22:45
*/ */
const DefaultData = { const DefaultData = {
defaultLineHeight: '17.32', defaultLineHeight: '16.32',
defaultPieHeight: '13.05', defaultPieHeight: '13.05',
yearList: ['2023', '2022'], yearList: ['2023', '2022'],
menuList: [ menuList: [
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2023-07-04 13:55:35 * @Date: 2023-07-04 13:55:35
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-26 16:22:14 * @LastEditTime: 2024-01-29 10:00:57
--> -->
<template> <template>
<div class="architecture-container"> <div class="architecture-container">
...@@ -76,7 +76,7 @@ export default { ...@@ -76,7 +76,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.architecture-container { .architecture-container {
position: absolute; position: absolute;
left: 0px; left: 80px;
top: 167px; top: 167px;
width: 792px; width: 792px;
height: 747px; height: 747px;
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* @Description: * @Description:
* @Author: huyue * @Author: huyue
* @Date: 2023-07-04 13:55:35 * @Date: 2023-07-04 13:55:35
* @LastEditors: huyue * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2024-01-26 21:11:21 * @LastEditTime: 2024-01-29 09:38:09
--> -->
<template> <template>
<div class="page_layout"> <div class="page_layout">
...@@ -46,39 +46,6 @@ export default { ...@@ -46,39 +46,6 @@ export default {
ViewEntireLifecycleOfCar, ViewEntireLifecycleOfCar,
EnergyCar EnergyCar
}, },
computed: {
tabName() {
let sname
switch (this.activeName) {
case 'm_1.0':
sname = 'ViewSolar'
break
case 'm_1.1':
sname = 'ViewBoutique'
break
case 'm_1.3':
sname = 'ViewCrowdfunding'
break
case 'm_2.1':
sname = 'ViewEquity'
break
case 'operational':
sname = 'ViewOperational'
break
case 'interior':
sname = 'ViewLifeSceneData'
break
case 'business':
sname = 'ViewSolar'
break
case 'lifecycleOfCar':
sname = 'viewEntireLifecycleOfCar'
// default:
// sname = 'ViewSolar'
}
return sname
}
},
data() { data() {
return { return {
activeName: '', activeName: '',
...@@ -105,6 +72,7 @@ export default { ...@@ -105,6 +72,7 @@ export default {
prevClick() { prevClick() {
let index = this.current let index = this.current
if (index == 0) { if (index == 0) {
this.current = 3;
return false return false
} }
this.current = index - 1 this.current = index - 1
...@@ -114,6 +82,7 @@ export default { ...@@ -114,6 +82,7 @@ export default {
nextClick() { nextClick() {
let index = this.current let index = this.current
if (index == 3) { if (index == 3) {
this.current = 1;
return false return false
} }
this.current = index + 1 this.current = index + 1
...@@ -138,9 +107,11 @@ html { ...@@ -138,9 +107,11 @@ html {
height: 100vh; height: 100vh;
overflow: hidden; overflow: hidden;
flex-direction: column; flex-direction: column;
background: url(../../assets/images/bg.png) 100% 100%; background: url(../../assets/images/bg.png);
background-size: 100% 100%;
.head { .head {
flex-shrink: 0; flex-shrink: 0;
height: 102px;
} }
.content { .content {
flex: 1; flex: 1;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2023-07-04 13:55:35 * @Date: 2023-07-04 13:55:35
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-08-16 16:57:54 * @LastEditTime: 2024-01-26 22:21:24
--> -->
<template> <template>
<div class="content"> <div class="content">
...@@ -36,7 +36,7 @@ export default { ...@@ -36,7 +36,7 @@ export default {
height: 100%; height: 100%;
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
padding: 1.95vh 1.67vw; padding: 0.95vh 1.67vw;
gap: 0 16px; gap: 0 16px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<div class="rightCon"> <div class="rightCon">
<div class="header"> <div class="header">
<div class="title">丰富的行业应用</div> <div class="title">丰富的行业应用</div>
<img class="bg" src="../../../assets/images/viewEntireLifecycleOfCar/header_ring.png" alt=""> <img class="bg" src="../../../assets/images/viewEntireLifecycleOfCar/header_ring.png" alt="" />
<div v-for="(item, index) in headerLabelList" :key="index" <div v-for="(item, index) in headerLabelList" :key="index"
:class="['item_' + `${index + 1}`, item.footer ? '' : 'oneLine']" class="item"> :class="['item_' + `${index + 1}`, item.footer ? '' : 'oneLine']" class="item">
{{ item.header }} {{ item.header }}
...@@ -20,54 +20,72 @@ ...@@ -20,54 +20,72 @@
<li> <li>
<div class="title">新能源充电场景模型</div> <div class="title">新能源充电场景模型</div>
<span class="introduce"> <span class="introduce">
动态功率调节<br /> 动态功率调节
动态成本定价<br /> <br />
充电站营收预测<br /> 动态成本定价
<br />
充电站营收预测
<br />
充电站推荐 充电站推荐
</span> </span>
</li> </li>
<li> <li>
<div class="title">UBI保险场景模型</div> <div class="title">UBI保险场景模型</div>
<span class="introduce"> <span class="introduce">
精准用户营销<br /> 精准用户营销
智能碰撞识别<br /> <br />
智能销售辅助<br /> 智能碰撞识别
<br />
智能销售辅助
<br />
千人千面推荐 千人千面推荐
</span> </span>
</li> </li>
<li> <li>
<div class="title">金融风控场景模型</div> <div class="title">金融风控场景模型</div>
<span class="introduce"> <span class="introduce">
车辆风险等级<br /> 车辆风险等级
高危用户判定<br /> <br />
警情复核筛查<br /> 高危用户判定
<br />
警情复核筛查
<br />
催收策略分析 催收策略分析
</span> </span>
</li> </li>
<li> <li>
<div class="title">数字维保场景模型</div> <div class="title">数字维保场景模型</div>
<span class="introduce"> <span class="introduce">
智能碰撞识别<br /> 智能碰撞识别
上门维修匹配<br /> <br />
出险概率评估<br /> 上门维修匹配
<br />
出险概率评估
<br />
保养自动提醒 保养自动提醒
</span> </span>
</li> </li>
<li> <li>
<div class="title">数字化营销场景模型</div> <div class="title">数字化营销场景模型</div>
<span class="introduce"> <span class="introduce">
动态功率调节<br /> 动态功率调节
动态成本定价<br /> <br />
充电站营收预测<br /> 动态成本定价
<br />
充电站营收预测
<br />
充电站推荐 充电站推荐
</span> </span>
</li> </li>
<li> <li>
<div class="title">二手车交易场景模型</div> <div class="title">二手车交易场景模型</div>
<span class="introduce"> <span class="introduce">
车辆车况识别<br /> 车辆车况识别
车辆残值估算<br /> <br />
车辆行情预测<br /> 车辆残值估算
<br />
车辆行情预测
<br />
竞拍价格匹配 竞拍价格匹配
</span> </span>
</li> </li>
...@@ -76,38 +94,45 @@ ...@@ -76,38 +94,45 @@
<div class="titleCon"> <div class="titleCon">
<div class="title title1">广联新能源</div> <div class="title title1">广联新能源</div>
<div class="title title2">车主服务行业大模型</div> <div class="title title2">车主服务行业大模型</div>
<div class=" title3">基于行业数据共建</div> <div class="title3">基于行业数据共建</div>
</div> </div>
<div class="item item_1"> <div class="item item_1">
交易数据<br /> 交易数据
触达数据<br /> <br />
触达数据
<br />
转化数据 转化数据
</div> </div>
<div class="itemIcon icon1"></div> <div class="itemIcon icon1"></div>
<div class="item item_2"> <div class="item item_2">
风控数据<br /> 风控数据
轨迹数据<br /> <br />
设备数据<br /> 轨迹数据
<br />
设备数据
<br />
告警数据 告警数据
</div> </div>
<div class="itemIcon icon2"></div> <div class="itemIcon icon2"></div>
<div class="item item_3"> <div class="item item_3">
车辆数据<br /> 车辆数据
用车数据<br /> <br />
用车数据
<br />
竞拍数据 竞拍数据
</div> </div>
<div class="itemIcon icon3"></div> <div class="itemIcon icon3"></div>
<div class="item item_4"> <div class="item item_4">
轻改产品数据<br /> 轻改产品数据
话术数据<br /> <br />
话术数据
<br />
技能数据 技能数据
</div> </div>
<div class="itemIcon icon4"> <div class="itemIcon icon4"></div>
</div> <img class="bg" src="../../../assets/images/viewEntireLifecycleOfCar/footer_ring.png" alt="" />
<img class="bg" src="../../../assets/images/viewEntireLifecycleOfCar/footer_ring.png" alt="">
</div> </div>
</div> </div>
</div> </div>
</template> </template>
...@@ -126,31 +151,40 @@ export default { ...@@ -126,31 +151,40 @@ export default {
{ {
header: '车辆风', header: '车辆风',
footer: '险评级' footer: '险评级'
}, { },
{
header: '个性化', header: '个性化',
footer: '定价' footer: '定价'
}, { },
{
header: '二手车', header: '二手车',
footer: '检测' footer: '检测'
}, { },
{
header: '二手车', header: '二手车',
footer: '拍卖' footer: '拍卖'
}, { },
{
header: '建站', header: '建站',
footer: '选址' footer: '选址'
}, { },
{
header: '充电', header: '充电',
footer: '调节' footer: '调节'
}, { },
{
header: '电池回', header: '电池回',
footer: '收评估' footer: '收评估'
}, { },
{
header: '知识库', header: '知识库',
footer: '' footer: ''
}, { },
{
header: '销售', header: '销售',
footer: '助手' footer: '助手'
}, { },
{
header: '碰撞', header: '碰撞',
footer: '检查' footer: '检查'
} }
...@@ -173,8 +207,6 @@ export default { ...@@ -173,8 +207,6 @@ export default {
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
padding: 1.78vh 1.67vw; padding: 1.78vh 1.67vw;
background-image: url(../../../assets/images/viewEntireLifecycleOfCar/bg.png);
background-size: 100% 100%;
gap: 0 16px; gap: 0 16px;
display: flex; display: flex;
...@@ -228,7 +260,7 @@ export default { ...@@ -228,7 +260,7 @@ export default {
font-family: SourceHanSansCN-Medium; font-family: SourceHanSansCN-Medium;
font-weight: 500; font-weight: 500;
font-size: 16px; font-size: 16px;
color: #56E3F9; color: #56e3f9;
text-align: center; text-align: center;
padding-top: 21px; padding-top: 21px;
// line-height: 42px; // line-height: 42px;
...@@ -356,16 +388,15 @@ export default { ...@@ -356,16 +388,15 @@ export default {
width: 100%; width: 100%;
height: 10px; height: 10px;
opacity: 0.2; opacity: 0.2;
background-image: linear-gradient(90deg, #00C8FF 0%, #0069F2 100%); background-image: linear-gradient(90deg, #00c8ff 0%, #0069f2 100%);
} }
} }
.introduce { .introduce {
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-weight: 400; font-weight: 400;
font-size: 16px; font-size: 16px;
color: #DEDEDE; color: #dedede;
letter-spacing: 0; letter-spacing: 0;
text-align: center; text-align: center;
line-height: 28px; line-height: 28px;
...@@ -399,7 +430,7 @@ export default { ...@@ -399,7 +430,7 @@ export default {
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-weight: 400; font-weight: 400;
font-size: 18px; font-size: 18px;
color: #DEDEDE; color: #dedede;
} }
// line-height: 32px; // line-height: 32px;
...@@ -417,7 +448,7 @@ export default { ...@@ -417,7 +448,7 @@ export default {
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-weight: 400; font-weight: 400;
font-size: 16px; font-size: 16px;
color: #56E3F9; color: #56e3f9;
letter-spacing: 0; letter-spacing: 0;
line-height: 26px; line-height: 26px;
position: absolute; position: absolute;
...@@ -534,7 +565,6 @@ li:nth-child(2) { ...@@ -534,7 +565,6 @@ li:nth-child(2) {
transform: translateZ(-600px) rotateY(180deg); transform: translateZ(-600px) rotateY(180deg);
// transform: translateZ(-600px) rotateY(180deg); // transform: translateZ(-600px) rotateY(180deg);
// transform: rotateY(51.4deg) translateZ(600px); // transform: rotateY(51.4deg) translateZ(600px);
} }
li:nth-child(3) { li:nth-child(3) {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<ActivityRate /> <ActivityRate />
</div> </div>
<div class="right-bottom"> <div class="right-bottom">
<BigModuleMarketing /> <BigModuleMarketing />
</div> </div>
</div> </div>
</template> </template>
......
...@@ -9,13 +9,13 @@ import * as echarts from 'echarts' ...@@ -9,13 +9,13 @@ import * as echarts from 'echarts'
function getBarOptions(obj) { function getBarOptions(obj) {
const { tooltipFormatter } = obj const { tooltipFormatter } = obj
var barLineOption = { var barLineOption = {
tooltip: { // tooltip: {
trigger: 'axis', // trigger: 'axis',
borderWidth: 0, // borderWidth: 0,
padding: 0, // padding: 0,
formatter: tooltipFormatter || '', // formatter: tooltipFormatter || '',
confine: true // confine: true
}, // },
xAxis: { xAxis: {
data: [] data: []
}, },
......
...@@ -3,13 +3,13 @@ import utils from '../../../utils/util' ...@@ -3,13 +3,13 @@ import utils from '../../../utils/util'
function getBarLineOptions(obj) { function getBarLineOptions(obj) {
const { tooltipFormatter, seriesData } = obj const { tooltipFormatter, seriesData } = obj
var barLineOption = { var barLineOption = {
tooltip: { // tooltip: {
trigger: 'axis', // trigger: 'axis',
borderWidth: 0, // borderWidth: 0,
padding: 0, // padding: 0,
backgroundColor: '#051526', // backgroundColor: '#051526',
formatter: tooltipFormatter || '' // formatter: tooltipFormatter || ''
}, // },
xAxis: { xAxis: {
data: [] data: []
}, },
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2023-02-27 11:29:02 * @Date: 2023-02-27 11:29:02
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2024-01-26 20:08:52 * @LastEditTime: 2024-01-26 22:27:55
--> -->
<template> <template>
<div class="left"> <div class="left">
...@@ -72,14 +72,14 @@ export default { ...@@ -72,14 +72,14 @@ export default {
// padding: 0 16px; // padding: 0 16px;
box-sizing: border-box; box-sizing: border-box;
background: url(../../assets/images/operation/bg-1.png) no-repeat; background: url(../../assets/images/operation/bg-1.png) no-repeat;
background-size: 100%; background-size: 100% 52.4vh;
} }
.bottom { .bottom {
height: 34.15vh; height: 34.15vh;
margin-top: 1.95vh; margin-top: 1.95vh;
box-sizing: content-box; box-sizing: content-box;
background: url(../../assets/images/operation/bg-3.png) no-repeat; background: url(../../assets/images/operation/bg-3.png) no-repeat;
background-size: 100%; background-size: 100% 34.15vh;
} }
} }
</style> </style>
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2022-06-23 10:52:23 * @Date: 2022-06-23 10:52:23
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2024-01-26 20:08:16 * @LastEditTime: 2024-01-26 22:26:25
--> -->
<template> <template>
<div class="right"> <div class="right">
...@@ -94,7 +94,7 @@ export default { ...@@ -94,7 +94,7 @@ export default {
} }
.bottom { .bottom {
height: 53.66vh; height: 53.66vh;
margin-top: 1.95vh; margin-top: 0.95vh;
box-sizing: border-box; box-sizing: border-box;
background: url(../../assets/images/operation/bg-4.png) no-repeat; background: url(../../assets/images/operation/bg-4.png) no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn * @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-10-25 10:12:26 * @Date: 2022-10-25 10:12:26
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2024-01-26 20:10:23 * @LastEditTime: 2024-01-26 22:25:50
* @FilePath: \dj-data-view\src\views\saas\business.vue * @FilePath: \dj-data-view\src\views\saas\business.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -96,7 +96,7 @@ export default { ...@@ -96,7 +96,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.business-wrap { .business-wrap {
height: 14.15vh; height: 14.15vh;
margin: 2.98vh 0.83vw 0.98vh; margin: 1.98vh 0.83vw 0.98vh;
// margin-bottom: 0.98vh; // margin-bottom: 0.98vh;
// margin-top: 0.98vh; // margin-top: 0.98vh;
justify-content: space-between; justify-content: space-between;
......
...@@ -108,6 +108,9 @@ export default { ...@@ -108,6 +108,9 @@ export default {
}, },
methods: { methods: {
toFixNum(val) { toFixNum(val) {
if(!val){
return '0.0%'
}
return (val * 100).toFixed(1) + '%' return (val * 100).toFixed(1) + '%'
}, },
getMerchantData() { getMerchantData() {
...@@ -138,7 +141,7 @@ export default { ...@@ -138,7 +141,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.overview { .overview {
// box-sizing: border-box; // box-sizing: border-box;
padding: 1.22vh 0.83vw; padding: 2.22vh 0.83vw;
.store { .store {
width: 30.28vw; width: 30.28vw;
height: 29.27vh; height: 29.27vh;
......
...@@ -52,6 +52,9 @@ export default { ...@@ -52,6 +52,9 @@ export default {
}, },
methods: { methods: {
toFixRatio(val) { toFixRatio(val) {
if(!val){
return '0.00%'
}
return (val * 100).toFixed(2) + '%' return (val * 100).toFixed(2) + '%'
}, },
toFixNum(val) { toFixNum(val) {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn * @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-10-26 10:22:41 * @Date: 2022-10-26 10:22:41
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2024-01-26 20:37:51 * @LastEditTime: 2024-01-26 22:31:28
* @FilePath: \dj-data-view\src\components\ViewChart.vue * @FilePath: \dj-data-view\src\components\ViewChart.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -72,6 +72,7 @@ export default { ...@@ -72,6 +72,7 @@ export default {
flex-wrap: wrap; flex-wrap: wrap;
/deep/ { /deep/ {
.user-box { .user-box {
background-color: rgba(11, 44, 142, 0.28);
width: 13.12vw; width: 13.12vw;
} }
.user-box:nth-child(1), .user-box:nth-child(1),
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2023-08-16 14:44:03 * @Date: 2023-08-16 14:44:03
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2024-01-26 17:40:27 * @LastEditTime: 2024-01-26 22:28:36
--> -->
<template> <template>
<div class="tabs flex"> <div class="tabs flex">
...@@ -46,7 +46,10 @@ export default { ...@@ -46,7 +46,10 @@ export default {
}, },
methods: { methods: {
toFixNum(val) { toFixNum(val) {
return (val * 100).toFixed(1) + '%' if(!val){
return '0.0%'
}
return (Number(val) * 100).toFixed(1) + '%'
}, },
getEnterpriseOverview() { getEnterpriseOverview() {
this.api.operational.getEnterpriseOverview().then(res => { this.api.operational.getEnterpriseOverview().then(res => {
...@@ -61,7 +64,7 @@ export default { ...@@ -61,7 +64,7 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.tabs { .tabs {
padding: 1.22vh 0.83vw 0; padding: 3.22vh 0.83vw 0;
// padding: 20px 1.67vw; // padding: 20px 1.67vw;
height: 7.78vh; height: 7.78vh;
width: 100%; width: 100%;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!