Commit f9d79c19 by 杨明

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

2 parents 02d2572a 835dd971
......@@ -27,6 +27,7 @@
text-align: center;
.title {
position: relative;
flex: 2;
font-family: SourceHanSansCN-Bold;
font-weight: 700;
......@@ -46,6 +47,26 @@
-webkit-background-clip: text;
-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 {
......

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
......@@ -46,39 +46,6 @@ export default {
ViewEntireLifecycleOfCar,
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() {
return {
activeName: '',
......
......@@ -108,6 +108,9 @@ export default {
},
methods: {
toFixNum(val) {
if(!val){
return '0.0%'
}
return (val * 100).toFixed(1) + '%'
},
getMerchantData() {
......
......@@ -52,6 +52,9 @@ export default {
},
methods: {
toFixRatio(val) {
if(!val){
return '0.00%'
}
return (val * 100).toFixed(2) + '%'
},
toFixNum(val) {
......
......@@ -46,7 +46,10 @@ export default {
},
methods: {
toFixNum(val) {
return (val * 100).toFixed(1) + '%'
if(!val){
return '0.0%'
}
return (Number(val) * 100).toFixed(1) + '%'
},
getEnterpriseOverview() {
this.api.operational.getEnterpriseOverview().then(res => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!