Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-06-17 17:47:50 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
589264c9d7a316ad53c942ff7e893ebf82cfbd15
589264c9
1 parent
35d33731
✨ feat(B端首页): 多幼儿园标题样式适配
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
src/views/business/index.vue
src/views/business/index.vue
View file @
589264c
...
...
@@ -8,7 +8,14 @@
style="vertical-align: text-bottom;" />
</van-col>
<van-col span="22">
<p class="title">{{ kgInfo.name }}</p>
<div v-if="kgInfo.multi_name" class="title">
<!-- 名字中间带空格,需要分割成两个名字 -->
<p>{{ kgInfo.multi_name[0] }}</p>
<p>{{ kgInfo.multi_name[1] }}</p>
</div>
<div v-else class="title">
<p>{{ kgInfo.name }}</p>
</div>
</van-col>
</van-row>
</div>
...
...
@@ -93,6 +100,10 @@ onMounted(async () => {
kgInfo.value.book.forEach(item => {
item.show = true;
});
// 有空格分割name
if (kgInfo.value.name.indexOf(' ') > -1) {
kgInfo.value.multi_name = kgInfo.value.name.split(' ');
}
if (!data.book.length) {
emptyStatus.value = true;
} else {
...
...
Please
register
or
login
to post a comment