From 6fd52e9dc053dde9d5d9ed22a14101d5ec2adbac Mon Sep 17 00:00:00 2001 From: panliang <1163816051@qq.com> Date: Wed, 12 Jun 2024 08:43:32 +0800 Subject: [PATCH] =?UTF-8?q?admin=20=E9=97=A8=E5=BA=97=E5=9D=90=E6=A0=87=20?= =?UTF-8?q?=E6=89=8B=E5=8A=A8=E5=A1=AB=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Admin/Controllers/Store/StoreController.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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(), ]); }