Browse Source

公司跳转

linwu 2 months ago
parent
commit
48744cf01d

+ 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