diff --git a/pages/account-new.json b/pages/account-new.json index 1fd90d5..52d13c4 100644 --- a/pages/account-new.json +++ b/pages/account-new.json @@ -130,7 +130,7 @@ "visibleOn": "this.sendChannel ==50", "mode": "normal", "inline": true, - "label": "服务号账号样例:" + "label": "服务号账号样例:{\"appId\":\"wx27f83ca10e06b325\",\"secret\":\"203299484df873a18621d076db46fa99\"}" }, { "type": "static", diff --git a/pages/crud-new.json b/pages/crud-new.json index ee2bdd0..30c49d7 100644 --- a/pages/crud-new.json +++ b/pages/crud-new.json @@ -309,6 +309,33 @@ "clearValueOnHidden": false, "placeholder": "可用占位符{$url}" }, + { + "type": "select", + "label": "服务号账号", + "name": "sendAccount", + "source": "http://localhost:8080/account/queryByChannelType?channelType=50", + "visibleOn": "this.sendChannel == 50", + "clearValueOnHidden": false, + "required": true, + "size": "lg" + }, + { + "type": "select", + "label": "选择模板", + "name": "templateId", + "source": "http://localhost:8080/officialAccount/template/list?id=${sendAccount}", + "visibleOn": "this.sendChannel == 50", + "clearValueOnHidden": false, + "required": true, + "size": "lg", + "initFetchOn": "data.sendAccount" + }, + { + "type": "service", + "className": "m-t", + "initFetchSchemaOn": "data.templateId", + "schemaApi": "http://localhost:8080/officialAccount/template/detailTemplate?id=${sendAccount}&wxTemplateId=${templateId}" + }, { "type": "select", "label": "邮件账号",