admin 门店坐标 手动填写

main
panliang 2024-06-12 08:43:32 +08:00
parent c5ce9fff58
commit 6fd52e9dc0
1 changed files with 6 additions and 1 deletions

View File

@ -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('参考: <a href="https://api.map.baidu.com/lbsapi/getpoint/index.html" target="_blank">https://api.map.baidu.com/lbsapi/getpoint/index.html</a>')->required(),
// amis()->LocationControl()->name('location')->label(__('store.location'))->coordinatesType('gcj02')->ak(config('baidu.js_secret'))->autoSelectCurrentLoc()->required(),
]);
}