| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <?php
- declare(strict_types=1);
- return json_decode(<<<'JSON'
- [
- {
- "type": "checkbox",
- "field": "pay_type",
- "title": "支付方式",
- "info": "这里可以开启关闭支付方式",
- "effect": {
- "fetch": {
- "action": "{{API_BASE_URL}}/admin/payment",
- "method": "GET",
- "dataType": "json",
- "headers": {
- "Authorization": "Bearer {{API_TOKEN}}"
- },
- "query": {},
- "data": {},
- "parse": "[[FORM-CREATE-PREFIX-function (res, rule, api){\nreturn res.data.map(item => ({\n value: item.id,\n label: item.name\n}))\n}-FORM-CREATE-SUFFIX]]",
- "beforeFetch": "",
- "onError": "",
- "to": "options"
- }
- },
- "$required": false,
- "props": {
- "_optionType": 1
- },
- "_fc_id": "id_Fpr6mdk6u0kpafc",
- "name": "ref_Forzmdk6u0kpagc",
- "display": true,
- "hidden": false,
- "_fc_drag_tag": "checkbox"
- },
- {
- "type": "checkbox",
- "field": "supported_envs",
- "title": "支持的小程序环境",
- "info": "选择在此插件中支持的小程序环境",
- "options": [
- {
- "value": "develop",
- "label": "开发版"
- },
- {
- "value": "trial",
- "label": "体验版"
- },
- {
- "value": "release",
- "label": "正式版"
- }
- ],
- "$required": false,
- "props": {
- "_optionType": 1
- },
- "_fc_id": "id_supported_envs_checkbox",
- "name": "ref_supported_envs",
- "display": true,
- "hidden": false,
- "_fc_drag_tag": "checkbox"
- }
- ]
- JSON,true);
|