首页业务处理
This commit is contained in:
parent
56e545edf5
commit
b5bf65d96d
@ -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){
|
||||
|
@ -3,10 +3,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>
|
||||
|
Loading…
Reference in New Issue
Block a user