This time I will bring you the function of contacting online customer service in the WeChat mini program. What are the precautions for adding the function of contacting online customer service in the WeChat mini program. The following is a practical case, let's take a look.
1. Add a normal customer service button
<button open-type='contact' session-from=''>客服-联系我们</button>
##2. Add a floating customer service button and customize the picture
If you look at the map, there is a customer service picture resource. Just go to the iconfont website to find one index.wxml<button class="kf_button" open-type="contact" session-from="weapp"> <image class="kf_image" src="../../resources/img/kf.PNG"></image> </button>
.kf_button{ background-color: rgba(255, 255, 255, 0); border: 0px; height: 100rpx; right: 0; bottom: 20rpx; position: fixed; } .kf_button::after{ border: 0px; } .kf_image{ z-index: 9999; width: 100rpx; height: 100rpx; }
Vue implements the steps to implement the PopupWindow component
jQuery implements the electronic clock function step-by-step analysis
The above is the detailed content of Added online customer service function to WeChat mini program. For more information, please follow other related articles on the PHP Chinese website!