软件定制开发供应商淘宝网简易实现, Html + css + Javascript + Jquery +Swiper +Vue, 期末js大作业

软件定制开发供应商首先上一张页面效果图, 软件定制开发供应商下载地址往最下面翻

 🎨本项目演示地址: 

项目亮点:

(相应代码)

  • 导航栏的下拉动画, jQuery实现

  1. $('#me').hover(
  2. function () {
  3. $('#me1').slideDown().fadeIn(200)
  4. },
  5. function () {
  6. $('#me1').slideUp().fadeOut(100)
  7. })
  8. $('#folder').hover(
  9. function () {
  10. $('#folder1').slideDown().fadeIn(200)
  11. },
  12. function () {
  13. $('#folder1').slideUp().fadeOut(100)
  14. })

  • 搜索框和按钮双向绑定(VUE实现) (其实就是复习一下vue的知识, 没有特别的)

  1. <div class="search-m-input">
  2. <label>
  3. <input class="box1" type="text" name="search" placeholder="search..." v-model="name">
  4. </label>
  5. <button class="btn" type="submit" id="search" onclick="window.location.href='jump.html'">
  6. 搜索{{name}}
  7. </button>
  8. </div>
  1. <script>
  2. new Vue({
  3. el: '.search-m-input',
  4. data: {
  5. name: ''
  6. }
  7. })
  8. </script>

  • 按钮放大缩小动画,jQuery实现

  1. function toBig(item) {
  2. let i = $(item);
  3. i.animate({width: "+=14px", height: "+=5px"},'fast');
  4. }
  5. function toSmall(item) {
  6. let i = $(item);
  7. i.animate({width: "-=14px", height: "-=5px"},'fast');
  8. }

  • 悬浮加载侧边栏, 采用jQuery实现, 原理是在空的盒子里加载一个 html网页 

  1. let left = document.getElementById('left-items');
  2. let pageBox = document.getElementById('left-items-content'); //内容区域
  3. left.onmouseover = function () {
  4. pageBox.style.display = 'block'
  5. pageBox.style.zIndex = "2";
  6. $(pageBox).load('left.html');
  7. }
  8. left.onmouseout = function () {
  9. pageBox.style.display = 'none'
  10. }
  11. pageBox.onmouseover = function () {
  12. pageBox.style.display = 'block'
  13. }
  14. pageBox.onmouseout = function () {
  15. pageBox.style.display = 'none'
  16. }

  • 和图片放大

  1. <!-- 图片展示区 -->
  2. <div class="img-box">
  3. <div style="width:520px;height: 280px;background-color: brown; float: left;margin-right: 10px;">
  4. <div class="swiper">
  5. <div class="swiper-wrapper">
  6. <div class="swiper-slide"><img src="img/mi12pro.jpg" alt=""></div>
  7. <div class="swiper-slide"><img src="img/content_02.jpg" alt=""></div>
  8. <div class="swiper-slide"><img src="img/charge.jpg" alt=""></div>
  9. <div class="swiper-slide"><img src="img/mixfold.png" alt=""></div>
  10. </div>
  11. <!-- 如果需要分页器 -->
  12. <div class="swiper-pagination"></div>
  13. <!-- 如果需要导航按钮 -->
  14. <div class="swiper-button-prev"></div>
  15. <div class="swiper-button-next"></div>
  16. </div>
  17. <div id="toBig1">
  18. <img src="img/tu2.jpg " alt="tu2">
  19. </div>
  20. <div style="width:520px;height: 200px;background-color: rgb(89, 42, 165);float: left;margin-top:10px; margin-right: 10px;">
  21. <div class="swiper">
  22. <div class="swiper-wrapper">
  23. <div class="swiper-slide"><img style="width:100%;height: 100%" src="img/content_06.png"
  24. alt=""></div>
  25. <div class="swiper-slide"><img style="width:100%;height: 100%" src="img/content_07.png"
  26. alt=""></div>
  27. <div class="swiper-slide"><img style="width:100%;height: 100%" src="img/content_08.png"
  28. alt=""></div>
  29. <div class="swiper-slide"><img style="width:100%;height: 100%" src="img/content_09.png"
  30. alt=""></div>
  31. </div>
  32. <!-- 如果需要分页器 -->
  33. <div class="swiper-pagination"></div>
  34. <!-- 如果需要导航按钮 -->
  35. <div class="swiper-button-prev"></div>
  36. <div class="swiper-button-next"></div>
  37. </div>
  38. </div>
  39. <div id="toBig2">
  40. <img src="img/tu4.jpg" alt="tu4">
  41. </div>
  42. </div>
  1. let swiper = new Swiper('.swiper', {
  2. direction: 'horizontal', // 垂直切换选项
  3. loop: true, // 循环模式选项
  4. rewind: true,
  5. autoplay: {
  6. delay: 1500,
  7. disableOnInteraction: false,
  8. },
  9. // 如果需要分页器
  10. pagination: {
  11. el: '.swiper-pagination',
  12. clickable: true,
  13. },
  14. // 如果需要前进后退按钮
  15. navigation: {
  16. nextEl: '.swiper-button-next',
  17. prevEl: '.swiper-button-prev',
  18. },
  19. })
  1. #toBig1 img:hover{
  2. transform: scale(1.1);
  3. transition: all 0.3s ease-in-out 0.2s;
  4. border-radius: 10px;
  5. }
  6. #toBig2 img:hover{
  7. transform: scale(1.1);
  8. transition: all 0.3s ease-in-out 0.2s;
  9. border-radius: 10px;
  10. }

  • 项目里我最得意的动画, 偷师同学的(有点小多就不放出来了, 要看的项目自取)

  •  跳转以及淘宝登录的静态页面(登录那个页面, 是基于淘宝的源码实现的)

这个是我的一个期末大作业, 参考了若干项目

reference:

html的大体框架以及css都参考了这个项目的代码, 特此感谢

参考了js部分的代码(swiper是自己实现的,实现过后才发现有这个项目, 当然了,不难), 以及左边的导航栏悬浮的网页html.

源码下载地址 

网站建设定制开发 软件系统开发定制 定制软件开发 软件开发定制 定制app开发 app开发定制 app开发定制公司 电商商城定制开发 定制小程序开发 定制开发小程序 客户管理系统开发定制 定制网站 定制开发 crm开发定制 开发公司 小程序开发定制 定制软件 收款定制开发 企业网站定制开发 定制化开发 android系统定制开发 定制小程序开发费用 定制设计 专注app软件定制开发 软件开发定制定制 知名网站建设定制 软件定制开发供应商 应用系统定制开发 软件系统定制开发 企业管理系统定制开发 系统定制开发