Commit 3d0f7491 authored by gengchunlei's avatar gengchunlei

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

parent 1aa21d32
......@@ -66,7 +66,7 @@ export default {
if (!token) {
token = sessionStorage.getItem('token')
if (process.env.NODE_ENV !== 'production') {
token = 'ca3a2820-1553-4131-b04f-61d9312205b3'
token = 'd992e56c-4bc6-48dc-aff8-eb827c122526'
}
}
if (token) {
......
......@@ -7,9 +7,9 @@
</span>
<span>报卡随访详情</span>
</div>
<div class='p-3 grow cont-box'>
<div class='p-3 h-full cont-inner'>
<van-collapse :model-value='activeCollapse' ref='collapse' class='doc-collapse'>
<div class='grow cont-box all-content'>
<div class='pl-3 pr-3 pb-3 h-full cont-inner list-content'>
<van-collapse :model-value='activeCollapse' ref='collapse' class='doc-collapse' @change='collapseChange'>
<van-collapse-item key='1' title='报卡随访详情' name='1'>
<template #right-icon>
<doc-icon type='doc-down' />
......@@ -95,6 +95,19 @@ export default {
}).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() {
this.$router.back()
}
......@@ -104,4 +117,12 @@ export default {
<style scoped lang='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>
\ 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