Browse Source

修改价格打印居中问题

mxx 3 years ago
parent
commit
cc7fc2d62f
2 changed files with 20 additions and 7 deletions
  1. 18 5
      public/static/print.html
  2. 2 2
      src/components/mapdrag/mapdrag.vue

+ 18 - 5
public/static/print.html

@@ -22,6 +22,9 @@
       border-right: 1px solid #EBEEF5; */
       border-right: 1px solid #EBEEF5; */
       /* padding: 20px; */
       /* padding: 20px; */
       box-sizing: border-box;
       box-sizing: border-box;
+      display: flex;
+      justify-content: center;
+      align-items: center;
     }
     }
 
 
     .name {
     .name {
@@ -32,14 +35,14 @@
     }
     }
 
 
     .price {
     .price {
-      position: absolute;
+      /* position: absolute;
       right: 10px;
       right: 10px;
       bottom: 0;
       bottom: 0;
       margin: auto;
       margin: auto;
       font-size: 14px;
       font-size: 14px;
       top: 0;
       top: 0;
       display: flex;
       display: flex;
-    align-items: center;
+    align-items: center; */
     }
     }
     .tableBox {
     .tableBox {
       width: 80px;
       width: 80px;
@@ -66,6 +69,7 @@
     .tableBox .cell {
     .tableBox .cell {
       text-align: center;
       text-align: center;
       padding: 0!important;
       padding: 0!important;
+      line-height: 22px;
       /* margin:0 2px!important; */
       /* margin:0 2px!important; */
     }
     }
     .table-row{
     .table-row{
@@ -96,24 +100,33 @@
     height: 0px;
     height: 0px;
 }
 }
 .content0{
 .content0{
-  margin-bottom: 30vh;
+  /* margin-bottom: 30vh; */
   /* padding-top: 5vh; */
   /* padding-top: 5vh; */
+  background-color: powderblue;
 }
 }
 .content1{
 .content1{
-  margin-bottom: 30vh;
+  /* margin-bottom: 20vh; */
   /* padding-top: 5vh; */
   /* padding-top: 5vh; */
-
+  margin-top: 15vh;
+background: palegreen;
 }
 }
 .content2{
 .content2{
   /* padding-top: 5vh; */
   /* padding-top: 5vh; */
   /* margin-bottom: 30vh; */
   /* margin-bottom: 30vh; */
+  margin-top: 15vh;
+  background: yellow;
 }
 }
 .content3{
 .content3{
   /* padding-top: 10px; */
   /* padding-top: 10px; */
+  margin-top: 15vh;
+  background-color: red;
 }
 }
 .has-gutter th:nth-of-type(1){
 .has-gutter th:nth-of-type(1){
   width: 40%;
   width: 40%;
 }
 }
+.has-gutter th:nth-of-type(2){
+  width: 60%;
+}
 .tableBox7 tr{
 .tableBox7 tr{
 border-right: 1px solid #ccc!important;
 border-right: 1px solid #ccc!important;
 }
 }

+ 2 - 2
src/components/mapdrag/mapdrag.vue

@@ -236,7 +236,7 @@ export default {
           var geocoder = new AMap.Geocoder({
           var geocoder = new AMap.Geocoder({
             radius: 1000,
             radius: 1000,
           })
           })
-          that.map.on('moveend', function(e){debugger
+          that.map.on('moveend', function(e){
              that.center = that.map.getCenter(); //获取当前地图中心位置
              that.center = that.map.getCenter(); //获取当前地图中心位置
              that.center.lat =Number(that.center.lat.toFixed(3))
              that.center.lat =Number(that.center.lat.toFixed(3))
              that.center.lng =Number(that.center.lng.toFixed(3))
              that.center.lng =Number(that.center.lng.toFixed(3))
@@ -342,7 +342,7 @@ export default {
     this.loadmap()
     this.loadmap()
   },
   },
   methods: {
   methods: {
-    positions() {debugger
+    positions() {
       this.status = false
       this.status = false
       var status = {
       var status = {
         zoomEnable: false,
         zoomEnable: false,