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 e846099d
authored
Nov 24, 2021
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
数据滚动bug
1 parent
86f99cf8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
49 deletions
src/components/ScrollView.vue
src/views/customerDetails/index.vue
src/views/tag/index.vue
src/components/ScrollView.vue
View file @
e846099
<
template
>
<
template
>
<div
:class=
"['scroll-view', ScrollViewclass]"
>
<div
:class=
"['scroll-view', ScrollViewclass]"
id=
"van-list"
>
<van-list
<van-list
v-model=
"loading"
:finished=
"finished"
finished-text=
"到底啦!!"
@
load=
"onLoad"
offset=
"100"
:immediate-check=
"false"
>
v-model=
"loading"
:finished=
"finished"
finished-text=
"到底啦!!"
@
load=
"onLoad"
offset=
"100"
:immediate-check=
"false"
>
<slot></slot>
<slot></slot>
</van-list>
</van-list>
</div>
</div>
...
@@ -16,19 +9,21 @@
...
@@ -16,19 +9,21 @@
<
script
type=
'text/ecmascript-6'
>
<
script
type=
'text/ecmascript-6'
>
export
default
{
export
default
{
name
:
'ScrollView'
,
name
:
'ScrollView'
,
data
()
{
data
()
{
return
{
return
{
loading
:
false
,
loading
:
false
,
finished
:
false
,
finished
:
false
}
}
},
},
props
:
[
'ScrollViewclass'
],
props
:
[
'ScrollViewclass'
],
mounted
()
{
mounted
()
{
},
},
methods
:
{
methods
:
{
onLoad
()
{
onLoad
()
{
this
.
$emit
(
'ReachBottom'
)
this
.
$emit
(
'ReachBottom'
)
}
,
}
}
}
}
}
</
script
>
</
script
>
...
@@ -38,7 +33,7 @@ export default {
...
@@ -38,7 +33,7 @@ export default {
overflow-y
:
scroll
;
overflow-y
:
scroll
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
.van-list
{
.van-list
{
background-color
:
#ffffff
;
background-color
:
#ffffff
;
}
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/customerDetails/index.vue
View file @
e846099
<
template
>
<
template
>
<div
class=
"container-wrap"
>
<div
class=
"container-wrap"
>
<tab
:list=
"list"
:sticky=
"sticky"
:index=
"tabIndex"
@
change=
"changeTabs"
></tab>
<tab
:list=
"list"
:sticky=
"sticky"
:index=
"tabIndex"
@
change=
"changeTabs"
></tab>
<!-- 添加 待通过 全部-->
<add
v-if=
"tabIndex == 0 || tabIndex == 1 || tabIndex == 3"
:tabIndex=
"tabIndex"
:data=
"customerList"
></add>
<!-- 已通过 -->
<!-- 已通过 -->
<tag
:isTitle=
"isTitle"
v-else-if=
"tabIndex == 2"
:data=
"customerList"
></tag>
<tag
:isTitle=
"isTitle"
v-if=
"tabIndex == 2"
id=
"tabId"
></tag>
<!-- 添加 待通过 全部-->
<add
v-else
:tabIndex=
"tabIndex"
id=
"tabId"
></add>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -19,7 +19,7 @@ export default {
...
@@ -19,7 +19,7 @@ export default {
isTitle
:
false
,
//是否显示search组件
isTitle
:
false
,
//是否显示search组件
tabIndex
:
0
,
tabIndex
:
0
,
status
:
0
,
status
:
0
,
customerList
:
[]
customerList
:
[]
}
}
},
},
...
@@ -27,27 +27,14 @@ export default {
...
@@ -27,27 +27,14 @@ export default {
add
,
add
,
tag
tag
},
},
created
()
{
created
()
{},
// this.init()
},
methods
:
{
methods
:
{
// 消息盒子-好友列表
// init() {
// let search = {
// taskId: this.taskId,
// status: this.status
// }
// groupCustomer.getCustomerList(search).then(res => {
// if (res.code == 0) {
// this.customerList = res.data
// } else {
// this.customerList = []
// }
// })
// },
changeTabs
(
e
)
{
changeTabs
(
e
)
{
let
tabTop
=
document
.
querySelector
(
'#tabId'
).
offsetTop
this
.
$nextTick
(()
=>
{
document
.
querySelector
(
'#van-list'
)
!=
null
?
document
.
querySelector
(
'#van-list'
).
scrollTop
=
tabTop
+
'px'
:
''
})
this
.
tabIndex
=
e
this
.
tabIndex
=
e
// this.init()
}
}
}
}
}
}
...
...
src/views/tag/index.vue
View file @
e846099
...
@@ -79,8 +79,8 @@ export default {
...
@@ -79,8 +79,8 @@ export default {
},
},
created
()
{
created
()
{
//获取userid
//获取userid
this
.
taskId
=
this
.
$route
.
query
.
taskId
?
this
.
$route
.
query
.
taskId
:
'e0e1a10cf50f427bb6d35906cf3dbf21'
;
this
.
taskId
=
this
.
$route
.
query
.
taskId
?
this
.
$route
.
query
.
taskId
:
'e0e1a10cf50f427bb6d35906cf3dbf21'
this
.
getuserInfo
()
this
.
getuserInfo
()
//初始化数据
//初始化数据
if
(
this
.
isTitle
)
{
if
(
this
.
isTitle
)
{
this
.
init
()
this
.
init
()
...
@@ -171,7 +171,7 @@ export default {
...
@@ -171,7 +171,7 @@ export default {
window
.
$wx
=
wxConfig
window
.
$wx
=
wxConfig
window
.
$wx
.
init
([
'openEnterpriseChat'
]).
then
(()
=>
{
window
.
$wx
.
init
([
'openEnterpriseChat'
]).
then
(()
=>
{
window
.
$wx
.
openEnterpriseChat
(
seach
).
then
(
res
=>
{
window
.
$wx
.
openEnterpriseChat
(
seach
).
then
(
res
=>
{
// console.log(res)
// console.log(res)
})
})
})
})
},
},
...
@@ -297,14 +297,14 @@ export default {
...
@@ -297,14 +297,14 @@ export default {
}
}
}
}
.buttomLine
{
.buttomLine
{
position
:
absolute
;
position
:
absolute
;
left
:
0
;
left
:
0
;
bottom
:
0
;
bottom
:
0
;
width
:
375px
!important
;
width
:
375px
!important
;
height
:
1px
;
height
:
1px
;
opacity
:
0.3
;
opacity
:
0.3
;
background-color
:
#c3c3c3
!important
;
background-color
:
#c3c3c3
!important
;
}
}
}
}
.container
/
deep
/
.van-checkbox__icon--checked
.van-icon
{
.container
/
deep
/
.van-checkbox__icon--checked
.van-icon
{
color
:
#fff
;
color
:
#fff
;
...
...
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