Authored by weiqingting

Merge branch 'feature/personal' into develop

@@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
6 6
7 'use strict'; 7 'use strict';
8 8
9 -const QRcodeModel = require('../models/QRcode'); 9 +const QRcodeModel = require('../models/qrcode');
10 const helpers = global.yoho.helpers; 10 const helpers = global.yoho.helpers;
11 11
12 exports.QRcode = (req, res, next) => { 12 exports.QRcode = (req, res, next) => {
@@ -13,7 +13,7 @@ const _ = require('lodash'); @@ -13,7 +13,7 @@ const _ = require('lodash');
13 const helpers = global.yoho.helpers; 13 const helpers = global.yoho.helpers;
14 const config = global.yoho.config; 14 const config = global.yoho.config;
15 15
16 -const personalController = require(`${cRoot}/QRcode`); 16 +const personalController = require(`${cRoot}/qrcode`);
17 17
18 const homeNav = [ 18 const homeNav = [
19 { 19 {
@@ -80,7 +80,6 @@ const sessionEffective = (req, res, next) => { @@ -80,7 +80,6 @@ const sessionEffective = (req, res, next) => {
80 res.redirect(helpers.urlFormat('/signin.html', { 80 res.redirect(helpers.urlFormat('/signin.html', {
81 refer: refer 81 refer: refer
82 })); 82 }));
83 - // next();  
84 }; 83 };
85 84
86 // 查看二维码 85 // 查看二维码
@@ -76,7 +76,7 @@ @@ -76,7 +76,7 @@
76 </div> 76 </div>
77 <div id="print_wrap" style='display:none'> 77 <div id="print_wrap" style='display:none'>
78 <div class='print_qrcode'> 78 <div class='print_qrcode'>
79 - <img src='http://localhost:5002/img/home/qrcode.png'/> 79 + <img />
80 <div class='print_content'> 80 <div class='print_content'>
81 </div> 81 </div>
82 </div> 82 </div>
@@ -4,7 +4,8 @@ var Slide = require('../plugins/yohoui/YH.slide'); @@ -4,7 +4,8 @@ var Slide = require('../plugins/yohoui/YH.slide');
4 4
5 var $item = $('li', '.qrctxt'); 5 var $item = $('li', '.qrctxt');
6 var len = $item.length, slide; 6 var len = $item.length, slide;
7 - 7 +var src=/url\("([^'"]*)"\)/g.exec($(".print_qrcode").css("background"))[1];
  8 +$(".print_qrcode").find("img").attr("src",src);
8 9
9 function slideDo(to) { 10 function slideDo(to) {
10 $item.each(function(index) { 11 $item.each(function(index) {
@@ -139,6 +139,7 @@ @@ -139,6 +139,7 @@
139 height:860px; 139 height:860px;
140 margin: 0 auto; 140 margin: 0 auto;
141 position:relative; 141 position:relative;
  142 + background: resolve(img/home/qrcode.png) no-repeat;
142 .print_content{ 143 .print_content{
143 width:109px; 144 width:109px;
144 position:absolute; 145 position:absolute;