Giter VIP home page Giter VIP logo

medtools's Introduction

小程序通用model

安装

  • npm install -g bower
  • bower install wxapp-model --save

项目目录结构

├── vender                    插件目录
|   ├── wxapp-client-sdk         客户端sdk
|   └── assets          小程序公共素材包
├── pages               小程序界面
├── app.js             小程序入口文件(需要自行添加)
├── app.json           小程序全局配置(配置商城模块页面)
├── app.wxss           小程序全局样式
└── config.js          小程序项目配置文件(配置商城模块功能)

配置app.json

将需要的页面配置到 app.json 文件中

"pages":[
    "pages/index/index",
    "pages/index/search",
    "pages/index/forecast",
    "pages/counter/index",
    "pages/loan/index",
    "pages/detail/index",
    "vendor/assets/common/noAuth/notAuth",
    "pages/about/index",
    "pages/map/car"
  ],

app.js 与app.wxss

app.js符合设计器中的规范,没有多余代码(功能代码移植到until文件中)

var qcloud = require('./vendor/wxapp-client-sdk/index');
var config = require('./config');
App({
    onLaunch() {
        qcloud.setLoginUrl(config.service.apiHost+"/apis/"+config.version.appId+"/login/login");
        qcloud.setBusinessId(config.service.businessId);
    },    
});

Ⅰ Ⅱ Ⅲ Ⅳ

  {
    "pagePath": "pages/nccn/index",
    "iconPath": "vendor/assets/images/tb_3.png",
    "selectedIconPath": "vendor/assets/images/tb_3_f.png",
    "text": "NCCN"
  },

medtools's People

Contributors

aomiit avatar

Stargazers

Anonymous avatar

Watchers

James Cloos 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.