...
|
...
|
@@ -38,20 +38,19 @@ let index = (req, res, next) => { |
|
|
|
|
|
let success = (req, res, next) => {
|
|
|
let goUrl = req.query.next || config.siteUrl;
|
|
|
let goShoppingUrl = req.query.goShoppingUrl || config.siteUrl;
|
|
|
|
|
|
// $goShoppingUrl = $this->get('goShoppingUrl',SITE_MAIN);
|
|
|
// $cover = PassportModel::getLeftBanner(PassportModel::REGISTER_LEFT_BANNER_CODE);
|
|
|
// $data = array(
|
|
|
// 'registerPage' => true,
|
|
|
// 'passport' => array(
|
|
|
// 'goUrl' => $goUrl,
|
|
|
// 'goShoppong' => $goShoppingUrl,
|
|
|
// 'coverHref' => $cover['url'],
|
|
|
// 'coverImg' => $cover['img'],
|
|
|
// ),
|
|
|
// 'uid' => $this->getUid(false),
|
|
|
// );
|
|
|
// $this->_view->display('success', $data);
|
|
|
regService.getRegData().then((result) => {
|
|
|
res.render('reg/success', {
|
|
|
title: '注册成功',
|
|
|
passport: {
|
|
|
goUrl: goUrl,
|
|
|
goShoppong: goShoppingUrl,
|
|
|
coverHref: result.url,
|
|
|
coverImg: result.img
|
|
|
}
|
|
|
});
|
|
|
}).catch(next);
|
|
|
};
|
|
|
|
|
|
module.exports = {
|
...
|
...
|
|