buptsky / vue-douban-movie Goto Github PK
View Code? Open in Web Editor NEW基于vue.js的豆瓣电影webapp
基于vue.js的豆瓣电影webapp
// 使用vue-lazyload监听事件,每次进入只触发一次
this.$Lazyload.$once('loaded',({el})=> {
//el代表当前lazyload的元素
//获取原图片连接(即没经过防盗链处理的图片的路径)
let src = el.dataset.origin;
if(src === res.images.large){
// 获取电影封面高度,用于fixed栏固定
this.imgHeight = this._getImageHeight();
setTimeout(() => {
if (!this.$route.params.movieId) { // 防止路由快速切换报错
return;
}
this.$refs.scroll.refresh(); // scroll组件重新计算高度
}, 20);
}
});
应该传一个原始的url,而不是经过防盗链处理的url
体验地址过期了吗
返回的电影封面图片403错误,包括你线上的项目现在图片也是403,这个怎么解决呢。
我的服务器部署地址是诸如:http://www.aaa.com/douban
本地运行可以。是不是路径问题?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.