...
|
...
|
@@ -7,7 +7,6 @@ |
|
|
var $ = require('yoho-jquery');
|
|
|
|
|
|
var Clipboard = require('clipboard'),
|
|
|
QRCode = require('../plugins/qrcode'),
|
|
|
Dialog = require('../common/dialog').Dialog;
|
|
|
|
|
|
var trendWordTpl = require('../../hbs/home/spread/trend-word.hbs');
|
...
|
...
|
@@ -23,6 +22,7 @@ var clipboard; |
|
|
var defaultWord = $spreadWord.data('word');
|
|
|
|
|
|
require('../common');
|
|
|
require('yoho-jquery-qrcode');
|
|
|
|
|
|
function reseatWordSize(word) {
|
|
|
if (!word) {
|
...
|
...
|
@@ -70,11 +70,10 @@ function saveTrendWord(dg) { |
|
|
}
|
|
|
|
|
|
// 生成二维码
|
|
|
new QRCode($qrcodeImg.get(0), {
|
|
|
text: $qrcodeImg.data('url'),
|
|
|
width: parseInt($qrcodeImg.width(), 10),
|
|
|
height: parseInt($qrcodeImg.width(), 10),
|
|
|
correctLevel: 1
|
|
|
$qrcodeImg.qrcode({
|
|
|
render: 'div', // 显示方式,canvas,image和div
|
|
|
text: $qrcodeImg.data('url'), // 二维码的内容
|
|
|
size: parseInt($qrcodeImg.width(), 10) // 大小
|
|
|
});
|
|
|
|
|
|
clipboard = new Clipboard('.copy-url', {
|
...
|
...
|
|