简要描述:

表单详情

请求域名:

  • http://xx.com

请求路由:

route=plugin.shoot-casually.frontend.form.show

请求 参数::

参数名 是否必须 类型 说明
form_id int 表单id

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "表单信息",
    "data": {
        "id": 7,
        "uniacid": 1,
        "title": "测试表单",
        "is_view": 1,
        "form_image": "images/1/2023/02/c8883869b049d78c7b9c2f4098d13519.png",
        "detail": "<p>详情介绍</p>",
        "describe": "活动形式",
        "form_cluster": [
            {
                "title": "您的姓名",
                "unique": "name",
                "sort": 1,
                "required_text": "否",
                "required": 0,
                "type_text": "文本",
                "type": "text",
                "structure": "string",
                "tips": "提示语:将严格保密,可匿名",
                "placeholder": "您的姓名"
            },
            {
                "title": "您的手机号",
                "unique": "mobile",
                "sort": 2,
                "required_text": "是",
                "required": 1,
                "type_text": "文本",
                "type": "text",
                "structure": "string",
                "tips": "提示语:将严格保密",
                "placeholder": "您的手机号"
            },
            {
                "title": "选择区域",
                "unique": "area",
                "sort": 3,
                "required_text": "否",
                "required": 0,
                "type_text": "城市",
                "type": "area",
                "structure": "string",
                "tips": "级别 =>省市区",
                "placeholder": "选择区域"
            },
            {
                "title": "选择定位",
                "unique": "coordinate",
                "sort": 4,
                "required_text": "否",
                "required": 0,
                "type_text": "定位",
                "type": "coordinate",
                "structure": "array",
                "tips": "坐标",
                "placeholder": "选择定位"
            },
            {
                "title": "举报时间",
                "unique": "date",
                "sort": 5,
                "required_text": "否",
                "required": 0,
                "type_text": "日期",
                "type": "date",
                "structure": "date",
                "tips": "默认 => 填写当天",
                "placeholder": "举报时间"
            },
            {
                "title": "简要说明",
                "unique": "rows",
                "sort": 6,
                "required_text": "是",
                "required": 1,
                "type_text": "多行文本",
                "type": "rows",
                "structure": "string",
                "tips": "无",
                "placeholder": "简要说明"
            },
            {
                "title": "图片上传",
                "unique": "images",
                "sort": 7,
                "required_text": "否",
                "required": 0,
                "type_text": "图片",
                "type": "image",
                "structure": "array",
                "tips": "最大数量: 10",
                "count": 10,
                "placeholder": "图片上传"
            },
            {
                "title": "视频上传",
                "unique": "videos",
                "sort": 8,
                "required_text": "否",
                "required": 0,
                "type_text": "视频",
                "type": "video",
                "structure": "array",
                "tips": "最大数量: 3",
                "count": 3,
                "placeholder": "视频上传"
            }
        ],
        "created_at": "2023-05-08 22:05:10",
        "updated_at": "2023-05-08 22:05:10",
        "form_image_url": "http://localhost/static/upload/images/1/2023/02/c8883869b049d78c7b9c2f4098d13519.png"
    }
}

返回参数说明:

参数名 类型 说明
data.id int id
data.detail string 详情介绍
data.describe string 活动形式
data.form_cluster array 表单内容