文档
测试

从模板创建

GET
http://ip:port/form/dynamicForm/getFormJson

请求参数

参数名
类型
描述
必填
id
必填

响应参数

参数名
类型
描述
必填
code
number
示例:1
必填
result
string
示例:{"list":[{"type":"imgShow","name":"图片展示","value":"static/img/theme1.jpg","link":"","style":{"margin":"0px 0px 0px 0px"},"key":"imgShow_1568799046732_862962"},{"type":"formList","name":"表单内容区","list":[{"type":"phone","name":"手机号","placeholder":"请输入手机号","showLabel":false,"label":{"labelTitle":"手机号","labelPosition":"left","labelwidth":50,"labelWidth":"50px"},"value":"","apiKey":"phone","codeVa...
必填

说明 / 示例

{ "code": 1, "result": "{\"list\":[{\"type\":\"imgShow\",\"name\":\"图片展示\",\"value\":\"static/img/theme1.jpg\",\"link\":\"\",\"style\":{\"margin\":\"0px 0px 0px 0px\"},\"key\":\"imgShow_1568799046732_862962\"},{\"type\":\"formList\",\"name\":\"表单内容区\",\"list\":[{\"type\":\"phone\",\"name\":\"手机号\",\"placeholder\":\"请输入手机号\",\"showLabel\":false,\"label\":{\"labelTitle\":\"手机号\",\"labelPosition\":\"left\",\"labelwidth\":50,\"labelWidth\":\"50px\"},\"value\":\"\",\"apiKey\":\"phone\",\"codeValue\":\"\",\"codeKey\":\"verifyCode\",\"showCode\":true,\"style\":{\"margin\":\"0px 0px 0px 0px\",\"btnStyle\":{\"background\":\"#e64950\",\"color\":\"#fff\",\"borderColor\":\"#e64950\",\"borderRadius\":\"5px\",\"borderradius\":5}},\"key\":\"phone_1577685026558_23106\"},{\"type\":\"select\",\"name\":\"下拉选择框\",\"value\":\"\",\"apiKey\":\"educationLevel\",\"placeholder\":\"请选择教育程度\",\"showLabel\":true,\"label\":{\"labelTitle\":\"教育程度\",\"labelPosition\":\"left\",\"labelwidth\":66,\"labelWidth\":\"66px\"},\"fieldTypes\":\"selectTypes\",\"options\":[\"硕士及以上\",\"本科\",\"大专\",\"中专/高中及以下\"],\"style\":{\"margin\":\"0px 0px 0px 0px\"},\"key\":\"select_1583737024996_713338\"},{\"type\":\"input\",\"name\":\"输入框\",\"placeholder\":\"请输入姓名\",\"showLabel\":false,\"label\":{\"labelTitle\":\"姓名\",\"labelPosition\":\"left\",\"labelwidth\":50,\"labelWidth\":\"50px\"},\"value\":\"\",\"apiKey\":\"name\",\"fieldTypes\":\"inputTypes\",\"style\":{\"margin\":\"0px 0px 0px 0px\"},\"key\":\"input_1583736964263_968910\"},{\"type\":\"button\",\"name\":\"按钮\",\"btnText\":\"提交\",\"btnType\":\"submit\",\"apiKey\":\"\",\"fixedBottom\":false,\"scrollHeight\":0,\"btnTypes\":[{\"value\":\"submit\",\"label\":\"提交\"}],\"style\":{\"margin\":\"10px 10px 10px 10px\",\"padding\":\"0px 0px 0px 0px\",\"isImgBtn\":false,\"value\":\"\",\"btnStyle\":{\"borderRadius\":\"20px\",\"borderradius\":20,\"background\":\"#e64950\",\"color\":\"#fff\"}},\"key\":\"button_1577685028838_726439\"}],\"wgClassName\":\"wg-formlist\",\"style\":{\"margin\":\"0px 20px 0px 20px\",\"borderradius\":10,\"borderRadius\":\"10px\",\"borderColor\":\"#E64950\",\"borderwidth\":3,\"borderWidth\":\"3px\",\"borderStyle\":\"solid\"},\"key\":\"formList_1577685024167_377730\"},{\"type\":\"staticText\",\"name\":\"文本描述\",\"value\":\"主题一\",\"link\":\"\",\"backgroundImage\":\"\",\"style\":{\"textAlign\":\"center\",\"fontsize\":14,\"fontSize\":\"14px\",\"color\":\"#333333\",\"margin\":\"10px 10px 10px 10px\"},\"key\":\"staticText_1568799421345_855582\"}],\"title\":\"云忆网络1\",\"statsCode\":\"\",\"theme\":\"theme1\",\"style\":{\"backgroundColor\":\"#fff\",\"backgroundImage\":\"\"},\"fixedBottom\":[]}" }