├── .browserslistrc ├── .eslintrc.js ├── .gitignore ├── README.md ├── babel.config.js ├── data └── local.js ├── package.json ├── postcss.config.js ├── public ├── favicon.ico └── index.html ├── src ├── App.vue ├── assets │ ├── css │ │ └── reset.css │ ├── images │ │ ├── fan.png │ │ ├── icon │ │ │ ├── arrow-right.png │ │ │ ├── chat.png │ │ │ ├── chat1.png │ │ │ ├── collection-anti.png │ │ │ ├── collection.png │ │ │ ├── location.png │ │ │ ├── none-star.png │ │ │ ├── search.png │ │ │ ├── share-anti.png │ │ │ ├── share.png │ │ │ ├── star.png │ │ │ ├── view.png │ │ │ └── xx.png │ │ ├── item.jpg │ │ ├── music.png │ │ ├── mv.png │ │ ├── p0.png │ │ ├── pause.png │ │ ├── pinglun.png │ │ ├── play.png │ │ ├── search.png │ │ ├── selected-music.png │ │ ├── selected-mv.png │ │ └── timg.gif │ └── logo.png ├── components │ ├── Item.vue │ ├── Loading.vue │ └── Movie.vue ├── main.js ├── router │ └── index.js ├── utils │ ├── config.js │ └── filter.js └── views │ ├── Movie │ ├── Movie.vue │ ├── MovieDetail.vue │ └── MovieMore.vue │ ├── Music │ ├── Music.vue │ ├── MusicDetail.vue │ ├── MusicMore.vue │ ├── MusicPlay.vue │ └── components │ │ └── Itemmusic.vue │ ├── My │ └── My.vue │ └── Read │ ├── Read.vue │ └── ReadDetail.vue ├── vue.config.js └── yarn.lock /.browserslistrc: -------------------------------------------------------------------------------- 1 | > 1% 2 | last 2 versions 3 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | env: { 4 | node: true 5 | }, 6 | 'extends': [ 7 | 'plugin:vue/essential', 8 | 'eslint:recommended' 9 | ], 10 | rules: { 11 | 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', 12 | 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off' 13 | }, 14 | parserOptions: { 15 | parser: 'babel-eslint' 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /dist 4 | 5 | # local env files 6 | .env.local 7 | .env.*.local 8 | 9 | # Log files 10 | npm-debug.log* 11 | yarn-debug.log* 12 | yarn-error.log* 13 | 14 | # Editor directories and files 15 | .idea 16 | .vscode 17 | *.suo 18 | *.ntvs* 19 | *.njsproj 20 | *.sln 21 | *.sw? 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # xiangmu 2 | 3 | ## Project setup 4 | ``` 5 | yarn install 6 | ``` 7 | 8 | ### Compiles and hot-reloads for development 9 | ``` 10 | yarn serve 11 | ``` 12 | 13 | ### Compiles and minifies for production 14 | ``` 15 | yarn build 16 | ``` 17 | 18 | ### Lints and fixes files 19 | ``` 20 | yarn lint 21 | ``` 22 | 23 | ### Customize configuration 24 | See [Configuration Reference](https://cli.vuejs.org/config/). 25 | -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | '@vue/cli-plugin-babel/preset' 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /data/local.js: -------------------------------------------------------------------------------- 1 | [{ 2 | "date": "Sep 18 2016", 3 | "title": "正是虾肥蟹壮时", 4 | "imgSrc": "https://i.loli.net/2019/10/21/8Qrtav6KsE7XGjM.png", 5 | "avatar": "https://i.loli.net/2019/10/21/tLaWIlGzAPeudjn.png", 6 | "content": "菊黄蟹正肥,品尝秋之味。徐志摩把,“看初花的荻芦”和“到楼外楼吃蟹”,并列为秋天来杭州不能错过的风雅之事;用林妹妹的话讲是“螯封嫩玉双双满,", 7 | "reading": "112", 8 | "collection": "96", 9 | "headImgSrc": "https://i.loli.net/2019/10/21/8Qrtav6KsE7XGjM.png", 10 | "author": "林白衣", 11 | "dateTime": "24小时前", 12 | "detail": "菊黄蟹正肥,品尝秋之味。徐志摩把“看初花的荻芦”和“到楼外楼吃蟹”并列为秋天来杭州不能错过的风雅之事;用林妹妹的话讲是“螯封嫩玉双双满,壳凸红脂块块香”;在《世说新语》里,晋毕卓更是感叹“右手持酒杯,左手持蟹螯,拍浮酒船中,便足了一生矣。”漫漫人生长路,美食与爱岂可辜负?于是作为一个吃货,突然也很想回味一下属于我的味蕾记忆。记忆中的秋蟹,是家人的味道,弥漫着浓浓的亲情。\n\n是谁来自山川湖海,却囿于昼夜,厨房与爱? 是母亲,深思熟虑,聪明耐心。吃蟹前,总会拿出几件工具,煞有介事而乐此不疲。告诉我们螃蟹至寒,需要佐以姜茶以祛寒,在配备的米醋小碟里,亦添入姜丝与紫苏,前者驱寒后者增香。泡好菊花茶,岁月静好,我们静等。", 13 | "postId": 0, 14 | "music": { 15 | "url": "http://music.163.com/song/media/outer/url?id=557584888", 16 | "title": "往后余生", 17 | "coverImg": "http://p4.music.126.net/J-So8uu3Mo9zKfN128L_pQ==/109951162875623128.jpg" 18 | } 19 | }, 20 | { 21 | "title": "比利·林恩的中场故事", 22 | "content": "一 “李安是一位绝不会重复自己的导演,本片将极富原创性李安众所瞩目的新片《比利林恩漫长的中场休息》,正式更名《半场无战事》。", 23 | "imgSrc": "https://i.loli.net/2019/10/21/4bGdIeEUqmZhKAV.png", 24 | "reading": 62, 25 | "detail": "一 “李安是一位绝不会重复自己的导演,本片将极富原创性”李安众所瞩目的新片《比利林恩漫长的中场休息》,正式更名《半场无战事》。预告片首次曝光后,被视作是明年奥斯卡种子选手。该片根据同名畅销书改编。原著小说荣获美国国家图书奖。也被BBC评为21世纪最伟大的12本英文小说之一。影片讲述一位19岁德州男孩的比利·林恩入伍参加伊战,在一次交火中他大难不死,意外与战友成为大众的关注焦点,并被塑造成英雄。之后他们返回国内,在橄榄球赛中场休息时授勋。这名战争英雄却面临前所未有的心灵煎熬……李安为什么选中这部电影来拍?因为李安想要挑战前所未有的技术难题:以120帧每秒的速度、4K、3D技术全面结合,来掀起一场电影视觉革命。什么意思?所谓“电影是24格每秒的谎言”,其中的24格,就是帧数。", 26 | "collection": 92, 27 | "dateTime": "24小时前", 28 | "headImgSrc": "https://i.loli.net/2019/10/21/4bGdIeEUqmZhKAV.png", 29 | "author": "迷的城", 30 | "date": "Nov 20 2016", 31 | "avatar": "https://i.loli.net/2019/10/21/576PQlbHG3uTm4s.png", 32 | "postId": 1, 33 | "music": { 34 | "url": "http://music.163.com/song/media/outer/url?id=30814948", 35 | "title": "从前慢", 36 | "coverImg": "http://y.gtimg.cn/music/photo_new/T002R150x150M000002xOmp62kqSic.jpg?max_age=2592000" 37 | } 38 | }, 39 | { 40 | "title": "当我们在谈论经济学时,我们在谈论什么?", 41 | "content": "引言在我跟学生课后交流时,以及我在知乎上阅读有关“经济”问题的论题时,经常会遇到这样的情况:...", 42 | "detail": "1 引言\n\n在我跟学生课后交流时,以及我在知乎上阅读有关“经济”问题的论题时,经常会遇到这样的情况:有些人套用“经济理论“的知识去解释现实中发生的经济事件,结果发现很多事情讲不通,或者发现”理论告诉我们的“与现实发生的是相反的。也有学生经常跟我说:经济学有什么用?为了说明这个,我经常从两个方面来进行解释,尝试用我个人所擅长的解决问题的视角和他们能够听懂的方法来说明经济学是什么,它的作用边界在哪里:\r\n\n2 ”简笔素描“与”油画肖像“我们给人画肖像画,可以用简笔素描,也可以用油画肖像。油画肖像可以在最大程度上保存了人物的各方面的细节和特点,而简笔素描则忽略了很多细节。尽管简笔素描忽略了人物的许多细节,但我们仍旧能够很容易的认出画中的人物是谁。为什么?因为这种方法保留了人物最显著的特征,以至于我们可以忽略其次要特征而对人物做出判定。\n\n2.1 ”简笔素描“对于绝大多数的非经济学专业大众而言(经济学相关专业硕士学历以上),人们所接触到的经济学都是初级微观经济学。所谓的初级微观经济学,对于经济问题的”画法“就是一种”简笔素描“。比如初级微观经济学教材中广为使用的这种一元一次需求函数:y=bx+a,需求量的唯一变量是产品价格。但仅凭直觉我们就可以断言,现实中影响需求量的因素绝不止价格这一种,因此我们可以认为这个模型对经济问题的描述是失真的。然而但这种失真却是必要的和有意义的,其意义在与它利于揭示价格对于需求的影响,而不在于否定影响需求的其他因素——", 43 | "imgSrc": "https://i.loli.net/2019/10/21/arO4bo193jphTel.png", 44 | "headImgSrc": "https://i.loli.net/2019/10/21/arO4bo193jphTel.png", 45 | "reading": 62, 46 | "collection": 92, 47 | "author": "知乎", 48 | "date": "Nov 12 2016", 49 | "dateTime": "三天前", 50 | "avatar": "https://i.loli.net/2019/10/21/Qg5XtAaGKu7CWlE.png", 51 | "postId": 2, 52 | "music": { 53 | "url": "http://music.163.com/song/media/outer/url?id=32835566", 54 | "title": "从前的我", 55 | "coverImg": "http://p3.music.126.net/1qdwtD9QaawDmX3JUE9raw==/109951162932623462.jpg" 56 | } 57 | }, 58 | { 59 | "title": "从视觉到触觉 这款VR手套能给你真实触感", 60 | "content": "8月29日消息,据国外媒体VentureBeat报道,一家名为Dexta Robotics的公司最近发布了一款有望变革虚拟现实手部追踪与交互方式的新产品", 61 | "imgSrc": "https://i.loli.net/2019/10/21/PcZYUaiDTbAH8yt.png", 62 | "reading": 102, 63 | "detail": "消息,据国外媒体VentureBeat报道,一家名为Dexta Robotics的公司最近发布了一款有望变革虚拟现实手部追踪与交互方式的新产品。该产品名为“Dexmo”,它是一款像手套那样戴在手上使用的未来主义外骨骼。它内置大量的元件,能够与VR体验进行交互,可帮助你感觉握在你的双手的虚拟物体。Dexmo据Dexta称,“Dexmo是一款针对你的双手的机械外骨骼。它能够捕捉你的手部运动,以及提供即时的力反馈。有了Dexmo,你可以感受到虚拟物体的大小、形状和坚硬度。你可以接触数字世界。”市面上已经有数款产品旨在处理虚拟现实中的手部交互,也有相关的产品即将要进入市场。例如,颇受欢迎的HTC Vive头盔配有一副控制器,其控制器能够使得追踪系统看到你的双手,让你可以用它们来在特定体验中与物体进行交互。今年晚些时候,Oculus将开始出货类似的手部控制产品Oculus Touch。10月,索尼也将开始出货配备两个PlayStation Move手部控制器的PS VR。Leap Motion甚至更进一步:利用传感器来追踪手指和手部的运动。", 64 | "collection": 26, 65 | "dateTime": "24小时前", 66 | "headImgSrc": "https://i.loli.net/2019/10/21/PcZYUaiDTbAH8yt.png", 67 | "author": "深白色", 68 | "date": "Nov 20 2016", 69 | "avatar": "https://i.loli.net/2019/10/21/KMiCf5XBoqId86r.png", 70 | "postId": 4, 71 | "music": { 72 | "url": "http://music.163.com/song/media/outer/url?id=32835566", 73 | "title": "往后余生", 74 | "coverImg": "http://p3.music.126.net/T1nKA7zWLb8Y2vnzc5CeCQ==/3431575792207860.jpg" 75 | } 76 | }, 77 | { 78 | "title": "爱奇艺创维开展战略合作,合力布局开放娱乐生态", 79 | "content": "爱奇艺和创维分别作为国内领先的在线视频品牌", 80 | "imgSrc": "https://i.loli.net/2019/10/21/dNqHFTL1UC3kxGa.png", 81 | "reading": 96, 82 | "detail": "爱奇艺和创维分别作为国内领先的在线视频品牌和家电品牌。双方一直锐意创新,为用户提供优质的服务体验和产品体验。据悉,爱奇艺与创维将展开从资本到VIP会员服务等各方面的深入合作。籍由此次合作,爱奇艺将战略投资创维旗下拥有高端互联网电视品牌的酷开公司。从下一财年开始,创维旗下互联网电视将通过银河互联网电视集成播控平台,预置VIP会员服务及相关内容。这种捆绑终端与VIP内容的全新销售模式,将大幅提升互联网电视终端用户的体验,给予用户更多优质内容的选择。", 83 | "collection": 26, 84 | "dateTime": "21小时前", 85 | "headImgSrc": "https://i.loli.net/2019/10/21/dNqHFTL1UC3kxGa.png", 86 | "author": "深白色", 87 | "date": "Nov 20 2016", 88 | "avatar": " https://i.loli.net/2019/10/21/Qg5XtAaGKu7CWlE.png", 89 | "postId": 5, 90 | "music": { 91 | "url": "http://music.163.com/song/media/outer/url?id=186240", 92 | "title": "朋友-谭咏麟", 93 | "coverImg": "http://p4.music.126.net/9PrJFGyL4jvNEQ1vFjMzzA==/3442570914300329.jpg" 94 | } 95 | }] -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "xiangmu", 3 | "version": "0.1.0", 4 | "private": true, 5 | "scripts": { 6 | "serve": "vue-cli-service serve", 7 | "build": "vue-cli-service build", 8 | "lint": "vue-cli-service lint" 9 | }, 10 | "dependencies": { 11 | "axios": "^0.19.0", 12 | "core-js": "^3.3.2", 13 | "lib-flexible": "^0.3.2", 14 | "postcss-pxtorem": "^4.0.1", 15 | "vant": "^2.2.15", 16 | "vue": "^2.6.10", 17 | "vue-amap": "^0.5.10", 18 | "vue-router": "^3.1.3" 19 | }, 20 | "devDependencies": { 21 | "@vue/cli-plugin-babel": "^4.0.0", 22 | "@vue/cli-plugin-eslint": "^4.0.0", 23 | "@vue/cli-plugin-router": "^4.0.0", 24 | "@vue/cli-service": "^4.0.0", 25 | "babel-eslint": "^10.0.3", 26 | "eslint": "^5.16.0", 27 | "eslint-plugin-vue": "^5.0.0", 28 | "vue-template-compiler": "^2.6.10" 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins:{ 3 | "postcss-pxtorem":{ 4 | "rootValue":75, 5 | "propList":["*"] 6 | } 7 | } 8 | } -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiangnan1014/vueDesign/398a3afe1b4c53d77a32f0723b8ef59260c7fc82/public/favicon.ico -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 项目 9 | 10 | 11 | 12 | 13 | 16 |
17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /src/App.vue: -------------------------------------------------------------------------------- 1 | 20 | 21 | 63 | -------------------------------------------------------------------------------- /src/assets/css/reset.css: -------------------------------------------------------------------------------- 1 | html, body, div, span, applet, object, iframe, 2 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, 3 | a, abbr, acronym, address, big, cite, code, 4 | del, dfn, em, img, ins, kbd, q, s, samp, 5 | small, strike, strong, sub, sup, tt, var, 6 | b, u, i, center, 7 | dl, dt, dd, ol, ul, li, 8 | fieldset, form, label, legend, 9 | table, caption, tbody, tfoot, thead, tr, th, td, 10 | article, aside, canvas, details, embed, 11 | figure, figcaption, footer, header, hgroup, 12 | menu, nav, output, ruby, section, summary, 13 | time, mark, audio, video { 14 | margin: 0; 15 | padding: 0; 16 | border: 0; 17 | font-size: 100%; 18 | font: inherit; 19 | vertical-align: baseline; 20 | } 21 | /* HTML5 display-role reset for older browsers */ 22 | article, aside, details, figcaption, figure, 23 | footer, header, hgroup, menu, nav, section { 24 | display: block; 25 | } 26 | body { 27 | line-height: 1; 28 | } 29 | ol, ul { 30 | list-style: none; 31 | } 32 | blockquote, q { 33 | quotes: none; 34 | } 35 | blockquote:before, blockquote:after, 36 | q:before, q:after { 37 | content: ''; 38 | content: none; 39 | } 40 | table { 41 | border-collapse: collapse; 42 | border-spacing: 0; 43 | } -------------------------------------------------------------------------------- /src/assets/images/fan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiangnan1014/vueDesign/398a3afe1b4c53d77a32f0723b8ef59260c7fc82/src/assets/images/fan.png -------------------------------------------------------------------------------- /src/assets/images/icon/arrow-right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiangnan1014/vueDesign/398a3afe1b4c53d77a32f0723b8ef59260c7fc82/src/assets/images/icon/arrow-right.png -------------------------------------------------------------------------------- /src/assets/images/icon/chat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiangnan1014/vueDesign/398a3afe1b4c53d77a32f0723b8ef59260c7fc82/src/assets/images/icon/chat.png -------------------------------------------------------------------------------- /src/assets/images/icon/chat1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiangnan1014/vueDesign/398a3afe1b4c53d77a32f0723b8ef59260c7fc82/src/assets/images/icon/chat1.png -------------------------------------------------------------------------------- /src/assets/images/icon/collection-anti.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiangnan1014/vueDesign/398a3afe1b4c53d77a32f0723b8ef59260c7fc82/src/assets/images/icon/collection-anti.png -------------------------------------------------------------------------------- /src/assets/images/icon/collection.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiangnan1014/vueDesign/398a3afe1b4c53d77a32f0723b8ef59260c7fc82/src/assets/images/icon/collection.png -------------------------------------------------------------------------------- /src/assets/images/icon/location.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiangnan1014/vueDesign/398a3afe1b4c53d77a32f0723b8ef59260c7fc82/src/assets/images/icon/location.png -------------------------------------------------------------------------------- /src/assets/images/icon/none-star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiangnan1014/vueDesign/398a3afe1b4c53d77a32f0723b8ef59260c7fc82/src/assets/images/icon/none-star.png -------------------------------------------------------------------------------- /src/assets/images/icon/search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiangnan1014/vueDesign/398a3afe1b4c53d77a32f0723b8ef59260c7fc82/src/assets/images/icon/search.png -------------------------------------------------------------------------------- /src/assets/images/icon/share-anti.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiangnan1014/vueDesign/398a3afe1b4c53d77a32f0723b8ef59260c7fc82/src/assets/images/icon/share-anti.png -------------------------------------------------------------------------------- /src/assets/images/icon/share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiangnan1014/vueDesign/398a3afe1b4c53d77a32f0723b8ef59260c7fc82/src/assets/images/icon/share.png -------------------------------------------------------------------------------- /src/assets/images/icon/star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiangnan1014/vueDesign/398a3afe1b4c53d77a32f0723b8ef59260c7fc82/src/assets/images/icon/star.png -------------------------------------------------------------------------------- /src/assets/images/icon/view.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiangnan1014/vueDesign/398a3afe1b4c53d77a32f0723b8ef59260c7fc82/src/assets/images/icon/view.png -------------------------------------------------------------------------------- /src/assets/images/icon/xx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiangnan1014/vueDesign/398a3afe1b4c53d77a32f0723b8ef59260c7fc82/src/assets/images/icon/xx.png -------------------------------------------------------------------------------- /src/assets/images/item.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiangnan1014/vueDesign/398a3afe1b4c53d77a32f0723b8ef59260c7fc82/src/assets/images/item.jpg -------------------------------------------------------------------------------- /src/assets/images/music.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiangnan1014/vueDesign/398a3afe1b4c53d77a32f0723b8ef59260c7fc82/src/assets/images/music.png -------------------------------------------------------------------------------- /src/assets/images/mv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiangnan1014/vueDesign/398a3afe1b4c53d77a32f0723b8ef59260c7fc82/src/assets/images/mv.png -------------------------------------------------------------------------------- /src/assets/images/p0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiangnan1014/vueDesign/398a3afe1b4c53d77a32f0723b8ef59260c7fc82/src/assets/images/p0.png -------------------------------------------------------------------------------- /src/assets/images/pause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiangnan1014/vueDesign/398a3afe1b4c53d77a32f0723b8ef59260c7fc82/src/assets/images/pause.png -------------------------------------------------------------------------------- /src/assets/images/pinglun.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiangnan1014/vueDesign/398a3afe1b4c53d77a32f0723b8ef59260c7fc82/src/assets/images/pinglun.png -------------------------------------------------------------------------------- /src/assets/images/play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiangnan1014/vueDesign/398a3afe1b4c53d77a32f0723b8ef59260c7fc82/src/assets/images/play.png -------------------------------------------------------------------------------- /src/assets/images/search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiangnan1014/vueDesign/398a3afe1b4c53d77a32f0723b8ef59260c7fc82/src/assets/images/search.png -------------------------------------------------------------------------------- /src/assets/images/selected-music.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiangnan1014/vueDesign/398a3afe1b4c53d77a32f0723b8ef59260c7fc82/src/assets/images/selected-music.png -------------------------------------------------------------------------------- /src/assets/images/selected-mv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiangnan1014/vueDesign/398a3afe1b4c53d77a32f0723b8ef59260c7fc82/src/assets/images/selected-mv.png -------------------------------------------------------------------------------- /src/assets/images/timg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiangnan1014/vueDesign/398a3afe1b4c53d77a32f0723b8ef59260c7fc82/src/assets/images/timg.gif -------------------------------------------------------------------------------- /src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiangnan1014/vueDesign/398a3afe1b4c53d77a32f0723b8ef59260c7fc82/src/assets/logo.png -------------------------------------------------------------------------------- /src/components/Item.vue: -------------------------------------------------------------------------------- 1 | 10 | 11 | 22 | 23 | 45 | -------------------------------------------------------------------------------- /src/components/Loading.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 13 | 14 | -------------------------------------------------------------------------------- /src/components/Movie.vue: -------------------------------------------------------------------------------- 1 | 9 | 10 | 21 | 22 | 34 | -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './App.vue' 3 | import router from './router' 4 | import './utils/config' 5 | import './utils/filter' 6 | import VueAMap from 'vue-amap'; 7 | 8 | Vue.config.productionTip = false 9 | Vue.use(VueAMap); 10 | new Vue({ 11 | router, 12 | render: h => h(App) 13 | }).$mount('#app') 14 | 15 | VueAMap.initAMapApiLoader({ 16 | // 高德的key 17 | key: '90c1427bc63e27b50cc3c94955cb8d8b', 18 | // 插件集合 19 | plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor'], 20 | // 高德 sdk 版本,默认为 1.4.4 21 | v: '1.4.4' 22 | }); -------------------------------------------------------------------------------- /src/router/index.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import VueRouter from 'vue-router' 3 | Vue.use(VueRouter) 4 | 5 | const routes = [ 6 | { 7 | path: '/music', 8 | name: 'music', 9 | component:()=>import('../views/Music/Music.vue') 10 | }, 11 | { 12 | path:'/movie', 13 | name:'movie', 14 | component:()=>import('../views/Movie/Movie.vue') 15 | }, 16 | { 17 | path: '/about', 18 | name: 'about', 19 | // route level code-splitting 20 | // this generates a separate chunk (about.[hash].js) for this route 21 | // which is lazy-loaded when the route is visited. 22 | component: () => import(/* webpackChunkName: "about" */ '../views/Movie/Movie.vue') 23 | }, 24 | { 25 | path:'/read', 26 | name:'read', 27 | component:()=>import('../views/Read/Read.vue') 28 | }, 29 | { 30 | path:'/my', 31 | name:'my', 32 | component:()=>import('../views/My/My.vue') 33 | }, 34 | { 35 | path:'/musicmore', 36 | name:'musicmore', 37 | component:()=>import('../views/Music/MusicMore.vue') 38 | }, 39 | { 40 | path:'/musicdetail/:id', 41 | name:'musicdetail', 42 | component:()=>import('../views/Music/MusicDetail.vue') 43 | }, 44 | { 45 | path:'/musicplay', 46 | name:'musicplay', 47 | component:()=>import('../views/Music/MusicPlay.vue'), 48 | props:true 49 | }, 50 | { 51 | path:'/moviedetail/:id', 52 | name:'moviedetail', 53 | component:()=>import('../views/Movie/MovieDetail.vue') 54 | },{ 55 | path:'/moviemore', 56 | name:'moviemore', 57 | component:()=>import('../views/Movie/MovieMore.vue') 58 | }, 59 | { 60 | path:'/', 61 | redirect:"/music" 62 | }, 63 | { 64 | path:'/ReadDetail', 65 | name:'ReadDetail', 66 | component:()=>import('../views/Read/ReadDetail.vue') 67 | } 68 | ] 69 | 70 | const router = new VueRouter({ 71 | mode: 'history', 72 | base: process.env.BASE_URL, 73 | routes 74 | }) 75 | 76 | export default router 77 | -------------------------------------------------------------------------------- /src/utils/config.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import 'lib-flexible/flexible.js' 3 | import '@/assets/css/reset.css' 4 | import axios from 'axios' 5 | import Item from '@/components/Item.vue' 6 | import Movie from '@/components/Movie.vue' 7 | import Loading from '@/components/Loading.vue' 8 | import Vant from 'vant' 9 | import 'vant/lib/index.css' 10 | 11 | axios.defaults.baseURL = 'http://musicapi.leanapp.cn/'; 12 | 13 | Vue.prototype.axios = axios 14 | 15 | Vue.use(Vant) 16 | Vue.component('Item',Item) 17 | Vue.component('Movie',Movie) 18 | Vue.component('Loading',Loading) -------------------------------------------------------------------------------- /src/utils/filter.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | Vue.filter("format", function (val) { 3 | if (val.length > 7) { 4 | val = val.slice(0, 7) + "..." 5 | } 6 | return val 7 | }) 8 | Vue.filter("time",function(val){ 9 | if(val){ 10 | var minu = Math.floor((val/1000/60)) 11 | if(minu<10){ 12 | minu = "0"+minu 13 | } 14 | var seconds = Math.floor((val/1000)%60) 15 | if(seconds<10){ 16 | seconds = "0"+seconds 17 | } 18 | val = minu + ":" +seconds 19 | } 20 | return val 21 | }) 22 | Vue.filter("number",function(val){ 23 | if(val<10){ 24 | val = "0"+val 25 | return val 26 | }else{ 27 | return val 28 | } 29 | }) -------------------------------------------------------------------------------- /src/views/Movie/Movie.vue: -------------------------------------------------------------------------------- 1 | 16 | 17 | 60 | 61 | -------------------------------------------------------------------------------- /src/views/Movie/MovieDetail.vue: -------------------------------------------------------------------------------- 1 | 40 | 41 | 85 | 86 | -------------------------------------------------------------------------------- /src/views/Movie/MovieMore.vue: -------------------------------------------------------------------------------- 1 | 9 | 10 | 32 | 33 | -------------------------------------------------------------------------------- /src/views/Music/Music.vue: -------------------------------------------------------------------------------- 1 | 14 | 15 | 69 | 70 | -------------------------------------------------------------------------------- /src/views/Music/MusicDetail.vue: -------------------------------------------------------------------------------- 1 | 20 | 21 | 48 | 49 | -------------------------------------------------------------------------------- /src/views/Music/MusicMore.vue: -------------------------------------------------------------------------------- 1 | 9 | 10 | 32 | 33 | -------------------------------------------------------------------------------- /src/views/Music/MusicPlay.vue: -------------------------------------------------------------------------------- 1 | 11 | 12 | 30 | 31 | -------------------------------------------------------------------------------- /src/views/Music/components/Itemmusic.vue: -------------------------------------------------------------------------------- 1 | 20 | 21 | 46 | 47 | 71 | 72 | -------------------------------------------------------------------------------- /src/views/My/My.vue: -------------------------------------------------------------------------------- 1 | 17 | 18 | 45 | 46 | -------------------------------------------------------------------------------- /src/views/Read/Read.vue: -------------------------------------------------------------------------------- 1 | 30 | 31 | 51 | 52 | -------------------------------------------------------------------------------- /src/views/Read/ReadDetail.vue: -------------------------------------------------------------------------------- 1 | 25 | 26 | 54 | 55 | -------------------------------------------------------------------------------- /vue.config.js: -------------------------------------------------------------------------------- 1 | const mockIndexData=require("./data/local"); 2 | module.exports={ 3 | devServer:{ 4 | port:8080, 5 | 6 | before(app){ 7 | app.get("/local",(req,res)=>{ 8 | res.json(mockIndexData); 9 | }) 10 | } 11 | } 12 | } --------------------------------------------------------------------------------