Browse Source

feat: 更改样式

黎海 2 years ago
parent
commit
24a9b4fb3d

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

@@ -67,7 +67,7 @@
67 67
             <div class="lable-title">面诊标签</div>
68 68
             <div class="problem">
69 69
               <div class="problem-title">问题标签</div>
70
-              <div class="problem-lable">
70
+              <div class="problem-lable-top">
71 71
                 <div class="lable-text problem-text">{{problem}}</div>
72 72
               </div>
73 73
             </div>
@@ -85,22 +85,25 @@
85 85
         <div class="right-top-list">
86 86
           <div class="dataList"
87 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 92
           </div>
92 93
           <div class="dataList"
93 94
                style="margin:18px 0px"
94 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 100
           </div>
99 101
           <div class="dataList"
100 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 107
           </div>
105 108
         </div>
106 109
       </div>
@@ -375,15 +378,15 @@ export default {
375 378
   }
376 379
 
377 380
   .right {
381
+    width: calc(100% - 294px);
378 382
     margin-left: 18px;
379 383
     position: relative;
380
-    flex: 1;
381 384
     .right-top {
382 385
       height: 205px;
383 386
       // border: 1px solid red;
384 387
       display: flex;
385 388
       .right-top-list {
386
-        width: 239ppx;
389
+        width: 239px;
387 390
         margin-left: 18px;
388 391
         display: flex;
389 392
         flex-direction: column;
@@ -395,7 +398,12 @@ export default {
395 398
           border-radius: 8px;
396 399
           padding: 16px 12px 12px 12px;
397 400
           display: flex;
401
+          justify-content: space-between;
398 402
           align-items: center;
403
+          .data-list-left {
404
+            display: flex;
405
+            align-items: center;
406
+          }
399 407
           img {
400 408
             width: 33px;
401 409
             height: 33px;
@@ -403,7 +411,6 @@ export default {
403 411
           p {
404 412
             font-size: 14px;
405 413
             margin-left: 14px;
406
-            margin-right: 80px;
407 414
           }
408 415
           span {
409 416
             font-size: 16px;
@@ -416,7 +423,7 @@ export default {
416 423
         box-shadow: 0px 2px 4px 0px rgba(184, 191, 198, 0.2);
417 424
         border-radius: 8px;
418 425
         padding: 16px 12px 12px 12px;
419
-        width: 310px;
426
+        width: calc(100% - 239px);
420 427
         height: 100%;
421 428
         .lable {
422 429
           //   margin-top: 23px;
@@ -440,6 +447,30 @@ export default {
440 447
               color: #333333;
441 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 474
             .problem-lable {
444 475
               flex: 1;
445 476
               overflow-y: hidden;
@@ -521,19 +552,22 @@ export default {
521 552
     }
522 553
     .right-bottom {
523 554
       margin-top: 18px;
524
-      width: 575px;
525
-      height: 286px;
555
+      // width: 575px;
556
+      overflow: auto;
557
+      height: calc(100% - 223px);
526 558
       background: #ffffff;
527 559
       box-shadow: 0px 2px 4px 0px rgba(184, 191, 198, 0.2);
528 560
       border-radius: 8px;
529 561
       padding: 16px 12px 12px 12px;
530 562
       .programme {
531 563
         //   margin-top: 20px;
564
+        height: 100%;
532 565
         width: 100%;
533 566
         background: #ffffff;
534 567
         border-radius: 8px;
535 568
         .programmeList {
536
-          width: 550px;
569
+          height: calc(100% - 20px);
570
+          // width: 550px;
537 571
           .programmeWeek {
538 572
             display: flex;
539 573
             align-items: center;
@@ -575,7 +609,7 @@ export default {
575 609
             color: #333333;
576 610
           }
577 611
           .weekDetails {
578
-            height: 180px;
612
+            height: calc(100% - 63px);
579 613
             border-radius: 6px;
580 614
             border: 1px solid #f5f5f5;
581 615
             display: flex;
@@ -586,7 +620,7 @@ export default {
586 620
           .contentItem {
587 621
             margin-left: 10px;
588 622
             width: 317px;
589
-            min-height: 211px;
623
+            height: 100%;
590 624
             border-right: 1px solid #f5f5f5;
591 625
             // overflow-y: scroll;
592 626
           }

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

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

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

@@ -8,7 +8,7 @@
8 8
         </div>
9 9
         <div class="problem">
10 10
           <div class="problem-title">问题标签</div>
11
-          <div class="problem-lable">
11
+          <div class="problem-lable-top">
12 12
             <div class="lable-text problem-text">{{problem}}</div>
13 13
           </div>
14 14
         </div>
@@ -695,6 +695,32 @@ export default {
695 695
           color: #333333;
696 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 724
         .problem-lable {
699 725
           flex: 1;
700 726
           overflow-y: hidden;