Code Monkey home page Code Monkey logo

vue-douban's Introduction

前言

一直想做一个系统性的项目,后来看到豆瓣有个开源的api,所以我就模仿豆瓣的电影显示界面做了几个界面,小白请进,大神绕道~

用到的技术栈

vue + axios + vue-cli + vue-router + mint-ui + sass

用到的接口

用到的是豆瓣的开源接口

Build Setup

# install dependencies 下载依赖
npm install

# serve with hot reload at localhost:8080 启动项目端口为8080
npm run dev

# build for production with minification 打包上传
npm run build

预览地址

http://recklesslmz.com/vue-douban/dist/#/home

好吧,我还是没解决接口的跨域的问题,还是把项目down下来看吧~

如果你觉得你这个项目对你有帮助的话,请不要吝啬你的小手点个star吧~

License

MIT

For detailed explanation on how things work, checkout the guide and docs for vue-loader.

vue-douban's People

Contributors

recklesslmz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vue-douban's Issues

请教proxyTable配置问题

你好,我是这样配置的
proxyTable: {
'/api':{
target:'https://api.douban.com/v2',
changeOrigin:true,
pathRewrite:{
'^/api':'/api'
}
}
},
使用axios发起请求,
this.$ajax.get('/api').then((data)=>{
console.log(data);
});
出现的是404错误,请求地址还是为本地地址,好像配置无效,请问是什么原因呢?

有两个问题需要修改

一个是在组件movieDetail中,对影人缺少一个判断,当数据directors中的avatars为null,你没有判断去隐藏,另外就是flex在真机测试有样式兼容问题

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.