vue项目h5跳转小程序并传值

wx.miniProgram.navigateTo({
url: ‘/pages/models/waitPay/waitPay’ +
‘?pay_batch_token=’ + res.data.data.pay_batch_token +
‘&is_free=’ + res.data.data.goSuccessPage +
‘&product_id=’ + this.KaTeX parse error: Expected 'EOF', got '&' at position 47: … '&̲goods_type=' + …route.query.type +
‘&order_son_id’ + teemid
})

(使用node下载依赖 npm install weixinjssdk --save) 引入:
import wx from ‘weixin-js-sdk’
需要的参数直接拼接在url里

你可能感兴趣的:(小程序)