移动端微信小程序客服会话

1、注册微信小程序绑定客服

添加客服完,还需扫码绑定才能接收对应的信息

2、开发使用Button组件

            <button open-type="contact">联系客服</button>

界面:

解决:在这个列表上点击联系客服,因为要实现,需要用组件,又想保留原来的样式

		<view class="row">
					<view class="left">
						<uni-icons type="chatboxes-filled" size="20" color="#28b389"></uni-icons>
						<text class="text">
							联系客服
						</text>
					</view>
					<view class="right">
						<text class="text">
						</text>
						 <uni-icons type="right" size="16" color="#aaa"></uni-icons>
					</view>
					<button open-type="contact">联系客服</button>
				</view>
.row{
				padding: 0 30rpx;
				display: flex;
				height: 100rpx;
				justify-content: space-between;
				align-items: center;
				border-bottom: 1px solid #eee;
				position: relative;
				button{
					position: absolute;
					top: 0;
					left: 0;
					height: 100rpx;
					width: 100%;
					opacity: 0;
				}
				.left{
					display: flex;	
					align-items: center;
					.text{
						padding-left: 20rpx;
						color: #666;
					}
				}
				.right{
					display: flex;
					align-items: center;
					.text{
						color: #aaa;
						font-size: 28;
					}
				}
				&:last-child{
					border-bottom: 0;
				}
			}

3、给盒子加一个定位,并且透明度给0

        opacity: 0;

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值