Commit 561ebfdb by 前端

commit

1 parent 9e017cbd
......@@ -144,3 +144,10 @@ img {
color: transparent;
-webkit-background-clip: text;
}
.user-box {
height: 9.51vh;
width:11.18vw;
margin-right: 0.28vw;
margin-bottom: 0.28vw;
background: #0b0e31;
}
<template>
<div class="view-chart flex">
<div class="line-chart"></div>
<div class="pie-chart">
<Age></Age>
<Price></Price>
<BuyCar></BuyCar>
<Mileage></Mileage>
</div>
</div>
</template>
<script type="text/ecmascript-6">
import * as echarts from 'echarts'
import datas from '../utils/data'
import Age from '../views/user/age.vue'
import Price from '../views/user/price'
import BuyCar from '../views/user/buyCar'
import Mileage from '../views/user/mileage'
export default {
name: 'ViewChart',
components: {
Age,
Price,
BuyCar,
Mileage
},
data() {
return {}
},
mounted() {},
methods: {}
}
</script>
<style scoped lang="scss">
.view-chart {
height: 19.51vh;
margin: 0.98vh 0;
.line-chart {
width: 26.25vw;
height: 100%;
background: #0b0e31;
margin-right: 0.56vw;
}
.pie-chart {
width: 23.28vw;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
}
}
</style>
......@@ -15,6 +15,7 @@
<div class="bottom">
<view-sub-title title="私域用户池总结" />
<UserTab></UserTab>
<view-chart></view-chart>
<view-line-group>
<div slot="1"><Analyse :height="defaultHeight"></Analyse></div>
<div slot="2"><Brand :height="defaultHeight"></Brand></div>
......
......@@ -12,10 +12,10 @@ module.exports = {
title: '嘀加智慧门店',
request: {
// baseURL: 'http://192.168.3.126:8081', // 本地测试项目地址,
// baseURL: 'http://192.168.1.160:8081', // 本地开发项目地址,
baseURL: 'http://192.168.1.152/:8080', // 本地开发项目地址,
// baseURL: 'http://192.168.1.158:9996',
// baseURL: 'http://192.168.1.152:8081',
baseURL: 'http://bi-view.beta.glsx.com.cn',
// baseURL: 'http://bi-view.beta.glsx.com.cn',
// 设置超时时间
timeout: 180000,
// 携带凭证
......
......@@ -304,8 +304,14 @@ export default {
return {}
},
mounted() {
this.map_demo()
this.api.map.getMerchantInProgressThisMonth({}).then(res=>{
// this.map_demo()
const params = {
req: {
queryItem: '11',
}
}
this.api.map.getMerchantInProgressThisMonth(params).then(res=>{
console.log(res)
console.log('??????')
})
},
......
<template>
<div class="user-box">
<div class="title title-icon">
<span class="icon"></span>
<span>客户年龄分布</span>
</div>
<!-- <div class="container flex">
<pie-chart :id="chart.id" :list="clientData"></pie-chart>
<Legend></Legend>
</div> -->
</div>
</template>
<script>
import { clientMixin } from '../../mixins/index'
export default {
name: 'Age',
mixins: [clientMixin],
data() {
return {
chart: {
id: 'user-age',
}
}
}
}
</script>
<style lang="scss" scoped>
.title{
font-size: 10px;
}
</style>
<template>
<div class="user-box">
<div class="title title-icon">
<span class="icon"></span>
<span>购车年限</span>
</div>
<!-- <div class="container flex">
<pie-chart :id="chart.id" :list="clientData"></pie-chart>
<Legend></Legend>
</div> -->
</div>
</template>
<script>
import { clientMixin } from '../../mixins/index'
export default {
name: 'bugCar',
mixins: [clientMixin],
data() {
return {
chart: {
id: 'bugCar',
}
}
}
}
</script>
<style lang="scss" scoped>
.title{
font-size: 10px;
}
</style>
<template>
<div class="user-box">
<div class="title title-icon">
<span class="icon"></span>
<span>里程分布</span>
</div>
<!-- <div class="container flex">
<pie-chart :id="chart.id" :list="clientData"></pie-chart>
<Legend></Legend>
</div> -->
</div>
</template>
<script>
import { clientMixin } from '../../mixins/index'
export default {
name: 'Mileage',
mixins: [clientMixin],
data() {
return {
chart: {
id: 'mileage',
}
}
}
}
</script>
<style lang="scss" scoped>
.title{
font-size: 10px;
}
</style>
<template>
<div class="user-box">
<div class="title title-icon">
<span class="icon"></span>
<span>车价占比</span>
</div>
<!-- <div class="container flex">
<pie-chart :id="chart.id" :list="clientData"></pie-chart>
<Legend></Legend>
</div> -->
</div>
</template>
<script>
import { clientMixin } from '../../mixins/index'
export default {
name: 'Price',
mixins: [clientMixin],
data() {
return {
chart: {
id: 'area',
}
}
}
}
</script>
......@@ -4,10 +4,10 @@
<template v-for="(tab, index) in userData">
<div class="tab-item" :key="index">
<div class="tab-title">{{ tab.text }}</div>
<div class="tab-count text-linear">15,351,2</div>
<div class="tab-count text-linear">153</div>
<div class="tab-increase flex-between">
<div class="increase-text">当年新增</div>
<div class="increase-count">7,329,2</div>
<div class="increase-count">24</div>
</div>
</div>
</template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!