Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-custom
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 8fdc3370
authored
Nov 24, 2021
by
李长胜
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
客户数据概览banner图按钮加上map热点区域
1 parent
78970ca6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
18 deletions
src/views/clientDataOverview/index.vue
src/views/clientDataOverview/jquery.rwdImageMaps.js
src/views/clientDataOverview/index.vue
View file @
8fdc337
...
...
@@ -9,9 +9,9 @@
<div
class=
"bannerWrapBox"
v-if=
"isHasCustomerCountBanner"
>
<!-- <img src="@/assets/clientDetail/defaultAvator.png" class="inTimeBtn" alt="" /> -->
<img
class=
"bannerWrap"
usemap=
"#planetmap"
src=
"@/assets/clientDataOverview/companyBanner.png"
alt=
""
/>
<map
name=
"planetmap"
id=
"planetmap"
style=
"cursor: pointer
;
"
>
<!--
0-200m onclick="getCorePhoth('1')
" -->
<area
shape=
"rect"
coords=
"849,97,933,121"
href=
"https://www.baidu.com"
target=
"_blank"
/>
<map
name=
"planetmap"
id=
"planetmap"
style=
"cursor: pointer"
>
<!--
href="https://www.baidu.com
" -->
<area
shape=
"rect"
coords=
"849,97,933,121"
@
click=
"goNextPage"
target=
"_blank"
/>
</map>
</div>
<h3
class=
"pageSubTitle"
>
客户分层
</h3>
...
...
@@ -147,8 +147,8 @@
<
template
v-if=
"isShowBarMap"
>
<span
class=
"timeDuring"
>
{{
allMapList
[
0
].
dateTime
}}
~
{{
allMapList
[
allMapList
.
length
-
1
].
dateTime
}}
</span>
<span
class=
"lastest"
>
近
{{
timeGap
}}
天
</span>
<button
class=
"btn30 optionBtn"
@
click=
"clickThirty"
>
近30天
</button>
<button
class=
"btn7 optionBtn"
@
click=
"clickSeven"
>
近7天
</button>
<button
class=
"btn30 optionBtn"
:class=
"
{ activeDayIcon: this.timeGap == 30 }"
@click="clickThirty">近30天
</button>
<button
class=
"btn7 optionBtn"
:class=
"
{ activeDayIcon: this.timeGap == 7 }"
@click="clickSeven">近7天
</button>
<div
class=
"clientAddTrend"
>
<div
class=
"one1"
>
<span>
区间统计:
</span>
...
...
@@ -187,7 +187,8 @@
</template>
<
script
>
// import $ from 'jquery'
import
$
from
'jquery'
import
{
rwdImageMaps
}
from
'./jquery.rwdImageMaps.js'
import
{
getDataOverview
,
getDataOverviewBarMap
}
from
'@/api/modules/clientDataOverview'
import
{
getLoginCount
}
from
'@/api/modules/loginCount'
import
pieEchart
from
'@/components/echarts/pieEchart'
...
...
@@ -266,12 +267,6 @@ export default {
mounted
()
{
document
.
body
.
style
.
overflow
=
'hidden'
// this.$nextTick(()=>{
// $(document).ready(function (e) {
// console.log('....')
// $('img[usemap]').rwdImageMaps();
// });
// })
},
computed
:
{
isEmptyObj
()
{
...
...
@@ -314,8 +309,8 @@ export default {
}
},
1000
)
//要引流企微魔方
this
.
getDataOverviewFun
()
this
.
getDataOverviewBarMapFun
()
//
this.getDataOverviewFun()
//
this.getDataOverviewBarMapFun()
},
//引流企微按钮暂时效果
toGuideCompanyWechat
()
{
...
...
@@ -417,6 +412,9 @@ export default {
this
.
isHasCustomerCountBanner
=
false
}
else
{
this
.
isHasCustomerCountBanner
=
true
this
.
$nextTick
(()
=>
{
$
(
'img[usemap]'
).
rwdImageMaps
()
})
}
console
.
log
(
this
.
isHasCustomerCountBanner
,
'true/fasle'
)
this
.
$set
(
this
.
titles
[
0
],
'num'
,
res
.
newCarCustomerCount
)
...
...
@@ -1012,10 +1010,10 @@ export default {
border
:
1px
solid
$
borderBlue
;
color
:
$
btnBlue
;
}
&
:focus
{
border
:
1px
solid
$
borderBlue
;
color
:
$
btn
Blue
;
}
}
.activeDayIcon
{
border
:
1px
solid
$
border
Blue
;
color
:
$
btnBlue
;
}
}
}
...
...
src/views/clientDataOverview/jquery.rwdImageMaps.js
View file @
8fdc337
...
...
@@ -8,6 +8,8 @@
* http://mattstow.com
* Licensed under the MIT license
*/
import
$
from
'jquery'
import
jQuery
from
'jquery'
;(
function
(
$
)
{
$
.
fn
.
rwdImageMaps
=
function
()
{
var
$img
=
this
;
...
...
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