Giter VIP home page Giter VIP logo

wy_project's Introduction

网易严选-项目

vue vuex VueRouter axios封装

part1

首页 BScroll: 1、滚动的内容必须多于父级 2、BScroll默认禁止点击事件,{click: true}可以解决 Swiper 不用设置样式,按照Swiper预定义的样式,直接写 (Swiper-container...) 在使用BScroll时,会产生如下错误:

  The wrapper need at least one child element to be scroller
  Error in mounted hook (Promise/async): "TypeError: Cannot read property 'style' of undefined"

part2

分类 路由嵌套 跳转时携带id,通过id去查找下标,在组件被加载时,先调用一次,传0 初始化没数据 因为刚开始页面初始化时,没有内容,导致BScroll获取不到内容,报如下错误

  Cannot read property 'style' of undefined"
解决:通过watch监听路由变化,当路由发生变化时,再调用BScroll

part3

搜索 请求配置,代理解决跨域 函数节流 watch监听v-model数据,每次改变,500毫秒之外,调用请求

part4

购物车页面静态+个人中心头部 将底部组件拆分成一个组件,通过$route.meta属性判断是否需要底部导航 修改BUG:刷新后底部导航active类丢失--->在组件加载时,调用获取$route.path

wy_project's People

Contributors

fjk996082110 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.