95 lines
3.2 KiB
PHP
95 lines
3.2 KiB
PHP
<?php
|
|
namespace addon\saas\api\controller;
|
|
use app\api\controller\BaseApi;
|
|
class Form extends BaseApi
|
|
{
|
|
public function info()
|
|
{
|
|
$token = $this->checkToken();
|
|
if ($token['code'] < 0) return $this->response($token);
|
|
$arr = [
|
|
[
|
|
'name' => 'RADIO',
|
|
'title' => '单选框',
|
|
'type' => 'SYSTEM',
|
|
'controller' => 'Radio',
|
|
'value' =>
|
|
array(
|
|
'title' => '类型',
|
|
'options' =>
|
|
array(
|
|
0 => '企业',
|
|
1 => '个体',
|
|
2 => '个人',
|
|
),
|
|
'required' => true,
|
|
),
|
|
'sort' => '10000',
|
|
'support_diy_view' => '',
|
|
'max_count' => 0,
|
|
'is_delete' => 0,
|
|
'icon' => 'addon/form/shop/view/public/img/icon/radio.png',
|
|
'icon_selected' => 'addon/form/shop/view/public/img/icon/radio_selected.png',
|
|
'id' => 'codeType'
|
|
],
|
|
[
|
|
'name' => 'ONE_LINE_TEXT',
|
|
'title' => '联系人',
|
|
'type' => 'SYSTEM',
|
|
'controller' => 'Text',
|
|
'value' =>
|
|
array(
|
|
'title' => '联系人',
|
|
'placeholder' => '请输入联系人',
|
|
'default' => '',
|
|
'required' => true,
|
|
),
|
|
'sort' => '10000',
|
|
'support_diy_view' => '',
|
|
'max_count' => 0,
|
|
'is_delete' => 0,
|
|
'icon' => 'addon/form/shop/view/public/img/icon/on_line_text.png',
|
|
'icon_selected' => 'addon/form/shop/view/public/img/icon/on_line_text_selected.png',
|
|
'id' => 'corporate_name',
|
|
],
|
|
[
|
|
'name' => 'MOBILE',
|
|
'title' => '手机号码',
|
|
'type' => 'SYSTEM',
|
|
'controller' => 'Text',
|
|
'value' =>
|
|
array(
|
|
'title' => '手机号码',
|
|
'placeholder' => '请输入联系电话',
|
|
'required' => true,
|
|
),
|
|
'sort' => '10000',
|
|
'support_diy_view' => '',
|
|
'max_count' => 0,
|
|
'is_delete' => 0,
|
|
'icon' => 'addon/form/shop/view/public/img/icon/mobile.png',
|
|
'icon_selected' => 'addon/form/shop/view/public/img/icon/mobile_selected.png',
|
|
'id' => 'contact_phone',
|
|
],
|
|
];
|
|
$res = [
|
|
'json_data' => $arr,
|
|
'banner_img' => 'public/resource/form/cbanner.jpg',
|
|
'isNextStep' => 1,
|
|
];
|
|
return $this->response($this->success($res));
|
|
}
|
|
|
|
|
|
public function create(){
|
|
$token = $this->checkToken();
|
|
if ($token['code'] < 0) return $this->response($token);
|
|
|
|
|
|
$res=[];
|
|
return $this->response($this->success(
|
|
|
|
22222
|
|
));
|
|
}
|
|
} |