shengjieerlang
2017-04-11 03:21
浏览 1.1k

nodejs 扫描 二维码页面微信公众号开发

nodejs进入扫描二维码页面后,扫码得到二维码信息跳转到别的页面后再想回到扫描页面怎么做?

res.render('bindingGuide', { title: '绑定设备',userId:userId, open_id: open_id, appId: appId, timestamp: timestamp, nonceStr: nonceStr, signature: signature, jsApiList: jsApiList});

/*重新进入扫码页面 */
router.get('/equipmentInformation', function(req, res, next) {
var params = req.body
var userId = req.query.userId;
var timestamp = req.query.timestamp;
var openId = req.query.openId;
var appId = req.query.appId;
var nonceStr = req.query.nonceStr;
var signature = req.query.signature;
var jsApiList = req.query.jsApiList;

 res.render('bindingGuide', 
   { title: '绑定设备',
     userId:userId,
     open_id: openId,
     appId: appId, 
     timestamp: timestamp,
     nonceStr: nonceStr, 
     signature: signature,
     jsApiList: jsApiList}
 );
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

相关推荐 更多相似问题