lizhen_gitee 11 hónapja
szülő
commit
96960bb4a8

+ 4 - 0
application/api/controller/Baseconfig.php

@@ -17,8 +17,12 @@ class Baseconfig extends Api
 
         $config = [
             'kefu_phone' => config('site.kefuphoneno'),//客服电话号
+            'index_jiuyipeizhen' => localpath_to_netpath(config('site.index_jiuyipeizhen')),//首页就医陪诊
+            'index_hulipeihu' => localpath_to_netpath(config('site.index_hulipeihu')),//首页护理陪护
         ];
 
+
+
         $this->success('success',$config);
     }
 

+ 2 - 0
application/extra/site.php

@@ -94,4 +94,6 @@ return array (
   'accept_videoorder_autofinish_minute' => '10',
   'payorder_noaccept_autocancel_minute' => '10',
   'accept_textorder_autofinish_minute' => '48',
+  'index_jiuyipeizhen' => '/uploads/20240428/85e048031609eb5fcb29d0b901a5c82c.png',
+  'index_hulipeihu' => '/uploads/20240428/85e048031609eb5fcb29d0b901a5c82c.png',
 );

+ 3 - 0
public/assets/js/backend/general/config.js

@@ -130,6 +130,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
         edit: function () {
             Controller.api.bindevent();
         },
+        newindex: function () {
+            Controller.api.bindevent();
+        },
         api: {
             bindevent: function () {
                 Form.api.bindevent($("form[role=form]"));