Kaynağa Gözat

微信界面

dgf 8 yıl önce
ebeveyn
işleme
973e36a87a

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
dist/web12345-new/app-8a7c769e0b.css


Dosya farkı çok büyük olduğundan ihmal edildi
+ 26 - 22
dist/web12345-new/app-2d1a369f1a.js


+ 2 - 2
dist/web12345-new/index.html

@@ -9,7 +9,7 @@
     <link rel="stylesheet" href="../bower_components/bootstrap/dist/css/bootstrap.min.css">
     <link rel="stylesheet" href="../bower_components/animate.css/animate.min.css">
     <link rel="stylesheet" href="../bower_components/swiper/dist/css/swiper.min.css">
-    <link rel="stylesheet" href="app-8a7c769e0b.css">
+    <link rel="stylesheet" href="app-9d3dbd7ff2.css">
 
     <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
     <!--<script src="js/jquery.min.js"></script>-->
@@ -24,7 +24,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-2d1a369f1a.js"></script>
+    <script src="app-e7936fe227.js"></script>
 </head>
 
 <body ng-app="app">

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 1
dist/web12345-pageView/app-0c0ad216b2.css


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 0
dist/web12345-pageView/app-e9403b1fe7.css


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
dist/web12345-pageView/app-4542855f77.js


+ 2 - 2
dist/web12345-pageView/index.html

@@ -8,7 +8,7 @@
     <!-- 新 Bootstrap 核心 CSS 文件 -->
     <link rel="stylesheet" href="../bower_components/bootstrap/dist/css/bootstrap.min.css">
     <link rel="stylesheet" href="../bower_components/animate.css/animate.min.css">
-    <link rel="stylesheet" href="app-0c0ad216b2.css">
+    <link rel="stylesheet" href="app-e9403b1fe7.css">
 
     <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
     <script src="http://webapi.amap.com/maps?v=1.3&key=d7455920303550a45cb4e1a27bdbfc86"></script>
@@ -20,7 +20,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-4542855f77.js"></script>
+    <script src="app-f22b6ec9e6.js"></script>
 </head>
 
 <body ng-app="app">

+ 25 - 21
web12345-new/src/js/controller/webController.js

