修改看板
parent
6c701a354b
commit
1e4bef9fdd
@ -1,84 +1,39 @@
|
||||
$(()=>{
|
||||
let arr1 = [
|
||||
{
|
||||
name:'大连天晟通用机械有限公司',
|
||||
img:'../../board/img/logo.png'
|
||||
},
|
||||
{
|
||||
name:'大连天晟通用机械有限公司',
|
||||
img:'../../board/img/logo.png'
|
||||
},
|
||||
{
|
||||
name:'大连天晟通用机械有限公司',
|
||||
img:'../../board/img/logo.png'
|
||||
},
|
||||
{
|
||||
name:'大连天晟通用机械有限公司',
|
||||
img:'../../board/img/logo.png'
|
||||
},
|
||||
{
|
||||
name:'大连天晟通用机械有限公司',
|
||||
img:'../../board/img/logo.png'
|
||||
},
|
||||
{
|
||||
name:'大连天晟通用机械有限公司',
|
||||
img:'../../board/img/logo.png'
|
||||
},
|
||||
{
|
||||
name:'大连天晟通用机械有限公司',
|
||||
img:'../../board/img/logo.png'
|
||||
},
|
||||
{
|
||||
name:'大连天晟通用机械有限公司',
|
||||
img:'../../board/img/logo.png'
|
||||
},
|
||||
{
|
||||
name:'大连天晟通用机械有限公司',
|
||||
img:'../../board/img/logo.png'
|
||||
},
|
||||
{
|
||||
name:'大连天晟通用机械有限公司',
|
||||
img:'../../board/img/logo.png'
|
||||
},
|
||||
]
|
||||
let arr2 = [
|
||||
{
|
||||
name:'积压脱水机',
|
||||
img:'../../board/img/equipment.png'
|
||||
},
|
||||
{
|
||||
name:'积压脱水机',
|
||||
img:'../../board/img/equipment.png'
|
||||
},
|
||||
{
|
||||
name:'积压脱水机',
|
||||
img:'../../board/img/equipment.png'
|
||||
},
|
||||
{
|
||||
name:'积压脱水机',
|
||||
img:'../../board/img/equipment.png'
|
||||
},
|
||||
{
|
||||
name:'积压脱水机',
|
||||
img:'../../board/img/equipment.png'
|
||||
},
|
||||
]
|
||||
arr1.forEach(e=>{
|
||||
let html = `
|
||||
$(() => {
|
||||
$.get(ctx + 'broad/home/queryCustomer', (e) => {
|
||||
$("#customerPresentation").empty()
|
||||
let data = e?.data?.map(val => {
|
||||
return {
|
||||
name: val.customerName,
|
||||
img: val.customerLogo
|
||||
}
|
||||
})
|
||||
data.forEach(e => {
|
||||
let html = `
|
||||
<div class="item">
|
||||
<img src="${e.img}" height="100%" style="vertical-align: top">
|
||||
<span>${e.name}</span>
|
||||
</div>
|
||||
`
|
||||
$("#customerPresentation").append(html)
|
||||
$("#customerPresentation").append(html)
|
||||
})
|
||||
})
|
||||
arr2.forEach((e,i)=>{
|
||||
let html = `
|
||||
<div class="item" style="left:calc(${43.76*i}vh + ${i*12}px)">
|
||||
$.get(ctx + 'broad/home/queryDevice', (e) => {
|
||||
$("#bottom").empty()
|
||||
let data = e?.data?.map(val => {
|
||||
return {
|
||||
name: val.deviceTypeName,
|
||||
img: val.deviceTypePath,
|
||||
url:val.deviceTypeUrl
|
||||
}
|
||||
})
|
||||
data.forEach((e, i) => {
|
||||
let html = `
|
||||
<div class="item" style="left:calc(${43.76 * i}vh + ${i * 12}px)" onclick="toLink('${e.url}')">
|
||||
<div class="title">${e.name}</div>
|
||||
<img src="${e.img}" width="100%" class="img">
|
||||
</div>
|
||||
`
|
||||
$("#bottom").append(html)
|
||||
$("#bottom").append(html)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue