Skip to content

Instantly share code, notes, and snippets.

@wangzuo
Last active October 28, 2016 05:40
Show Gist options
  • Save wangzuo/6dd59999dbc2ec390bf4d853272dd8f0 to your computer and use it in GitHub Desktop.
Save wangzuo/6dd59999dbc2ec390bf4d853272dd8f0 to your computer and use it in GitHub Desktop.

Basic

Project structure

  • app.js
  • app.json
  • app.wxss
  • /pages
  • [page].json

Javascript

  • Notice: all js files within project are loaded at once.
  • compiled into amd format
  • module.exports
  • require('../utils/athena.js')
  • es2015?

Stylesheet (wxss)

  • global with app.wxss
  • namespace by page
  • @import support
  • display: block by default
  • responsive pixel & rem

Template (wxml)

  • component
  • <import src="_funding.wxml"/>
  • wrapper <block />
  • view list
  • render data setData()

Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment