Authored by weiqingting

fix 样式

... ... @@ -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')
};
... ...
... ... @@ -6,7 +6,7 @@
<h2 class="title">
</h2>
<div class='subtitle'>
<h2>虚拟商品 <span class='pad20'>2016 YO'HOOD</span> 展览票 <i id="qrid"></i></h2>
<h2>虚拟商品 <span class='pad20'>2016 YO'HOOD</span> {{ticktypeName}} <i id="qrid"></i></h2>
<a class='r-go' href="{{returnOrder}}">返回我的订单</a>
</div>
{{#qrcodeData}}
... ...
... ... @@ -49,7 +49,7 @@ $('.btn-qcode').click(function() {
$('.center', '.qrctxt').each(function() {
html.push('<li>');
var src = $(this).find('img').attr('src');
html.push('<img src=\'' + src + '\'/>');
html.push('<img src=\'' + src + '\' width=614 height=920/>');
var bianhao = $(this).find('.bianhao').text();
html.push('<p>' + bianhao + '</p>');
var zuoweihao = $(this).find('.zuoweihao').text();
... ...