瀏覽代碼

feat: 更改样式

黎海 2 年之前
父節點
當前提交
24a9b4fb3d
共有 3 個文件被更改,包括 124 次插入43 次删除
  1. 53 19
      src/pages/customerMan/details/index.vue
  2. 44 23
      src/pages/testSkin/details/index.vue
  3. 27 1
      src/pages/testSkin/updates/index.vue

+ 53 - 19
src/pages/customerMan/details/index.vue

@@ -67,7 +67,7 @@
67
             <div class="lable-title">面诊标签</div>
67
             <div class="lable-title">面诊标签</div>
68
             <div class="problem">
68
             <div class="problem">
69
               <div class="problem-title">问题标签</div>
69
               <div class="problem-title">问题标签</div>
70
-              <div class="problem-lable">
70
+              <div class="problem-lable-top">
71
                 <div class="lable-text problem-text">{{problem}}</div>
71
                 <div class="lable-text problem-text">{{problem}}</div>
72
               </div>
72
               </div>
73
             </div>
73
             </div>
@@ -85,22 +85,25 @@
85
         <div class="right-top-list">
85
         <div class="right-top-list">
86
           <div class="dataList"
86
           <div class="dataList"
87
                @click="toOrder(1)">
87
                @click="toOrder(1)">
88
-            <img src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/coupon/project_icon.png" />
89
-            <p>项目订单</p>
90
-            <span>{{order_total.project}}</span>
88
+            <div class="data-list-left"><img src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/coupon/project_icon.png" />
89
+              <p>项目订单</p>
90
+            </div>
91
+            <div><span>{{order_total.project}}</span></div>
91
           </div>
92
           </div>
92
           <div class="dataList"
93
           <div class="dataList"
93
                style="margin:18px 0px"
94
                style="margin:18px 0px"
94
                @click="toOrder(2)">
95
                @click="toOrder(2)">
95
-            <img src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/coupon/coupon_icon.png" />
96
-            <p>优惠券</p>
97
-            <span>{{order_total.coupon}}</span>
96
+            <div class="data-list-left"><img src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/coupon/coupon_icon.png" />
97
+              <p>优惠券</p>
98
+            </div>
99
+            <div><span>{{order_total.coupon}}</span></div>
98
           </div>
100
           </div>
99
           <div class="dataList"
101
           <div class="dataList"
100
                @click="toOrder(3)">
102
                @click="toOrder(3)">
101
-            <img src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/coupon/order_total_icon.png" />
102
-            <p>商品订单</p>
103
-            <span>{{order_total.goods}}</span>
103
+            <div class="data-list-left"><img src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/icon/coupon/order_total_icon.png" />
104
+              <p>商品订单</p>
105
+            </div>
106
+            <div><span>{{order_total.goods}}</span></div>
104
           </div>
107
           </div>
105
         </div>
108
         </div>
106
       </div>
109
       </div>
@@ -375,15 +378,15 @@ export default {
375
   }
378
   }
376
 
379
 
