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 2665ebff
authored
Nov 12, 2021
by
liwk
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
84fcbb76
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
122 additions
and
30 deletions
src/components/ScrollView.vue
src/plugins/vant.js
src/views/attractCustomer/index.vue
src/components/ScrollView.vue
View file @
2665ebf
...
...
@@ -27,6 +27,7 @@ export default {
},
methods
:
{
onLoad
()
{
console
.
log
(
123
)
this
.
$emit
(
'ReachBottom'
)
},
}
...
...
src/plugins/vant.js
View file @
2665ebf
...
...
@@ -9,13 +9,85 @@
// 按需全局引入 vant组件
import
{
Button
,
Dialog
,
Search
,
List
,
Cell
,
Tabbar
,
TabbarItem
,
NavBar
,
Search
,
ActionSheet
,
CellGroup
,
Image
as
VanImage
,
Tag
,
Field
,
Stepper
,
Divider
,
Step
,
Steps
,
NoticeBar
,
RadioGroup
,
Radio
,
Uploader
,
Tab
,
Tabs
,
DropdownMenu
,
DropdownItem
,
Grid
,
GridItem
,
Popup
,
Calendar
,
Cascader
,
Checkbox
,
CheckboxGroup
,
Notify
,
Icon
,
Empty
,
PullRefresh
,
Picker
,
Dialog
,
ShareSheet
,
Overlay
,
loading
}
from
'vant'
export
const
components
=
[
Button
,
Dialog
,
List
,
Cell
,
Tabbar
,
TabbarItem
,
NavBar
,
Search
,
List
ActionSheet
,
CellGroup
,
VanImage
,
Tag
,
Field
,
Stepper
,
Divider
,
Step
,
Steps
,
NoticeBar
,
RadioGroup
,
Radio
,
Uploader
,
Tab
,
Tabs
,
DropdownMenu
,
DropdownItem
,
Grid
,
GridItem
,
Popup
,
Calendar
,
Cascader
,
Checkbox
,
CheckboxGroup
,
Notify
,
Icon
,
Empty
,
PullRefresh
,
Picker
,
Dialog
,
ShareSheet
,
Overlay
,
loading
]
\ No newline at end of file
src/views/attractCustomer/index.vue
View file @
2665ebf
...
...
@@ -3,32 +3,31 @@
<div
class=
"search sticky"
>
<search
/>
</div>
<div
class=
"content"
>
<scroll-view
class=
"list-box"
@
ReachBottom=
"onReachBottom"
ref=
"scrollView"
>
<template
v-for=
"(i,index) in 10"
>
<div
class=
"box"
:key=
"index"
>
<div
class=
"share"
>
<div
class=
"sprite-icon icon-attract-customer-share"
></div>
</div>
<div
class=
"title text-hide"
>
渠道活码名称大概到这个位置…
</div>
<div
class=
"name-list"
>
<div
class=
"label"
></div>
<div
class=
"value"
></div>
</div>
<div
class=
"remark"
>
备注:
{{
i
.
remark
||
''
}}
</div>
<scroll-view
class=
"content"
@
ReachBottom=
"onReachBottom"
ref=
"scrollView"
>
<template
v-for=
"(i,index) in 10"
>
<div
class=
"box"
:key=
"index"
>
<div
class=
"share"
>
<div
class=
"sprite-icon icon-attract-customer-share"
></div>
</div>
</
template
>
</scroll-view>
</div>
<div
class=
"title text-hide"
>
渠道活码名称大概到这个位置…
</div>
<div
class=
"name-list"
>
<div
class=
"label"
>
使用人员:
</div>
<div
class=
"value"
>
张三、C李四、小陈总、飞天小猪、海的小心心、陈五、金七
</div>
</div>
<div
class=
"remark"
>
备注:
{{
i
.
remark
||
'- -'
}}
</div>
<div
class=
"img-box"
></div>
</div>
</
template
>
</scroll-view>
</div>
</template>
...
...
@@ -37,12 +36,16 @@ export default {
name
:
''
,
data
()
{
return
{
}
},
mounted
()
{
},
methods
:
{
onReachBottom
()
{
this
.
$refs
.
scrollView
.
loading
=
false
this
.
$refs
.
scrollView
.
finished
=
true
}
}
}
</
script
>
...
...
@@ -56,6 +59,7 @@ export default {
}
.content
{
padding
:
16px
;
height
:
calc
(
100vh
-
50px
);
.box
{
background
:
#ffffff
;
box-shadow
:
0px
4px
8px
0px
rgba
(
224
,
224
,
224
,
0.5
);
...
...
@@ -63,6 +67,7 @@ export default {
padding
:
16px
10px
;
margin-bottom
:
10px
;
position
:
relative
;
font-size
:
12px
;
.share
{
position
:
absolute
;
right
:
0
;
...
...
@@ -73,6 +78,20 @@ export default {
color
:
#333333
;
font-size
:
16px
;
font-weight
:
500
;
margin-bottom
:
8px
;
}
.name-list
{
display
:
flex
;
margin-bottom
:
8px
;
.label
{
color
:
#666666
;
width
:
60px
;
flex-shrink
:
0
;
}
}
.remark
,
.name-list
{
color
:
#999999
;
}
}
}
...
...
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