Browse Source

修复显示bug

louyu 7 years ago
parent
commit
6a05667759

+ 8 - 8
config/index.js

@@ -72,13 +72,13 @@ module.exports = {
     // `npm run build --report`
     // Set to `true` or `false` to always turn it on or off
     bundleAnalyzerReport: process.env.npm_config_report
-  }
-  // module: {
-  //       loaders: [{ test:   /\.css$/,
-  //               loader: "style-loader!css-loader!postcss-loader"}]
-  //   },
-  // postcss: function () {
-  //       return [autoprefixer];
-  //   }
+  },
+  module: {
+        loaders: [{ test:   /\.css$/,
+                loader: "style-loader!css-loader!postcss-loader"}]
+    },
+  postcss: function () {
+        return [autoprefixer];
+    }
 
 }

+ 1 - 1
index.html

@@ -5,7 +5,7 @@
     <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=0,maximum-scale=1.0">
     <title>合同</title>
       <link rel="stylesheet" href="//at.alicdn.com/t/font_587947_4e7wxdmocu3anhfr.css">
-    <script src="http://192.168.20.5:8081/target/target-script-min.js#anonymous"></script>
+    <!--<script src="http://192.168.20.5:8081/target/target-script-min.js#anonymous"></script>-->
     <script src="http://g.tbcdn.cn/mtb/lib-flexible/0.3.4/??flexible_css.js,flexible.js"></script>
   </head>
   <body>

+ 3 - 3
src/assets/css/my/rewrite.css

@@ -9,10 +9,10 @@
   border: 0;
 }
 .button-img-rewrite{
-  width: 2.4rem !important;
-  height: 2.8rem !important;
+  width: 3rem !important;
+  height: 3rem !important;
   /*border:1px solid #090;*/
-  padding-top: 0.6rem;
+  padding-top: 0rem !important;
   /*padding: 0.6rem auto 0;*/
   /*margin: 0 auto;*/
 }

+ 2 - 3
src/components/contactBlock.vue

@@ -20,11 +20,10 @@
 
 <style scoped>
   .contact-container{
-    width: 100%;
+    width: 9.2rem;
     height: 1.7rem;
     background-color: white;
-    box-shadow: 0rem 0rem 0.3rem 0.1rem
-    rgba(96, 192, 255, 0.35);
+    box-shadow: 5px 5px 3px 1px rgba(96, 192, 255, 0.35);
     border-radius: 0.1rem;
     margin-top: 0.4rem;
 

+ 1 - 5
src/views/addContact.vue

@@ -40,11 +40,7 @@
 </script>
 
 <style scoped>
-  .title{
-    color:white;
-    font-size: 0.5rem;
-    margin-top: 0.6rem;
-  }
+
   .main .input-container{
     background-color: white;
     border: 1px  white solid;

+ 3 - 2
src/views/contact.vue

@@ -75,7 +75,7 @@
 <style scoped>
   .inner-container{
     /*position: relative;*/
-    margin: 0 0.4rem;
+
   }
 
   .add-contact{
@@ -93,7 +93,8 @@
 
   }
   .contact-list{
-    margin-top: 2.2rem;
+    margin: 2.2rem  0  0 0.4rem;
+    /*margin-top: 2.2rem;*/
     padding-bottom: 5px;
   }
 </style>

+ 4 - 1
src/views/contract.vue

@@ -69,7 +69,7 @@
     display: inline-block;
     background: url('../../static/contract/search.png') 0 0 no-repeat ;
     background-size: cover;
-    top: 0.18rem;
+    top: 0.2rem;
     left: 0.4rem;
     width: 0.625rem;
     height: 0.625rem;
@@ -85,6 +85,9 @@
     color: #fff;
 
   }
+  .search-input::placeholder{
+    color: white;
+  }
  .navbar{
    margin: 0.4rem 0.4rem 0;
  }

+ 3 - 3
src/views/drawSign.vue

@@ -167,13 +167,13 @@
       beginPath (e) {
         const canvas = document.querySelector('#canvas')
         if (e.target !== canvas) {
-          console.log('beginPath')
+          // console.log('beginPath')
           this.context.beginPath()
         }
       },
       // mouseup
       canvasUp (e) {
-        console.log('canvasUp')
+        // console.log('canvasUp')
         const preData = this.context.getImageData(0, 0, 600, 400)
         if (!this.nextDrawAry.length) {
           // 当前绘图表面进栈
@@ -188,7 +188,7 @@
       },
       // mousedown
       canvasDown (e) {
-        console.log('canvasDown')
+        // console.log('canvasDown')
         this.canvasMoveUse = true
         // client是基于整个页面的坐标
         // offset是cavas距离顶部以及左边的距离

+ 4 - 3
src/views/my.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="main">
       <div class="user-info">
-            <img class="profile" :src="user.userImg||require('../../static/contact/myavt.png')">
+          <img class="profile" :src="user.userImg||require('../../static/contact/myavt.png')">
         <div class="user-info-container">
           <div class="user-info-inner-container">
             <p class="username">{{user.username}}</p>
@@ -95,10 +95,11 @@
     height: 100%;
     display: flex;
     flex-direction: column;
-    padding: 1px 0.4rem;
+    padding: 0.5rem 0.4rem;
     justify-content: space-around;
   }
   .user-info{
+    position: relative;
     /*margin-top: 1rem;*/
   }
   .profile{
@@ -108,7 +109,7 @@
     height: 1.9rem;
     border-radius: 1.9rem;
     border: 2px white solid;
-    top:0.5rem;
+    top:0rem;
     left: 50%;
     transform: translateX(-50%);
   }