从零创建 vue cii项目
第一步创建路由,并修改url模式
router/index.js
import Vue from 'vue'
import Router from 'vue-router'
import Web from '@/components/Web'Vue.use(Router)export default new Router({
mode: "history",
routes: [
{
path: '/',
name: 'Web',
component: Web
}
]
})
【小程序拼团 改版为 vue cii】第二步
components/web.vue
微信小拼团首页更新日志Air版 Pro版体验微信小拼团,改变你一生的电商系统
查看更多小拼团的前身是拼好货C2B新版本的底层架构更稳健相对老版本,采样新框架Laravel,同时并兼老框架生态完整,前后端源码 一目了然,不挖坑.不加密打造一款轻量级、无暴力、不涉政的绿色拼团系统.header {display:flex;
align-items: center;
justify-content: space-between;
padding: 56rem 258rem;
max-width: 900px;
margin: 0 auto;
}
.setion {padding: 56rem 258rem;
}
.login-wrap {display:flex;
align-items: center;
}
.login-label {font-size: 40rem;
font-weight: normal;
color: #07C160;
}
.login-icon {margin-right: 10rem;
background: url(https://pin.notestore.cn/image/v9/logo.png) no-repeat;
background-size: contain;
width: 44rem;
height: 44rem;
}
.nav-warp {display:flex;
align-items: center;
}
.nav-item:not(:last-child) {font-size: 30rem;
margin-right: 78rem;
color: #4A4A4A;
}
.nav-login {color: #07C160;
height: 50rem;
border-radius: 25rem;
border: 2rem solid #07C160;
padding: 0 36rem;
font-size: 30rem;
}
.nav-login {margin-right: 102rem;
display: flex;
align-items: center;
justify-content: center;
}
.setion {flex-direction: column;
display:flex;
align-items: center;
justify-content: center;
padding-top: 180rem;
}
.setion .title {font-size: 58rem;
font-weight: normal;
color: #4A4A4A;
}
.setion .button {font-size: 36rem;
font-weight: 400;
color: #FFFFFF;
display: flex;
align-items: center;
justify-content: center;
height: 78rem;
background: #07C160;
border-radius: 39rem;
padding: 0 88rem;
margin-top: 70rem;
}
.footer .content .item .icon {width: 8rem;
height: 8rem;
border-radius: 50%;
background: #FFFFFF;
margin-right: 12rem;
}
.footer .content .item .label {font-size: 28rem;
font-weight: normal;
color: #FFFFFF;
}
.footer .content .item {display:flex;
align-items: center;
margin-bottom: 15rem;
}
.footer{display:flex;
align-items: center;
justify-content: space-between;
}
.footer .content {flex-direction: column;
display:flex;
}
.footer {height: 417rem;
box-sizing: border-box;
}
.footer .image {z-index: 22;
right: 0;
position: absolute;
overflow: hidden;
width: 757rem;
height: 446rem;
background: url(https://pin.notestore.cn/image/v9/macbook.png) no-repeat;
background-size: contain;
}
.footer .admin {top:32rem;
right: 96rem;
position: absolute;
width: 565rem;
height: 387rem;
background: url(https://pin.notestore.cn/image/v9/admin.png) no-repeat #fff;
background-size: contain;
}
.footer {display:flex;
align-items: center;
justify-content: space-between;
padding: 56rem 0rem;
max-width: 900px;
margin: 0 auto;
}
.bottom {height: 417rem;
width: 100%;
box-sizing: border-box;
background-color: #39CD80;
position: fixed;
bottom: 0;
left: 0;
right: 0;
}
.macbook {position: relative;
margin-top: -200rem;
height: 446rem;
}
第三步 App.vue
view,body,ul,li,div {display: block;
margin: 0;
padding: 0;
}
body {background: #FFFFFF;
position: relative;
}
html {font-size: 0.5px;
font-family: Source Han Sans SC;
}
a,a:hover,a:active,a:visited,a:link {text-decoration: none;
color: unset;
}
推荐阅读
- JavaScript|vue 基于axios封装request接口请求——request.js文件
- vue.js|vue中使用axios封装成request使用
- vue.js组件开发
- 前端开发|Vue2.x API 学习
- javascript|vue使用js-xlsx导出excel,可修改格子样式,例如背景颜色、字体大小、列宽等
- vue.js|后端开发学习Vue(一)
- JS|VUE学习笔记[30-46]
- vue.js|Vue为何弃用经典的Ajax,选择自研Axios()
- vue|vue3替代vuex的框架piniajs实例教程
- cmd配置npm仓库镜像报错