@@ -3,13 +3,23 @@
 angular.module('app').controller('WebController', ['$scope', '$timeout', 'userService', 'messageService', function($scope, $timeout, userService, messageService) {
     //lxtalkClient.Invoke('{FB60F992-A0FD-47B3-AAA7-E80DF209C5A4}', '_Register', '', $scope);
     $scope.bundle = {
-        //userId: userService.getMe().Id,
-        userId: 0,
-        uesrName: "",
-        uesrMobile: "",
-        descr: "",
-        mapPosition: {},
-        imgSources: [],
+        userId: -1,
+        //不超过2000个字符
+        describe: '',
+        //不超过50个字符
+        name: '',
+        //手机号码
+        mobile: '',
+        //不超过100个字符
+        title: '',
+        /// 类型
+        /// 0我要咨询;1我要投诉;2我要建议;3领导信箱;4我要举报 5纠错
+        type: 0,
+        //是否建议 1-建议 0-投诉
+        advice: '0',
+        //是否公开互联网(1是;0否)
+        isPublic: 0,
+        assets: []
     };
 
     $scope.$on('$viewContentLoaded', function() {
@@ -31,14 +41,9 @@ angular.module('app').controller('WebController', ['$scope', '$timeout', 'userSe
         angular.element(".onView").removeClass("onView");
         var img = $(event.target);
         img[0].className = "onView";
-        if (img[0].naturalHeight * 3 > (img[0].naturalWidth + 10) * 4) {
-            angular.element(".image-view").removeClass("width-Img");
-            angular.element(".viewModal").addClass("height-Img");
-        } else if (img[0].naturalWidth > img[0].naturalHeight) {
-            angular.element(".viewModal").removeClass("height-Img");
+        if (img[0].naturalWidth > img[0].naturalHeight) {
             angular.element(".image-view").addClass("width-Img");
         } else {
-            angular.element(".viewModal").removeClass("height-Img");
             angular.element(".image-view").removeClass("width-Img");
         }
         $scope.imgUrl = img[0].src;
@@ -97,11 +102,11 @@ angular.module('app').controller('WebController', ['$scope', '$timeout', 'userSe
     $scope.submit = function() {
         var imgs = $(".images");
         for (var i = 0, len = imgs.length; i < len; i++) {
-            $scope.bundle.imgSources.push({ type: 1, source: imgs[i].firstElementChild.src });
+            $scope.bundle.assets.push({ assetType: 1, data: imgs[i].firstElementChild.src });
         };
-        $scope.bundle.descr = $(".descr")[0].textContent;
+        $scope.bundle.describe = $(".descr")[0].textContent;
         if ($scope.mapPosition)
-            $scope.bundle.mapPosition = { info: $scope.mapPosition.info, address: $scope.mapPosition.formattedAddress, position: $scope.mapPosition.position };
+            $scope.bundle.assets.push({ assetType: 0, data: { info: $scope.mapPosition.info, district: $scope.mapPosition.addressComponent.district, address: $scope.mapPosition.formattedAddress, position: $scope.mapPosition.position } });
         console.log($scope.bundle);
 
         $scope.submiting = true;
@@ -110,11 +115,10 @@ angular.module('app').controller('WebController', ['$scope', '$timeout', 'userSe
             $scope.successed = true;
         }, 1000);
         //messageService.submit($scope.bundle, "successCallback", "failsCallback");
-        // $scope.bundle.uesrName = "";
-        // $scope.bundle.uesrMobile = "";
-        // $scope.bundle.descr = $(".descr")[0].textContent = "";
-        // $scope.bundle.position = {};
-        // $scope.bundle.imgSources = [];
+        // $scope.bundle.name = "";
+        // $scope.bundle.mobile = "";
+        // $scope.bundle.describe = $(".descr")[0].textContent = "";
+        // $scope.bundle.assets = [];
     };
 
     $scope.imgPreview = function(fileDom) {

+ 2 - 4
web12345-new/src/less/app.main.less

@@ -140,6 +140,7 @@ content {
   }
 
 .webContent-2 {
+    ::-webkit-scrollbar { width: 0px;}
     width: 100%;
     margin: 40px auto 0px;
     overflow-y: auto;
@@ -163,7 +164,6 @@ content {
             line-height: normal;
             white-space: nowrap; /* 自适应宽度,不换行*/
             overflow-x: hidden; /* overflow-x */
-            overflow-y: auto;
             font-family: "微软雅黑","Arial","Microsoft YaHei","宋体";
             font-size: 12px;
         }
@@ -194,6 +194,7 @@ content {
             font-family: "微软雅黑","Arial","Microsoft YaHei","宋体";
         }
         .text-message {
+            overflow-y: auto;
             white-space: normal;
             width: 65%;
             min-height: 70px !important;
@@ -322,9 +323,6 @@ content {
                     width: 100%;
                 }
             }
-            &.height-Img {
-                margin-right: -6px;
-            }
             .width-Img {
                 margin-top: 30%;
             }

+ 2 - 2
web12345-new/src/templates/webChat-5.html

@@ -7,8 +7,8 @@
     </div>-->
 
     <div class="userInfo">
-        <div><span>姓&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp名:</span><input class="form-control input-sm" type="text" placeholder="单行输入" ng-model="bundle.uesrName" ng-focus="footHide()"><span class="certificate">*</span></div>
-        <div><span>手机号码:</span><input class="form-control input-sm" type="text" placeholder="单行输入" ng-model="bundle.uesrMobile" ng-focus="footHide()"><span class="certificate">*</span></div>
+        <div><span>姓&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp名:</span><input class="form-control input-sm" type="text" placeholder="单行输入" ng-model="bundle.name" ng-focus="footHide()"><span class="certificate">*</span></div>
+        <div><span>手机号码:</span><input class="form-control input-sm" type="text" placeholder="单行输入" ng-model="bundle.mobile" ng-focus="footHide()"><span class="certificate">*</span></div>
         <div><span>投诉内容:</span>
             <div class="text-message descr" contenteditable="plaintext-only" ng-focus="footHide()"></div><span class="certificate">*</span>
         </div>

+ 15 - 0
web12345-pageView/src/js/controller/pageViewController.js

@@ -16,6 +16,21 @@ angular.module('app').controller('PageViewController', ['$scope', '$filter', fun
         email: 'kehu01@wswin.cn',
     };
 
+    $scope.$on('$viewContentLoaded', function() {
+        var clientWidth = document.documentElement.clientWidth || window.innerWidth;
+        var innerWidth = Math.max(Math.min(clientWidth, 640), 320);
+        console.log(innerWidth);
+        if (innerWidth > 640) {
+            angular.element(".userInfo>div>span").addClass("font-14");
+            angular.element(".certificate").addClass("font-14");
+            angular.element(".userInfo .input-sm ").addClass("font-13");
+            angular.element(".userInfo .text-message").addClass("font-13");
+        } else {
+            angular.element(".font-13").removeClass("font-13");
+            angular.element(".font-14").removeClass("font-14");
+        }
+    });
+
     $scope.imgPreview = function(fileDom) {
         //判断是否支持FileReader
         if (window.FileReader) {

+ 6 - 1
web12345-pageView/src/less/app.main.less

@@ -26,9 +26,14 @@ body {
 }
 
 .pageView {
-    margin: 5% 5%;
+    height: 100%;
+    margin: 15px 5%;
+    font-family: "微软雅黑","宋体";
+    font-size: 12px;
     #title {
         margin-left: 10px;
+        font-size: 15px;
+        font-weight: bold;
     }
 }