Просмотр исходного кода

运单系统样式调整,
二维码路径

LD 6 лет назад
Родитель
Сommit
b38b27c078

+ 3 - 3
app/Http/Controllers/UserDutyCheckController.php

@@ -37,11 +37,11 @@ class UserDutyCheckController extends Controller
         }
         $qrCode=new QrCode($url);
         if ($userWorkGroup_id){
-            if (file_exists("storage/QRCodeIMG/".$userWorkGroup_id.'.png')){
-                return "/storage/QRCodeIMG/".$userWorkGroup_id.'.png';
+            if (file_exists("images/QRCodeIMG/".$userWorkGroup_id.'.png')){
+                return "images/QRCodeIMG/".$userWorkGroup_id.'.png';
             }
             $qrCode->writeFile(storage_path('app/public/QRCodeIMG/'.$userWorkGroup_id.'.png'));
-            return '/storage/QRCodeIMG/'.$userWorkGroup_id.'.png';
+            return 'images/QRCodeIMG/'.$userWorkGroup_id.'.png';
         }
         return (new Response())->header('Content-Type',$qrCode->getContentType())->setContent($qrCode->writeString());
     }

+ 1 - 0
public/images/QRCodeIMG/readme.txt

@@ -0,0 +1 @@
+生成二维码文件夹用的参照物,请勿删除

+ 1 - 0
resources/images/QRCodeIMG/readme.txt

@@ -0,0 +1 @@
+生成二维码文件夹用的参照物,请勿删除

+ 6 - 0
resources/sass/layout.scss

@@ -26,3 +26,9 @@
         background: #f9f0f0;
     }
 }
+
+.waybill-table{
+    th:nth-child(1){
+        background: #000;
+    }
+}

+ 1 - 1
resources/views/waybill/index.blade.php

@@ -118,7 +118,7 @@
                     <div class="alert alert-success h1">{{Session::get('successTip')}}</div>
                 @endif
             </div>
-            <table class="table table-striped table-sm table-bordered table-hover text-nowrap" style="background: #fff;">
+            <table class="table table-striped table-sm table-bordered table-hover text-nowrap waybill-table" style="background: #fff;">
                 <tr>
                     <th>
                         <label for="all">