// pages/mUser/pQrcode/pQrcode.js import $f from "../../../service/baserequest" const app = getApp() Page({ /** * 页面的初始数据 */ data: { url:$f.baseFileUrl + `ledger/page/qrcode.html` }, /** * 生命周期函数--监听页面加载 */ onLoad(options) { // this.getOpenerEventChannel().on('acceptDataFromOpenerPage', (data) => { // this.setData({ // }) // }) this.setData({ url: $f.baseFileUrl + `ledger/page/qrcode.html?id=${app.globalData.accessToken.userId}` }) console.log(this.data.url); }, })