Code Monkey home page Code Monkey logo

firstproject's Introduction

#基于vue脚手架的移动端聚合网站

###目录介绍

  1. src项目代码 * assets-静态文件 * components-子组件 * lib-mui * Storage-模块(用于每次保存登陆成功账号) * data.vue 全局api接口
    /* 登陆接口 */
  const login="http://106.12.179.113/"
  //const login="http://127.0.0.1"
  const key="d171ec3c4755783de7dc5b00fed440ee"
  //游戏
  const Gameurl=`http://api.tianapi.com/ai/?key=${key}&num=10&page=`
  //it
  const Iturl=`http://api.tianapi.com/it/?key=${key}&num=10&page=`
  //汽车
  const Carurl=`http://api.tianapi.com/auto/?key=${key}&num=10&page=`
  //国际
  const Guourl=`http://api.tianapi.com/world/?key=${key}&num=10&page=`
  //新闻详情
  const Titleurl=`http://api.tianapi.com/txapi/htmltext/?key=${key}&url=`
  export default {
    Gameurl,
    Iturl,
    Carurl,
    Guourl,
    Titleurl,
    login,
}

组件切换动画

     .v-enter{
     opacity: 0;
     transform: translateX(100%);
   }
      .v-leave-to{
     opacity: 0;
     transform: translateX(-100%);
     position: absolute;
   }
   .v-enter-active, 
   .v-leave-active{
     transition: all 0.5s ease;
   }
首页:
## 安装依赖

npm install

### 运行

npm run serve

### 打包

npm run build



firstproject's People

Contributors

tiajinsha 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.