1 Star 0 Fork 0

Peter / vue-cms

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

这是一个vue的项目

vue例子

灵魂

主流开源协议之间有何异同

git 设置

git config --global user.name "Peter"
git config --global user.email "hly_cf@126.com"

cd existing_git_repo
git remote add origin https://gitee.com/peterhly/vue-cms.git
git push -u origin master

制作首页App组件

  1. 完成 Header 区域,使用的是 Mint-UI 中的 Header 组件
  2. 制作底部的 Tabbar 区域,使用是 MUI 的 Tabbar.html
    • 在制作 购物车 小图标的时候,操作会相对多一些
    • 先把 扩展图标的 css 样式,拷贝到项目中
    • 拷贝 扩展字体库 ttf 文件,到项目中
    • 为购物车小图标,添加如下样式mui-icon-extra mui-icon-extra-cart
  3. 要在中间区域放置一个 router-view 来展示路由匹配到的组件

改造 Tabbar 为 router-link

设置路由高亮

点击 tabbar 中的路由链接,展示对应的路由组件

加载首页轮播图数据

  1. 获取数据,如何获取呢?使用 vue-resource
  2. 使用 vue-resource 的 this.$http获取数据
  3. 获取到的数据,要保存到 data 身上
  4. 使用 v-for 循环渲染 每个 item 项
The MIT License (MIT) Copyright (c) 2014 connors and other contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/peterhly/vue-cms.git
git@gitee.com:peterhly/vue-cms.git
peterhly
vue-cms
vue-cms
master

搜索帮助