Browse Source

管理界面

dgf 8 years ago
parent
commit
711d54d9a7

BIN
dist/img/map.png


File diff suppressed because it is too large
+ 0 - 1
dist/webManger12346/app-4b6e557352.js


File diff suppressed because it is too large
+ 1 - 0
dist/webManger12346/app-6c9471ec0b.js


File diff suppressed because it is too large
+ 1 - 1
dist/webManger12346/app-fd63a75081.css


+ 2 - 2
dist/webManger12346/index.html

@@ -9,7 +9,7 @@
     <link rel="stylesheet" href="../bower_components/bootstrap/dist/css/bootstrap.min.css">
     <!--<link rel="stylesheet" href="../bower_components/bootstrap-material-design/dist/bootstrap-material-design.css">-->
     <link rel="stylesheet" href="../bower_components/animate.css/animate.min.css">
-    <link rel="stylesheet" href="app-fd63a75081.css">
+    <link rel="stylesheet" href="app-bf1ddc11a0.css">
 
     <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
     <!--<script src="js/jquery.min.js"></script>-->
@@ -22,7 +22,7 @@
     <script src="../bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js"></script>
     <script src="../bower_components/angular-animate/angular-animate.min.js"></script>
 
-    <script src="app-4b6e557352.js"></script>
+    <script src="app-6c9471ec0b.js"></script>
 </head>
 
 <body ng-app="app">

+ 30 - 0
webManger12346/src/js/controller/webController.js

@@ -66,4 +66,34 @@ angular.module('app').controller('WebMangerController', ['$scope', '$filter', fu
         }
         $scope.animateFirst = false;
     };
+
+    $scope.imgPreview = function(fileDom) {
+        //判断是否支持FileReader
+        if (window.FileReader) {
+            var reader = new FileReader();
+        } else {
+            alert("您的设备不支持图片预览功能,如需该功能请升级您的设备!");
+        }
+
+        //获取文件
+        var file = fileDom.files[0];
+        var imageType = /^image\//;
+        //是否是图片
+        if (!imageType.test(file.type)) {
+            alert("请选择图片!");
+            return;
+        }
+        //读取完成
+        console.log(file);
+        reader.onload = function(e) {
+            // //获取图片dom
+            // var img = document.getElementById("preview");
+            // //图片路径设置为读取的图片
+            //img.src = e.target.result;
+            console.log("e.target.result");
+            $("#imgadd").append('<a href="#" class="thumbnail"><img src="' + e.target.result + '"></a>');
+        };
+        reader.readAsDataURL(file);
+    };
+
 }]);

+ 0 - 1
webManger12346/src/js/directive/webChat.js

@@ -24,7 +24,6 @@
             map = new AMap.Map('container', {
                 resizeEnable: true,
                 zoom: 18
-
             });
             map.plugin('AMap.Geolocation', function() {
                 geolocation = new AMap.Geolocation({

+ 35 - 4
webManger12346/src/less/app.main.less

@@ -414,6 +414,29 @@ body{
                             border-bottom: 1px solid #439BB2;
                         }
                     }
+                    .file {
+                        opacity: 0;
+                        filter: alpha(opacity=0);
+                        margin-right: 520px;
+                        width: 150px;
+                        height: 24px;
+                        margin-top: -24px;
+                        cursor: pointer;
+                    }
+                    >button {
+                        float: right;
+                        margin-right: 520px;
+                        width: 150px;
+                        height: 24px;
+                        padding: 2px 4px;
+                        border-radius: 0px;
+                        background-color: #aaa;
+                        border: 1px solid #aaa;
+                        .glyphicon-open {
+                            color: #eee;
+                            font-size: 14px;
+                        }
+                    }
                 }
                 .text-message {
                     float: right;
@@ -432,13 +455,14 @@ body{
                         border-bottom: 1px solid #439BB2;
                     }
                 }
-                #imgpreview {
+                .imgpreview {
                     white-space: normal;
+                    margin: 5px -10px 0px 5px;
                     .thumbnail {
                         display: inline-block;
-                        max-width: 180px;
+                        max-width: 145px;
                         margin-bottom: 0px;
-                    } 
+                    }
                 }
                 .text-map {
 
@@ -471,6 +495,13 @@ body{
                 }
             }
         }
+        .viewModal .modal-dialog {
+            top: 50px;
+            background-color: transparent;
+            .modal-body {
+                
+            }
+        }
         .okModal .modal-dialog {
             top: 250px;
             width: 200px;
@@ -565,7 +596,7 @@ body{
     }
 }
 
-#container {
+.container {
     height: 180px;
 }
 

File diff suppressed because it is too large
+ 18 - 5
webManger12346/src/templates/mangerWeb.html