浏览代码

修改页面

MS-FUUVYHVOEAYJ\Administrator 10 月之前
父节点
当前提交
cbc3d846d2

+ 1 - 1
RuoYi-Vue-v3.8.7/ruoyi-admin/src/main/resources/static/page/goods/goods.html

@@ -521,7 +521,7 @@
 					}
 				} else {
 					this.style.transform = 'rotate(180deg)';
-					document.getElementById("conSs").classList.add('mui-hidden'); s
+					document.getElementById("conSs").classList.add('mui-hidden');
 					switch (height) {
 						case 'calc(-612px + 100vh)':
 							document.getElementById("pullrefresh").style.top = 'calc(-662px + 100vh)';

+ 16 - 3
RuoYi-Vue-v3.8.7/ruoyi-admin/src/main/resources/static/page/goods/map.html

@@ -1,22 +1,31 @@
 <!DOCTYPE html>
 <html lang="en">
+
 <head>
     <meta charset="UTF-8">
     <meta name="viewport" content="initial-scale=1.0, user-scalable=no">
     <title>Title</title>
+	<link rel="stylesheet" href="css/mui.min.css">
     <style type="text/css">
         body {
             margin: 0;
             padding: 0;
         }
+
         #container {
             width: 100vw;
             height: 100vh;
         }
     </style>
 </head>
+
 <body>
-<div id="container"></div>
+    <header id="header" class="mui-bar mui-bar-nav" style="display: flex;">
+        <a id="go-back" class="mui-icon mui-icon-back" href="total.html" style="display: none;">
+        </a>
+        <h1 id="title" class="mui-title"></h1>
+    </header>
+    <div id="container"></div>
 </body>
 <script type="text/javascript">
     window._AMapSecurityConfig = {
@@ -24,7 +33,8 @@
     }
 </script>
 <script type="text/javascript"
-        src="https://webapi.amap.com/maps?v=1.4.15&key=c5bace07d7a56132f4509411619a3162"></script>
+    src="https://webapi.amap.com/maps?v=1.4.15&key=c5bace07d7a56132f4509411619a3162"></script>
+<script src="js/jquery.min.js"></script>
 <script type="text/javascript">
     function markLocation(mapId, address) {
         AMap.plugin('AMap.Geocoder', function () {
@@ -52,12 +62,15 @@
         });
     }
 
-    window.onload = function() {
+    window.onload = function () {
         let addr = sessionStorage.getItem("map_addr");
         if (addr.indexOf('重庆市') < 0) {
             addr = '重庆市' + addr;
         }
         markLocation('container', addr);
+        $(document).attr("title", addr);
+        $('#title').text(addr)
     }
 </script>
+
 </html>

+ 16 - 5
RuoYi-Vue-v3.8.7/ruoyi-admin/src/main/resources/static/page/goods/total.html

@@ -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')