377
   .right {
380
   .right {
381
+    width: calc(100% - 294px);
378
     margin-left: 18px;
382
     margin-left: 18px;
379
     position: relative;
383
     position: relative;
380
-    flex: 1;
381
     .right-top {
384
     .right-top {
382
       height: 205px;
385
       height: 205px;
383
       // border: 1px solid red;
386
       // border: 1px solid red;
384
       display: flex;
387
       display: flex;
385
       .right-top-list {
388
       .right-top-list {
386
-        width: 239ppx;
389
+        width: 239px;
387
         margin-left: 18px;
390
         margin-left: 18px;
388
         display: flex;
391
         display: flex;
389
         flex-direction: column;
392
         flex-direction: column;
@@ -395,7 +398,12 @@ export default {
395
           border-radius: 8px;
398
           border-radius: 8px;
396
           padding: 16px 12px 12px 12px;
399
           padding: 16px 12px 12px 12px;
397
           display: flex;
400
           display: flex;
401
+          justify-content: space-between;
398
           align-items: center;
402
           align-items: center;
403
+          .data-list-left {
404
+            display: flex;
405
+            align-items: center;
406
+          }
399
           img {
407
           img {
400
             width: 33px;
408
             width: 33px;
401
             height: 33px;
409
             height: 33px;
@@ -403,7 +411,6 @@ export default {
403
           p {
411
           p {
404
             font-size: 14px;
412
             font-size: 14px;
405
             margin-left: 14px;
413
             margin-left: 14px;
406
-            margin-right: 80px;
407
           }
414
           }
408
           span {
415
           span {
409
             font-size: 16px;
416
             font-size: 16px;
@@ -416,7 +423,7 @@ export default {
416
         box-shadow: 0px 2px 4px 0px rgba(184, 191, 198, 0.2);
423
         box-shadow: 0px 2px 4px 0px rgba(184, 191, 198, 0.2);
417
         border-radius: 8px;
424
         border-radius: 8px;
418
         padding: 16px 12px 12px 12px;
425
         padding: 16px 12px 12px 12px;
419
-        width: 310px;
426
+        width: calc(100% - 239px);
420
         height: 100%;
427
         height: 100%;
421
         .lable {
428
         .lable {
422
           //   margin-top: 23px;
429
           //   margin-top: 23px;
@@ -440,6 +447,30 @@ export default {
440
               color: #333333;
447
               color: #333333;
441
               line-height: 18px;
448
               line-height: 18px;
442
             }
449
             }
450
+            .problem-lable-top {
451
+              flex: 1;
452
+              overflow-y: hidden;
453
+              width: 100%;
454
+              height: 68px;
455
+              font-size: 12px;
456
+              font-family: PingFang-SC-Regular, PingFang-SC;
457
+              font-weight: 400;
458
+              color: #333333;
459
+              line-height: 17px;
460
+              display: flex;
461
+              flex-flow: column wrap;
462
+              list-style-type: none;
463
+              overflow-x: scroll;
464
+              align-items: baseline;
465
+
466
+              .lable-text {
467
+                margin-left: 10px;
468
+                margin-bottom: 10px;
469
+                border: 1px solid #42d351;
470
+                padding: 0 12px;
471
+                border-radius: 2px;
472
+              }
473
+            }
443
             .problem-lable {
474
             .problem-lable {
444
               flex: 1;
475
               flex: 1;
445
               overflow-y: hidden;
476
               overflow-y: hidden;
@@ -521,19 +552,22 @@ export default {
521
     }
552
     }
522
     .right-bottom {
553
     .right-bottom {
523
       margin-top: 18px;
554
       margin-top: 18px;
524
-      width: 575px;
525
-      height: 286px;
555
+      // width: 575px;
556
+      overflow: auto;
557
+      height: calc(100% - 223px);
526
       background: #ffffff;
558
       background: #ffffff;
527
       box-shadow: 0px 2px 4px 0px rgba(184, 191, 198, 0.2);
559
       box-shadow: 0px 2px 4px 0px rgba(184, 191, 198, 0.2);
528
       border-radius: 8px;
560
       border-radius: 8px;
529
       padding: 16px 12px 12px 12px;
561
       padding: 16px 12px 12px 12px;
530
       .programme {
562
       .programme {
531
         //   margin-top: 20px;
563
         //   margin-top: 20px;
564
+        height: 100%;
532
         width: 100%;
565
         width: 100%;
533
         background: #ffffff;
566
         background: #ffffff;
534
         border-radius: 8px;
567
         border-radius: 8px;
535
         .programmeList {
568
         .programmeList {
536
-          width: 550px;
569
+          height: calc(100% - 20px);
570
+          // width: 550px;
537
           .programmeWeek {
571
           .programmeWeek {
538
             display: flex;
572
             display: flex;
539
             align-items: center;
573
             align-items: center;
@@ -575,7 +609,7 @@ export default {
575
             color: #333333;
609
             color: #333333;
576
           }
610
           }
577
           .weekDetails {
611
           .weekDetails {
578
-            height: 180px;
612
+            height: calc(100% - 63px);
579
             border-radius: 6px;
613
             border-radius: 6px;
580
             border: 1px solid #f5f5f5;
614
             border: 1px solid #f5f5f5;
581
             display: flex;
615
             display: flex;
@@ -586,7 +620,7 @@ export default {
586
           .contentItem {
620
           .contentItem {
587
             margin-left: 10px;
621
             margin-left: 10px;
588
             width: 317px;
622
             width: 317px;
589
-            min-height: 211px;
623
+            height: 100%;
590
             border-right: 1px solid #f5f5f5;
624
             border-right: 1px solid #f5f5f5;
591
             // overflow-y: scroll;
625
             // overflow-y: scroll;
592
           }
626
           }

+ 44 - 23
src/pages/testSkin/details/index.vue

@@ -65,7 +65,7 @@
65
         </div>
65
         </div>
66
         <div class="problem">
66
         <div class="problem">
67
           <div class="problem-title">问题标签</div>
67
           <div class="problem-title">问题标签</div>
68
-          <div class="problem-lable">
68
+          <div class="problem-lable-top">
69
             <div class="lable-text problem-text">{{problem}}</div>
69
             <div class="lable-text problem-text">{{problem}}</div>
70
           </div>
70
           </div>
71
         </div>
71
         </div>
@@ -88,7 +88,7 @@
88
         </div>
88
         </div>
89
       </div>
89
       </div>
90
       <div class="programme"
90
       <div class="programme"
91
-           :style="isOpen?'height: 265px;':'height: 464px;'">
91
+           :style="isOpen?'height: calc(100% - 293px);':'height: calc(100% - 94px);'">
92
         <div class="tab">
92
         <div class="tab">
93
           <div class="tab-title">执行方案</div>
93
           <div class="tab-title">执行方案</div>
94
           <div class="add"
94
           <div class="add"
@@ -234,7 +234,8 @@ export default {
234
         user_id: '',
234
         user_id: '',
235
         skin_id: '',
235
         skin_id: '',
236
         face_names: '',
236
         face_names: '',
237
-        remark: ""
237
+        remark: "",
238
+        id: ''
238
       },
239
       },
239
       //皮肤状态
240
       //皮肤状态
240
       skin_status: [],
241
       skin_status: [],
@@ -319,6 +320,7 @@ export default {
319
       api.getSkinInfo({ id: this.id }).then(res => {
320
       api.getSkinInfo({ id: this.id }).then(res => {
320
         this.userInfo = res.data.user;
321
         this.userInfo = res.data.user;
321
         this.saveScheme.user_id = this.userInfo.user_id
322
         this.saveScheme.user_id = this.userInfo.user_id
323
+        this.saveScheme.id = res.data.id
322
         this.detail_list = res.data.detail_list;
324
         this.detail_list = res.data.detail_list;
323
         this.programmeList = res.data.scheme_list;
325
         this.programmeList = res.data.scheme_list;
324
         this.problem = res.data.skin_name;
326
         this.problem = res.data.skin_name;
@@ -663,6 +665,7 @@ export default {
663
     }
665
     }
664
   }
666
   }
665
   .right {
667
   .right {
668
+    width: calc(100% - 336px);
666
     margin-left: 18px;
669
     margin-left: 18px;
667
     position: relative;
670
     position: relative;
668
     flex: 1;
671
     flex: 1;
@@ -712,6 +715,30 @@ export default {
712
           color: #333333;
715
           color: #333333;
713
           line-height: 18px;
716
           line-height: 18px;
714
         }
717
         }
718
+        .problem-lable-top {
719
+          flex: 1;
720
+          overflow-y: hidden;
721
+          width: 100%;
722
+          height: 45px;
723
+          font-size: 12px;
724
+          font-family: PingFang-SC-Regular, PingFang-SC;
725
+          font-weight: 400;
726
+          color: #333333;
727
+          line-height: 17px;
728
+          display: flex;
729
+          flex-flow: column wrap;
730
+          list-style-type: none;
731
+          overflow-x: scroll;
732
+          align-items: baseline;
733
+
734
+          .lable-text {
735
+            margin-left: 10px;
736
+            margin-bottom: 10px;
737
+            border: 1px solid #42d351;
738
+            padding: 0 12px;
739
+            border-radius: 2px;
740
+          }
741
+        }
715
         .problem-lable {
742
         .problem-lable {
716
           flex: 1;
743
           flex: 1;
717
           overflow-y: hidden;
744
           overflow-y: hidden;
@@ -758,6 +785,7 @@ export default {
758
     .programme {
785
     .programme {
759
       margin-top: 18px;
786
       margin-top: 18px;
760
       width: 100%;
787
       width: 100%;
788
+      height: calc(100% - 94px);
761
       background: #ffffff;
789
       background: #ffffff;
762
       box-shadow: 0px 2px 4px 0px rgba(184, 191, 198, 0.2);
790
       box-shadow: 0px 2px 4px 0px rgba(184, 191, 198, 0.2);
763
       border-radius: 8px;
791
       border-radius: 8px;
@@ -789,12 +817,11 @@ export default {
789
       }
817
       }
790
 
818
 
791
       .programmeList {
819
       .programmeList {
792
-        width: 510px;
793
         height: 270px;
820
         height: 270px;
821
+        height: calc(100% - 35px);
794
       }
822
       }
795
 
823
 
796
       .programmeWeek {
824
       .programmeWeek {
797
-        width: 510px;
798
         display: flex;
825
         display: flex;
799
         align-items: center;
826
         align-items: center;
800
       }
827
       }
@@ -836,8 +863,7 @@ export default {
836
         color: #333333;
863
         color: #333333;
837
       }
864
       }
838
       .weekDetails {
865
       .weekDetails {
839
-        width: 509px;
840
-        height: 232px;
866
+        height: calc(100% - 63px);
841
         border-radius: 6px;
867
         border-radius: 6px;
842
         border: 1px solid #f5f5f5;
868
         border: 1px solid #f5f5f5;
843
         display: flex;
869
         display: flex;
@@ -848,7 +874,7 @@ export default {
848
       .contentItem {
874
       .contentItem {
849
         margin-left: 10px;
875
         margin-left: 10px;
850
         width: 317px;
876
         width: 317px;
851
-        min-height: 211px;
877
+        height: 100%;
852
         border-right: 1px solid #f5f5f5;
878
         border-right: 1px solid #f5f5f5;
853
         // overflow-y: scroll;
879
         // overflow-y: scroll;
854
       }
880
       }
@@ -1050,12 +1076,14 @@ export default {
1050
     .skin-item {
1076
     .skin-item {
1051
       margin-top: 20px;
1077
       margin-top: 20px;
1052
       width: 172px;
1078
       width: 172px;
1053
-
1054
       background: #f4f7ff;
1079
       background: #f4f7ff;
1055
       border-radius: 2px;
1080
       border-radius: 2px;
1056
       border: 1px solid #557cff;
1081
       border: 1px solid #557cff;
1057
-      line-height: 23px;
1058
-
1082
+      line-height: 16px;
1083
+      padding: 3px 0 4px 0;
1084
+      display: flex;
1085
+      justify-content: center;
1086
+      align-items: center;
1059
       font-size: 12px;
1087
       font-size: 12px;
1060
       font-weight: 400;
1088
       font-weight: 400;
1061
       color: #333333;
1089
       color: #333333;
@@ -1065,10 +1093,13 @@ export default {
1065
 
1093
 
1066
     .skin-item-not {
1094
     .skin-item-not {
1067
       margin-top: 20px;
1095
       margin-top: 20px;
1096
+      padding: 3px 0 4px 0;
1068
       width: 172px;
1097
       width: 172px;
1069
-      height: 25px;
1070
       background: #f5f5f5;
1098
       background: #f5f5f5;
1071
-      line-height: 25px;
1099
+      line-height: 16px;
1100
+      display: flex;
1101
+      justify-content: center;
1102
+      align-items: center;
1072
       border-radius: 2px;
1103
       border-radius: 2px;
1073
       font-size: 12px;
1104
       font-size: 12px;
1074
       font-weight: 400;
1105
       font-weight: 400;
@@ -1077,16 +1108,6 @@ export default {
1077
       margin-right: 20px;
1108
       margin-right: 20px;
1078
     }
1109
     }
1079
 
1110
 
1080
-    // <div class="skinDiv">
1081
-
1082
-    //            <div class="skin-item"
1083
-    //                  v-for="item,index in skinTag"
1084
-    //                  :key="index">
1085
-    //               {{item.title}}
1086
-    //             </div>
1087
-
1088
-    //         </div>
1089
-
1090
     .faceTag {
1111
     .faceTag {
1091
       margin-top: 20px;
1112
       margin-top: 20px;
1092
       width: 426px;
1113
       width: 426px;

+ 27 - 1
src/pages/testSkin/updates/index.vue

@@ -8,7 +8,7 @@
8
         </div>
8
         </div>
9
         <div class="problem">
9
         <div class="problem">
10
           <div class="problem-title">问题标签</div>
10
           <div class="problem-title">问题标签</div>
11
-          <div class="problem-lable">
11
+          <div class="problem-lable-top">
12
             <div class="lable-text problem-text">{{problem}}</div>
12
             <div class="lable-text problem-text">{{problem}}</div>
13
           </div>
13
           </div>
14
         </div>
14
         </div>
@@ -695,6 +695,32 @@ export default {
695
           color: #333333;
695
           color: #333333;
696
           line-height: 18px;
696
           line-height: 18px;
697
         }
697
         }
698
+        .problem-lable-top {
699
+          flex: 1;
700
+          overflow-y: hidden;
701
+          width: 100%;
702
+          height: 45px;
703
+          font-size: 12px;
704
+          font-family: PingFang-SC-Regular, PingFang-SC;
705
+          font-weight: 400;
706
+          color: #333333;
707
+          line-height: 17px;
708
+          display: flex;
709
+          flex-flow: column wrap;
710
+          list-style-type: none;
711
+          overflow-x: scroll;
712
+          align-items: baseline;
713
+
714
+          .lable-text {
715
+            margin-left: 10px;
716
+            margin-bottom: 10px;
717
+            height: 24px;
718
+            line-height: 24px;
719
+            border: 1px solid #42d351;
720
+            padding: 0 12px;
721
+            border-radius: 2px;
722
+          }
723
+        }
698
         .problem-lable {
724
         .problem-lable {
699
           flex: 1;
725
           flex: 1;
700
           overflow-y: hidden;
726
           overflow-y: hidden;