Browse Source

微信公众号H5跳转小程序是按钮子父组件传值实现的,要在H5引用那个组件来触发跳转

feature
mk 1 year ago
parent
commit
71add38fb2
  1. 2
      src/components/launchWeapp/index.vue

2
src/components/launchWeapp/index.vue

@ -1,6 +1,6 @@
<template> <template>
<div class="navi-container"> <div class="navi-container">
<div class="fake-btn" id="weappBtn">点击跳转小程序</div> <div class="fake-btn">点击跳转小程序</div>
<wx-open-launch-weapp @launch="launch" appid="wx6163d215ef686f78" path="pages/home/index.html" <wx-open-launch-weapp @launch="launch" appid="wx6163d215ef686f78" path="pages/home/index.html"
style="position: absolute;top: 0;left: 0;width: 100%;height: 50px;z-index: 10;"> style="position: absolute;top: 0;left: 0;width: 100%;height: 50px;z-index: 10;">
<script type="text/wxtag-template"> <script type="text/wxtag-template">

Loading…
Cancel
Save