#### 1. 前言 --- 調(diào)起客服會(huì)話相關(guān)屬性參考官網(wǎng)文檔:[https://developers.weixin.qq.com/miniprogram/dev/component/button.html](https://developers.weixin.qq.com/miniprogram/dev/component/button.html) #### 2. 使用示例 --- **show-message-card** 是否顯示會(huì)話內(nèi)消息卡片,設(shè)置此參數(shù)為 true,用戶進(jìn)入客服會(huì)話會(huì)在右下角顯示"可能要發(fā)送的小程序"提示,用戶點(diǎn)擊后可以快速發(fā)送小程序消息,open-type="contact"時(shí)有效 示例 ```html <button type="primary" open-type="contact" show-message-card>調(diào)起客服會(huì)話</button> ``` **send-message-title** 會(huì)話內(nèi)消息卡片標(biāo)題,`open-type="contact"` 時(shí)有效,默認(rèn)沒(méi)有標(biāo)題 ```html <button type="primary" open-type="contact" show-message-card send-message-title="獲取二維碼">調(diào)起客服會(huì)話</button> ``` **send-message-img** 會(huì)話內(nèi)消息卡片圖片,open-type="contact"時(shí)有效,省略時(shí)默認(rèn)為當(dāng)前頁(yè)面圖片 ```html <button type="primary" open-type="contact" show-message-card send-message-img="圖片URL地址">調(diào)起客服會(huì)話</button> ```