如果对您有帮助,请关注我,加入微信小程序开发交流qq群(173683895)相互交流学习。谢谢
需求:微信小程序客服带详情页 ,
场景:一个人通过微信小程序接入微信客服,聊天后带上入口链接
效果图:
写法:
<button wx:if="{{store.show_customer_service==1}}" class="flex-grow-0 flex-y-center bar-bottom-btn" open-type="contact" send-message-title="商品" send-message-img="{{goods.pic_list[0].pic_url}}" send-message-path="/pages/goods/goods?id={{id}}" bindcontact='contact' show-message-card plain> <view> <image src="/images/icon-user-kf.png"></image> <text>客服</text> </view> </button>