...
|
...
|
@@ -19,7 +19,7 @@ exports.QRcode = (req, res, next) => { |
|
|
'17-2':'//img13.static.yhbimg.com/yhb-img02/2016/07/28/14/028d1fa99a0a22d882587aa0a309b41637.jpg'
|
|
|
}
|
|
|
|
|
|
let bgkey='16-1';
|
|
|
let bgkey='16-1',ticktypeName='展览票';
|
|
|
|
|
|
QRcodeModel.getQRcodeData(id,req.user.uid).then((result)=>{
|
|
|
if (result) {
|
...
|
...
|
@@ -31,6 +31,7 @@ exports.QRcode = (req, res, next) => { |
|
|
});
|
|
|
if(result.ticks.length){
|
|
|
bgkey=[/月(\d+)/g.exec(result.ticks[0].entrance_time)[1],result.ticks[0].ticket_type].join('-');
|
|
|
ticktypeName=result.ticks[0].ticket_type===2?'套票':'展览票';
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -39,6 +40,7 @@ exports.QRcode = (req, res, next) => { |
|
|
qrcodeData: result,
|
|
|
code: id,
|
|
|
bgsrc:bg[bgkey],
|
|
|
ticktypeName:ticktypeName,
|
|
|
returnOrder: helpers.urlFormat('/home/orders')
|
|
|
};
|
|
|
|
...
|
...
|
|