Permalink
Browse files

fix: 头像为null问题

  • Loading branch information...
litten committed Nov 14, 2017
1 parent cff4425 commit d52d6c09cf24cc4aac0adb3f8b11ccfdef1e50d3
View
@@ -28,7 +28,7 @@ rss: /atom.xml
# 是否需要修改 root 路径
# 如果您的网站存放在子目录中,例如 http://yoursite.com/blog,
# 请将您的 url 设为 http://yoursite.com/blog 并把 root 设为 /blog/。
root:
root: /
# Content
View
@@ -1 +1 @@
<link rel="stylesheet" type="text/css" href="<%=config.root%>./main.507b3a.css">
<link rel="stylesheet" type="text/css" href="<%=config.root%>./main.0cf68a.css">
@@ -46,7 +46,7 @@
<a class="close js-modal-close" href="javascript:;"><i class="icon icon-close"></i></a>
<p>扫一扫,分享到微信</p>
<div class="wx-qrcode">
<img src="<%- 'qrcode' in locals ? qrcode(sUrl) : 'http://s.jiathis.com/qrcode.php?url=' + sUrl %>" alt="微信分享二维码">
<img src="<%- 'qrcode' in locals ? qrcode(sUrl) : '//pan.baidu.com/share/qrcode?url=' + sUrl %>" alt="微信分享二维码">
</div>
</div>

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -21,10 +21,13 @@ function init() {
let img = $em2.getAttribute('data-idx', i2)
let src = $em2.getAttribute('data-target') || $em2.getAttribute('src')
let title = $em2.getAttribute('alt')
// 获得原图尺寸
const image = new Image()
image.src = src
items.push({
src: src,
w: $em2.width,
h: $em2.height,
w: image.width || $em2.width,
h: image.height || $em2.height,
title: title
})
})
File renamed without changes.

Large diffs are not rendered by default.

Oops, something went wrong.

0 comments on commit d52d6c0

Please sign in to comment.