Commit f8ca975b by 前端

更新sass+代码

1 parent f7125f68
...@@ -25,7 +25,7 @@ export default { ...@@ -25,7 +25,7 @@ export default {
}, },
colors: { colors: {
type: Array, type: Array,
default: () => ['#FF6E76', '#7CFFB2', ' #FDF006', '#4FA0FF', '#EB6001', '#BF98FF', '#BF98FF', '#58D9F9'] default: () => ['#FF6E76', '#7CFFB2', ' #FDF006', '#4FA0FF', '#EB6001', '#BF98FF', '#58D9F9','#C1EBDD', '#FFC851', '#5A5476']
} }
}, },
watch: { watch: {
......
...@@ -39,7 +39,7 @@ export default { ...@@ -39,7 +39,7 @@ export default {
}, },
colors: { colors: {
type: Array, type: Array,
default: () => ['#FF6E76', '#7CFFB2', ' #FDF006', '#4FA0FF', '#EB6001', '#BF98FF', '#58D9F9'] default: () => ['#FF6E76', '#7CFFB2', ' #FDF006', '#4FA0FF', '#EB6001', '#BF98FF', '#58D9F9','#C1EBDD', '#FFC851', '#5A5476']
}, },
size: { size: {
type: String, type: String,
...@@ -106,7 +106,7 @@ export default { ...@@ -106,7 +106,7 @@ export default {
color: this.colors, color: this.colors,
series: [ series: [
{ {
name: '客户年龄分布', // name: '客户年龄分布',
type: 'pie', type: 'pie',
radius: this.radius, radius: this.radius,
center: ['50%', '50%'], center: ['50%', '50%'],
...@@ -124,15 +124,14 @@ export default { ...@@ -124,15 +124,14 @@ export default {
show: true, show: true,
fontSize: this.size, fontSize: this.size,
fontWeight: 'bold', fontWeight: 'bold',
color:'#fff', color: '#fff',
formatter: '{d}%' formatter: '{d}%'
} }
}, },
labelLine: { labelLine: {
show: false show: false
}, },
data: this.viewData, data: this.viewData
minAngle: 30
} }
] ]
} }
......
...@@ -18,9 +18,13 @@ ...@@ -18,9 +18,13 @@
</div> </div>
</div> </div>
<div class='day-trend'> <div class='day-trend'>
<view-sub-title title='每日订单成功门店数趋势' /> <view-sub-title title='每月订单成功门店数趋势' />
<div class='line-bar-chart'> <div class='line-bar-chart'>
<LineBar domId='dayTrend' :isDatazoom='true' :dataList='dayTrend' :displayName='displayName' <LineBar
domId='dayTrend'
:isDatazoom='true'
:dataList='dayTrend'
:displayName='displayName'
boxHeight='46vh'></LineBar> boxHeight='46vh'></LineBar>
</div> </div>
</div> </div>
...@@ -42,8 +46,8 @@ export default { ...@@ -42,8 +46,8 @@ export default {
components: { RankContent, EquityOrder, SelectOptions, LineBar }, components: { RankContent, EquityOrder, SelectOptions, LineBar },
data() { data() {
return { return {
orderList: null,//订单 orderList: null, // 订单
memberMonthlyTrend: null,//近12个月订单量、订单收入趋势 memberMonthlyTrend: null, // 近12个月订单量、订单收入趋势
dayTrend: null, dayTrend: null,
displayName: { displayName: {
xName: 'statDate', xName: 'statDate',
...@@ -76,9 +80,9 @@ export default { ...@@ -76,9 +80,9 @@ export default {
// //
this.getMemberMonthlyTrend() // 获取月度趋势 this.getMemberMonthlyTrend() // 获取月度趋势
this.getMerchantOrderNumTrend() //每日订单成功的门店数趋势 this.getMerchantOrderNumTrend() // 每日订单成功的门店数趋势
this.getTotalRate() //获取订单总数、今年新增订单量、收入总额的占比 this.getTotalRate() // 获取订单总数、今年新增订单量、收入总额的占比
}, },
handleParamsAndMethod(methodName, resName, hasEmitEvent) { handleParamsAndMethod(methodName, resName, hasEmitEvent) {
...@@ -89,7 +93,6 @@ export default { ...@@ -89,7 +93,6 @@ export default {
} else { } else {
this[resName] = res.data.dataList this[resName] = res.data.dataList
} }
} }
}) })
}, },
......
...@@ -38,10 +38,10 @@ export default { ...@@ -38,10 +38,10 @@ export default {
data() { data() {
return { return {
diffsTitle: { diffsTitle: {
'transWork': '各类商品每月订单数', 'transWork': '各月各商品订单量排名',
'expandedGold': '各活动场次订单量', 'expandedGold': '各月各活动订单量排名',
'crowdFunding': '各月各商品订单量排名', 'crowdFunding': '各月各商品订单量排名',
'noWorries': '各类商品每月订单数' 'noWorries': '各月各商品订单量排名'
}, },
diffsGoodsName: { diffsGoodsName: {
'transWork': 'goodsName', 'transWork': 'goodsName',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!