diff --git a/app/Admin/Controllers/Store/StoreController.php b/app/Admin/Controllers/Store/StoreController.php index 4db4264..874747b 100644 --- a/app/Admin/Controllers/Store/StoreController.php +++ b/app/Admin/Controllers/Store/StoreController.php @@ -113,7 +113,12 @@ class StoreController extends AdminController ->showSteps(false) ->required(), amis()->InputCityControl()->name('region')->label(__('store.region'))->allowDistrict(false)->extractValue(false)->required(), - amis()->LocationControl()->name('location')->label(__('store.location'))->coordinatesType('gcj02')->ak(config('baidu.js_secret'))->autoSelectCurrentLoc()->required(), + amis()->TextControl()->name('location.address')->label(__('store.address'))->required(), + amis()->GroupControl()->label(__('store.location'))->body([ + amis()->TextControl()->name('location.lng')->placeholder('106.65781638883')->label(false), + amis()->TextControl()->name('location.lat')->placeholder('29.033745284277')->label(false), + ])->description('参考: https://api.map.baidu.com/lbsapi/getpoint/index.html')->required(), + // amis()->LocationControl()->name('location')->label(__('store.location'))->coordinatesType('gcj02')->ak(config('baidu.js_secret'))->autoSelectCurrentLoc()->required(), ]); }