var global = require('../../utils/config.js') const app = getApp() Page({ data: { webUrl: '', nvabarData: { showCapsule: 1, //是否显示左上角图标 1表示显示 0表示不显示 title: '注册', //导航栏 中间的标题 }, height: app.globalData.height * 2 + 20 , }, onLoad: function (options) { console.log('code3:', options.code) let date = Date.parse(new Date()) this.setData({ webUrl: global.WEBROOT() + 'scanCode/'+options.code+'?t='+date+'' }) } })