瀏覽代碼

ie8样式调整

Luolei 6 年之前
父節點
當前提交
6a67cfb270
共有 5 個文件被更改,包括 25 次插入16 次删除
  1. 6 2
      src/css/popup.css
  2. 6 2
      src/css/popup.less
  3. 8 6
      src/js/disclaimer.js
  4. 4 4
      src/js/promise.js
  5. 1 2
      webpack.config.js

+ 6 - 2
src/css/popup.css

@@ -81,13 +81,17 @@
   margin: 10px 0;
   position: relative;
   padding-left: 98px;
-  padding-right: 60px;
+  padding-right: 65px;
   float: none;
 }
 .popupModal .modalMainTwo .radioCheck .uint {
   position: absolute;
   right: -10px;
   top: 0;
+  min-width: 45px;
+  text-align: left;
+  line-height: 30px;
+  height: 30px;
 }
 .popupModal .modalMainTwo .radioCheck .caculateLis li {
   float: left;
@@ -107,7 +111,7 @@
   border: 1px solid #E2E3E3;
   border-radius: 2px;
   height: 30px;
-  line-height: 30x;
+  line-height: 30px;
   padding: 0 10px;
   width: 100%;
 }

+ 6 - 2
src/css/popup.less

@@ -83,12 +83,16 @@
       margin: 10px 0;
       position: relative;
       padding-left: 98px;
-      padding-right: 60px; 
+      padding-right: 65px; 
       float: none;
       .uint {
         position: absolute;
         right: -10px;
         top: 0;
+        min-width: 45px;
+        text-align: left;
+        line-height: 30px;
+        height: 30px;
       }
       .caculateLis {
         li {
@@ -110,7 +114,7 @@
         border: 1px solid #E2E3E3;
         border-radius: 2px;
         height: 30px;
-        line-height: 30x;
+        line-height: 30px;
         padding: 0 10px;
         width: 100%;
       }

+ 8 - 6
src/js/disclaimer.js

@@ -1,11 +1,13 @@
 const {post, config} = require('./promise.js');
 const $ = require("jquery");
 
-getDisclaimer();
-function getDisclaimer() {
+$(function(){
+  function getDisclaimer() {
     post(config.disclaimer, '').then((res) => {
-        const data = res.data.data;
-        $("h1").html(data[2].title);
-        $(".content").html(data[2].description);
+      const data = res.data.data;
+      $("h1").html(data[2].title);
+      $(".content").html(data[2].description);
     })
-}
+  }
+  getDisclaimer();
+})

+ 4 - 4
src/js/promise.js

@@ -3,10 +3,10 @@ const $ = require("jquery");
 var Promise = require('./rePromise');
 
 const config = {
-  pushInner:'/api/icss/push/pushInner',
-  calculate:'/api/icss/calc/calculate',
-  disclaimer: '/api/icss/disclaimerInformation/getDisclaimerInformations',
-  information: '/api/icss/introduceInfo/getByQuestionId'
+  pushInner:'http://192.168.2.241:5050/api/icss/push/pushInner',
+  calculate:'http://192.168.2.241:5050/api/icss/calc/calculate',
+  disclaimer: 'http://192.168.2.241:5050/api/icss/disclaimerInformation/getDisclaimerInformations',
+  information: 'http://192.168.2.241:5050/api/icss/introduceInfo/getByQuestionId'
 }
 const imageUrlPrefix = 'http://192.168.2.241:82';
 const getUrlArgObject = function(parm) {  

+ 1 - 2
webpack.config.js

@@ -23,8 +23,7 @@ module.exports = {
     extensions: [".js", ".css", ".json"],
     alias: {} //配置别名可以加快webpack查找模块的速度
   },
-  plugins: [
-    // 多入口的html文件用chunks这个参数来区分
+  plugins: [// 多入口的html文件用chunks这个参数来区分
     new HtmlWebpackPlugin({
       title: 'index',
       template: path.resolve(__dirname, 'src/html', 'index.html'),