Commit 45166a26 by 胡悦

提交

1 parent ef3dce2e
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2023-07-20 10:19:06
* @LastEditors: huyue
* @LastEditTime: 2023-07-26 16:07:04
* @LastEditTime: 2023-07-26 16:26:03
-->
<template>
<div>
......@@ -36,7 +36,6 @@ export default {
padding: 0,
backgroundColor: '#051526',
formatter: function(params) {
console.log(params)
var _html = `<div style="backdrop-filter: blur(4px);background-color: #051526;border: 2px solid;border-image: linear-gradient(90deg, #074989, #30DCFF, #074989) 1;padding: 10px;">
<div style="color: #fff;">${params.name}</div>
<div style="display:flex;"><div style="color: #c9c9c9">客单价:</div><div style="color: #fff;">¥${params.data ? utils.numAddSymbol(params.data.perCusTrans) : 0}</div></div>
......@@ -101,9 +100,6 @@ export default {
},
drawMap(data) {
this.mapOption = this.getOptions(data)
// console.log(data)
// this.mapOption.series[0].data = data
console.log(this.mapOption)
this.myChart.setOption(this.mapOption)
}
}
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2023-07-19 17:18:33
* @LastEditors: huyue
* @LastEditTime: 2023-07-26 15:32:18
* @LastEditTime: 2023-07-26 16:23:48
-->
<template>
<div>
......@@ -97,7 +97,11 @@ export default {
}
const _data = await this.api.boutique.getRegionMerchant(params)
this.storeDistrictList = _data.data.dataList
this.$refs.map.drawMap(this.storeDistrictList)
const districtData = this.storeDistrictList.map(item => {
item.name = item.province
return item
})
this.$refs.map.drawMap(districtData)
}
}
}
......
<!--
* @Description: 内容页面统计年份组件
* @Author: huyue
* @Date: 2023-07-05 10:35:43
* @LastEditors: huyue
* @LastEditTime: 2023-07-26 16:56:10
-->
<template>
<div class="view-date">
<div>深圳嘀加服务商1 / 深圳嘀加服务商2</div>
<div class="businessTime">业务开始时间:{{businessTime ? new Date(businessTime).format('yyyy-MM-dd') : ''}}
<span class="view-tips">当前门店使用电子券发放,供货模式为嘀加供货</span>
</div>
</div>
</template>
<script type='text/ecmascript-6'>
// import datas from '@/utils/data'
import { mapActions } from 'vuex'
export default {
name: 'BoutiqueDetailDate',
props: {
businessTime: String,
yearList: {
type: Array,
default: () => []
},
channelList: {
type: Array,
default: () => []
},
defaultYear: String,
defaultChannel: String
},
data() {
return {
isShow: false,
channelShow: false,
year: ''
}
},
mounted() {
const { defaultYear } = this
if (defaultYear) this.setBoutiqueYear(defaultYear)
},
methods: {
...mapActions(['setBoutiqueYear', 'setBoutiqueChannel']),
switchYear() {
this.isShow = !this.isShow
},
selectVal(val) {
this.setBoutiqueYear(val.value)
this.switchYear()
},
// 点击年份之外的内容关闭下拉框
clickOutside() {
this.isShow = false
},
// 展开关闭渠道下拉框
switchChannel() {
this.channelShow = !this.channelShow
},
// 点击渠道之外的内容关闭下拉框
clickChannelOutside() {
this.channelShow = false
},
// 选择渠道触发事件
selectChannelVal(value) {
console.log(value)
this.setBoutiqueChannel(value)
this.$emit('selectChannel', value)
this.switchChannel()
}
}
}
</script>
<style scoped lang='scss'>
.view-date {
display: flex;
align-items: center;
justify-content: space-between;
// width: 100%;
height: 6.67vh;
color: #C9C9C9;
font-size: 14px;
padding: 0 1.33vh;
background-color: #091C40;
margin-bottom: 1.78vh;
.year-plugin {
position: relative;
}
.year {
display: flex;
align-items: center;
justify-content: space-between;
width: 8.61vw;
height: 4vh;
padding: 0 0.56vw;
box-sizing: border-box;
background-image: linear-gradient(270deg, #6578FF 0%, #079FF1 100%);
margin-right: 0.56vw;
color: #FFFFFF;
.arrow-down {
width: 0.69vw;
height: 0.67vh;
}
}
}
.businessTime {
color: #536079;
font-size: 14px;
margin-right: 0.97vw;
}
.view-tips {
font-size: 14px;
color: #EB6001;
}
</style>
......@@ -6,7 +6,7 @@
</template>
<template #content>
<div class="solar-detail-content">
<view-date :defaultYear="defaultYear" :dataList="yearList" :businessTime="businessTime"></view-date>
<BoutiqueDetailDate :defaultYear="defaultYear" :dataList="yearList" :businessTime="businessTime"></BoutiqueDetailDate>
<div class="solar-detail-content-bottom">
<BoutiqueDetailLeft></BoutiqueDetailLeft>
<BoutiqueDetailRight></BoutiqueDetailRight>
......@@ -21,12 +21,14 @@
import { changeMixin } from '@/mixins'
import BoutiqueDetailLeft from './BoutiqueDetailLeft.vue'
import BoutiqueDetailRight from './BoutiqueDetailRight.vue'
import BoutiqueDetailDate from './BoutiqueDetailDate.vue'
export default {
name: 'BoutiqueDetail',
mixins: [changeMixin],
components: {
BoutiqueDetailLeft,
BoutiqueDetailRight
BoutiqueDetailRight,
BoutiqueDetailDate
},
data() {
return {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!