commit 6224c000eb6cfc83e16790295db1e15c8c0d7427 Author: Nino Date: Mon Dec 19 16:30:17 2016 +0800 项目初始化 diff --git a/app.js b/app.js new file mode 100644 index 00000000..725edee2 --- /dev/null +++ b/app.js @@ -0,0 +1,5 @@ + +App({ + globalData:{ + } +}) diff --git a/app.json b/app.json new file mode 100644 index 00000000..8ce335c1 --- /dev/null +++ b/app.json @@ -0,0 +1,19 @@ +{ + "pages":[ + "pages/dashboard/index", + "pages/btn/index", + "pages/badge/index", + "pages/cell/index", + "pages/label/index", + "pages/loadmore/index", + "pages/panel/index", + "pages/tab/index" + ], + "window":{ + "navigationBarBackgroundColor": "#FAFAFA", + "navigationBarTitleText": "WeChat", + "navigationBarTextStyle":"black", + "backgroundTextStyle":"dark", + "backgroundColor": "#f9f9f9" + } +} diff --git a/app.wxss b/app.wxss new file mode 100644 index 00000000..63c781e8 --- /dev/null +++ b/app.wxss @@ -0,0 +1,18 @@ +@import "zui/index.wxss"; + +.container { + background: #F9F9F9; + overflow: hidden; + min-height: 100vh; + box-sizing: border-box; +} +.container::before { + position: fixed; + top: 0; + left: 0; + content: ' '; + width: 100%; + height: 1rpx; + background-color: #e2e2e2; + z-index: 5; +} diff --git a/pages/badge/index.js b/pages/badge/index.js new file mode 100644 index 00000000..99e7458d --- /dev/null +++ b/pages/badge/index.js @@ -0,0 +1,13 @@ +var app = getApp() + +Page({ + data: { + }, + + onLoad: function () { + + }, + + onShow: function() { + }, +}) diff --git a/pages/badge/index.wxml b/pages/badge/index.wxml new file mode 100644 index 00000000..81bc5d3f --- /dev/null +++ b/pages/badge/index.wxml @@ -0,0 +1,23 @@ + + + + + + + + + 9 + + + + + 19 + + + + + 99+ + + + + diff --git a/pages/badge/index.wxss b/pages/badge/index.wxss new file mode 100644 index 00000000..afbb2e63 --- /dev/null +++ b/pages/badge/index.wxss @@ -0,0 +1,14 @@ +.demo { + padding: 40px 0; + display: flex; +} +.demo__item { + flex: 1; +} +.demo__icon { + margin: 0 auto; + width: 48px; + height: 48px; + background: #ddd; + border-radius: 4px; +} diff --git a/pages/btn/index.js b/pages/btn/index.js new file mode 100644 index 00000000..99e7458d --- /dev/null +++ b/pages/btn/index.js @@ -0,0 +1,13 @@ +var app = getApp() + +Page({ + data: { + }, + + onLoad: function () { + + }, + + onShow: function() { + }, +}) diff --git a/pages/btn/index.wxml b/pages/btn/index.wxml new file mode 100644 index 00000000..ac3dd5d7 --- /dev/null +++ b/pages/btn/index.wxml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pages/btns/index.js b/pages/btns/index.js new file mode 100644 index 00000000..99e7458d --- /dev/null +++ b/pages/btns/index.js @@ -0,0 +1,13 @@ +var app = getApp() + +Page({ + data: { + }, + + onLoad: function () { + + }, + + onShow: function() { + }, +}) diff --git a/pages/btns/index.wxml b/pages/btns/index.wxml new file mode 100644 index 00000000..b33cc46b --- /dev/null +++ b/pages/btns/index.wxml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/pages/cell/index.js b/pages/cell/index.js new file mode 100644 index 00000000..99e7458d --- /dev/null +++ b/pages/cell/index.js @@ -0,0 +1,13 @@ +var app = getApp() + +Page({ + data: { + }, + + onLoad: function () { + + }, + + onShow: function() { + }, +}) diff --git a/pages/cell/index.wxml b/pages/cell/index.wxml new file mode 100644 index 00000000..bcff0650 --- /dev/null +++ b/pages/cell/index.wxml @@ -0,0 +1,31 @@ + + + + + 字段1 + + + + 字段2 + + + + 最后一个字段 + + + + + + + 不带箭头 + + + + + + 点击时背景会变色 + + + + + diff --git a/pages/dashboard/index.js b/pages/dashboard/index.js new file mode 100644 index 00000000..99e7458d --- /dev/null +++ b/pages/dashboard/index.js @@ -0,0 +1,13 @@ +var app = getApp() + +Page({ + data: { + }, + + onLoad: function () { + + }, + + onShow: function() { + }, +}) diff --git a/pages/dashboard/index.wxml b/pages/dashboard/index.wxml new file mode 100644 index 00000000..e66910df --- /dev/null +++ b/pages/dashboard/index.wxml @@ -0,0 +1,34 @@ + + + + + Button + + + + Loadmore + + + + Panel + + + + Cell + + + + Badge + + + + Tab + + + + Label + + + + + diff --git a/pages/label/index.js b/pages/label/index.js new file mode 100644 index 00000000..99e7458d --- /dev/null +++ b/pages/label/index.js @@ -0,0 +1,13 @@ +var app = getApp() + +Page({ + data: { + }, + + onLoad: function () { + + }, + + onShow: function() { + }, +}) diff --git a/pages/label/index.wxml b/pages/label/index.wxml new file mode 100644 index 00000000..072ee8e2 --- /dev/null +++ b/pages/label/index.wxml @@ -0,0 +1,22 @@ + + + + 蓝色 + 红色 + 黑色 + + + + + 会员折扣 + 返现 + + + + + + 会员折扣 + 返现 + + + diff --git a/pages/loadmore/index.js b/pages/loadmore/index.js new file mode 100644 index 00000000..99e7458d --- /dev/null +++ b/pages/loadmore/index.js @@ -0,0 +1,13 @@ +var app = getApp() + +Page({ + data: { + }, + + onLoad: function () { + + }, + + onShow: function() { + }, +}) diff --git a/pages/loadmore/index.wxml b/pages/loadmore/index.wxml new file mode 100644 index 00000000..b6836923 --- /dev/null +++ b/pages/loadmore/index.wxml @@ -0,0 +1,7 @@ + + + +