Browse Source

Merge remote-tracking branch 'origin/feature-201820-wangcz' into feature-201820-wangcz

yujia 7 years ago
parent
commit
8373f3f025

BIN
src/main/webapp/resources/img/all/loading.gif


BIN
src/main/webapp/resources/img/vendor/authority/role-bg-1.png


BIN
src/main/webapp/resources/img/vendor/authority/role-bg-2.png


BIN
src/main/webapp/resources/img/vendor/authority/role-bg-3.png


BIN
src/main/webapp/resources/img/vendor/authority/role-bg-4.png


+ 23 - 17
src/main/webapp/resources/js/vendor/controllers/forstore/vendor_upload_ctrl.js

@@ -501,42 +501,43 @@ define([ 'app/app' ], function(app) {
     function blueCircle(n) {
       context.save(); // 保存状态
       // context.strokeStyle = '#fff'; //设置描边样式
-      context.lineWidth = 5; //设置线宽
       context.beginPath();//路径开始
-      context.arc(contextX, contextY, 100, -Math.PI / 2, -Math.PI / 2 + n * rad, false);
+      context.lineWidth = 3; //设置线宽
+      context.arc(contextX, contextY, 45, -Math.PI / 2, -Math.PI / 2 + n * rad, false);
 
       // 渐变色 - 可自定义
       var linGrad = context.createLinearGradient(
-          contextX-100-5, contextY, contextX+100+5, contextY
+          contextX-100-3, contextY, contextX+100+3, contextY
       );
-      linGrad.addColorStop(0.0, '#06a8f3');
-      //linGrad.addColorStop(0.5, '#9bc4eb');
-      linGrad.addColorStop(1.0, '#00f8bb');
+      linGrad.addColorStop(0.0, '#45b1fc');
+      linGrad.addColorStop(1.0, '#dbdbdb');
       context.strokeStyle = linGrad;
       context.lineCap = 'round';
       // 用于绘制圆弧context.arc(x坐标,y坐标,半径,起始角度,终止角度,顺时针/逆时针)
       context.stroke();//绘制
       context.closePath();//路径结束
-      context.lineJoin = 'round'
       context.restore();// 获取保存的状态
     }
-    //绘制2像素宽的背景白色外圈
+    //绘制3像素宽的背景白色外圈
     function whiteCirecle() {
       context.save();
       context.beginPath();
-      context.lineWidth = 2
-      context.strokeStyle = 'red'
-      context.arc(contextX, contextY, 100, 0, Math.PI * 2, false)
+      context.lineWidth = 3; //设置线宽
+      context.lineCap = "round";
+      // context.strokeStyle = '#dbdbdb';
+      context.strokeStyle = "#dbdbdb"
+      context.arc(contextX, contextY, 45, 0, Math.PI*2, false);
       context.stroke();
       context.closePath();
-      context.restore()
+      context.restore();
     }
     function text(n) {
       context.save();
-      context.strokeStyle = '#fff';
-      context.font = '40px Arial';
-      context.strokeText(n.toFixed(0) + "%", contextX - 40, contextY + 10)
-      context.stroke()
+      context.fillStyle = '#49b2fb';
+      var font_size = 20;
+      context.font = font_size + 'px Arial';
+      var text_width = context.measureText(n.toFixed(0)+"%").width;
+      context.fillText(n.toFixed(0) + "%", contextX - text_width/2, contextY + font_size / 2);
       context.restore()
     }
 
@@ -546,7 +547,12 @@ define([ 'app/app' ], function(app) {
       text(speed)
       blueCircle(speed)
     }
-
+    (function drawFrame2(){
+      window.requestAnimationFrame(drawFrame2);
+      if(speed > 100) speed = 0;
+      speed += 0.1;
+      drawFrame(speed)
+    }());
 	}]);
 
 	//批量上架的Ctrl

+ 7 - 7
src/main/webapp/resources/view/sso/rolePermission.html

@@ -541,19 +541,19 @@
         float: left;
     }
     .user_right .bgimg-1 {
-        background: url(static/img/vendor/authority/role-bg-1.jpg)no-repeat;
+        background: url(static/img/vendor/authority/role-bg-1.png)no-repeat;
     }
     .user_right .bgimg-2 {
-        background: url(static/img/vendor/authority/role-bg-2.jpg)no-repeat;
+        background: url(static/img/vendor/authority/role-bg-2.png)no-repeat;
     }
     .user_right .bgimg-3 {
-        background: url(static/img/vendor/authority/role-bg-3.jpg)no-repeat;
+        background: url(static/img/vendor/authority/role-bg-3.png)no-repeat;
     }
     .user_right .bgimg-4 {
-        background: url(static/img/vendor/authority/role-bg-4.jpg)no-repeat;
+        background: url(static/img/vendor/authority/role-bg-4.png)no-repeat;
     }
     .user_right .bgimg-5 {
-        background: url(static/img/vendor/authority/role-bg-5.jpg)no-repeat;
+        background: url(static/img/vendor/authority/role-bg-5.png)no-repeat;
     }
     /*新增*/
     #account_manager a {
@@ -911,7 +911,7 @@
         <div class="count01 clearfix role-manage" >
             <p>默认角色</p>
             <div class="default-role-area">
-                <div class="{{'default-role-box bgimg-'+ role.color || 1}}" ng-repeat="role in roles.defaults track by role.id" ng-click="editRole(role)">
+                <div class="{{'default-role-box bgimg-'+ ((role.color == 5 ? 4 : role.color) || 1)}}" ng-repeat="role in roles.defaults track by role.id" ng-click="editRole(role)">
                     <p>{{role.desc}}</p>
                     <span>{{role.duty}}</span>
                 </div>
@@ -919,7 +919,7 @@
             <p class="self-header">自定义角色</p>
             <div class="define-role-area">
                 <div class="default-role-area">
-                    <div class="{{'default-role-box bgimg-'+ role.color || 1}}" ng-repeat="role in roles.custom track by role.id" ng-click="editRole(role)">
+                    <div class="{{'default-role-box bgimg-'+ ((role.color == 5 ? 4 : role.color) || 1)}}" ng-repeat="role in roles.custom track by role.id" ng-click="editRole(role)">
                         <p>{{role.desc}}</p>
                         <span>{{role.duty}}</span>
                     </div>

+ 14 - 5
src/main/webapp/resources/view/vendor/forstore/vendor_upload.html

@@ -780,8 +780,10 @@
 
 <!-- 弹窗进度条加载 -->
 <div class="FixedCanvas" ng-show="showCanvas">
-    <canvas id="canvas" width="300" height="300"></canvas>
-    <div class="infoTEXT">上传中,请不要离开....</div>
+    <div class="fix">
+        <canvas id="canvas" width="100" height="100"></canvas>
+        <div class="infoTEXT">上传中,请不要离开....</div>
+    </div>
 </div>
 
 <style>
@@ -792,17 +794,24 @@
         z-index: 111;
         width: 100%;
         height: 100%;
-        background: rgba(0, 0, 0, 0.3);
+        /*background: rgba(0, 0, 0, 0.3);*/
         text-align: center;
         /*transition: all 0.3s;*/
     }
+    .FixedCanvas .fix {
+        position: absolute;
+        top: 50%;
+        left: 50%;
+        margin-left: -50px;
+        margin-top: -60px;
+    }
     #canvas {
         margin: 0 auto;
         margin-top: 5%;
     }
     .infoTEXT {
-        font-size: 28px;
-        color: #f3f3f3;
+        font-size: 18px;
+        color: #333;
         margin-top: 10px;
     }
 </style>