欢迎光临
我们一直在努力

h5跳转小程序源码,h5跳转小程序webview

标签
创建一个接龙
<wx-open-launch-weapp
id=“launch-btn”
username=“gh_f1eeefa0f69d”
path=“pages/index/index.html”
@launch=“handleLaunchFn”
@error=“handleErrorFn”
style=“width: 100%; height: 100%; position: absolute; top: 0; left: 0;”
> 跳转小程序 配置 import { weixinConfig } from ‘@/utils/wechatPay’ import wx from ‘weixin-js-sdk’ Vue.config.ignoredElements = [‘wx-open-launch-weapp’]

async get_sign_package() {
let that = this
if (process.env.NODE_ENV === ‘production’) {
let url = window.location.href
let sharUrl = url.split(’#’)
await get_sign_package({
url: url,
apis: 香港vps ‘updateAppMessageShareData,updateTimelineShareData’,
}).then((res) => {
if (res.data.errcode != 0) {
Toast(res.data.msg)
return false
}
weixinConfig(res.data.jsSdkConfig)
// console.log(‘get_sign_package’, res)
wx.ready(function (res) {
console.log(‘susses’, res)
})
wx.error(function (res) {
console.log(‘err’, res)
if (process.env.NODE_ENV === ‘production’) {
location.reload()
}
})
})
}
},

58983960

赞(0)
【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。