1.本案例灵感来源于网络

项目演示地址:可私聊作者获取(演示地址不定时变化)

仿照来源:网络案例

以下源码是第一版源码,最新源码请私聊作者获取,或通过博客后面微信名片添加作者

源码https://download.csdn.net/download/lucky_fang/85193781

官方案例截图

产品效果图:

2.首先创建vue项目,采用开发工具WebStorm。vue创建项目教程可参考:(一)Vue——如何创建一个Vue项目(完整步骤) - 㭌(mou)七 - 博客园

3.创建项目后安装elementui,按照官方教程即可,elementui官方地址:Element - The world's most popular Vue UI framework

创建好的项目目录结构大概这样子:

4.整个框架布局分为头部 src/page/top、内容src/page/index和底部src/page/foot。

内容src/page/index为一个共用容器,就像iframe标签一样,所有的路径访问将会显示在容器中,页面跳转的路径定义在src/router/index.js中

5.src/page/top/index.vue

<template><div style="font-size: 14px;"><div style="display: flex;height: 40px;padding: 0 400px;background-color: #f5f5f5;"><div class="top-title" style="padding-right: 20px;line-height: 40px;color: #666;">嗨,欢迎来到<span style="color: #b31e22;">XXX</span></div><div class="top-title" style="padding-right: 20px;line-height: 40px;color: #666;margin-left: 20px;">网店代销</div><div class="top-title" style="padding-right: 20px;line-height: 40px;color: #666;margin-left: 20px;">帮助中心</div><div style="flex: 1;display: flex;"><div style="flex: 1;"></div><div style="width: 300px;display: flex;"><el-button type="text" style="color: #666;" class="top-title">登录</el-button><el-button type="text" style="color: #666;margin-right: 10px;" class="top-title">注册</el-button><el-button type="text" style="color: #666;margin-right: 10px;" class="top-title">我的U袋</el-button><el-button type="text" style="color: #666;margin-right: 10px;" class="top-title">我的订单</el-button><el-button type="text" style="color: #666;margin-right: 10px;" class="top-title">积分平台</el-button></div></div></div><div style="margin: 0 400px;height: 100px;line-height: 100px;"><div style="display: flex;"><div style="width: 200px;height: 100px;"><img src="../../../public/img/logo.jpg" style="cursor: pointer;width: 200px;height: 100px;"></div><div style="flex: 1;text-align: center;padding: 0 50px;"><el-input placeholder="Ta们都在搜XXX" v-model="input" style="width: 100%;margin-top: 30px;"><el-button slot="append" icon="el-icon-search"></el-button></el-input></div><div style="width: 200px;text-align: center;"><el-button type="warning" icon="el-icon-shopping-cart-2" plain>购物车 0 件</el-button></div></div></div></div>
</template><script>export default {data() {return {input:''};},mounted() {},methods: {homePage(){this.$router.push({path: '/home/index'});},}};
</script><style>.top-title:hover{cursor: pointer;color: #b31e22!important;}.el-input-group__append, .el-input-group__prepend{background-color: #b31e22!important;color: #ffffff!important;}
</style>

6.src/page/index/index.vue

<template><div id="body" style="width: 100%;height: 100%;overflow: auto;"><top></top><router-view></router-view><foot></foot></div>
</template><script>import top from "../top/index.vue";import foot from "../foot/index";export default {components: {top,foot},name: "index",data() {return {};},mounted() {},methods: {}};
</script><style>#body{background-size: 100% 100%;background-repeat: no-repeat;}
</style>

7.src/page/foot/index.vue

<template><div style="font-size: 14px;"><div style="margin: 50px 400px 50px 400px;"><div style="display: flex;"><div style="flex: 1;display: flex;"><div style=""><div class="foot-title">帮助中心</div><div class="foot-item">账户管理</div><div class="foot-item">购物指南</div><div class="foot-item">订单操作</div></div><div style="margin-left: 100px;"><div class="foot-title">服务支持</div><div class="foot-item">账户管理</div><div class="foot-item">购物指南</div><div class="foot-item">订单操作</div></div><div style="margin-left: 100px;"><div class="foot-title">线下门店</div><div class="foot-item">账户管理</div><div class="foot-item">购物指南</div><div class="foot-item">订单操作</div></div><div style="margin-left: 100px;"><div class="foot-title">支付方式</div><div class="foot-item">账户管理</div><div class="foot-item">购物指南</div><div class="foot-item">订单操作</div></div></div><div style="width: 250px;border-left: 1px solid #dfdfdf;text-align: center;"><div style="color: #19b4ea;font-weight: bold;font-size: 18px;line-height: 40px;">000-123456789</div><div style="color: gray;">周一至周日8:00~18:00</div><div style="color: gray;margin-bottom: 10px;">(节假日不休)</div><el-button type="success" round icon="el-icon-headset">24小时客服在线</el-button></div></div></div><div style="background-color: #19b4ea;height: 40px;text-align: center;line-height: 40px;color: #FFFFFF;">申明:本网页仅供学习参考 @XXX XXX XXX</div></div></template><script>
</script><style>.foot-title{height: 40px;line-height: 40px;}.foot-item{height: 25px;line-height: 25px;color: gray;}.foot-item:hover{cursor: pointer;color: #e37a2f;}
</style>

8.源码

衣服、商品、商城网站模板首页,仿U袋网,vue+elementui简洁实现相关推荐

  1. 衣服、商品、商城网站模板首页,仿U袋网,vue+elementui简洁实现(二)

    一.前言 项目演示地址:可私聊作者获取(演示地址不定时变化) 接上一遍博客:<衣服.商品.商城网站模板首页,仿U袋网,vue+elementui简洁实现> 注意: 上一遍博客里面的源码下载 ...

  2. 仿京东商城html5模版,html5仿京东手机WAP商城网站模板

    [实例简介] html5仿京东手机商城网站模板_wap京东手机购物网站模板下载 [实例截图] [核心代码] 9fc4db22-b015-4b00-8188-53007c5acbf6 ├── cart ...

  3. 【web素材】07—仿京东,小米,锤子,华为等20+套商城网站模板

    素材整理 | 杨小爱 在之前,我跟大家分享过很多web素材的学习资源,我做这个栏目的目的,就是希望我们可以通过看别人的项目代码,然后去比较自己的代码,这些素材资源,也是我自己在做项目的时候,收集整理积 ...

  4. div+css静态网页设计 电商购物网站设计(55页) 电商网页设计制作 简单静态HTML网页作品 购物网页作业成品 学生商城网站模板

    HTML5期末大作业:电商购物网站设计--电商购物网站设计(55页) 电商网页设计制作 简单静态HTML网页作品 购物网页作业成品 学生商城网站模板 文章目录 HTML5期末大作业:电商购物网站设计- ...

  5. HTML5期末大作业:电商购物网站设计——电商购物网站设计(55页) 电商网页设计制作 简单静态HTML网页作品 购物网页作业成品 学生商城网站模板

    HTML5期末大作业:电商购物网站设计--电商购物网站设计(55页) 电商网页设计制作 简单静态HTML网页作品 购物网页作业成品 学生商城网站模板 常见网页设计作业题材有 个人. 美食. 公司. 学 ...

  6. 网页成品——手表商城网站模板源码(17页) web期末作业设计网页_手表商城网页设计作业成品

    HTML5期末大作业:手表商城网站设计--手表商城网站模板源码(17页) web期末作业设计网页_手表商城网页设计作业成品 常见网页设计作业题材有 个人. 美食. 公司. 学校. 旅游. 电商. 宠物 ...

  7. HTML5期末大作业:手表商城网站设计——手表商城网站模板源码(17页) web期末作业设计网页_手表商城网页设计作业成品

    HTML5期末大作业:手表商城网站设计--手表商城网站模板源码(17页) web期末作业设计网页_手表商城网页设计作业成品 常见网页设计作业题材有 个人. 美食. 公司. 学校. 旅游. 电商. 宠物 ...

  8. ecshop红色风格婚纱摄影婚庆公司商城网站模板 GBK+UTF8版本网盘下载

    ecshop红色风格婚纱摄影婚庆公司商城网站模板 GBK+UTF8版本 文件:590m.com/f/25127180-486122316-56ab8c (访问密码:551685) 以下内容无关: -- ...

  9. 仿蘑菇街,京东,苏宁易购,海尔商城等33套大气购物商城网站模板,附源码免费下载地址...

    来源 | web前端开发 在很早之前,跟大家分享过很多有关于网站模板的素材资源,有企业网站,也有购物商城,还有后台管理模板,以及大数据页面模板等等. 今天我们再跟大家分享32套商城网站源码,有的是比较 ...

最新文章

  1. vs2012中程序集生成无法自动在网站Bin目录下生成Dll文件?(已解决!)
  2. 自学篇之-----纯css做的漂亮的单选框复选框样式
  3. python在中小学教学中的应用-在python程序中的进程操作
  4. android ramdisk
  5. leetcode 330. Patching Array | 1798. Maximum Number of Consecutive Values You Can Make
  6. scala中的case中的变量为啥没有定义
  7. linux下expdp定时备份_Linux下定时任务的配置
  8. 主人公的出场—一个程序员的成长史(1)
  9. flask request传参
  10. opencv 之 icvCreateHidHaarClassifierCascade 分类器信息初始化函数部分详细代码注释。...
  11. 11.云计算平台(数据科学概论)
  12. 英语口语 每日一句 小红书TroyChina
  13. java fx scen,java基础:10.2 Java FX之显示图片
  14. mysql导入错误1148_解决ubuntu server mysql load data infile 导入本地文件ERROR 1148 (42000)错误。...
  15. [附源码]java毕业设计咖啡销售管理系统-
  16. systemd service unit
  17. 怎么查看网站在百度是否安全?提示网站有风险怎么办?
  18. BurpSuite专业版下载安装教程
  19. C语言串口通信AD转换定时器中断,大神们能帮我看一下程序吗?为啥串口中断没法打断定时器中断。...
  20. rpm 查看依赖关系 依赖谁和被谁依赖

热门文章

  1. day01_Java语言概述
  2. 计算机网络学习(二)物理层
  3. vue页面截图;H5页面截图;vue项目中将特定网页内容生成图片(截图);html2canvas截图
  4. 使用C#和Excel进行报表开发(一)--开始
  5. weinre安装配置
  6. asterisk1.8中设置presence或blf
  7. ubuntu下使用GeographicLib库
  8. 基于javaweb仿京东商城管理系统的设计与实现(含论文和程序源码及数据库文件)
  9. vue商城:商品规格数据处理
  10. 【JVM】8_对象优先在Eden分配