Commit 3d0f7491 authored by gengchunlei's avatar gengchunlei

医生端小程序 v1.2 1、报卡详情

parent 1aa21d32
...@@ -66,7 +66,7 @@ export default { ...@@ -66,7 +66,7 @@ export default {
if (!token) { if (!token) {
token = sessionStorage.getItem('token') token = sessionStorage.getItem('token')
if (process.env.NODE_ENV !== 'production') { if (process.env.NODE_ENV !== 'production') {
token = 'ca3a2820-1553-4131-b04f-61d9312205b3' token = 'd992e56c-4bc6-48dc-aff8-eb827c122526'
} }
} }
if (token) { if (token) {
......
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
</span> </span>
<span>报卡随访详情</span> <span>报卡随访详情</span>
</div> </div>
<div class='p-3 grow cont-box'> <div class='grow cont-box all-content'>
<div class='p-3 h-full cont-inner'> <div class='pl-3 pr-3 pb-3 h-full cont-inner list-content'>
<van-collapse :model-value='activeCollapse' ref='collapse' class='doc-collapse'> <van-collapse :model-value='activeCollapse' ref='collapse' class='doc-collapse' @change='collapseChange'>
<van-collapse-item key='1' title='报卡随访详情' name='1'> <van-collapse-item key='1' title='报卡随访详情' name='1'>
<template #right-icon> <template #right-icon>
<doc-icon type='doc-down' /> <doc-icon type='doc-down' />
...@@ -95,6 +95,19 @@ export default { ...@@ -95,6 +95,19 @@ export default {
}).finally(() => { }).finally(() => {
}) })
}, },
// 折叠面板切换
collapseChange(val) {
if (val && val.length <= 2) {
this.activeCollapse = val.slice(val.length - 1)
} else {
if (this.activeCollapse.length > val.length) {
this.activeCollapse = val
}
if (this.activeCollapse.length < val.length) {
this.activeCollapse = val.slice(val.length - 1)
}
}
},
onBack() { onBack() {
this.$router.back() this.$router.back()
} }
...@@ -104,4 +117,12 @@ export default { ...@@ -104,4 +117,12 @@ export default {
<style scoped lang='less'> <style scoped lang='less'>
@import url('../../../utils/common.less'); @import url('../../../utils/common.less');
.all-content {
padding: 0px 8px 10px 8px;
background: #F5F5F5;
.list-content {
border-radius: 8px 8px 0px 0px;
background: #FFFFFF;
}
}
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment