GithubHelp home page GithubHelp logo

jeremylee9 / film-shadow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from isaac315/film-shadow

0.0 0.0 0.0 130.8 MB

基于vue框架做的移动web项目 ,该项目是一款针对广大票友而开发的一款在线购票移动web, 里面包含个人信息页登录注册, 首页电影显示, 电影分类, 电影排行, 影片搜索 , 预告播放, 购票选座. 影院定位, 购票信息, 退票信息等功能, 用户可以影片点赞评论留言, 也可以进行选座购票支付,在线买票;

JavaScript 7.20% HTML 0.24% Vue 91.84% CSS 0.71%

film-shadow's Introduction

配置

pxtrem配置

  • 安装依赖
    npm install lib-flexible –-save
    npm install postocss-pxtorem -dev
  • 添加meta
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
  • 引入文件
    main.js  import 'lib-flexible'
  • 配置postcss-pxtorem
   
    postcss
    module.exports = {
  plugins: {
    autoprefixer: {},
    "postcss-pxtorem": {
      "rootValue": 75, // 设计稿宽度的1/10,(JSON文件中不加注释,此行注释及下行注释均删除)
      "propList":["*"] // 需要做转化处理的属性,如`hight``width``margin`等,`*`表示全部
   }
  }
}


配置别名

  const path = require('path');
  function resolve (dir) {
      return path.join(__dirname, dir)
  }
  console.log('vue.config.js ============>')
  module.exports = {
    chainWebpack: (config)=>{
      config.resolve.alias
          .set('@assets',resolve('src/assets'))
          .set('@components',resolve('src/components'))
          .set('@static',resolve('src/static'))
    }
  }

原则

切图部分

样式

为了保持整体样式统一, 定义了基本样式 采用sass变量调用

  统一padding
  $basePadding: 17.5px
  版心
  $baseCenterWidth: 340px;
  字体颜色 
  $baseFontColor: #DFDFDF;
  字体颜色2
  $baseFontColor2: #FBC34A;
  背景色
  $baseBgColor: #22262D;
  次级背景色
  $baseBgLightColor: #22262D;
  渐变色 
  @mixin changeColor(){
    background:linear-gradient(150deg,rgba(242,91,134,1) 0%,rgba(241,172,94,1) 100%);
  }
  button{
    outline: none;
    border: none;
  }

代码结构

  • components 全局公共组件
  • router 路由 原则上除了一级路由 不应该出现 其他一级路由 比如/home /xxxx
    • 自行添加自己部分路由 注释清楚 不要修改别人的 冲突手动合并
  • store vuex
    • modules 模块
      • xx.js
    • index.js
  • api 模拟数据接口,返回promise,数据从mock获取
    • xx.js
  • mock
    • xx.js
  • view 视图部分
    • home
      • components 当前域下的公用组件
      • Home.vue 主视图
      • other
        • other.vue 其他页面
    • cinema
  • utils 工具类
  • assets 静态资源
    • imgs
      • icons 公共icon
      • home home路由下图片资源
        • xxx 有必要可建立二级文件夹

film-shadow's People

Contributors

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