From 6224c000eb6cfc83e16790295db1e15c8c0d7427 Mon Sep 17 00:00:00 2001 From: Nino Date: Mon, 19 Dec 2016 16:30:17 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 5 ++ app.json | 19 +++++ app.wxss | 18 +++++ pages/badge/index.js | 13 ++++ pages/badge/index.wxml | 23 +++++++ pages/badge/index.wxss | 14 ++++ pages/btn/index.js | 13 ++++ pages/btn/index.wxml | 42 ++++++++++++ pages/btns/index.js | 13 ++++ pages/btns/index.wxml | 7 ++ pages/cell/index.js | 13 ++++ pages/cell/index.wxml | 31 +++++++++ pages/dashboard/index.js | 13 ++++ pages/dashboard/index.wxml | 34 +++++++++ pages/label/index.js | 13 ++++ pages/label/index.wxml | 22 ++++++ pages/loadmore/index.js | 13 ++++ pages/loadmore/index.wxml | 7 ++ pages/panel/index.js | 13 ++++ pages/panel/index.wxml | 15 ++++ pages/tab/index.js | 70 +++++++++++++++++++ pages/tab/index.wxml | 36 ++++++++++ pages/tab/index.wxss | 0 zui/badge.wxss | 24 +++++++ zui/btn.wxss | 137 +++++++++++++++++++++++++++++++++++++ zui/btns.wxss | 3 + zui/cell.wxss | 48 +++++++++++++ zui/color.wxss | 27 ++++++++ zui/dialog.wxss | 41 +++++++++++ zui/form.wxss | 17 +++++ zui/helper.wxss | 66 ++++++++++++++++++ zui/index.wxss | 16 +++++ zui/label.wxss | 34 +++++++++ zui/loadmore.wxml | 24 +++++++ zui/loadmore.wxss | 70 +++++++++++++++++++ zui/namecard.wxss | 37 ++++++++++ zui/panel.wxss | 7 ++ zui/quantity.wxss | 37 ++++++++++ zui/steps.wxss | 117 +++++++++++++++++++++++++++++++ zui/tab.wxss | 45 ++++++++++++ zui/toast.wxss | 17 +++++ 41 files changed, 1214 insertions(+) create mode 100644 app.js create mode 100644 app.json create mode 100644 app.wxss create mode 100644 pages/badge/index.js create mode 100644 pages/badge/index.wxml create mode 100644 pages/badge/index.wxss create mode 100644 pages/btn/index.js create mode 100644 pages/btn/index.wxml create mode 100644 pages/btns/index.js create mode 100644 pages/btns/index.wxml create mode 100644 pages/cell/index.js create mode 100644 pages/cell/index.wxml create mode 100644 pages/dashboard/index.js create mode 100644 pages/dashboard/index.wxml create mode 100644 pages/label/index.js create mode 100644 pages/label/index.wxml create mode 100644 pages/loadmore/index.js create mode 100644 pages/loadmore/index.wxml create mode 100644 pages/panel/index.js create mode 100644 pages/panel/index.wxml create mode 100644 pages/tab/index.js create mode 100644 pages/tab/index.wxml create mode 100644 pages/tab/index.wxss create mode 100644 zui/badge.wxss create mode 100644 zui/btn.wxss create mode 100644 zui/btns.wxss create mode 100644 zui/cell.wxss create mode 100644 zui/color.wxss create mode 100644 zui/dialog.wxss create mode 100644 zui/form.wxss create mode 100644 zui/helper.wxss create mode 100644 zui/index.wxss create mode 100644 zui/label.wxss create mode 100644 zui/loadmore.wxml create mode 100644 zui/loadmore.wxss create mode 100644 zui/namecard.wxss create mode 100644 zui/panel.wxss create mode 100644 zui/quantity.wxss create mode 100644 zui/steps.wxss create mode 100644 zui/tab.wxss create mode 100644 zui/toast.wxss 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 @@ + + + +