首页业务处理

This commit is contained in:
13405411873 2024-10-28 11:07:01 +08:00
parent 56e545edf5
commit b5bf65d96d
2 changed files with 11 additions and 9 deletions

View File

@ -116,13 +116,18 @@ function dealMenuText(num,data,list){
break; break;
} }
} }
if(parData.parentId!=0){
for (const item of list) { for (const item of list) {
if ( parData.parentId == 0){ if (parData.parentId == item.id){
parData = item if (item.parentId==0){
level++ level++
}else {
level = level+2
}
break; break;
} }
} }
}
if (level==2){ if (level==2){
let tempData2 =['(一)','(二)','(三)','(四)','(五)','(六)','(七)','(八)','(九)','(十)' let tempData2 =['(一)','(二)','(三)','(四)','(五)','(六)','(七)','(八)','(九)','(十)'
,'(十一)','(十二)','(十三)','(十四)','(十五)','(十六)','(十七)','(十八)','(十九)','(二十)','(二十一)','(二十二)','(二十三)'] ,'(十一)','(十二)','(十三)','(十四)','(十五)','(十六)','(十七)','(十八)','(十九)','(二十)','(二十一)','(二十二)','(二十三)']

View File

@ -3,10 +3,7 @@
<div class="top-list"> <div class="top-list">
<div class="list-box" v-for="(item, index) in serviceList.slice(0, 4)" :key="item.id" :span="4"> <div class="list-box" v-for="(item, index) in serviceList.slice(0, 4)" :key="item.id" :span="4">
<div @click="goRoute(item.id)"> <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' : <img :src="imgUrl + item.coverImg"
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'"
style="width: 300px; height: 300px;"> style="width: 300px; height: 300px;">
<div style="font-weight: bold;text-align: center;font-size: 28px">{{ item.name }}</div> <div style="font-weight: bold;text-align: center;font-size: 28px">{{ item.name }}</div>
</div> </div>