1.在开放标签和插槽按钮上添加样式 -webkit-tap-highlight-color:transparent !important
2.插槽按钮需使用button标签,使用p标签点击时ios上会出现黑色小横条
代码:
<wx-open-launch-weapp
v-if="isWx"
id="doc-launch-btn-doctor"
username="gh_xxxxxxxxxxxx"
:env-version="EnvVersion"
:path="/pages/index/index?companyCode=enter "
>
<script type="text/wxtag-template">
<style>.btn{ width:100%;
height:100%;
border: 0;
outline: none;
opacity:0;
z-index:99;
position:absolute;
top:0;
left:0;
-webkit-tap-highlight-color:transparent !important
}</style>
<button class="btn"></button>
</script>
</wx-open-launch-weapp>
<style scoped lang="scss">
#doc-launch-btn-doctor{
-webkit-tap-highlight-color:transparent !important
}
</style>