Authored by 周少峰

Merge branch 'release/6.0' into gray

@@ -71,7 +71,7 @@ module.exports = class extends global.yoho.BaseModel { @@ -71,7 +71,7 @@ module.exports = class extends global.yoho.BaseModel {
71 return o.template_name !== 'single_image'; 71 return o.template_name !== 'single_image';
72 }); 72 });
73 73
74 - resData.popImgSrc = _.get(sourceData, '[0].data[0].src', ''); 74 + resData.popImgSrc = _.head(_.split(_.get(sourceData, '[0].data[0].src', ''), '?'));
75 } 75 }
76 76
77 return resData; 77 return resData;
@@ -7,7 +7,6 @@ @@ -7,7 +7,6 @@
7 var $ = require('yoho-jquery'); 7 var $ = require('yoho-jquery');
8 8
9 var Clipboard = require('clipboard'), 9 var Clipboard = require('clipboard'),
10 - QRCode = require('../plugins/qrcode'),  
11 Dialog = require('../common/dialog').Dialog; 10 Dialog = require('../common/dialog').Dialog;
12 11
13 var trendWordTpl = require('../../hbs/home/spread/trend-word.hbs'); 12 var trendWordTpl = require('../../hbs/home/spread/trend-word.hbs');
@@ -23,6 +22,7 @@ var clipboard; @@ -23,6 +22,7 @@ var clipboard;
23 var defaultWord = $spreadWord.data('word'); 22 var defaultWord = $spreadWord.data('word');
24 23
25 require('../common'); 24 require('../common');
  25 +require('yoho-jquery-qrcode');
26 26
27 function reseatWordSize(word) { 27 function reseatWordSize(word) {
28 if (!word) { 28 if (!word) {
@@ -70,11 +70,10 @@ function saveTrendWord(dg) { @@ -70,11 +70,10 @@ function saveTrendWord(dg) {
70 } 70 }
71 71
72 // 生成二维码 72 // 生成二维码
73 -new QRCode($qrcodeImg.get(0), {  
74 - text: $qrcodeImg.data('url'),  
75 - width: parseInt($qrcodeImg.width(), 10),  
76 - height: parseInt($qrcodeImg.width(), 10),  
77 - correctLevel: 1 73 +$qrcodeImg.qrcode({
  74 + render: 'div', // 显示方式,canvas,image和div
  75 + text: $qrcodeImg.data('url'), // 二维码的内容
  76 + size: parseInt($qrcodeImg.width(), 10) // 大小
78 }); 77 });
79 78
80 clipboard = new Clipboard('.copy-url', { 79 clipboard = new Clipboard('.copy-url', {
@@ -41,8 +41,8 @@ @@ -41,8 +41,8 @@
41 } 41 }
42 42
43 .card-main { 43 .card-main {
44 - height: 80px;  
45 - line-height: 80px; 44 + height: 90px;
  45 + line-height: 90px;
46 padding-top: 30px; 46 padding-top: 30px;
47 text-align: center; 47 text-align: center;
48 48
@@ -52,8 +52,10 @@ @@ -52,8 +52,10 @@
52 } 52 }
53 53
54 .spread-code { 54 .spread-code {
55 - width: 74px;  
56 - height: 74px; 55 + width: 100px;
  56 + height: 100px;
  57 + position: relative;
  58 + top: -10px;
57 } 59 }
58 60
59 .spread-id { 61 .spread-id {