Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsk-data-view-pd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 45166a26
authored
Jul 26, 2023
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
ef3dce2e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
128 additions
and
9 deletions
src/views/boutique/Map.vue
src/views/boutique/rightCompoments/StoreMap.vue
src/views/boutiqueDetail/BoutiqueDetailDate.vue
src/views/boutiqueDetail/index.vue
src/views/boutique/Map.vue
View file @
45166a2
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Author: huyue
* @Date: 2023-07-20 10:19:06
* @Date: 2023-07-20 10:19:06
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2023-07-26 16:
07:04
* @LastEditTime: 2023-07-26 16:
26:03
-->
-->
<
template
>
<
template
>
<div>
<div>
...
@@ -36,7 +36,6 @@ export default {
...
@@ -36,7 +36,6 @@ export default {
padding
:
0
,
padding
:
0
,
backgroundColor
:
'#051526'
,
backgroundColor
:
'#051526'
,
formatter
:
function
(
params
)
{
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;">
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="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>
<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 {
...
@@ -101,9 +100,6 @@ export default {
},
},
drawMap
(
data
)
{
drawMap
(
data
)
{
this
.
mapOption
=
this
.
getOptions
(
data
)
this
.
mapOption
=
this
.
getOptions
(
data
)
// console.log(data)
// this.mapOption.series[0].data = data
console
.
log
(
this
.
mapOption
)
this
.
myChart
.
setOption
(
this
.
mapOption
)
this
.
myChart
.
setOption
(
this
.
mapOption
)
}
}
}
}
...
...
src/views/boutique/rightCompoments/StoreMap.vue
View file @
45166a2
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Author: huyue
* @Date: 2023-07-19 17:18:33
* @Date: 2023-07-19 17:18:33
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2023-07-26 1
5:32:1
8
* @LastEditTime: 2023-07-26 1
6:23:4
8
-->
-->
<
template
>
<
template
>
<div>
<div>
...
@@ -97,7 +97,11 @@ export default {
...
@@ -97,7 +97,11 @@ export default {
}
}
const
_data
=
await
this
.
api
.
boutique
.
getRegionMerchant
(
params
)
const
_data
=
await
this
.
api
.
boutique
.
getRegionMerchant
(
params
)
this
.
storeDistrictList
=
_data
.
data
.
dataList
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
)
}
}
}
}
}
}
...
...
src/views/boutiqueDetail/BoutiqueDetailDate.vue
0 → 100644
View file @
45166a2
<!--
* @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
>
src/views/boutiqueDetail/index.vue
View file @
45166a2
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
</
template
>
</
template
>
<
template
#
content
>
<
template
#
content
>
<div
class=
"solar-detail-content"
>
<div
class=
"solar-detail-content"
>
<
view-date
:defaultYear=
"defaultYear"
:dataList=
"yearList"
:businessTime=
"businessTime"
></view-d
ate>
<
BoutiqueDetailDate
:defaultYear=
"defaultYear"
:dataList=
"yearList"
:businessTime=
"businessTime"
></BoutiqueDetailD
ate>
<div
class=
"solar-detail-content-bottom"
>
<div
class=
"solar-detail-content-bottom"
>
<BoutiqueDetailLeft></BoutiqueDetailLeft>
<BoutiqueDetailLeft></BoutiqueDetailLeft>
<BoutiqueDetailRight></BoutiqueDetailRight>
<BoutiqueDetailRight></BoutiqueDetailRight>
...
@@ -21,12 +21,14 @@
...
@@ -21,12 +21,14 @@
import
{
changeMixin
}
from
'@/mixins'
import
{
changeMixin
}
from
'@/mixins'
import
BoutiqueDetailLeft
from
'./BoutiqueDetailLeft.vue'
import
BoutiqueDetailLeft
from
'./BoutiqueDetailLeft.vue'
import
BoutiqueDetailRight
from
'./BoutiqueDetailRight.vue'
import
BoutiqueDetailRight
from
'./BoutiqueDetailRight.vue'
import
BoutiqueDetailDate
from
'./BoutiqueDetailDate.vue'
export
default
{
export
default
{
name
:
'BoutiqueDetail'
,
name
:
'BoutiqueDetail'
,
mixins
:
[
changeMixin
],
mixins
:
[
changeMixin
],
components
:
{
components
:
{
BoutiqueDetailLeft
,
BoutiqueDetailLeft
,
BoutiqueDetailRight
BoutiqueDetailRight
,
BoutiqueDetailDate
},
},
data
()
{
data
()
{
return
{
return
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment