|
@@ -105,6 +105,7 @@
|
|
|
},
|
|
|
success: function (json) {
|
|
|
$('#kfList').empty();
|
|
|
+ var imgList = ["kufang1.png","kufang2.png","kufang3.png","kufang4.png","kufang5.png"];
|
|
|
if (json.data && json.data.length) {
|
|
|
let html = ''
|
|
|
for (let i = 0; i < json.data.length; i++) {
|
|
@@ -114,9 +115,20 @@
|
|
|
<div class="mui-ellipsis" data-id="${json.data[i].DepartMentDto.companyId}" data-departmentId="${json.data[i].DepartMentDto.departmentId}" data-name="${json.data[i].DepartMentDto.name}"
|
|
|
data-kgyIds="${json.data[i].kgyIds}"><img src="images/logo.png"></img>${json.data[i].DepartMentDto.name ? json.data[i].DepartMentDto.name : ""}</div>
|
|
|
<div style="padding:10px;">
|
|
|
- <div class="list" id="list">
|
|
|
- <img src="images/kufang1.png" style="width:140px;border-radius: 10px;"></img>
|
|
|
- <div style="color:#333;display: flex;flex-direction: column;justify-content: flex-start;margin-left:10px;">`
|
|
|
+ <div class="list" id="list">`
|
|
|
+ if((i+1)%2==0){
|
|
|
+ html += `<img src="images/kufang2.png" style="width:140px;border-radius: 10px;width:calc(100% - 195px);height:135px;"></img>`
|
|
|
+ }else if((i+1)%3==0){
|
|
|
+ html += `<img src="images/kufang3.png" style="width:140px;border-radius: 10px;width:calc(100% - 195px);height:135px;"></img>`
|
|
|
+ }else if((i+1)%4==0){
|
|
|
+ html += `<img src="images/kufang4.png" style="width:140px;border-radius: 10px;width:calc(100% - 195px);height:135px;"></img>`
|
|
|
+ }else if((i+1)%5==0){
|
|
|
+ html += `<img src="images/kufang5.png" style="width:140px;border-radius: 10px;width:calc(100% - 195px);height:135px;"></img>`
|
|
|
+ }else{
|
|
|
+ html += `<img src="images/kufang1.png" style="width:140px;border-radius: 10px;width:calc(100% - 195px);height:135px;"></img>`
|
|
|
+ }
|
|
|
+
|
|
|
+ html += `<div style="color:#333;display: flex;flex-direction: column;justify-content: flex-start;margin-left:10px;min-width: 195px;">`
|
|
|
var data = json.data[i].kgyNames;
|
|
|
for (var j = 0; j < data.length; j++) {
|
|
|
var tephone = json.data[i].phones[j];
|
|
@@ -147,7 +159,6 @@
|
|
|
link.click();
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
$(".btn-map").on("click", function(e) {
|
|
|
sessionStorage.removeItem("map_addr")
|
|
|
let addr = $(this).attr("data-addr");
|
|
@@ -163,7 +174,7 @@
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
- mui("#kfList").on('click', '.mui-ellipsis', function (e) {
|
|
|
+ mui("#kfList").on('click', '.mui-table-view-cell', function (e) {
|
|
|
document.getElementById('searchInput').value = "";
|
|
|
getDatalist();
|
|
|
const dutyId = this.getAttribute('data-kgyIds')
|