generated from liutk/owl-admin-base
admin 门店坐标 手动填写
parent
c5ce9fff58
commit
6fd52e9dc0
|
|
@ -113,7 +113,12 @@ class StoreController extends AdminController
|
||||||
->showSteps(false)
|
->showSteps(false)
|
||||||
->required(),
|
->required(),
|
||||||
amis()->InputCityControl()->name('region')->label(__('store.region'))->allowDistrict(false)->extractValue(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(),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue