Previous article introduces the basic building block of the service and the design of the user side, the next step is the
服务端和客户端
realization of a specific business.
This article first to introduce the 微信小程序
project design development, is subcontracting projects.
Since the project is in the "geeks time -9 hours to get small micro-channel application development" of development, based on the original subcontractor of the project are as follows:
Based on this added some directory componends、miniprogram_npm、models
, the last directory as follows:
componends
: Store custom components, such as custom pop, listitem
layoutconfig
: Storage of configuration information, such as interfacesapi
, some constantsimages
: Storage resource pictureminiprogram_npm
: Storagenpm
bag, usingnpm
generated automatically after a packetmodels
: Storage entity class related operations, such as booksbook.js
,user.js
pages
: Storage applet page, such as Homemy
behalf of an individual pageutils
: Storage of tools, such as network requests, time conversion toolpackage.json
: Usingnpm
the generated profile after, may be disposed in the filenpm
after the package be constructed usingsitemap.json
: Used to configure the applet and the page is allowed to be micro-channel index, all pages will be indexed by default. Configuration applet -sitemap.json configuration
Advice please add micro letter: Light to tease.