Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
frontend-h5
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songrui
frontend-h5
Commits
09a9ae13
Commit
09a9ae13
authored
Oct 30, 2024
by
songrui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
咨询列表修改
parent
ec26d6dc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
Index.vue
src/residentWX/nim/Index.vue
+14
-7
No files found.
src/residentWX/nim/Index.vue
View file @
09a9ae13
...
@@ -7,9 +7,6 @@
...
@@ -7,9 +7,6 @@
<div
style=
"color: #8C8C8C;"
class=
"py-2 px-3"
>
以下为您提供慢病筛查的专家,可向其进行慢病咨询
</div>
<div
style=
"color: #8C8C8C;"
class=
"py-2 px-3"
>
以下为您提供慢病筛查的专家,可向其进行慢病咨询
</div>
<div
class=
"grow flex"
>
<div
class=
"grow flex"
>
<div
class=
"h-full list-l"
>
<div
class=
"h-full list-l"
>
<div
class=
"p-3 active"
>
咨询过的专家
</div>
<div
v-for=
"item in orgList"
:key=
"item.unitId"
<div
v-for=
"item in orgList"
:key=
"item.unitId"
:class=
"['p-3',
{ 'active': item.unitId === activeOrg.unitId }]"
:class=
"['p-3',
{ 'active': item.unitId === activeOrg.unitId }]"
@click="onOrgChange(item)">
@click="onOrgChange(item)">
...
@@ -28,6 +25,10 @@
...
@@ -28,6 +25,10 @@
@
click=
"toSession(item)"
>
咨询医生
</van-button>
@
click=
"toSession(item)"
>
咨询医生
</van-button>
</div>
</div>
</div>
</div>
<div
class=
'text-center shrink-0 empty'
v-if=
'!innerDoctorList.length'
>
<img
src=
'@/assets/image/doctor/empty.png'
alt=
''
style=
'width: 1.2rem;'
>
<p>
暂无数据
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -45,6 +46,8 @@ export default {
...
@@ -45,6 +46,8 @@ export default {
store
:
useStore
(),
store
:
useStore
(),
orgList
:
[],
orgList
:
[],
doctorList
:
[],
doctorList
:
[],
// 沟通过的医生列表
recordList
:
[],
activeOrg
:
{}
activeOrg
:
{}
}
}
},
},
...
@@ -53,6 +56,9 @@ export default {
...
@@ -53,6 +56,9 @@ export default {
return
this
.
store
.
userInfo
return
this
.
store
.
userInfo
},
},
innerDoctorList
()
{
innerDoctorList
()
{
if
(
this
.
activeOrg
.
unitId
===
'record'
)
{
return
this
.
recordList
}
return
this
.
doctorList
.
filter
(
e
=>
e
.
unitId
===
this
.
activeOrg
.
unitId
)
return
this
.
doctorList
.
filter
(
e
=>
e
.
unitId
===
this
.
activeOrg
.
unitId
)
}
}
},
},
...
@@ -76,10 +82,11 @@ export default {
...
@@ -76,10 +82,11 @@ export default {
unitName
:
e
.
unitName
unitName
:
e
.
unitName
})
})
})
})
this
.
orgList
=
orgList
this
.
orgList
=
[{
if
(
orgList
.
length
)
{
unitId
:
'record'
,
this
.
activeOrg
=
orgList
[
0
]
unitName
:
'咨询过的专家'
}
}].
concat
(
orgList
)
this
.
activeOrg
=
this
.
orgList
[
0
]
})
})
},
},
onOrgChange
(
item
)
{
onOrgChange
(
item
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment