Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
dj-scrm-wx-work-attachment-customer
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 f3bf6a20
authored
Nov 22, 2021
by
zhouzy
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/glsx/dj-scrm-wx-work-attachment-customer
2 parents
e143739e
be461fff
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
111 additions
and
28 deletions
src/components/ResourcePopup.vue
src/views/attractCustomer/index.vue
src/components/ResourcePopup.vue
View file @
f3bf6a2
...
@@ -8,9 +8,12 @@
...
@@ -8,9 +8,12 @@
>
>
<div
class=
"content"
>
<div
class=
"content"
>
<div
class=
"title flex"
>
<div
class=
"title flex"
>
会员套餐名称
{{
obj
.
codeState
}}
<div
class=
"all flex"
>
<div
<template
v-if=
"true"
>
class=
"all flex"
@
click=
"selectAll"
>
<template
v-if=
"all"
>
<div
class=
"sprite-icon icon-active"
></div>
<div
class=
"sprite-icon icon-active"
></div>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
...
@@ -20,20 +23,19 @@
...
@@ -20,20 +23,19 @@
</div>
</div>
</div>
</div>
<div
class=
"img-box"
>
<div
class=
"img-box"
>
<
template
v-for=
"(item,ind
) in 17
"
>
<
template
v-for=
"(item,ind
ex) in obj.imgList
"
>
<div
<div
:key=
"ind"
:key=
"ind
ex
"
class=
"item"
class=
"item"
@
click=
"choose(
{item,index})"
>
>
<img
src=
"@/assets/images/test.jpg
"
>
<img
:src=
"item.autoUrl
"
>
<div
class=
"radio-box"
>
<div
class=
"radio-box"
>
<template
v-if=
"item.active"
>
<template
v-if=
"item.active"
>
<div
class=
"sprite-icon icon-active"
></div>
<div
class=
"sprite-icon icon-active"
></div>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<div
class=
"radio"
>
<div
class=
"radio"
></div>
</div>
</
template
>
</
template
>
</div>
</div>
</div>
</div>
...
@@ -53,21 +55,59 @@
...
@@ -53,21 +55,59 @@
<
script
type=
'text/ecmascript-6'
>
<
script
type=
'text/ecmascript-6'
>
export
default
{
export
default
{
name
:
'ResourcePopup'
,
name
:
'ResourcePopup'
,
props
:
[
'value'
],
props
:
{
data
()
{
value
:
Boolean
,
data
:
{
type
:
Object
,
default
:
()
=>
{}
}
},
data
()
{
return
{
return
{
show
:
false
show
:
false
,
obj
:
{},
all
:
false
}
}
},
},
watch
:
{
watch
:
{
'value'
(
n
)
{
value
(
n
)
{
this
.
show
=
n
this
.
show
=
n
}
},
},
mounted
()
{
data
(
n
)
{
console
.
log
(
'123'
,
n
)
this
.
obj
=
n
this
.
checkAll
()
}
},
},
mounted
()
{},
methods
:
{
methods
:
{
close
()
{
choose
({
item
,
index
})
{
item
.
active
=
!
item
.
active
this
.
$set
(
this
.
obj
.
imgList
,
index
,
item
)
this
.
checkAll
()
},
checkAll
()
{
let
{
imgList
}
=
this
.
obj
try
{
imgList
.
map
(
e
=>
{
if
(
!
e
.
active
)
throw
false
})
}
catch
(
error
)
{
this
.
all
=
error
return
}
this
.
all
=
true
},
selectAll
()
{
let
{
all
,
obj
:
{
imgList
}
}
=
this
imgList
.
map
(
e
=>
(
e
.
active
=
!
all
))
this
.
all
=
!
all
this
.
obj
.
imgList
=
imgList
},
close
()
{
this
.
show
=
false
this
.
show
=
false
this
.
$emit
(
'close'
)
this
.
$emit
(
'close'
)
}
}
...
...
src/views/attractCustomer/index.vue
View file @
f3bf6a2
<
template
>
<
template
>
<div
class=
"layout"
>
<div
class=
"layout"
>
<div
class=
"search sticky"
>
<div
class=
"search sticky"
>
<search
/>
<search
@
search=
"search"
/>
</div>
</div>
<scroll-view
<scroll-view
class=
"content"
class=
"content"
@
ReachBottom=
"onReachBottom"
@
ReachBottom=
"onReachBottom"
ref=
"scrollView"
ref=
"scrollView"
>
>
<template
v-for=
"(i,index) in
10
"
>
<template
v-for=
"(i,index) in
list
"
>
<div
<div
class=
"box"
class=
"box"
:key=
"index"
:key=
"index"
...
@@ -20,21 +20,22 @@
...
@@ -20,21 +20,22 @@
转发
转发
<div
class=
"sprite-icon icon-attract-customer-share"
></div>
<div
class=
"sprite-icon icon-attract-customer-share"
></div>
</div>
</div>
<div
class=
"title text-hide"
>
渠道活码名称大概到这个位置…
</div>
<div
class=
"title text-hide"
>
{{
i
.
codeState
}}
</div>
<div
class=
"name-list"
>
<div
class=
"name-list"
>
<div
class=
"label"
>
使用人员:
</div>
<div
class=
"label"
>
使用人员:
</div>
<div
class=
"value"
>
张三、C李四、小陈总、飞天小猪、海的小心心、陈五、金七
</div>
<div
class=
"value"
>
{{
i
.
staffName
}}
</div>
</div>
</div>
<div
class=
"remark"
>
<div
class=
"remark"
>
备注:
{{
i
.
r
emark
||
'- -'
}}
备注:
{{
i
.
codeR
emark
||
'- -'
}}
</div>
</div>
<div
class=
"img-box"
>
<div
class=
"img-box"
>
<template
v-for=
"(item,ind) in
9
"
>
<template
v-for=
"(item,ind) in
i.imgList
"
>
<div
<div
:key=
"ind"
:key=
"ind"
class=
"item"
class=
"item"
v-if=
"ind
< 9
"
>
>
<img
src=
"@/assets/images/test.jpg
"
>
<img
:src=
"item.autoUrl
"
>
</div>
</div>
</
template
>
</
template
>
</div>
</div>
...
@@ -44,6 +45,7 @@
...
@@ -44,6 +45,7 @@
<resource-popup
<resource-popup
v-model=
"showPopup"
v-model=
"showPopup"
@
close=
"showPopup = false"
@
close=
"showPopup = false"
:data=
"currentItem"
/>
/>
</div>
</div>
</template>
</template>
...
@@ -51,18 +53,59 @@
...
@@ -51,18 +53,59 @@
<
script
type=
'text/ecmascript-6'
>
<
script
type=
'text/ecmascript-6'
>
export
default
{
export
default
{
name
:
''
,
name
:
''
,
data
()
{
data
()
{
return
{
return
{
showPopup
:
false
showPopup
:
false
,
codeStateOrStaffName
:
''
,
list
:
[],
currentItem
:
{}
}
}
},
},
mounted
()
{
mounted
()
{
this
.
getList
()
},
},
methods
:
{
methods
:
{
share
()
{
getList
()
{
let
{
codeStateOrStaffName
}
=
this
let
data
=
{
method
:
'cn.com.glsx.entmicro.code.listEntmicroChannelCodeList'
}
if
(
codeStateOrStaffName
)
data
.
codeStateOrStaffName
=
codeStateOrStaffName
window
.
$HTTP
({
url
:
'http://192.168.3.191:8064/rop-scrm-entmicro/router'
,
data
})
.
then
(
res
=>
{
console
.
log
(
res
)
res
.
map
(
e
=>
{
let
imgList
=
[
{
id
:
e
.
id
,
autoUrl
:
e
.
qrCode
}
]
if
(
e
.
codeInfo
&&
e
.
codeInfo
.
length
)
{
e
.
codeInfo
.
map
(
i
=>
{
imgList
.
push
(
i
)
})
}
e
.
imgList
=
imgList
})
this
.
list
=
res
})
},
share
(
e
)
{
this
.
showPopup
=
true
this
.
showPopup
=
true
this
.
currentItem
=
e
},
search
(
e
)
{
console
.
log
(
e
)
this
.
codeStateOrStaffName
=
e
this
.
getList
()
},
},
onReachBottom
()
{
onReachBottom
()
{
console
.
log
(
'触底'
)
console
.
log
(
'触底'
)
this
.
$refs
.
scrollView
.
loading
=
false
this
.
$refs
.
scrollView
.
loading
=
false
this
.
$refs
.
scrollView
.
finished
=
true
this
.
$refs
.
scrollView
.
finished
=
true
...
...
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