# sendH5Card

发送H5卡片 

## API 调用

### QN.app.invoke({api:'sendH5Card', query})

#### API 调用入参

参数名             | 类型       | 是否可选 | 默认值 | 含义
:-------------- | :------- | :--- | :-- | :-----------------------------------------------------------------------------------------------------------------------
`query`         | `Object` |      |     |
`query.cardCode`  | `string` |  可选    |  item_detail | 卡片代码
`query.cardParams`  | `string` |  可选    |  [{"a":"1","b":123},{"a":"1","b":123}] | 卡片模板的参数，JSON格式
`query.bizIds`  | `string` |  可选    |  123,7789 | 业务ID，可能的值：itemId，orderId，userId等等。多个参数半角逗号分割
`query.bizType`  | `number` |  可选    |  1 | 业务类型，可能的值：0-商品，1-订单，2-会员等等
`query.receiver`  | `string` |  可选    |  cntaobaoxxxxx | 接受者用户Nick，带前缀，淘宝：cntaobao,1688：cnalichn； 或群id。
`query.notifyUrl`  | `string` |  可选    |  http://www.baidu.com | 异步通知URL，用于ISV回调
`query.convType`  | `number` |  可选    |  0 | 聊天类型：0-单聊， 30-群聊。 默认值为0.
`query.autoClose`  | `string` |  可选    |  1 | 在弹出聊天窗口前，是否自动弹出页面栈中所有的页面，默认为0


#### API 响应结果

参数名      | 类型  | 示例 | 含义
:------- | :-- | :----- | :---
`result` | `*` |        | 请求响应


#### 调用示例

```javascript
QN.app.invoke({
      api:'sendH5Card',
      query:{
                cardCode : 'item_detail'  ,
                    cardParams : '[{"a":"1","b":123},{"a":"1","b":123}]'  ,
                    bizIds : '123,7789'  ,
                    bizType : 1  ,
                    receiver : 'cntaobaoxxxxx'  ,
                    notifyUrl : 'http://www.baidu.com'  ,
                    convType : 0  ,
                    autoClose : '1'  
            
      }
}).then(result => {
    console.log(result);
}, error => {
    console.log(error);
});
    
```
