Merge branch 'master' into dev

This commit is contained in:
13405411873 2024-10-28 11:12:17 +08:00
commit 80d1f79563
2 changed files with 11 additions and 9 deletions

View File

@ -116,11 +116,16 @@ function dealMenuText(num,data,list){
break;
}
}
for (const item of list) {
if ( parData.parentId == 0){
parData = item
level++
break;
if(parData.parentId!=0){
for (const item of list) {
if (parData.parentId == item.id){
if (item.parentId==0){
level++
}else {
level = level+2
}
break;
}
}
}
if (level==2){

View File

@ -5,10 +5,7 @@
<div class="top-list">
<div class="list-box" v-for="(item, index) in serviceList.slice(0, 4)" :key="item.id" :span="4">
<div @click="goRoute(item.id)">
<img :src="index === 0 ? 'https://th.bing.com/th/id/OIP.Y9YEwiwLwTdvQDkLlA3JbQHaE8?w=251&h=180&c=7&r=0&o=5&dpr=1.5&pid=1.7' :
index === 1 ? 'https://th.bing.com/th/id/OIP.a8bAOOXWZ_G0POGjCXPYbgHaFj?w=206&h=180&c=7&r=0&o=5&dpr=1.5&pid=1.7' :
index === 2 ? 'https://th.bing.com/th/id/OIP.9vxxtCP1lmu43fYus2SZ5gHaE7?w=284&h=189&c=7&r=0&o=5&dpr=1.5&pid=1.7' :
'https://th.bing.com/th/id/OIP.MwxN9-_jrMRNiVLJ9Q7WRQHaE8?w=265&h=180&c=7&r=0&o=5&dpr=1.5&pid=1.7'"
<img :src="imgUrl + item.coverImg"
style="width: 300px; height: 300px;">
<div style="font-weight: bold;text-align: center;font-size: 28px">{{ item.name }}</div>
</div>