比如说我这里要通过button 跳转到客服页面
<view class="out-right">
<button open-type="contact">
<view class="rg-text-wrap">
<text class="top-text">咨询助理</text>
<text class="btm-text">免费一对一 问题分析</text>
</view>
</button>
</view>
首先 把我们要的样式先写出来
加上取消button的默认演示的代码:
.out-right button{
background-color:#FAFAFA ;
border: none;
}
.out-right button:after{
border: none;
}
ok