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 79a50449
authored
May 25, 2022
by
xuyl
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交代码
1 parent
7a591475
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
181 additions
and
95 deletions
package.json
src/main.js
src/views/clientDataOverview/GroupOperating/marketingPeople.vue
package.json
View file @
79a5044
...
...
@@ -19,6 +19,7 @@
"glsx-table"
:
"^1.1.0"
,
"jquery"
:
"^3.6.0"
,
"sha1"
:
"^1.1.1"
,
"swiper"
:
"^4.0.0"
,
"vue"
:
"^2.6.10"
,
"vue-animate-number"
:
"^0.4.2"
,
"vue-router"
:
"^3.1.3"
,
...
...
src/main.js
View file @
79a5044
...
...
@@ -30,17 +30,18 @@ Vue.prototype.$apis = apis
Vue
.
use
(
glsxTable
)
Vue
.
prototype
.
$message
=
message
Vue
.
prototype
.
size
=
'small'
// Vue.prototype.btn_size = 'mini'
// Vue.prototype.btn_size = 'mini'
Vue
.
prototype
.
$Constants
=
Constants
Vue
.
prototype
.
$Utils
=
Util
Vue
.
prototype
.
$Commons
=
common
Vue
.
prototype
.
$echarts
=
echarts
//过滤器统一处理预加载
//过滤器统一处理预加载
Object
.
keys
(
filters
).
forEach
(
key
=>
{
Vue
.
filter
(
key
,
filters
[
key
])
Vue
.
filter
(
key
,
filters
[
key
])
})
export
{
bootstrap
,
mount
,
unmount
}
from
'@/setup'
export
{
bootstrap
,
mount
,
unmount
}
from
'@/setup'
export
const
http
=
params
=>
Vue
.
prototype
.
$http
(
params
)
export
const
http2
=
params
=>
Vue
.
prototype
.
$http2
(
params
)
export
const
http3
=
params
=>
Vue
.
prototype
.
$http3
(
params
)
export
const
http_common
=
params
=>
Vue
.
prototype
.
$http_common
(
params
)
export
const
http_common
=
params
=>
Vue
.
prototype
.
$http_common
(
params
)
\ No newline at end of file
src/views/clientDataOverview/GroupOperating/marketingPeople.vue
View file @
79a5044
...
...
@@ -23,7 +23,7 @@
<el-divider></el-divider>
<!-- 营销人群展示 -->
<div
class=
"bigMarketItem"
v-if=
"closeFlag"
>
<div
v-for=
"(item, idx) in itemArr"
:key=
"idx"
:class=
"[
{ active: isActive == idx }, 'marketItem']" @click="choickItem(idx)">
<div
v-for=
"(item, idx) in itemArr"
:key=
"idx"
:class=
"[
{ active: isActive == idx }, 'marketItem']" @click="choickItem(idx)">
<template
v-if=
"idx
< displayNum
"
>
<p
class=
"peopleName"
>
人群名称
</p>
<div
class=
"itemBox"
>
...
...
@@ -38,7 +38,7 @@
</div>
</div>
<!-- 滚动条展示 -->
<div
class=
"rollMarketItem"
v-else
v-dragscroll
>
<
!-- <
div class="rollMarketItem" v-else v-dragscroll>
<div v-for="(item, idx) in itemArr" :key="idx" :class="[{ active: isActive == idx }, 'marketItem']" @click="choickItem(idx)">
<div class="marketItem-border">
<p class="peopleName">人群名称</p>
...
...
@@ -52,26 +52,32 @@
</div>
</div>
</div>
</div>
<div
class=
"progressBar"
v-if
=
"!closeFlag"
>
<
!-- :style="{ width: showWidth + '%' }" --
>
<div
class=
"progress"
></div
>
</div
>
<!-- <el-carousel :interval="5000" arrow="always" indicator-position="none
">
<el-carousel-item v-for="(item, idx) in itemArr" :key="idx"
>
<div class="
marketItem-border
">
<p class="peopleName">人群名称</p
>
<div class="itemBox">
<p class="peopleNum"
>
{{ item.num }}
<span>人</span
>
</p
>
<p class="peopledesc">{{ item.desc }}</p
>
<
el-button class="createSOP">创建营销SOP</el-button
>
</div>
-->
<div
v-show
=
"!closeFlag"
>
<
div
class=
"swiper-container"
id=
"swiper"
>
<div
class=
"swiper-wrapper"
>
<div
v-for=
"(item, idx) in itemArr"
:key=
"idx"
:class=
"[{ active: isActive == idx }, 'marketItem', 'swiper-slide']"
@
click=
"choickItem(idx)"
>
<div
class=
"marketItem-border
"
>
<p
class=
"peopleName"
>
人群名称
</p
>
<div
class=
"
itemBox
"
>
<p
class=
"peopleNum"
>
{{ item.num }}
<span>
人
</span
>
</p>
<p
class=
"peopledesc"
>
{{ item.desc }}
</p
>
<el-button
class=
"createSOP"
>
创建营销SOP
</el-button
>
</div
>
<
/div
>
</div>
</div>
</el-carousel-item>
</el-carousel> -->
<!-- Add Pagination -->
<div
class=
"swiper-pagination"
></div>
</div>
</div>
<!-- <div class="progressBar" v-if="!closeFlag">
<div class="progress"></div>
</div> -->
</div>
<div
class=
"otherPageContent"
>
<GLCombiForm
:formObj=
"searchForm"
:formData=
"marketPeopleFormList"
@
handleOk=
"searchTable"
@
handleRest=
"resetTable"
></GLCombiForm>
...
...
@@ -96,6 +102,9 @@
<
script
>
import
marketingPlan
from
'./components/marketingPlan.vue'
import
Swiper
from
'swiper'
import
'swiper/dist/css/swiper.min.css'
export
default
{
name
:
'marketPeople'
,
components
:
{
marketingPlan
},
...
...
@@ -103,20 +112,20 @@ export default {
return
{
activeName
:
'first'
,
searchForm
:
{},
isActive
:
-
1
,
isActive
:
-
1
,
displayNum
:
4
,
//展示的数目
closeFlag
:
false
,
//展开收起
itemArr
:
[
{
num
:
562
,
desc
:
'不该他basdbajsda'
},
{
num
:
323
,
desc
:
'我顶着大太阳,只想为你撑伞'
},
{
num
:
1312
,
desc
:
'你专心在画睫毛,我专心在等你笑'
},
{
num
:
43133
,
desc
:
'气球在我手上,牵着你瞎逛'
},
{
num
:
123213
,
desc
:
'城堡为爱守着秘密,而我为你守着爱情'
},
{
num
:
1233
,
desc
:
'喜欢在人潮中,你只属于我的那画面'
},
{
num
:
43133
,
desc
:
'但偏偏,风渐渐,把距离吹的好远'
},
{
num
:
123213
,
desc
:
'最美的不是下雨天,是曾与你躲过雨的屋檐'
},
{
num
:
12345
,
desc
:
'人群描述人群描述人群描述人群描述人 群描'
},
{
num
:
1233
,
desc
:
'美人鱼的眼泪'
},
{
num
:
43133
,
desc
:
'气球在我手上,牵着你瞎逛'
},
{
num
:
123213
,
desc
:
'城堡为爱守着秘密,而我为你守着爱情'
},
{
num
:
1233
,
desc
:
'美人鱼的眼泪'
},
{
num
:
1233
,
desc
:
'美人鱼的眼泪'
}
{
num
:
1233
,
desc
:
'我一路向北,离开有你的季节'
}
],
marketPeopleFormList
:
[
{
...
...
@@ -278,9 +287,20 @@ export default {
// getListApi: getDetailQuitTableList,
}
},
// created() {
// this.showWidth = (4 / this.itemArr.length).toFixed(2) * 100
// },
mounted
()
{
new
Swiper
(
'.swiper-container'
,
{
// paginationClickable: true,
grabCursor
:
true
,
spaceBetween
:
16
,
mousewheel
:
true
,
slidesPerView
:
'auto'
,
pagination
:
{
el
:
'.swiper-pagination'
,
type
:
'progressbar'
}
})
},
methods
:
{
expandClick
(
val
)
{
if
(
val
==
'expand'
)
{
...
...
@@ -289,7 +309,6 @@ export default {
}
else
{
this
.
closeFlag
=
false
this
.
displayNum
=
4
// document.getElementById('bigMarketItem').style.display = 'flex'
}
},
// 选择的人群
...
...
@@ -348,8 +367,75 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
.active
{
border
:
1px
solid
#5850ff
;
/
deep
/
.swiper-container-horizontal
>
.swiper-pagination-progressbar
{
width
:
5%
;
bottom
:
0px
;
top
:
auto
;
right
:
0
;
margin
:
auto
;
border-radius
:
3px
;
background
:
#dddee0
;
.swiper-pagination-progressbar-fill
{
background
:
#5850ff
;
border-radius
:
3px
;
}
}
#swiper
{
padding
:
0
20px
;
.swiper-wrapper
{
margin-bottom
:
20px
;
.swiper-slide
{
width
:
274px
;
.marketItem-border
{
min-height
:
251px
;
.peopleName
{
height
:
54px
;
line-height
:
54px
;
background
:
#f7f7fc
;
font-size
:
16px
;
font-weight
:
600
;
padding-left
:
16px
;
vertical-align
:
middle
;
}
.itemBox
{
border-left
:
1px
solid
#ededf0
;
border-right
:
1px
solid
#ededf0
;
border-bottom
:
1px
solid
#ededf0
;
padding
:
0
16px
;
box-sizing
:
border-box
;
.peopleNum
{
padding
:
24px
0
;
font-size
:
26px
;
font-weight
:
600
;
color
:
#333333
;
span
{
font-size
:
14px
;
font-weight
:
400
;
}
}
.peopledesc
{
font-size
:
14px
;
color
:
#999999
;
line-height
:
20px
;
//
min-height
:
40px
;
}
.createSOP
{
margin
:
24px
0
;
border-radius
:
4px
;
border
:
1px
solid
#5850ff
;
width
:
100%
;
color
:
#5850ff
;
padding
:
9px
20px
;
}
}
}
}
}
}
.active
{
border
:
1px
solid
#5850ff
;
}
::-webkit-scrollbar
{
/*滚动条整体样式*/
...
...
@@ -380,7 +466,7 @@ export default {
}
}
.pageContent
{
padding
:
0
0
3
0px
;
padding
:
0
0
2
0px
;
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
background-color
:
#fff
;
.markPeople
{
...
...
@@ -432,7 +518,8 @@ export default {
}
.peopledesc
{
font-size
:
14px
;
color
:
#666666
;
color
:
#999999
;
line-height
:
20px
;
}
.createSOP
{
margin
:
24px
0
;
...
...
@@ -445,63 +532,60 @@ export default {
}
}
}
.rollMarketItem
{
padding
:
0
20px
;
width
:
100%
;
display
:
flex
;
justify-content
:
space-between
;
overflow-x
:
auto
;
//
white-space
:
nowrap
;
//
overflow
:
hidden
;
.marketItem
{
//
flex
:
1
;
width
:
25%
;
//
padding-right
:
16px
;
margin-right
:
16px
;
&-border
{
width
:
274px
;
}
//
.rollMarketItem
{
//
padding
:
0
20px
;
//
width
:
100%
;
//
display
:
flex
;
//
justify-content
:
space-between
;
//
overflow-x
:
auto
;
.peopleName
{
height
:
54px
;
line-height
:
54px
;
background
:
#f7f7fc
;
font-size
:
16px
;
font-weight
:
600
;
padding-left
:
16px
;
vertical-align
:
middle
;
}
.itemBox
{
border-left
:
1px
solid
#ededf0
;
border-right
:
1px
solid
#ededf0
;
border-bottom
:
1px
solid
#ededf0
;
padding
:
0
16px
;
box-sizing
:
border-box
;
.peopleNum
{
padding
:
24px
0
;
font-size
:
26px
;
font-weight
:
600
;
color
:
#333333
;
span
{
font-size
:
14px
;
font-weight
:
400
;
}
}
.peopledesc
{
font-size
:
14px
;
color
:
#666666
;
}
.createSOP
{
margin
:
24px
0
;
border-radius
:
4px
;
border
:
1px
solid
#5850ff
;
width
:
100%
;
color
:
#5850ff
;
padding
:
9px
20px
;
}
}
}
}
//
.marketItem
{
//
width
:
25%
;
//
margin-right
:
16px
;
//
&-border
{
//
width
:
274px
;
//
}
//
.peopleName
{
//
height
:
54px
;
//
line-height
:
54px
;
//
background
:
#f7f7fc
;
//
font-size
:
16px
;
//
font-weight
:
600
;
//
padding-left
:
16px
;
//
vertical-align
:
middle
;
//
}
//
.itemBox
{
//
border-left
:
1px
solid
#ededf0
;
//
border-right
:
1px
solid
#ededf0
;
//
border-bottom
:
1px
solid
#ededf0
;
//
padding
:
0
16px
;
//
box-sizing
:
border-box
;
//
.peopleNum
{
//
padding
:
24px
0
;
//
font-size
:
26px
;
//
font-weight
:
600
;
//
color
:
#333333
;
//
span
{
//
font-size
:
14px
;
//
font-weight
:
400
;
//
}
//
}
//
.peopledesc
{
//
font-size
:
14px
;
//
color
:
#666666
;
//
}
//
.createSOP
{
//
margin
:
24px
0
;
//
border-radius
:
4px
;
//
border
:
1px
solid
#5850ff
;
//
width
:
100%
;
//
color
:
#5850ff
;
//
padding
:
9px
20px
;
//
}
//
}
//
}
//
}
.progressBar
{
width
:
40px
;
height
:
4px
;
...
...
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