Merge remote-tracking branch 'origin/master'

master
wangh 1 year ago
commit dd1bc029d9

@ -1,4 +1,21 @@
$(() => {
let itemNum = 0
setInterval(function () {
let width = $('#bottom .item:eq(0)').outerWidth() + 12
if (width * (itemNum - 1) > $('#bottom').width()) {
$('#bottom').animate({
scrollLeft: width
}, 2000, () => {
$('#bottom').scrollLeft(0)
$('#bottom .item:eq(0)').slideToggle(0, function () {
$('#bottom').append($(this).clone().css({display: 'block'}));
$(this).remove();
});
});
}
}, 2000);
$.get(ctx + 'broad/home/queryCustomer', (e) => {
$("#customerPresentation").empty()
let data = e?.data?.map(val => {
@ -24,9 +41,10 @@ $(() => {
name: val.deviceTypeName,
img: val.deviceTypePath,
// img: '../../board/img/equipment.png',
url:val.deviceTypeUrl
url: val.deviceTypeUrl
}
})
});
itemNum = data.length;
data.forEach((e, i) => {
let html = `
<div class="item" style="left:calc(${43.76 * i}vh + ${i * 12}px)" onclick="toLink('${e.url}')">

Loading…
Cancel
Save