Skip to content

活动邀请函模板编辑器 #215

Description

@TechQuery

业务逻辑

  1. 活动组织者在活动页面上看到编辑入口按钮,鉴权代码参考:

async checkAuthorization(title: string, mobilePhone: string) {
mobilePhone = mobilePhone.replace(/^\+86-?/, '');
const [matched] = await this.getList({ title, 负责人手机号: mobilePhone });
return (this.currentAuthorized = !!matched);
}

  1. 拉取某个议程的数据,以其数据对象字段名为组件名罗列可拖拽组件

    • URL 显示为二维码
    • 其余显示为纯文本
  2. 点击画布空白处上传背景图到对象存储,并在模板 JSON 中记录图片 URL

  3. 点击拖拽组件后加入画布,并可在其中拖拽移动,其尺寸、位置均以画布尺寸百分比为单位记录在模板 JSON

  4. 将模板 JSON 存入活动记录的 cardTemplate 字段

  5. 邀请函生成页面读取模板、议程数据后渲染

参考代码

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions