Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问相册是怎么做的? #6

Open
MisterDeng opened this issue Feb 15, 2017 · 10 comments
Open

请问相册是怎么做的? #6

MisterDeng opened this issue Feb 15, 2017 · 10 comments

Comments

@MisterDeng
Copy link

请问相册是怎么做的?

@litten
Copy link
Owner

litten commented Feb 15, 2017

……怎么回答…用html做的…

@MisterDeng
Copy link
Author

如果大家和我用的是同一主题,在yourBlog\themes\yilia\source\js\main.js文件末尾增加如下代码:
if($(".instagram").length) {
require(['/js/photo.js', '/fancybox/jquery.fancybox.js', '/js/jquery.lazyload.js'], function(obj) {
obj.init();
});
}

我照着这段话复制的,但是报错了。

@firebrain7
Copy link

@MisterDeng
那你看下public/js 文件夹里有没有生成photo.js

@airzhanglin
Copy link

请问一下相册怎么做的,然后照片怎么上传呢

@MisterDeng
Copy link
Author

@airzhanglin 用七牛上传存储照片,顺便生成json,然后改下作者的图片来源就行了。

@wxy-mu
Copy link

wxy-mu commented Jul 24, 2017

我想知道,那个首页,你是怎么配置的,不是直接显示全部内容。。谢谢

@ghost
Copy link

ghost commented Aug 12, 2017

哥, 你的其他页面都能看懂,唯独这个相册没看懂,是要我自己编写html,自己写样式,自己写js访问请求,没有一个模版让copy吗?

@andyyangdong
Copy link

同问:怎么配置的,不是直接显示全部内容。。谢谢!

@airzhanglin
Copy link

@MisterDeng 修改做的图片来源,在哪个文件里面修改?

@MisterDeng
Copy link
Author

@airzhanglin 老早的事情都忘了,大概在那个photo.js里面 是个for读取的本地json,这个json就是存储的图片地址

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants