0.2.5 • Published 1 year ago

chat-miniprogram v0.2.5

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

使用方法

  • npm 方式

  1. 在项目目录下安装组件包
npm install chat-miniprogram
  1. 开发者工具中勾选 使用 npm 模块(若没有此选项则不需要)并点击 工具 - 构建 npm

  2. 在需要使用页面的 json 文件中添加

{
  "usingComponents": {
    "chat": "/miniprogram_npm/chat-miniprogram"
  }
}
  1. 在需要使用页面的 wxml 文件中添加
<chat xxx="{{xxx}}" />
  • 源码方式

  1. 将源码中对应平台的代码包(miniprogram_dist)拷贝到 components 目录下,更名为 chat-miniprogram
  2. 在需要使用页面的 json 文件中添加
{
  "usingComponents": {
    "chat": "/components/chat-miniprogram/index"
  }
}

后续步骤同上

组件属性

属性类型说明
companyNameString企业名称
iconListObject图标列表
modeString咨询方式
firstQuestionString进入页面携带的问题

api

名称作用
onSubmit提交问题
getListMsg获取对话列表
updateVideoSrc更新视频源地址

KeyWords

miniprogram

0.2.5

1 year ago

0.2.4

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago