Browse Source

增加地址字段

develop
李可松 4 years ago
parent
commit
246563fc7d
  1. 3
      app/AdminSupplier/Controllers/ProductController.php

3
app/AdminSupplier/Controllers/ProductController.php

@ -152,6 +152,7 @@ class ProductController extends AdminController
$table->text('tag', '包含项目')->placeholder('如:24小时热水、干洗服务等');
})->value($default)->help('首次创建时,系统会默认填充基本服务,请根据本酒店情况进行删减或新增');
$form->text('address', '地址');
$form->map('extends.field_1.latitude', 'extends.field_1.longitude', '位置');
})->when(2, function (Form $form) { //景区
$form->table('extends.field_2.open_time', '开放时间', function (NestedForm $table) {
@ -166,6 +167,7 @@ class ProductController extends AdminController
$table->text('price', '费用');
})->help('第一行数据默认是表头,如:项目名称、数量、额外费用');
$form->text('address', '地址');
$form->map('extends.field_2.latitude', 'extends.field_2.longitude', '位置');
})->when(3, function (Form $form) { //餐厅
$form->table('extends.field_3.open_time', '开放时间', function (NestedForm $table) {
@ -180,6 +182,7 @@ class ProductController extends AdminController
$table->text('price', '价格')->placeholder('如:99元');
})->help('第一行数据默认是表头,如:项目名称、数量、额外费用');
$form->text('address', '地址');
$form->map('extends.field_3.latitude', 'extends.field_3.longitude', '位置');
});

Loading…
Cancel
Save