소스 검색

公司跳转

linwu 2 달 전
부모
커밋
48744cf01d
2개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      app/Services/Company/CompanyService.php
  2. 5 0
      public/themes/default/views/mobile/app/ic/teach/detail.blade.php

+ 2 - 2
app/Services/Company/CompanyService.php

@@ -1253,8 +1253,8 @@ class CompanyService
             }
         }
         $company->hide = $hide;
-        $company->setmeal_id = $setmeal->setmeal_id;
-        $company->setmeal_name = $setmeal->setmeal_name;
+        $company->setmeal_id = $setmeal->setmeal_id ?? 0;
+        $company->setmeal_name = $setmeal->setmeal_name ?? '';
 
         //来源分站名称
         $subsites = Cache::get('subsites_list');

+ 5 - 0
public/themes/default/views/mobile/app/ic/teach/detail.blade.php

@@ -131,5 +131,10 @@
             location.href = `https://api.map.baidu.com/marker?location=${y},${x}&title=${name}&output=html`;
         }
     })
+
+    $('.company').click(function() {
+        let id = $(this).data('id');
+        location.href = "{{route('mobile.ic.hospital.show')}}?id=" + id;
+    });
 </script>
 @endsection