* h5頁面必須是網(wǎng)絡(luò)地址才能正常跳轉(zhuǎn)--
小程序引用h5頁面---(在小程序代碼中實(shí)現(xiàn) )
<web-view src="https://www.bigdata-expo.cn/jqqd?type=1"></web-view>
h5跳轉(zhuǎn)小程序首頁--(在h5代碼中實(shí)現(xiàn))
<div class="mian" onclick="openSdaXcx()">返回到小程序頁面</div>
//必須引用此js
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"> </script>
function openSdaXcx()
{
wx.miniProgram.switchTab({url: '/pages/index/index'}) //要跳轉(zhuǎn)的頁面
}
聯(lián)系客服