GithubHelp home page GithubHelp logo

miaozhirui / credan_app_recycling Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 33.21 MB

手机租赁回购项目

JavaScript 43.09% Java 11.97% Objective-C 13.09% C# 3.38% CSS 8.41% Vue 16.18% HTML 2.02% C++ 1.78% QML 0.09%

credan_app_recycling's Introduction

ps: 首先将当前工作目录切换到项目的根目录下面

. 安装项目所需要的模块 npm install

. 安装node进程管理器 npm install -g supervisor

. 创建一个开发页面 npm run create 页面名称

. 在根目录下面新建env.js放入自己的配置文件(此文件是被忽略的) module.exports = {

    mockDomain() {

        let mockDomain;
        
        if (process.env.localIp) {

            mockDomain = `http://${process.env.localIp}:3000`;

        }else {//如果获取不到ip走下面,手动添加自己的ip

            mockDomain = "http://添加自己的ip:3000";
        }

        return mockDomain;
    }
}

. 启动server npm run server

. 启动项目, 模拟本地数据 npm run dev

. 本地开发,模拟测试环境数据 npm run dev:mocktest

. 本地开发,模拟正式环境数据 npm run dev:mockformal

. 打包项目到手机或者模拟器上运行 npm run test:mock(用的数据是本地模拟的数据)

. 打包项目到手机或者模拟器上运行 npm run test(用的数据是测试环境的数据)

. 打包项目到手机或者模拟器上运行 npm run build(用的数据是正式环境的数据)

优化:

  1. 为了解决1px的问题,需要在源码node_modules/px2rem/lib/px2rem.js里面添加一行代码,在170行添加if($1 == 1) return $1+'px';

credan_app_recycling's People

Contributors

cmiaozhirui avatar

Stargazers

 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.