标签
创建一个接龙
<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