wx-open-launch-weapp在Vuet中使用 ios正常,在安卓上不显示?
开放标签:wx-open-launch-weapp 机型: 华为Noval 7 Pro 和oppo R15 微信版本号:7.0.18和7.0.18 系统:安卓9 问题描述: ios没问题, config ok, 按钮可以显示,可以跳转. 安卓 config ok, 按钮无法显示. 可复现地址:http://yisheng.aihaisi.com/wap/patient/common/recommend-product?recommendId=110 动态创建wx-open-launch-weapp组件,代码如下:
<template>
<div class="launch_btn"></div>
</template>
<script>
methods: {
generatorWXOpenTag({ alias, salesmanCode }) {
const script = document.createElement('script')
script.type = 'text/wxtag-template'
script.text = '<div style="height:48px;width:100px;color:#fff;font-size:16px;text-align:center;line-height:48px;">去购买</div>'
const html = `<wx-open-launch-weapp style="position:fixed;z-index:2;bottom:20px;right:0px;width:100px;height:48px;background:#00C365;border-top-left-radius: 48px;border-bottom-left-radius: 48px;" username="gh_1a5dc044c976" path="${`packages/goods/detail/index.html?alias=${alias}&sl=${salesmanCode}`}">${script.outerHTML}</wx-open-launch-weapp>`
const classname = 'launch_btn'
document.getElementsByClassName(classname)[0].innerHTML = html
}
}
</script>