seam 8 ani în urmă
părinte
comite
bf7bb362ed

+ 19 - 0
www/webapp/moonclub/css/serviceList.css

@@ -10,3 +10,22 @@ a:focus, a:hover {
   top: 0;
   z-index: 55;
 }
+.service-list-item {
+  margin-top: 15%;
+  width: 100%;
+  background-color: antiquewhite;
+}
+.service-list-item > div {
+  height: 800px;
+  line-height: 800px;
+  text-align: center;
+}
+.service-list-item-active {
+  position: absolute;
+  left: -160px;
+  height: 0;
+  overflow: hidden;
+}
+
+
+

Fișier diff suprimat deoarece este prea mare
+ 0 - 0
www/webapp/moonclub/dist/css/main.css


Fișier diff suprimat deoarece este prea mare
+ 0 - 0
www/webapp/moonclub/dist/js/build/template.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 0
www/webapp/moonclub/dist/js/main.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 1
www/webapp/moonclub/dist/js/page/serviceList.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 0
www/webapp/moonclub/js/build/template.js


+ 17 - 5
www/webapp/moonclub/js/page/serviceList.js

@@ -58,10 +58,22 @@ define(['$', 'template', 'native', 'config', 'user', 'api'], function ($, templa
         }
       }, $view);
       // TAB切换
-      $.newTouch('.control-item',function (event) {
+      $.newTouch('.control-item', function (event) {
         event.preventDefault();
-        console.log();
-      },$view);
+        var dataType = $(this).attr('data-order-type');
+        var item = $('.service-list-item');
+        console.log(dataType);
+        switch (parseInt(dataType)) {
+          case 1:
+            $(item[0]).removeClass('service-list-item-active')
+            $(item[1]).addClass('service-list-item-active')
+            break;
+          case 2:
+            $(item[0]).addClass('service-list-item-active')
+            $(item[1]).removeClass('service-list-item-active')
+            break;
+        }
+      }, $view);
       // 模态框
       $.newTouch('.model-content', function (event) {
         if ($('.model-title')[0].innerHTML === '成功了棒棒哒∪0∪') {
@@ -86,8 +98,8 @@ define(['$', 'template', 'native', 'config', 'user', 'api'], function ($, templa
       }, function (res) {
 
         if (res.success) {
-          authArr.auth = res.data.auth;
-
+          authArr.auth = parseInt(res.data.auth);
+          // authArr.auth = 5;
           api.getTechInfoByUserId({
             user_id: user.id
           }, function (res) {

+ 16 - 21
www/webapp/moonclub/tpl/employe/serviceList.html

@@ -1,33 +1,26 @@
-<div style="">
-  <div class="segmented-control order-type-control service-list-header">
+{{if authArr.auth === 3}}
+<div class="service-list-header">
+  <div class="segmented-control order-type-control">
     <a class="control-item {{if type == '1'}}active{{/if}}" data-order-type="1">进行中</a>
     <a class="control-item {{if type == '2'}}active{{/if}}" data-order-type="2">已完成</a>
   </div>
 </div>
-<div style="">
+{{/if}}
 
-</div>
 <div class="content" id="employeListScroll" style="background: #fff;">
   <div class="page-content">
     <div class="container">
-      <h4>订单列表</h4>
-      {{if authArr.auth === 3}}
-      <div>
-        {{each order_info as item i}}
-        <div class="my-order-body btn-status-edit" data-index="{{i}}">
-          <div>订单编号:{{item.num}}</div>
-          <div>订单ID:{{item.xyh_order_id}}</div>
-          <div>用户名:{{item.user_name}}</div>
-          <div>预产期:{{item.posts_time}}</div>
-          <div>生产日期:{{item.end_time}}</div>
-          <div>订单状态:{{item.status_str}}</div>
-          <div>月子地址:{{item.month_address}}</div>
-          <div>备注:{{item.remarks}}</div>
-        </div>
-        {{/each}}
+      {{if authArr.auth == 3}}
+      <div class="service-list-item">
+        <div>进行中</div>
       </div>
+      <div class="service-list-item service-list-item-active">
+        <div>已完成</div>
+      </div>
+      {{/if}}
 
-      {{else}}
+      {{if authArr.auth !== 3}}
+      <h4>订单列表</h4>
       {{each order_info as item i}}
       <div class="my-order-body btn-status-edit" data-index="{{i}}">
         <div>订单编号:{{item.num}}</div>
@@ -43,4 +36,6 @@
       {{/if}}
     </div>
   </div>
-</div>
+</div>
+
+

Unele fișiere nu au fost afișate deoarece prea multe fișiere au fost modificate în acest diff