diff --git a/examples/hello-uniapp/App.vue b/examples/hello-uniapp/App.vue
new file mode 100644
index 0000000000000000000000000000000000000000..359c9cab0b3ca7967efb12170f1cb22666b20eeb
--- /dev/null
+++ b/examples/hello-uniapp/App.vue
@@ -0,0 +1,240 @@
+
+
+
diff --git a/examples/hello-uniapp/common/icon.css b/examples/hello-uniapp/common/icon.css
new file mode 100644
index 0000000000000000000000000000000000000000..6efcd8cfdd5d8e47e23980a1c356d8b092ffae13
--- /dev/null
+++ b/examples/hello-uniapp/common/icon.css
@@ -0,0 +1,377 @@
+@font-face {
+ font-family: uniicons;
+ font-weight: normal;
+ font-style: normal;
+
+ src: url('https://img-cdn-qiniu.dcloud.net.cn/fonts/uni.ttf') format('truetype');
+}
+
+.uni-icon {
+ font-family: uniicons;
+ font-size: 48rpx;
+ font-weight: normal;
+ font-style: normal;
+ line-height: 1;
+
+ display: inline-block;
+
+ text-decoration: none;
+
+ -webkit-font-smoothing: antialiased;
+}
+
+.uni-icon.uni-active {
+ color: #007aff;
+}
+
+.uni-icon-contact:before {
+ content: '\e100';
+}
+
+.uni-icon-person:before {
+ content: '\e101';
+}
+
+.uni-icon-personadd:before {
+ content: '\e102';
+}
+
+.uni-icon-contact-filled:before {
+ content: '\e130';
+}
+
+.uni-icon-person-filled:before {
+ content: '\e131';
+}
+
+.uni-icon-personadd-filled:before {
+ content: '\e132';
+}
+
+.uni-icon-phone:before {
+ content: '\e200';
+}
+
+.uni-icon-email:before {
+ content: '\e201';
+}
+
+.uni-icon-chatbubble:before {
+ content: '\e202';
+}
+
+.uni-icon-chatboxes:before {
+ content: '\e203';
+}
+
+.uni-icon-phone-filled:before {
+ content: '\e230';
+}
+
+.uni-icon-email-filled:before {
+ content: '\e231';
+}
+
+.uni-icon-chatbubble-filled:before {
+ content: '\e232';
+}
+
+.uni-icon-chatboxes-filled:before {
+ content: '\e233';
+}
+
+.uni-icon-weibo:before {
+ content: '\e260';
+}
+
+.uni-icon-weixin:before {
+ content: '\e261';
+}
+
+.uni-icon-pengyouquan:before {
+ content: '\e262';
+}
+
+.uni-icon-chat:before {
+ content: '\e263';
+}
+
+.uni-icon-qq:before {
+ content: '\e264';
+}
+
+.uni-icon-videocam:before {
+ content: '\e300';
+}
+
+.uni-icon-camera:before {
+ content: '\e301';
+}
+
+.uni-icon-mic:before {
+ content: '\e302';
+}
+
+.uni-icon-location:before {
+ content: '\e303';
+}
+
+.uni-icon-mic-filled:before,
+.uni-icon-speech:before {
+ content: '\e332';
+}
+
+.uni-icon-location-filled:before {
+ content: '\e333';
+}
+
+.uni-icon-micoff:before {
+ content: '\e360';
+}
+
+.uni-icon-image:before {
+ content: '\e363';
+}
+
+.uni-icon-map:before {
+ content: '\e364';
+}
+
+.uni-icon-compose:before {
+ content: '\e400';
+}
+
+.uni-icon-trash:before {
+ content: '\e401';
+}
+
+.uni-icon-upload:before {
+ content: '\e402';
+}
+
+.uni-icon-download:before {
+ content: '\e403';
+}
+
+.uni-icon-close:before {
+ content: '\e404';
+}
+
+.uni-icon-redo:before {
+ content: '\e405';
+}
+
+.uni-icon-undo:before {
+ content: '\e406';
+}
+
+.uni-icon-refresh:before {
+ content: '\e407';
+}
+
+.uni-icon-star:before {
+ content: '\e408';
+}
+
+.uni-icon-plus:before {
+ content: '\e409';
+}
+
+.uni-icon-minus:before {
+ content: '\e410';
+}
+
+.uni-icon-circle:before,
+.uni-icon-checkbox:before {
+ content: '\e411';
+}
+
+.uni-icon-close-filled:before,
+.uni-icon-clear:before {
+ content: '\e434';
+}
+
+.uni-icon-refresh-filled:before {
+ content: '\e437';
+}
+
+.uni-icon-star-filled:before {
+ content: '\e438';
+}
+
+.uni-icon-plus-filled:before {
+ content: '\e439';
+}
+
+.uni-icon-minus-filled:before {
+ content: '\e440';
+}
+
+.uni-icon-circle-filled:before {
+ content: '\e441';
+}
+
+.uni-icon-checkbox-filled:before {
+ content: '\e442';
+}
+
+.uni-icon-closeempty:before {
+ content: '\e460';
+}
+
+.uni-icon-refreshempty:before {
+ content: '\e461';
+}
+
+.uni-icon-reload:before {
+ content: '\e462';
+}
+
+.uni-icon-starhalf:before {
+ content: '\e463';
+}
+
+.uni-icon-spinner:before {
+ content: '\e464';
+}
+
+.uni-icon-spinner-cycle:before {
+ content: '\e465';
+}
+
+.uni-icon-search:before {
+ content: '\e466';
+}
+
+.uni-icon-plusempty:before {
+ content: '\e468';
+}
+
+.uni-icon-forward:before {
+ content: '\e470';
+}
+
+.uni-icon-back:before,
+.uni-icon-left-nav:before {
+ content: '\e471';
+}
+
+.uni-icon-checkmarkempty:before {
+ content: '\e472';
+}
+
+.uni-icon-home:before {
+ content: '\e500';
+}
+
+.uni-icon-navigate:before {
+ content: '\e501';
+}
+
+.uni-icon-gear:before {
+ content: '\e502';
+}
+
+.uni-icon-paperplane:before {
+ content: '\e503';
+}
+
+.uni-icon-info:before {
+ content: '\e504';
+}
+
+.uni-icon-help:before {
+ content: '\e505';
+}
+
+.uni-icon-locked:before {
+ content: '\e506';
+}
+
+.uni-icon-more:before {
+ content: '\e507';
+}
+
+.uni-icon-flag:before {
+ content: '\e508';
+}
+
+.uni-icon-home-filled:before {
+ content: '\e530';
+}
+
+.uni-icon-gear-filled:before {
+ content: '\e532';
+}
+
+.uni-icon-info-filled:before {
+ content: '\e534';
+}
+
+.uni-icon-help-filled:before {
+ content: '\e535';
+}
+
+.uni-icon-more-filled:before {
+ content: '\e537';
+}
+
+.uni-icon-settings:before {
+ content: '\e560';
+}
+
+.uni-icon-list:before {
+ content: '\e562';
+}
+
+.uni-icon-bars:before {
+ content: '\e563';
+}
+
+.uni-icon-loop:before {
+ content: '\e565';
+}
+
+.uni-icon-paperclip:before {
+ content: '\e567';
+}
+
+.uni-icon-eye:before {
+ content: '\e568';
+}
+
+.uni-icon-arrowup:before {
+ content: '\e580';
+}
+
+.uni-icon-arrowdown:before {
+ content: '\e581';
+}
+
+.uni-icon-arrowleft:before {
+ content: '\e582';
+}
+
+.uni-icon-arrowright:before {
+ content: '\e583';
+}
+
+.uni-icon-arrowthinup:before {
+ content: '\e584';
+}
+
+.uni-icon-arrowthindown:before {
+ content: '\e585';
+}
+
+.uni-icon-arrowthinleft:before {
+ content: '\e586';
+}
+
+.uni-icon-arrowthinright:before {
+ content: '\e587';
+}
+
+.uni-icon-pulldown:before {
+ content: '\e588';
+}
diff --git a/examples/hello-uniapp/common/uni.css b/examples/hello-uniapp/common/uni.css
new file mode 100644
index 0000000000000000000000000000000000000000..29ee49e03a886619e258a206ad6fe652a44af022
--- /dev/null
+++ b/examples/hello-uniapp/common/uni.css
@@ -0,0 +1,668 @@
+@font-face {
+ font-family: uniicons;
+ font-weight: normal;
+ font-style: normal;
+
+ src: url('https://img-cdn-qiniu.dcloud.net.cn/fonts/uni.ttf') format('truetype');
+}
+
+
+
+
+
+
+
+/*通用*/
+
+.uni-flex {
+ display: flex;
+ flex-direction: row;
+}
+
+.uni-h6 {
+ font-size: 24rpx;
+ color: #8f8f94;
+}
+
+.uni-h5 {
+ font-size: 28rpx;
+ color: #8f8f94;
+}
+
+.uni-h4 {
+ font-size: 36rpx;
+}
+
+.uni-h3 {
+ font-size: 48rpx;
+ font-weight: 600;
+}
+
+.uni-h2 {
+ font-size: 60rpx;
+ font-weight: 600;
+}
+
+.uni-h1 {
+ font-size: 72rpx;
+ font-weight: 600;
+}
+
+.uni-ellipsis {
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+}
+
+.uni-input {
+ height: 2.58823529em;
+ min-height: 2.58823529em;
+ line-height: 2.58823529em;
+}
+
+.uni-label {
+ width: 105px;
+ word-wrap: break-word;
+ word-break: break-all;
+}
+
+
+
+
+/*数字角标*/
+
+.uni-badge {
+ padding: 4rpx 14rpx;
+ font-size: 24rpx;
+ height: 24rpx;
+ line-height: 1;
+ color: #333;
+ background-color: rgba(0, 0, 0, .15);
+ border-radius: 200rpx;
+}
+
+.uni-badge.uni-badge-inverted {
+ padding: 0 5px 0 0;
+ color: #929292;
+ background-color: transparent
+}
+
+.uni-badge-primary {
+ color: #fff;
+ background-color: #007aff
+}
+
+.uni-badge-blue.uni-badge-inverted,
+.uni-badge-primary.uni-badge-inverted {
+ color: #007aff;
+ background-color: transparent
+}
+
+.uni-badge-green,
+.uni-badge-success {
+ color: #fff;
+ background-color: #4cd964;
+}
+
+.uni-badge-green.uni-badge-inverted,
+.uni-badge-success.uni-badge-inverted {
+ color: #4cd964;
+ background-color: transparent
+}
+
+.uni-badge-warning,
+.uni-badge-yellow {
+ color: #fff;
+ background-color: #f0ad4e
+}
+
+.uni-badge-warning.uni-badge-inverted,
+.uni-badge-yellow.uni-badge-inverted {
+ color: #f0ad4e;
+ background-color: transparent
+}
+
+.uni-badge-danger,
+.uni-badge-red {
+ color: #fff;
+ background-color: #dd524d
+}
+
+.uni-badge-danger.uni-badge-inverted,
+.uni-badge-red.uni-badge-inverted {
+ color: #dd524d;
+ background-color: transparent
+}
+
+.uni-badge-purple,
+.uni-badge-royal {
+ color: #fff;
+ background-color: #8a6de9
+}
+
+.uni-badge-purple.uni-badge-inverted,
+.uni-badge-royal.uni-badge-inverted {
+ color: #8a6de9;
+ background-color: transparent
+}
+
+
+
+
+
+
+
+
+/*折叠面板*/
+
+.uni-collapse-content {
+ height: 0;
+ width: 100%;
+ overflow: hidden;
+}
+
+.uni-collapse-content.uni-active {
+ height: auto;
+}
+
+
+
+
+
+
+
+
+
+/*卡片视图*/
+
+.uni-card {
+ background: #fff;
+ border-radius: 8rpx;
+ margin: 20rpx;
+ position: relative;
+ box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
+}
+
+.uni-card-content {
+ font-size: 30rpx;
+}
+
+.uni-card-content-inner {
+ position: relative;
+ padding: 30rpx;
+}
+
+.uni-card-footer,
+.uni-card-header {
+ position: relative;
+ display: flex;
+ min-height: 50rpx;
+ padding: 20rpx 30rpx;
+ justify-content: space-between;
+ align-items: center;
+}
+
+.uni-card-header {
+ font-size: 36rpx;
+}
+
+.uni-card-footer {
+ color: #6d6d72;
+}
+
+.uni-card-footer:before,
+.uni-card-header:after {
+ position: absolute;
+ top: 0;
+ right: 0;
+ left: 0;
+ height: 2rpx;
+ content: '';
+ -webkit-transform: scaleY(.5);
+ transform: scaleY(.5);
+ background-color: #c8c7cc;
+}
+
+.uni-card-header:after {
+ top: auto;
+ bottom: 0;
+}
+
+.uni-card-media {
+ justify-content: flex-start;
+}
+
+.uni-card-media-logo {
+ height: 84rpx;
+ width: 84rpx;
+ margin-right: 20rpx;
+}
+
+.uni-card-media-body {
+ height: 84rpx;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ align-items: flex-start;
+}
+
+.uni-card-media-text-top {
+ line-height: 36rpx;
+ font-size: 34rpx;
+}
+
+.uni-card-media-text-bottom {
+ line-height: 30rpx;
+ font-size: 28rpx;
+ color: #8f8f94;
+}
+
+.uni-card-link {
+ color: #007AFF;
+}
+
+
+
+
+
+
+
+
+/*列表*/
+
+.uni-list {
+ background-color: #FFFFFF;
+ position: relative;
+ width: 100%;
+ display: flex;
+ flex-direction: column;
+}
+
+.uni-list:after {
+ position: absolute;
+ z-index: 10;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ height: 1px;
+ content: '';
+ -webkit-transform: scaleY(.5);
+ transform: scaleY(.5);
+ background-color: #c8c7cc;
+}
+
+.uni-list:before {
+ position: absolute;
+ z-index: 10;
+ right: 0;
+ top: 0;
+ left: 0;
+ height: 1px;
+ content: '';
+ -webkit-transform: scaleY(.5);
+ transform: scaleY(.5);
+ background-color: #c8c7cc;
+}
+
+.uni-list-cell {
+ position: relative;
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ align-items: center;
+}
+
+.uni-list-cell-hover {
+ background-color: #eee;
+}
+
+.uni-list-cell-pd {
+ padding: 22rpx 30rpx;
+}
+
+.uni-list-cell-left {
+ padding: 0 30rpx;
+}
+
+.uni-list-cell-db,
+.uni-list-cell-right {
+ flex: 1;
+}
+
+.uni-list-cell:after {
+ position: absolute;
+ right: 0;
+ bottom: 0;
+ left: 30rpx;
+ height: 1px;
+ content: '';
+ -webkit-transform: scaleY(.5);
+ transform: scaleY(.5);
+ background-color: #c8c7cc;
+}
+
+.uni-list .uni-list-cell:last-child:after {
+ height: 0px;
+}
+
+.uni-list-cell-last.uni-list-cell:after {
+ height: 0px;
+}
+
+.uni-list-cell-divider {
+ background: #fafafa;
+ position: relative;
+ display: flex;
+ color: #999;
+ background-color: #fafafa;
+ padding: 15rpx 20rpx;
+}
+
+.uni-list-cell-divider:after {
+ position: absolute;
+ right: 0;
+ bottom: 0;
+ left: 0rpx;
+ height: 1px;
+ content: '';
+ -webkit-transform: scaleY(.5);
+ transform: scaleY(.5);
+ background-color: #c8c7cc;
+}
+
+.uni-list-cell-navigate {
+ padding: 22rpx 30rpx;
+ position: relative;
+ display: flex;
+ box-sizing: border-box;
+ width: 100%;
+ flex: 1;
+ justify-content: space-between;
+ align-items: center;
+}
+
+.uni-list-cell-navigate {
+ padding-right: 36rpx;
+}
+
+.uni-navigate-badge {
+ margin-right: 20rpx;
+}
+
+.uni-list-cell-navigate.uni-navigate-right:after {
+ font-family: uniicons;
+ content: '\e583';
+ position: absolute;
+ right: 24rpx;
+ top: 50%;
+ color: #bbb;
+ transform: translateY(-50%);
+}
+
+.uni-list-cell-navigate.uni-navigate-bottom:after {
+ font-family: uniicons;
+ content: '\e581';
+ position: absolute;
+ right: 24rpx;
+ top: 50%;
+ color: #bbb;
+ transform: translateY(-50%);
+}
+
+.uni-list-cell-navigate.uni-navigate-bottom.uni-active:after {
+ font-family: uniicons;
+ content: '\e580';
+ position: absolute;
+ right: 24rpx;
+ top: 50%;
+ color: #bbb;
+ transform: translateY(-50%);
+}
+
+.uni-collapse.uni-list-cell {
+ flex-direction: column;
+}
+
+.uni-list-cell-navigate.uni-active {
+ background: #eee;
+}
+
+.uni-list.uni-collapse {
+ box-sizing: border-box;
+ height: 0;
+ overflow: hidden;
+}
+
+.uni-collapse .uni-list-cell {
+ padding-left: 36rpx;
+}
+
+.uni-collapse .uni-list-cell:after {
+ left: 52rpx;
+}
+
+.uni-list.uni-active {
+ height: auto;
+}
+
+
+
+/*三行列表*/
+
+.uni-triplex-row {
+ display: flex;
+ flex: 1;
+ width: 100%;
+ box-sizing: border-box;
+ flex-direction: row;
+ padding: 22rpx 30rpx;
+}
+
+.uni-triplex-right,
+.uni-triplex-left {
+ display: flex;
+ flex-direction: column;
+}
+
+.uni-triplex-left {
+ width: 84%;
+}
+
+.uni-triplex-right {
+ width: 16%;
+ text-align: right;
+}
+
+
+
+
+
+/*图文列表*/
+
+.uni-media-list {
+ padding: 22rpx 30rpx;
+ box-sizing: border-box;
+ display: flex;
+ width: 100%;
+ flex-direction: row;
+}
+
+.uni-navigate-right.uni-media-list {
+ padding-right: 74rpx;
+}
+
+.uni-pull-right {
+ flex-direction: row-reverse;
+}
+
+.uni-pull-right>.uni-media-list-logo {
+ margin-right: 0rpx;
+ margin-left: 20rpx;
+}
+
+.uni-media-list-logo {
+ height: 84rpx;
+ width: 84rpx;
+ margin-right: 20rpx;
+}
+
+.uni-media-list-body {
+ height: 84rpx;
+ display: flex;
+ flex: 1;
+ flex-direction: column;
+ justify-content: space-between;
+ align-items: flex-start;
+ overflow: hidden;
+}
+
+.uni-media-list-text-top {
+ width: 100%;
+ line-height: 36rpx;
+ font-size: 34rpx;
+}
+
+.uni-media-list-text-bottom {
+ width: 100%;
+ line-height: 30rpx;
+ font-size: 28rpx;
+ color: #8f8f94;
+}
+
+
+
+
+
+
+/*九宫格*/
+
+.uni-grid-9 {
+ background: #f2f2f2;
+ width: 750rpx;
+ display: flex;
+ flex-direction: row;
+ flex-wrap: wrap;
+ border-top: 1px solid #eee;
+}
+
+.uni-grid-9-item {
+ width: 250rpx;
+ height: 200rpx;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ border-bottom: 2rpx solid;
+ border-right: 2rpx solid;
+ border-color: #eee;
+ box-sizing: border-box;
+}
+
+.no-border-right {
+ border-right: none;
+}
+
+.uni-grid-9-image {
+ width: 100rpx;
+ height: 100rpx;
+}
+
+.uni-grid-9-text {
+ width: 250rpx;
+ line-height: 50rpx;
+ height: 50rpx;
+ text-align: center;
+ font-size: 30rpx;
+}
+
+.uni-grid-9-item-hover {
+ background: rgba(0, 0, 0, 0.1);
+}
+
+
+
+
+
+/*上传*/
+
+.uni-uploader {
+ flex: 1;
+ flex-direction: column;
+}
+
+.uni-uploader-head {
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+}
+
+.uni-uploader-info {
+ color: #B2B2B2;
+}
+
+.uni-uploader-body {
+ margin-top: 16rpx;
+ overflow: hidden;
+}
+
+.uni-uploader__file {
+ float: left;
+ margin-right: 9px;
+ margin-bottom: 9px;
+}
+
+.uni-uploader__img {
+ display: block;
+ width: 79px;
+ height: 79px;
+}
+
+.uni-uploader__input-box {
+ float: left;
+ position: relative;
+ margin-right: 9px;
+ margin-bottom: 9px;
+ width: 77px;
+ height: 77px;
+ border: 1px solid #D9D9D9;
+}
+
+.uni-uploader__input-box:before,
+.uni-uploader__input-box:after {
+ content: " ";
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ -webkit-transform: translate(-50%, -50%);
+ transform: translate(-50%, -50%);
+ background-color: #D9D9D9;
+}
+
+.uni-uploader__input-box:before {
+ width: 2px;
+ height: 39.5px;
+}
+
+.uni-uploader__input-box:after {
+ width: 39.5px;
+ height: 2px;
+}
+
+.uni-uploader__input-box:active {
+ border-color: #999999;
+}
+
+.uni-uploader__input-box:active:before,
+.uni-uploader__input-box:active:after {
+ background-color: #999999;
+}
+
+.uni-uploader__input {
+ position: absolute;
+ z-index: 1;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ opacity: 0;
+}
diff --git a/examples/hello-uniapp/common/util.js b/examples/hello-uniapp/common/util.js
new file mode 100644
index 0000000000000000000000000000000000000000..7a7250560993f73f9812936def59bd95e8596130
--- /dev/null
+++ b/examples/hello-uniapp/common/util.js
@@ -0,0 +1,72 @@
+function formatTime(time) {
+ if (typeof time !== 'number' || time < 0) {
+ return time
+ }
+
+ var hour = parseInt(time / 3600)
+ time = time % 3600
+ var minute = parseInt(time / 60)
+ time = time % 60
+ var second = time
+
+ return ([hour, minute, second]).map(function (n) {
+ n = n.toString()
+ return n[1] ? n : '0' + n
+ }).join(':')
+}
+
+function formatLocation(longitude, latitude) {
+ if (typeof longitude === 'string' && typeof latitude === 'string') {
+ longitude = parseFloat(longitude)
+ latitude = parseFloat(latitude)
+ }
+
+ longitude = longitude.toFixed(2)
+ latitude = latitude.toFixed(2)
+
+ return {
+ longitude: longitude.toString().split('.'),
+ latitude: latitude.toString().split('.')
+ }
+}
+var dateUtils = {
+ UNITS: {
+ '年': 31557600000,
+ '月': 2629800000,
+ '天': 86400000,
+ '小时': 3600000,
+ '分钟': 60000,
+ '秒': 1000
+ },
+ humanize: function (milliseconds) {
+ var humanize = '';
+ for (var key in this.UNITS) {
+ if (milliseconds >= this.UNITS[key]) {
+ humanize = Math.floor(milliseconds / this.UNITS[key]) + key + '前';
+ break;
+ }
+ }
+ return humanize || '刚刚';
+ },
+ format: function (dateStr) {
+ var date = this.parse(dateStr)
+ var diff = Date.now() - date.getTime();
+ if (diff < this.UNITS['天']) {
+ return this.humanize(diff);
+ }
+ var _format = function (number) {
+ return (number < 10 ? ('0' + number) : number);
+ };
+ return date.getFullYear() + '/' + _format(date.getMonth() + 1) + '/' + _format(date.getDay()) + '-' +
+ _format(date.getHours()) + ':' + _format(date.getMinutes());
+ },
+ parse: function (str) { //将"yyyy-mm-dd HH:MM:ss"格式的字符串,转化为一个Date对象
+ var a = str.split(/[^0-9]/);
+ return new Date(a[0], a[1] - 1, a[2], a[3], a[4], a[5]);
+ }
+};
+module.exports = {
+ formatTime: formatTime,
+ formatLocation: formatLocation,
+ dateUtils:dateUtils
+}
diff --git a/examples/hello-uniapp/components/number-box.vue b/examples/hello-uniapp/components/number-box.vue
new file mode 100644
index 0000000000000000000000000000000000000000..259cbc6c411369379a4b7f64bc4c6fa5765839bc
--- /dev/null
+++ b/examples/hello-uniapp/components/number-box.vue
@@ -0,0 +1,117 @@
+
+
+ -
+
+ +
+
+
+
+
diff --git a/examples/hello-uniapp/components/page-head.vue b/examples/hello-uniapp/components/page-head.vue
new file mode 100644
index 0000000000000000000000000000000000000000..1049eeea040e9f06486e2d4d6958c5563f732142
--- /dev/null
+++ b/examples/hello-uniapp/components/page-head.vue
@@ -0,0 +1,19 @@
+
+
+ {{title}}
+
+ {{desc}}
+
+
+
+
diff --git a/examples/hello-uniapp/main.js b/examples/hello-uniapp/main.js
new file mode 100644
index 0000000000000000000000000000000000000000..51bfbef377dcaa3b382c08df7860a6bf486ba190
--- /dev/null
+++ b/examples/hello-uniapp/main.js
@@ -0,0 +1,16 @@
+import Vue from 'vue'
+import App from './App'
+
+import store from './store'
+
+Vue.config.productionTip = false
+
+Vue.prototype.$store = store
+
+App.mpType = 'app'
+
+const app = new Vue({
+ store,
+ ...App
+})
+app.$mount()
diff --git a/examples/hello-uniapp/manifest.json b/examples/hello-uniapp/manifest.json
new file mode 100644
index 0000000000000000000000000000000000000000..864d1b1c7ed02d47b9e4d51be84674f9cb896634
--- /dev/null
+++ b/examples/hello-uniapp/manifest.json
@@ -0,0 +1,19 @@
+{
+ "name": "demo",
+ "appid": "__uni123213213",
+ "description": "应用描述",
+ "icons": [{
+ "sizes": "分辨率,192x192",
+ "src": "图片路径"
+ }],
+ "versionName": "版本名称",
+ "versionCode": "版本号",
+ "app-plus": { // 5+App特有相关
+ },
+ "quickapp": { // 快应用特有相关
+
+ },
+ "mp-weixin": { // 小程序特有相关
+
+ }
+}
diff --git a/examples/hello-uniapp/pages.json b/examples/hello-uniapp/pages.json
new file mode 100644
index 0000000000000000000000000000000000000000..daff68c462c1a776b39a567a27bda25e1fdd4343
--- /dev/null
+++ b/examples/hello-uniapp/pages.json
@@ -0,0 +1,454 @@
+{
+ "pages": [
+ {
+ "path": "pages/component/index",
+ "style": {
+ "navigationBarTitleText": "组件"
+ }
+ }, {
+ "path": "pages/API/index",
+ "style": {
+ "navigationBarTitleText": "接口"
+ }
+ },{
+ "path": "pages/template/index",
+ "style": {
+ "navigationBarTitleText": "模版"
+ }
+ }, {
+ "path": "pages/component/view/index",
+ "style": {
+ "navigationBarTitleText": "view"
+ }
+ }, {
+ "path": "pages/component/scroll-view/index",
+ "style": {
+ "navigationBarTitleText": "scroll-view"
+ }
+ }, {
+ "path": "pages/component/swiper/index",
+ "style": {
+ "navigationBarTitleText": "swiper"
+ }
+ }, {
+ "path": "pages/template/number-box/index",
+ "style": {
+ "navigationBarTitleText": "数字输入框"
+ }
+ }, {
+ "path": "pages/component/text/index",
+ "style": {
+ "navigationBarTitleText": "text"
+ }
+ },
+// {
+// "path": "pages/component/icon/index",
+// "style": {
+// "navigationBarTitleText": "icon"
+// }
+// },
+ {
+ "path": "pages/component/progress/index",
+ "style": {
+ "navigationBarTitleText": "progress"
+ }
+ }, {
+ "path": "pages/component/button/index",
+ "style": {
+ "navigationBarTitleText": "button"
+ }
+ }, {
+ "path": "pages/component/checkbox/index",
+ "style": {
+ "navigationBarTitleText": "checkbox"
+ }
+ }, {
+ "path": "pages/component/form/index",
+ "style": {
+ "navigationBarTitleText": "form"
+ }
+ }, {
+ "path": "pages/component/input/index",
+ "style": {
+ "navigationBarTitleText": "input"
+ }
+ }, {
+ "path": "pages/component/label/index",
+ "style": {
+ "navigationBarTitleText": "label"
+ }
+ }, {
+ "path": "pages/component/picker/index",
+ "style": {
+ "navigationBarTitleText": "picker"
+ }
+ }, {
+ "path": "pages/component/radio/index",
+ "style": {
+ "navigationBarTitleText": "radio"
+ }
+ }, {
+ "path": "pages/component/slider/index",
+ "style": {
+ "navigationBarTitleText": "slider"
+ }
+ }, {
+ "path": "pages/component/switch/index",
+ "style": {
+ "navigationBarTitleText": "switch"
+ }
+ }, {
+ "path": "pages/component/textarea/index",
+ "style": {
+ "navigationBarTitleText": "textarea"
+ }
+ }, {
+ "path": "pages/component/navigator/index",
+ "style": {
+ "navigationBarTitleText": "navigator"
+ }
+ }, {
+ "path": "pages/component/navigator/navigate",
+ "style": {
+ "navigationBarTitleText": "navigatePage"
+ }
+ }, {
+ "path": "pages/component/navigator/redirect",
+ "style": {
+ "navigationBarTitleText": "redirectPage"
+ }
+ }, {
+ "path": "pages/component/image/index",
+ "style": {
+ "navigationBarTitleText": "image"
+ }
+ }, {
+ "path": "pages/component/audio/index",
+ "style": {
+ "navigationBarTitleText": "audio"
+ }
+ }, {
+ "path": "pages/component/video/index",
+ "style": {
+ "navigationBarTitleText": "video"
+ }
+ }, {
+ "path": "pages/component/map/index",
+ "style": {
+ "navigationBarTitleText": "map"
+ }
+ }, {
+ "path": "pages/component/canvas/index",
+ "style": {
+ "navigationBarTitleText": "canvas"
+ }
+ }, {
+ "path": "pages/API/login/index",
+ "style": {
+ "navigationBarTitleText": "微信登录"
+ }
+ }, {
+ "path": "pages/API/get-user-info/index",
+ "style": {
+ "navigationBarTitleText": "获取用户信息"
+ }
+ }, {
+ "path": "pages/API/request-payment/index",
+ "style": {
+ "navigationBarTitleText": "发起支付"
+ }
+ }, {
+ "path": "platforms/app-plus/share/index",
+ "style": {
+ "navigationBarTitleText": "分享"
+ }
+ }, {
+ "path": "platforms/mp-weixin/custom-message/index",
+ "style": {
+ "navigationBarTitleText": "客服消息"
+ }
+ }, {
+ "path": "platforms/mp-weixin/template-message/index",
+ "style": {
+ "navigationBarTitleText": "模板消息"
+ }
+ }, {
+ "path": "pages/API/set-navigation-bar-title/index",
+ "style": {
+ "navigationBarTitleText": "设置界面标题"
+ }
+ }, {
+ "path": "pages/API/navigation-bar-loading/index",
+ "style": {
+ "navigationBarTitleText": "标题栏加载动画"
+ }
+ }, {
+ "path": "pages/API/navigator/index",
+ "style": {
+ "navigationBarTitleText": "页面跳转"
+ }
+ }, {
+ "path": "pages/API/pull-down-refresh/index",
+ "style": {
+ "navigationBarTitleText": "下拉刷新",
+ "enablePullDownRefresh": true
+ }
+ }, {
+ "path": "pages/API/animation/index",
+ "style": {
+ "navigationBarTitleText": "创建动画"
+ }
+ }, {
+ "path": "pages/API/canvas/index",
+ "style": {
+ "navigationBarTitleText": "创建绘画"
+ }
+ }, {
+ "path": "pages/API/action-sheet/index",
+ "style": {
+ "navigationBarTitleText": "操作菜单"
+ }
+ }, {
+ "path": "pages/API/modal/index",
+ "style": {
+ "navigationBarTitleText": "模态弹窗"
+ }
+ }, {
+ "path": "pages/API/toast/index",
+ "style": {
+ "navigationBarTitleText": "消息提示框"
+ }
+ }, {
+ "path": "pages/API/get-network-type/index",
+ "style": {
+ "navigationBarTitleText": "获取手机网络状态"
+ }
+ }, {
+ "path": "pages/API/get-system-info/index",
+ "style": {
+ "navigationBarTitleText": "获取手机系统信息"
+ }
+ }, {
+ "path": "pages/API/on-accelerometer-change/index",
+ "style": {
+ "navigationBarTitleText": "监听加速度计数据"
+ }
+ },{
+ "path": "pages/API/on-accelerometer-change/shake",
+ "style": {
+ "navigationBarTitleText": "摇一摇"
+ }
+ }, {
+ "path": "pages/API/on-compass-change/index",
+ "style": {
+ "navigationBarTitleText": "监听罗盘数据"
+ }
+ }, {
+ "path": "pages/API/make-phone-call/index",
+ "style": {
+ "navigationBarTitleText": "打电话"
+ }
+ }, {
+ "path": "pages/API/scan-code/index",
+ "style": {
+ "navigationBarTitleText": "扫码"
+ }
+ }, {
+ "path": "pages/API/request/index",
+ "style": {
+ "navigationBarTitleText": "网络请求"
+ }
+ }, {
+ "path": "pages/API/upload-file/index",
+ "style": {
+ "navigationBarTitleText": "上传文件"
+ }
+ }, {
+ "path": "pages/API/download-file/index",
+ "style": {
+ "navigationBarTitleText": "下载文件"
+ }
+ }, {
+ "path": "pages/API/image/index",
+ "style": {
+ "navigationBarTitleText": "图片"
+ }
+ }, {
+ "path": "pages/API/voice/index",
+ "style": {
+ "navigationBarTitleText": "录音"
+ }
+ }, {
+ "path": "pages/API/background-audio/index",
+ "style": {
+ "navigationBarTitleText": "背景音频"
+ }
+ }, {
+ "path": "pages/API/file/index",
+ "style": {
+ "navigationBarTitleText": "文件"
+ }
+ }, {
+ "path": "pages/API/video/index",
+ "style": {
+ "navigationBarTitleText": "视频"
+ }
+ }, {
+ "path": "pages/API/get-location/index",
+ "style": {
+ "navigationBarTitleText": "获取位置"
+ }
+ }, {
+ "path": "pages/API/open-location/index",
+ "style": {
+ "navigationBarTitleText": "查看位置"
+ }
+ }, {
+ "path": "pages/API/choose-location/index",
+ "style": {
+ "navigationBarTitleText": "使用原生地图选择位置"
+ }
+ }, {
+ "path": "pages/API/storage/index",
+ "style": {
+ "navigationBarTitleText": "数据存储"
+ }
+ }, {
+ "path": "platforms/app-plus/speech/index",
+ "style": {
+ "navigationBarTitleText": "语音识别"
+ }
+ }, {
+ "path": "platforms/app-plus/orientation/index",
+ "style": {
+ "navigationBarTitleText": "方向传感器"
+ }
+ }, {
+ "path": "platforms/app-plus/proximity/index",
+ "style": {
+ "navigationBarTitleText": "距离传感器"
+ }
+ }, {
+ "path": "platforms/app-plus/push/index",
+ "style": {
+ "navigationBarTitleText": "推送"
+ }
+ }, {
+ "path": "pages/component/icon/index",
+ "style": {
+ "navigationBarTitleText": "icon"
+ }
+ }, {
+ "path": "pages/template/popup/index",
+ "style": {
+ "navigationBarTitleText": "popup"
+ }
+ }, {
+ "path": "pages/template/tabbar/index",
+ "style": {
+ "navigationBarTitleText": "tabbar"
+ }
+ }, {
+ "path": "pages/template/media-list/index",
+ "style": {
+ "navigationBarTitleText": "图文列表"
+ }
+ }, {
+ "path": "pages/template/grid/index",
+ "style": {
+ "navigationBarTitleText": "九宫格"
+ }
+ }, {
+ "path": "pages/template/drag-right/index",
+ "style": {
+ "navigationBarTitleText": "右滑菜单"
+ }
+ }, {
+ "path": "pages/template/drag-right-zoom/index",
+ "style": {
+ "navigationBarTitleText": "右滑菜单(缩放)"
+ }
+ }, {
+ "path": "pages/template/drag-left/index",
+ "style": {
+ "navigationBarTitleText": "左滑菜单"
+ }
+ }, {
+ "path": "pages/template/drag-left-zoom/index",
+ "style": {
+ "navigationBarTitleText": "左滑菜单(缩放)"
+ }
+ }, {
+ "path": "pages/template/badge/index",
+ "style": {
+ "navigationBarTitleText": "数字角标"
+ }
+ }, {
+ "path": "pages/template/accordion/index",
+ "style": {
+ "navigationBarTitleText": "折叠面板"
+ }
+ }, {
+ "path": "pages/template/cardview/index",
+ "style": {
+ "navigationBarTitleText": "卡片视图"
+ }
+ }, {
+ "path": "pages/template/list-with-badges/index",
+ "style": {
+ "navigationBarTitleText": "右侧带角标"
+ }
+ }, {
+ "path": "pages/template/list-with-collapses/index",
+ "style": {
+ "navigationBarTitleText": "二级列表"
+ }
+ }, {
+ "path": "pages/template/list-triplex-row/index",
+ "style": {
+ "navigationBarTitleText": "三行列表"
+ }
+ }, {
+ "path": "pages/template/list-to-detail/index",
+ "style": {
+ "navigationBarTitleText": "列表到详情的最佳实践",
+ "enablePullDownRefresh": true
+ }
+ }, {
+ "path": "pages/template/list-to-detail/detail",
+ "style": {
+ "navigationBarTitleText": "详情"
+ }
+ }
+ ],
+ "globalStyle": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "演示",
+ "navigationBarBackgroundColor": "#F8F8F8",
+ "backgroundColor": "#F8F8F8"
+ },
+ "tabBar": {
+ "color": "#7A7E83",
+ "selectedColor": "#007AFF",
+ "borderStyle": "black",
+ "backgroundColor": "#ffffff",
+ "list": [
+ {
+ "pagePath": "pages/component/index",
+ "iconPath": "static/component.png",
+ "selectedIconPath": "static/componentHL.png",
+ "text": "组件"
+ }, {
+ "pagePath": "pages/API/index",
+ "iconPath": "static/api.png",
+ "selectedIconPath": "static/apiHL.png",
+ "text": "接口"
+ }, {
+ "pagePath": "pages/template/index",
+ "iconPath": "static/template.png",
+ "selectedIconPath": "static/templateHL.png",
+ "text": "模版"
+ }
+ ]
+ }
+}
diff --git a/examples/hello-uniapp/pages/API/action-sheet/index.vue b/examples/hello-uniapp/pages/API/action-sheet/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..7f5a84cc8ea5b5157f0e92e1e28aeb1e10974dff
--- /dev/null
+++ b/examples/hello-uniapp/pages/API/action-sheet/index.vue
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/API/animation/index.vue b/examples/hello-uniapp/pages/API/animation/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..58dd27b934da9ee2b6b473ad2c841d72c477bdcc
--- /dev/null
+++ b/examples/hello-uniapp/pages/API/animation/index.vue
@@ -0,0 +1,133 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/API/background-audio/index.vue b/examples/hello-uniapp/pages/API/background-audio/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..864ca26252c43bdf7ec52db315953a8ed36cd0e5
--- /dev/null
+++ b/examples/hello-uniapp/pages/API/background-audio/index.vue
@@ -0,0 +1,152 @@
+
+
+
+
+
+ {{formatedPlayTime}}
+
+
+ 00:00
+ 00:46
+
+
+ 注意:离开当前页面后背景音乐将保持播放,但退出uni-app将停止
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/API/canvas/index.vue b/examples/hello-uniapp/pages/API/canvas/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..54a9992275d2e183f55e14aea71bbff16a9ccf09
--- /dev/null
+++ b/examples/hello-uniapp/pages/API/canvas/index.vue
@@ -0,0 +1,356 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/API/choose-location/index.vue b/examples/hello-uniapp/pages/API/choose-location/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..19b0d2f8516a28c8cabc72b0a65a429a4fa6372b
--- /dev/null
+++ b/examples/hello-uniapp/pages/API/choose-location/index.vue
@@ -0,0 +1,74 @@
+
+
+
+
+
+
+ 当前位置信息
+
+ 未选择位置
+
+
+ {{locationAddress}}
+
+ E: {{location.longitude[0]}}°{{location.longitude[1]}}′
+ N: {{location.latitude[0]}}°{{location.latitude[1]}}′
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/API/download-file/index.vue b/examples/hello-uniapp/pages/API/download-file/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..042789e188c239bef6d4f89c81cce09b0845908d
--- /dev/null
+++ b/examples/hello-uniapp/pages/API/download-file/index.vue
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+ 点击按钮下载服务端示例图片
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/API/file/index.vue b/examples/hello-uniapp/pages/API/file/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..8abae7adc0cbaeec7cb5e1df0486c9ad43451084
--- /dev/null
+++ b/examples/hello-uniapp/pages/API/file/index.vue
@@ -0,0 +1,123 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 请选择文件
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/API/get-location/index.vue b/examples/hello-uniapp/pages/API/get-location/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..c82fcb26a30b5a43107e43f3bfdc9863521da835
--- /dev/null
+++ b/examples/hello-uniapp/pages/API/get-location/index.vue
@@ -0,0 +1,85 @@
+
+
+
+
+
+
+ 当前位置经纬度
+
+ 未获取
+
+
+
+ E: {{location.longitude[0]}}°{{location.longitude[1]}}′
+ N: {{location.latitude[0]}}°{{location.latitude[1]}}′
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/API/get-network-type/index.vue b/examples/hello-uniapp/pages/API/get-network-type/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..56088527734a76e855f964ec20ece1a68884a78b
--- /dev/null
+++ b/examples/hello-uniapp/pages/API/get-network-type/index.vue
@@ -0,0 +1,70 @@
+
+
+
+
+
+
+ 网络状态
+
+ 未获取
+ 点击绿色按钮可获取网络状态
+
+
+ {{networkType}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/API/get-system-info/index.vue b/examples/hello-uniapp/pages/API/get-system-info/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..ebceba2fb9d9cc2d6e48cf233a9d7fe3a2cb6e0c
--- /dev/null
+++ b/examples/hello-uniapp/pages/API/get-system-info/index.vue
@@ -0,0 +1,98 @@
+
+
+
+
+
+
+
+
+ 手机型号
+
+
+
+
+
+
+
+ 语言
+
+
+
+
+
+
+
+ 版本
+
+
+
+
+
+
+
+ 屏幕宽度
+
+
+
+
+
+
+
+ 屏幕高度
+
+
+
+
+
+
+
+ DPI
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/API/get-user-info/index.vue b/examples/hello-uniapp/pages/API/get-user-info/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..46e6865faa529ad17d3c286f74a4510c68734b3e
--- /dev/null
+++ b/examples/hello-uniapp/pages/API/get-user-info/index.vue
@@ -0,0 +1,101 @@
+
+
+
+
+
+
+ 用户信息
+
+ 未获取
+ 点击蓝色按钮可获取用户头像及昵称
+
+
+
+ {{userInfo.nickName}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/API/image/index.vue b/examples/hello-uniapp/pages/API/image/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..4aefa250f81d1affc9e85ae64c68168afa1ee1aa
--- /dev/null
+++ b/examples/hello-uniapp/pages/API/image/index.vue
@@ -0,0 +1,145 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/API/index.vue b/examples/hello-uniapp/pages/API/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..7e0ed534b24c7638472834c368be29054f0d31ee
--- /dev/null
+++ b/examples/hello-uniapp/pages/API/index.vue
@@ -0,0 +1,224 @@
+
+
+
+
+ 以下将演示uni-app接口能力,具体属性参数详见uni-app开发文档。
+
+
+
+
+
+ {{list.name}}
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/API/login/index.vue b/examples/hello-uniapp/pages/API/login/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..dd310cfa16418bc734ef7eb4945367fd75a5a679
--- /dev/null
+++ b/examples/hello-uniapp/pages/API/login/index.vue
@@ -0,0 +1,112 @@
+
+
+
+
+
+
+ 已登录
+ 每个帐号仅需登录 1 次,后续每次进入页面即可自动拉取用户信息
+
+
+ 每个帐号仅需登录一次
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/API/make-phone-call/index.vue b/examples/hello-uniapp/pages/API/make-phone-call/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..f52e6dd63e6b5cd64286e6ab30cd81aa0fc08a19
--- /dev/null
+++ b/examples/hello-uniapp/pages/API/make-phone-call/index.vue
@@ -0,0 +1,80 @@
+
+
+
+
+
+ 请在下方输入电话号码
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/API/modal/index.vue b/examples/hello-uniapp/pages/API/modal/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..d848d1d30edc8e7fe1d7e87f745153d8c50192ac
--- /dev/null
+++ b/examples/hello-uniapp/pages/API/modal/index.vue
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/API/navigation-bar-loading/index.vue b/examples/hello-uniapp/pages/API/navigation-bar-loading/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..7f61c3094cd12a44bbd59e4a27a74eddf72c9201
--- /dev/null
+++ b/examples/hello-uniapp/pages/API/navigation-bar-loading/index.vue
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/API/navigator/index.vue b/examples/hello-uniapp/pages/API/navigator/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..b0833c68d8fc3f5abfa2a8aa95f15489f77e91e1
--- /dev/null
+++ b/examples/hello-uniapp/pages/API/navigator/index.vue
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/API/on-accelerometer-change/index.vue b/examples/hello-uniapp/pages/API/on-accelerometer-change/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..02d4b2d296d8a330cdb77b102ee230c58b581f7b
--- /dev/null
+++ b/examples/hello-uniapp/pages/API/on-accelerometer-change/index.vue
@@ -0,0 +1,69 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/API/on-accelerometer-change/shake.vue b/examples/hello-uniapp/pages/API/on-accelerometer-change/shake.vue
new file mode 100644
index 0000000000000000000000000000000000000000..3180082f5f3963f7e49d505398e94e03a0f47f7a
--- /dev/null
+++ b/examples/hello-uniapp/pages/API/on-accelerometer-change/shake.vue
@@ -0,0 +1,77 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/API/on-compass-change/index.vue b/examples/hello-uniapp/pages/API/on-compass-change/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..aba30d3d3cd1685674110d6118d985e2848e48ac
--- /dev/null
+++ b/examples/hello-uniapp/pages/API/on-compass-change/index.vue
@@ -0,0 +1,91 @@
+
+
+
+
+
+ 旋转手机即可获取方位信息
+
+
+
+
+ {{direction}}
+ o
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/API/open-location/index.vue b/examples/hello-uniapp/pages/API/open-location/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..85914ce50990af2c7041784326f457e8e6391a07
--- /dev/null
+++ b/examples/hello-uniapp/pages/API/open-location/index.vue
@@ -0,0 +1,106 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/API/pull-down-refresh/index.vue b/examples/hello-uniapp/pages/API/pull-down-refresh/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..b0657c32e0c286f755210360f2f7e27a39d8aa79
--- /dev/null
+++ b/examples/hello-uniapp/pages/API/pull-down-refresh/index.vue
@@ -0,0 +1,58 @@
+
+
+
+
+
+
+ 下滑页面即可刷新
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/API/request-payment/index.vue b/examples/hello-uniapp/pages/API/request-payment/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..503190982d299c132e5d2b6c230e1be3230c47c8
--- /dev/null
+++ b/examples/hello-uniapp/pages/API/request-payment/index.vue
@@ -0,0 +1,139 @@
+
+
+
+
+
+ 支付金额
+ 0.01
+ 实际应用中可自定义金额
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/API/request/index.vue b/examples/hello-uniapp/pages/API/request/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..c989f64f6116d4ad759f27888838d3dfe878e0c6
--- /dev/null
+++ b/examples/hello-uniapp/pages/API/request/index.vue
@@ -0,0 +1,70 @@
+
+
+
+
+
+
+ 点击向服务器发起请求
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/API/scan-code/index.vue b/examples/hello-uniapp/pages/API/scan-code/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..1c5feb55c08053f7787cf6492d62ce8fd290f924
--- /dev/null
+++ b/examples/hello-uniapp/pages/API/scan-code/index.vue
@@ -0,0 +1,57 @@
+
+
+
+
+ 扫码结果
+
+
+ {{result}}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/API/set-navigation-bar-title/index.vue b/examples/hello-uniapp/pages/API/set-navigation-bar-title/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..b1dfc7c1d06807869d58501a283d8580a180d631
--- /dev/null
+++ b/examples/hello-uniapp/pages/API/set-navigation-bar-title/index.vue
@@ -0,0 +1,61 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/API/speech/index.vue b/examples/hello-uniapp/pages/API/speech/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..b695878a2fe888056076df9f36cc0f8c827b8948
--- /dev/null
+++ b/examples/hello-uniapp/pages/API/speech/index.vue
@@ -0,0 +1,71 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/API/storage/index.vue b/examples/hello-uniapp/pages/API/storage/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..b04758ef06edc220b9b32a97ba998e2feb4dadd4
--- /dev/null
+++ b/examples/hello-uniapp/pages/API/storage/index.vue
@@ -0,0 +1,126 @@
+
+
+
+
+
+
+
+
+ key
+
+
+
+
+
+
+
+ value
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/API/toast/index.vue b/examples/hello-uniapp/pages/API/toast/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..d91e0883b5e452bf1fa2af7776798949da30e702
--- /dev/null
+++ b/examples/hello-uniapp/pages/API/toast/index.vue
@@ -0,0 +1,61 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/API/upload-file/index.vue b/examples/hello-uniapp/pages/API/upload-file/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..878138c690f457f5d4f3f70dddafae0bbfc0c907
--- /dev/null
+++ b/examples/hello-uniapp/pages/API/upload-file/index.vue
@@ -0,0 +1,107 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 选择图片
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/API/video/index.vue b/examples/hello-uniapp/pages/API/video/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..e0ec418bc1f9b7de557ebc9aa4b61b3d81cab89b
--- /dev/null
+++ b/examples/hello-uniapp/pages/API/video/index.vue
@@ -0,0 +1,129 @@
+
+
+
+
+
+
+
+
+ 视频来源
+
+
+
+ {{sourceType[sourceTypeIndex]}}
+
+
+
+
+
+ 摄像头
+
+
+
+ {{camera[cameraIndex]}}
+
+
+
+
+
+ 拍摄长度
+
+
+
+ {{duration[durationIndex]}}
+
+
+
+
+
+
+
+
+
+
+
+ 添加视频
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/API/voice/index.vue b/examples/hello-uniapp/pages/API/voice/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..0a08fca008198b7432ff6ec79edca3e134293b9f
--- /dev/null
+++ b/examples/hello-uniapp/pages/API/voice/index.vue
@@ -0,0 +1,212 @@
+
+
+
+
+
+
+
+ {{formatedRecordTime}}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{formatedRecordTime}}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{formatedPlayTime}}
+ {{formatedRecordTime}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{formatedPlayTime}}
+ {{formatedRecordTime}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/component/audio/index.vue b/examples/hello-uniapp/pages/component/audio/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..bd59cfb5d2bf4e4d61050ba2707968c680e022f4
--- /dev/null
+++ b/examples/hello-uniapp/pages/component/audio/index.vue
@@ -0,0 +1,39 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/component/button/index.vue b/examples/hello-uniapp/pages/component/button/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..d1eebc6b6482df2bd005a7c075fa0121a390b3b9
--- /dev/null
+++ b/examples/hello-uniapp/pages/component/button/index.vue
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/component/canvas/index.vue b/examples/hello-uniapp/pages/component/canvas/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..d824fba3addd5b85826f482decec0f3950776f04
--- /dev/null
+++ b/examples/hello-uniapp/pages/component/canvas/index.vue
@@ -0,0 +1,90 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/component/checkbox/index.vue b/examples/hello-uniapp/pages/component/checkbox/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..0a79f2a55628a1b83e70013245a2030aa18523e8
--- /dev/null
+++ b/examples/hello-uniapp/pages/component/checkbox/index.vue
@@ -0,0 +1,96 @@
+
+
+
+
+
+ 默认样式
+
+
+
+
+
+ 推荐展示样式
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/component/form/index.vue b/examples/hello-uniapp/pages/component/form/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..ff84116728fe80444ec90aae978def93bca813c1
--- /dev/null
+++ b/examples/hello-uniapp/pages/component/form/index.vue
@@ -0,0 +1,103 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/component/icon-/index.vue b/examples/hello-uniapp/pages/component/icon-/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..ad2288a78189612d33a4313cc3d53351583e3d04
--- /dev/null
+++ b/examples/hello-uniapp/pages/component/icon-/index.vue
@@ -0,0 +1,165 @@
+
+
+
+
+
+
+ 成功
+ 用于表示操作顺利完成
+
+
+
+
+
+ 提示
+ 用于表示信息提示;也常用于缺乏条件的操作拦截,提示用户所需信息
+
+
+
+
+
+ 普通警告
+ 用于表示操作后将引起一定后果的情况;也用于表示由于系统原因而造成的负向结果
+
+
+
+
+
+ 强烈警告
+ 用于表示由于用户原因造成的负向结果;也用于表示操作后将引起不可严重的挽回的后果的情况
+
+
+
+
+
+ 等待
+ 用于表示等待,告知用户结果需等待
+
+
+
+
+
+
+
+ 多选控件图标_已选择
+ 用于多选控件中,表示已选择该项目
+
+
+
+
+
+
+
+ 多选控件图标_未选择
+ 用于多选控件中,表示该项目可被选择,但还未选择
+
+
+
+
+
+
+
+ 错误提示
+ 用于在表单中表示出现错误
+
+
+
+
+
+
+
+ 单选控件图标_已选择
+ 用于单选控件中,表示已选择该项目
+
+
+
+
+
+
+
+ 下载
+ 用于表示可下载
+
+
+
+
+
+
+
+ 提示
+ 用于在表单中表示有信息提示
+
+
+
+
+
+
+
+ 停止或关闭
+ 用于在表单中,表示关闭或停止
+
+
+
+
+
+
+
+ 搜索
+ 用于搜索控件中,表示可搜索
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/component/icon/index.vue b/examples/hello-uniapp/pages/component/icon/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..da5f902e13743920c03b854a4ac3d063ec6773bc
--- /dev/null
+++ b/examples/hello-uniapp/pages/component/icon/index.vue
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/examples/hello-uniapp/pages/component/image/index.vue b/examples/hello-uniapp/pages/component/image/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..71e964f639ac3da818ae2e5ffd47f008c17c9ebf
--- /dev/null
+++ b/examples/hello-uniapp/pages/component/image/index.vue
@@ -0,0 +1,48 @@
+
+
+
+
+
+ Local Image
+
+
+
+
+
+ Internet Image
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/component/index.vue b/examples/hello-uniapp/pages/component/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..47a6a9d2ca1e58f0df6b91e33a15da2a9688aa42
--- /dev/null
+++ b/examples/hello-uniapp/pages/component/index.vue
@@ -0,0 +1,98 @@
+
+
+
+
+ 以下将展示uni-app官方组件能力,组件样式仅供参考,开发者可根据自身需求自定义组件样式,具体属性参数详见uni-app开发文档。
+
+
+
+
+
+ {{list.name}}
+
+
+
+ {{item}}
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/component/input/index.vue b/examples/hello-uniapp/pages/component/input/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..2730de772dcfa4d6cf6fe7353e1b8d0507f9d9ec
--- /dev/null
+++ b/examples/hello-uniapp/pages/component/input/index.vue
@@ -0,0 +1,191 @@
+
+
+
+
+
+ 可以自动聚焦的input
+
+
+
+
+
+
+
+ 控制最大输入长度的input
+
+
+
+
+
+
+
+ 实时获取输入值:{{inputValue}}
+
+
+
+
+
+
+
+ 控制输入的input
+
+
+
+
+
+
+
+ 控制键盘的input
+
+
+
+
+
+
+
+ 数字输入的input
+
+
+
+
+
+
+
+ 密码输入的input
+
+
+
+
+
+
+
+ 带小数点的input
+
+
+
+
+
+
+
+ 身份证输入的input
+
+
+
+
+
+
+
+ 控制占位符颜色的input
+
+
+
+
+
+
+
+ 带清除按钮的输入框
+
+
+
+
+
+
+
+
+ 可查看密码的输入框
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/component/label/index.vue b/examples/hello-uniapp/pages/component/label/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..43bc535a823077a705fa5e4104d2396d223abe48
--- /dev/null
+++ b/examples/hello-uniapp/pages/component/label/index.vue
@@ -0,0 +1,124 @@
+
+
+
+
+
+ 表单组件在label内
+
+
+
+
+
+
+
+
+ label用for标识表单组件
+
+
+
+
+
+
+
+
+
+ label内有多个时选中第一个
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/component/map/index.vue b/examples/hello-uniapp/pages/component/map/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..5b2b5e6e617a6b9436780d2a2f369fdbb48400c3
--- /dev/null
+++ b/examples/hello-uniapp/pages/component/map/index.vue
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/component/navigator/index.vue b/examples/hello-uniapp/pages/component/navigator/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..3d35c6ad0e1dc1ca19ee2090a4c36fd52086a5d8
--- /dev/null
+++ b/examples/hello-uniapp/pages/component/navigator/index.vue
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/component/navigator/navigate.vue b/examples/hello-uniapp/pages/component/navigator/navigate.vue
new file mode 100644
index 0000000000000000000000000000000000000000..1f5fd5972f552ed36e4d848ccbf6ab75d8e74b8f
--- /dev/null
+++ b/examples/hello-uniapp/pages/component/navigator/navigate.vue
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/component/navigator/redirect.vue b/examples/hello-uniapp/pages/component/navigator/redirect.vue
new file mode 100644
index 0000000000000000000000000000000000000000..0237f914b1375a74f20ce6cb94d0046d3701e236
--- /dev/null
+++ b/examples/hello-uniapp/pages/component/navigator/redirect.vue
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/component/picker/index.vue b/examples/hello-uniapp/pages/component/picker/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..64fe3a9921f3e1efe0be1f395d7064a6f75012cd
--- /dev/null
+++ b/examples/hello-uniapp/pages/component/picker/index.vue
@@ -0,0 +1,92 @@
+
+
+
+
+
+ 地区选择器
+
+
+
+ 当前选择
+
+
+
+ {{array[index]}}
+
+
+
+
+
+ 时间选择器
+
+
+
+ 当前选择
+
+
+
+ {{time}}
+
+
+
+
+
+ 日期选择器
+
+
+
+ 当前选择
+
+
+
+ {{date}}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/component/progress/index.vue b/examples/hello-uniapp/pages/component/progress/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..e57e0b5b5c4e4616d334feed583c0a66299f8318
--- /dev/null
+++ b/examples/hello-uniapp/pages/component/progress/index.vue
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/component/radio/index.vue b/examples/hello-uniapp/pages/component/radio/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..fb4ffff073ed8eed572d4eab25046e6ae26ed2ee
--- /dev/null
+++ b/examples/hello-uniapp/pages/component/radio/index.vue
@@ -0,0 +1,93 @@
+
+
+
+
+
+ 默认样式
+
+
+
+
+
+
+ 推荐展示样式
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/component/scroll-view/index.vue b/examples/hello-uniapp/pages/component/scroll-view/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..c94c59db9f4a6e21cb2247750ad78ba341df2a06
--- /dev/null
+++ b/examples/hello-uniapp/pages/component/scroll-view/index.vue
@@ -0,0 +1,87 @@
+
+
+
+
+
+
+ Vertical Scroll\n纵向滚动
+
+
+
+ A
+ B
+ C
+
+
+
+
+
+ Horizontal Scroll\n横向滚动
+
+
+
+ A
+ B
+ C
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/component/slider/index.vue b/examples/hello-uniapp/pages/component/slider/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..2aa36e21e07d2fd177bd6870e7301e42a3255df5
--- /dev/null
+++ b/examples/hello-uniapp/pages/component/slider/index.vue
@@ -0,0 +1,42 @@
+
+
+
+
+
+ 设置step
+
+
+
+
+
+
+ 显示当前value
+
+
+
+
+
+
+ 设置最小/最大值
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/examples/hello-uniapp/pages/component/swiper/index.vue b/examples/hello-uniapp/pages/component/swiper/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..bc247b4890f0d63381ecc7b46218c8bcaa67be34
--- /dev/null
+++ b/examples/hello-uniapp/pages/component/swiper/index.vue
@@ -0,0 +1,106 @@
+
+
+
+
+
+
+
+ A
+
+
+ B
+
+
+ C
+
+
+
+
+
+
+ 指示点
+
+
+
+ 自动播放
+
+
+
+
+
+
+
+ 幻灯片切换时长(ms)
+ {{duration}}
+
+
+
+ 自动播放间隔时长(ms)
+ {{interval}}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/component/switch/index.vue b/examples/hello-uniapp/pages/component/switch/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..e0dc8919094490aa982730ed1acd7ffbc6f4094f
--- /dev/null
+++ b/examples/hello-uniapp/pages/component/switch/index.vue
@@ -0,0 +1,55 @@
+
+
+
+
+
+ 默认样式
+
+
+
+
+
+
+
+ 推荐展示样式
+
+
+ 开启中
+
+
+
+ 关闭
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/component/text/index.vue b/examples/hello-uniapp/pages/component/text/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..1412f9edb3484ae847006cbb07b0ed61a0eb45da
--- /dev/null
+++ b/examples/hello-uniapp/pages/component/text/index.vue
@@ -0,0 +1,82 @@
+
+
+
+
+
+
+ {{text}}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/component/textarea/index.vue b/examples/hello-uniapp/pages/component/textarea/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..22c609e60561c7de945157b636ee6a36d4ee0ee5
--- /dev/null
+++ b/examples/hello-uniapp/pages/component/textarea/index.vue
@@ -0,0 +1,54 @@
+
+
+
+
+
+ 输入区域高度自适应,不会出现滚动条
+
+
+
+
+
+
+ 这是一个可以自动聚焦的textarea
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/component/video/index.vue b/examples/hello-uniapp/pages/component/video/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..9c7f0d565ac647a2feba19cee86efd77e7debfa8
--- /dev/null
+++ b/examples/hello-uniapp/pages/component/video/index.vue
@@ -0,0 +1,111 @@
+
+
+
+
+
+
+
+
+
+
+ 弹幕内容
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/component/view/index.vue b/examples/hello-uniapp/pages/component/view/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..57e885bccb4f89e577916cb935ee25aa03fdbf78
--- /dev/null
+++ b/examples/hello-uniapp/pages/component/view/index.vue
@@ -0,0 +1,68 @@
+
+
+
+
+
+
+ flex-direction: row\n横向布局
+
+
+
+ A
+ B
+ C
+
+
+
+
+
+ flex-direction: column\n纵向布局
+
+
+ A
+ B
+ C
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/template/accordion/index.vue b/examples/hello-uniapp/pages/template/accordion/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..c62f652f6d8aec47d8d97491961f082bba2b73eb
--- /dev/null
+++ b/examples/hello-uniapp/pages/template/accordion/index.vue
@@ -0,0 +1,107 @@
+
+
+
+
+
+
+
+
+ {{list.title}}
+
+
+
+
+
+
+
+
+ hello uni-app
+ hello uni-app
+ hello uni-app
+ hello uni-app
+ hello uni-app
+
+
+
+
+ hello uni-app
+
+
+ hello uni-app
+
+
+ hello uni-app
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/template/badge/index.vue b/examples/hello-uniapp/pages/template/badge/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..c11b0e7c3b16fad7826758862a0810540278607b
--- /dev/null
+++ b/examples/hello-uniapp/pages/template/badge/index.vue
@@ -0,0 +1,57 @@
+
+
+
+
+ 有底色
+
+
+ 1
+ 12
+ 123
+ 3
+ 45
+ 456
+
+
+ 无底色
+
+
+ 1
+ 12
+ 123
+ 3
+ 45
+ 456
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/template/cardview/index.vue b/examples/hello-uniapp/pages/template/cardview/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..27c9296f3d38936166eae8353f0e8b706d5a0a3d
--- /dev/null
+++ b/examples/hello-uniapp/pages/template/cardview/index.vue
@@ -0,0 +1,79 @@
+
+
+
+
+
+
+ 这是一个最简单的卡片视图控件;卡片视图常用来显示完整独立的一段信息,比如一篇文章的预览图、作者信息、点赞数量等
+
+
+
+
+
+
+
+ 包含页眉页脚的卡片,页眉常用来显示面板标题,页脚用来显示额外信息或支持的操作(比如点赞、评论等)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/template/drag-left-zoom/index.vue b/examples/hello-uniapp/pages/template/drag-left-zoom/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..a97edac5a86eaf63b6857c43d67b95de76ad553d
--- /dev/null
+++ b/examples/hello-uniapp/pages/template/drag-left-zoom/index.vue
@@ -0,0 +1,132 @@
+
+
+
+
+
+ 第一个菜单
+
+
+ 第二个菜单(缩放)
+
+
+ 第三个菜单(拖动)
+
+
+ 第四个菜单
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/template/drag-left/index.vue b/examples/hello-uniapp/pages/template/drag-left/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..d40bc97f762b94d6d500963fc01ffcf9e07ce3ef
--- /dev/null
+++ b/examples/hello-uniapp/pages/template/drag-left/index.vue
@@ -0,0 +1,128 @@
+
+
+
+
+
+ 第一个菜单
+
+
+ 第二个菜单(缩放)
+
+
+ 第三个菜单(拖动)
+
+
+ 第四个菜单
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/template/drag-right-zoom/index.vue b/examples/hello-uniapp/pages/template/drag-right-zoom/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..80ed428da1d99ee78913c4126eeca5f4723fa57f
--- /dev/null
+++ b/examples/hello-uniapp/pages/template/drag-right-zoom/index.vue
@@ -0,0 +1,130 @@
+
+
+
+
+
+ 第一个菜单
+
+
+ 第二个菜单(缩放)
+
+
+ 第三个菜单(拖动)
+
+
+ 第四个菜单
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/template/drag-right/index.vue b/examples/hello-uniapp/pages/template/drag-right/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..1d65ba7cb7617c9ee2d14e240f03e70119178484
--- /dev/null
+++ b/examples/hello-uniapp/pages/template/drag-right/index.vue
@@ -0,0 +1,123 @@
+
+
+
+
+
+ 第一个菜单
+
+
+ 第二个菜单(缩放)
+
+
+ 第三个菜单(拖动)
+
+
+ 第四个菜单
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/template/grid/index.vue b/examples/hello-uniapp/pages/template/grid/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..b526a0726bf15bae7e303918b65549bd0fbbc2c7
--- /dev/null
+++ b/examples/hello-uniapp/pages/template/grid/index.vue
@@ -0,0 +1,39 @@
+
+
+
+
+
+
+ grid
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/template/index.vue b/examples/hello-uniapp/pages/template/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..b0588c775c55a08fbeffd104c414c764a799acce
--- /dev/null
+++ b/examples/hello-uniapp/pages/template/index.vue
@@ -0,0 +1,117 @@
+
+
+
+
+ 以下是uni-app的一些常用的模版示例,具体属性参数详见uni-app开发文档。
+
+
+
+
+
+ {{list.name}}
+
+
+
+ {{item.name ? item.name : item}}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/template/list-to-detail/detail.vue b/examples/hello-uniapp/pages/template/list-to-detail/detail.vue
new file mode 100644
index 0000000000000000000000000000000000000000..5d516ac47aafbe7c7ef9151400ea83b6516dc701
--- /dev/null
+++ b/examples/hello-uniapp/pages/template/list-to-detail/detail.vue
@@ -0,0 +1,104 @@
+
+
+
+
+ {{banner.title}}
+
+
+ {{banner.author_name}}
+ 发表于
+ {{banner.published_at}}
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/template/list-to-detail/index.vue b/examples/hello-uniapp/pages/template/list-to-detail/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..a8b12e8cf57de0e9a79ac5933a17ec3d46862357
--- /dev/null
+++ b/examples/hello-uniapp/pages/template/list-to-detail/index.vue
@@ -0,0 +1,187 @@
+
+
+
+
+ {{banner.title}}
+
+
+
+
+
+
+ {{value.title}}
+
+ {{value.author_name}}
+ {{value.published_at}}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/template/list-triplex-row/index.vue b/examples/hello-uniapp/pages/template/list-triplex-row/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..5211904694502d1c8d9b8e44d6b1e75a67db4ab1
--- /dev/null
+++ b/examples/hello-uniapp/pages/template/list-triplex-row/index.vue
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+
+
+ 列表主标题
+ 列表副标题
+ 列表内容文字,列表内容文字,列表内容文字,列表内容文字,列表内容文字,列表内容文字
+
+
+ 12:15
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/template/list-with-badges/index.vue b/examples/hello-uniapp/pages/template/list-with-badges/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..48643f4ef69e3ca3529b9c23865ffa96f6746f57
--- /dev/null
+++ b/examples/hello-uniapp/pages/template/list-with-badges/index.vue
@@ -0,0 +1,79 @@
+
+
+
+
+
+
+ 左侧带箭头
+
+
+
+ Item1
+
+
+
+
+ Item2
+
+
+
+ 左侧带数字角标
+
+
+
+ Item2
+ 123
+
+
+
+
+ Item1
+ 123
+
+
+
+ 左侧带数字角标+箭头
+
+
+
+ Item1
+ 123
+
+
+
+
+ Item2
+ 12
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/template/list-with-collapses/index.vue b/examples/hello-uniapp/pages/template/list-with-collapses/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..85a482738f4400748f1cb8e45d8b9a80451b7025
--- /dev/null
+++ b/examples/hello-uniapp/pages/template/list-with-collapses/index.vue
@@ -0,0 +1,73 @@
+
+
+
+
+
+
+
+ {{list.title}}
+
+
+
+ {{item}}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/template/media-list/index.vue b/examples/hello-uniapp/pages/template/media-list/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..a59d9f5cb3669101c9019bbcc74d8a46b456c376
--- /dev/null
+++ b/examples/hello-uniapp/pages/template/media-list/index.vue
@@ -0,0 +1,95 @@
+
+
+
+ 缩略图居左
+
+
+
+
+
+ {{value.title}}
+ {{value.content}}
+
+
+
+
+ 缩略图居右
+
+
+
+
+
+ {{value.title}}
+ {{value.content}}
+
+
+
+
+ 右侧带箭头
+
+
+
+
+
+ {{value.title}}
+ {{value.content}}
+
+
+
+
+ 卡片列表
+
+
+
+
+
+
+ {{value.title}}
+ {{value.content}}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/examples/hello-uniapp/pages/template/number-box/index.vue b/examples/hello-uniapp/pages/template/number-box/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..540aa6bb16b21951ac8a867bc8d8914e77ab4962
--- /dev/null
+++ b/examples/hello-uniapp/pages/template/number-box/index.vue
@@ -0,0 +1,144 @@
+
+
+
+
+ 默认
+
+
+
+ 限定最小值和最大值(0~9)
+
+
+
+ 设定步长值(步长10)
+
+
+
+ 在行内
+
+ 购买数量:
+
+
+
+
+ 在表单中
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/pages/template/popup/index.vue b/examples/hello-uniapp/pages/template/popup/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..778a13aad90aafaaa414684a5df77975dcc414a2
--- /dev/null
+++ b/examples/hello-uniapp/pages/template/popup/index.vue
@@ -0,0 +1,154 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/examples/hello-uniapp/pages/template/tabbar/index.vue b/examples/hello-uniapp/pages/template/tabbar/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..934a5a5ed9b1f5c3a4a7bf134a20064940213122
--- /dev/null
+++ b/examples/hello-uniapp/pages/template/tabbar/index.vue
@@ -0,0 +1,189 @@
+
+
+
+
+ {{tab.name}}
+
+
+
+
+
+
+
+ {{newsitem.name}}-{{newsitem.label}}
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/platforms/app-plus/orientation/index.vue b/examples/hello-uniapp/platforms/app-plus/orientation/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..16380ba15b728841dbf4f7bf397dead2c9d91db5
--- /dev/null
+++ b/examples/hello-uniapp/platforms/app-plus/orientation/index.vue
@@ -0,0 +1,75 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/platforms/app-plus/proximity/index.vue b/examples/hello-uniapp/platforms/app-plus/proximity/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..458579a8035d51979365d79519f34b3a7dadc672
--- /dev/null
+++ b/examples/hello-uniapp/platforms/app-plus/proximity/index.vue
@@ -0,0 +1,81 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/platforms/app-plus/push/index.vue b/examples/hello-uniapp/platforms/app-plus/push/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..94921f241e5a59ca93525cc8ea6142ccf1916f44
--- /dev/null
+++ b/examples/hello-uniapp/platforms/app-plus/push/index.vue
@@ -0,0 +1,121 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/platforms/app-plus/share/index.vue b/examples/hello-uniapp/platforms/app-plus/share/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..1bab3eada83b5fc68684df38cbfa3d49a6e9d912
--- /dev/null
+++ b/examples/hello-uniapp/platforms/app-plus/share/index.vue
@@ -0,0 +1,128 @@
+
+
+
+
+ 分享内容
+
+
+
+
+
+ 分享图片:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/platforms/app-plus/speech/index.vue b/examples/hello-uniapp/platforms/app-plus/speech/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..b695878a2fe888056076df9f36cc0f8c827b8948
--- /dev/null
+++ b/examples/hello-uniapp/platforms/app-plus/speech/index.vue
@@ -0,0 +1,71 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/platforms/mp-weixin/custom-message/index.vue b/examples/hello-uniapp/platforms/mp-weixin/custom-message/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..a41a513994667e24de40d13c43e39720a07d5c34
--- /dev/null
+++ b/examples/hello-uniapp/platforms/mp-weixin/custom-message/index.vue
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+ 点击气泡icon打开客服消息界面
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/platforms/mp-weixin/template-message/index.vue b/examples/hello-uniapp/platforms/mp-weixin/template-message/index.vue
new file mode 100644
index 0000000000000000000000000000000000000000..44fbded97bae76dd43367db9d5736b8794fb49da
--- /dev/null
+++ b/examples/hello-uniapp/platforms/mp-weixin/template-message/index.vue
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/hello-uniapp/static/api.png b/examples/hello-uniapp/static/api.png
new file mode 100644
index 0000000000000000000000000000000000000000..b38f27983c372a3ce3640d0d89484a217b247ed7
Binary files /dev/null and b/examples/hello-uniapp/static/api.png differ
diff --git a/examples/hello-uniapp/static/apiHL.png b/examples/hello-uniapp/static/apiHL.png
new file mode 100644
index 0000000000000000000000000000000000000000..79269b9db722148e691dfa20c6abb38f180368ec
Binary files /dev/null and b/examples/hello-uniapp/static/apiHL.png differ
diff --git a/examples/hello-uniapp/static/apiIndex.png b/examples/hello-uniapp/static/apiIndex.png
new file mode 100644
index 0000000000000000000000000000000000000000..ed3a831a82caade131626b0d394b5b7ee6665b14
Binary files /dev/null and b/examples/hello-uniapp/static/apiIndex.png differ
diff --git a/examples/hello-uniapp/static/c1.png b/examples/hello-uniapp/static/c1.png
new file mode 100644
index 0000000000000000000000000000000000000000..26ff51be7df5bedf9c924e92eae620206b4434d1
Binary files /dev/null and b/examples/hello-uniapp/static/c1.png differ
diff --git a/examples/hello-uniapp/static/c2.png b/examples/hello-uniapp/static/c2.png
new file mode 100644
index 0000000000000000000000000000000000000000..bee8f73365136d12e7b2d284a57200db74664bcc
Binary files /dev/null and b/examples/hello-uniapp/static/c2.png differ
diff --git a/examples/hello-uniapp/static/c3.png b/examples/hello-uniapp/static/c3.png
new file mode 100644
index 0000000000000000000000000000000000000000..aeda45a1eb40ed10efcf75a76cc765d96bddeb4a
Binary files /dev/null and b/examples/hello-uniapp/static/c3.png differ
diff --git a/examples/hello-uniapp/static/c4.png b/examples/hello-uniapp/static/c4.png
new file mode 100644
index 0000000000000000000000000000000000000000..a59f22bf4c23f0955e39710bba4f07604238f20d
Binary files /dev/null and b/examples/hello-uniapp/static/c4.png differ
diff --git a/examples/hello-uniapp/static/c5.png b/examples/hello-uniapp/static/c5.png
new file mode 100644
index 0000000000000000000000000000000000000000..f7a6ba579b114ed28d1f0a8c5e0cd5c56979dab7
Binary files /dev/null and b/examples/hello-uniapp/static/c5.png differ
diff --git a/examples/hello-uniapp/static/c6.png b/examples/hello-uniapp/static/c6.png
new file mode 100644
index 0000000000000000000000000000000000000000..4264c6456c45828357f05977b9fdf0f8f00b9339
Binary files /dev/null and b/examples/hello-uniapp/static/c6.png differ
diff --git a/examples/hello-uniapp/static/c7.png b/examples/hello-uniapp/static/c7.png
new file mode 100644
index 0000000000000000000000000000000000000000..3d14ffbc47fce2d629040fd48fb7f121f07735f1
Binary files /dev/null and b/examples/hello-uniapp/static/c7.png differ
diff --git a/examples/hello-uniapp/static/c8.png b/examples/hello-uniapp/static/c8.png
new file mode 100644
index 0000000000000000000000000000000000000000..eb81ed26f4055773377d5c4b418ca36951021252
Binary files /dev/null and b/examples/hello-uniapp/static/c8.png differ
diff --git a/examples/hello-uniapp/static/c9.png b/examples/hello-uniapp/static/c9.png
new file mode 100644
index 0000000000000000000000000000000000000000..c664796c5cc718920862e260786b94e92d0fa052
Binary files /dev/null and b/examples/hello-uniapp/static/c9.png differ
diff --git a/examples/hello-uniapp/static/cbd.jpg b/examples/hello-uniapp/static/cbd.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..a47323ea8ce4267998b7fe8a9dfd6bd485f162b5
Binary files /dev/null and b/examples/hello-uniapp/static/cbd.jpg differ
diff --git a/examples/hello-uniapp/static/compass.png b/examples/hello-uniapp/static/compass.png
new file mode 100644
index 0000000000000000000000000000000000000000..fba87a58d7a06d366936d72a69abc0ea0bb8ca32
Binary files /dev/null and b/examples/hello-uniapp/static/compass.png differ
diff --git a/examples/hello-uniapp/static/component.png b/examples/hello-uniapp/static/component.png
new file mode 100644
index 0000000000000000000000000000000000000000..c93ca0c0b59f489e6fdb054a1d76003e6ca081c3
Binary files /dev/null and b/examples/hello-uniapp/static/component.png differ
diff --git a/examples/hello-uniapp/static/componentHL.png b/examples/hello-uniapp/static/componentHL.png
new file mode 100644
index 0000000000000000000000000000000000000000..042d9e1225ed55727fc349503cacf71112155640
Binary files /dev/null and b/examples/hello-uniapp/static/componentHL.png differ
diff --git a/examples/hello-uniapp/static/componentIndex.png b/examples/hello-uniapp/static/componentIndex.png
new file mode 100644
index 0000000000000000000000000000000000000000..94d5a6c25d2105c0a1fff6253b6661519b22804a
Binary files /dev/null and b/examples/hello-uniapp/static/componentIndex.png differ
diff --git a/examples/hello-uniapp/static/eye-1.png b/examples/hello-uniapp/static/eye-1.png
new file mode 100644
index 0000000000000000000000000000000000000000..356df9d1764a7ee446b71fb966115e9cebafbf71
Binary files /dev/null and b/examples/hello-uniapp/static/eye-1.png differ
diff --git a/examples/hello-uniapp/static/eye-2.png b/examples/hello-uniapp/static/eye-2.png
new file mode 100644
index 0000000000000000000000000000000000000000..c36d3e59b47cff3a7a6560b825ca976550b52e42
Binary files /dev/null and b/examples/hello-uniapp/static/eye-2.png differ
diff --git a/examples/hello-uniapp/static/location.png b/examples/hello-uniapp/static/location.png
new file mode 100644
index 0000000000000000000000000000000000000000..b9e731ea6a3c2d1660047e4d868bb601f3557453
Binary files /dev/null and b/examples/hello-uniapp/static/location.png differ
diff --git a/examples/hello-uniapp/static/menu.png b/examples/hello-uniapp/static/menu.png
new file mode 100644
index 0000000000000000000000000000000000000000..a3a92c1992cfe8a5fed3c89d8efdd8810e7fc47c
Binary files /dev/null and b/examples/hello-uniapp/static/menu.png differ
diff --git a/examples/hello-uniapp/static/muwu.jpg b/examples/hello-uniapp/static/muwu.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..b578b7dd13487ac36083df6e2624ae5668577027
Binary files /dev/null and b/examples/hello-uniapp/static/muwu.jpg differ
diff --git a/examples/hello-uniapp/static/pause.png b/examples/hello-uniapp/static/pause.png
new file mode 100644
index 0000000000000000000000000000000000000000..9acb73de0bb4bd2232f1caa4aa10fa092b8f87c5
Binary files /dev/null and b/examples/hello-uniapp/static/pause.png differ
diff --git a/examples/hello-uniapp/static/play.png b/examples/hello-uniapp/static/play.png
new file mode 100644
index 0000000000000000000000000000000000000000..982f2f27586d043f2d54e5ce7833ce881cba233d
Binary files /dev/null and b/examples/hello-uniapp/static/play.png differ
diff --git a/examples/hello-uniapp/static/plus.png b/examples/hello-uniapp/static/plus.png
new file mode 100644
index 0000000000000000000000000000000000000000..73ddfe38b3506689a58960ac244a04b871f90074
Binary files /dev/null and b/examples/hello-uniapp/static/plus.png differ
diff --git a/examples/hello-uniapp/static/record.png b/examples/hello-uniapp/static/record.png
new file mode 100644
index 0000000000000000000000000000000000000000..a62ef8163bebeef49d18a495a5d12f82f854dec0
Binary files /dev/null and b/examples/hello-uniapp/static/record.png differ
diff --git a/examples/hello-uniapp/static/shake/1.jpg b/examples/hello-uniapp/static/shake/1.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..bbbef2da71b73b21781b7912467d617ee11319fd
Binary files /dev/null and b/examples/hello-uniapp/static/shake/1.jpg differ
diff --git a/examples/hello-uniapp/static/shake/2.jpg b/examples/hello-uniapp/static/shake/2.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..c9843aa782d0b6dcd058de882805f8b8cb426213
Binary files /dev/null and b/examples/hello-uniapp/static/shake/2.jpg differ
diff --git a/examples/hello-uniapp/static/shake/3.jpg b/examples/hello-uniapp/static/shake/3.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..3c2974501642ac3ecaecd098a5c953cae45e58a2
Binary files /dev/null and b/examples/hello-uniapp/static/shake/3.jpg differ
diff --git a/examples/hello-uniapp/static/shake/4.jpg b/examples/hello-uniapp/static/shake/4.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..d00db2694a209f4524e2e56325ba547fb1a75f07
Binary files /dev/null and b/examples/hello-uniapp/static/shake/4.jpg differ
diff --git a/examples/hello-uniapp/static/shake/shake.wav b/examples/hello-uniapp/static/shake/shake.wav
new file mode 100644
index 0000000000000000000000000000000000000000..a353d667c8b7f2674bcf636b932a8623e67cada5
Binary files /dev/null and b/examples/hello-uniapp/static/shake/shake.wav differ
diff --git a/examples/hello-uniapp/static/shake/shakedown.png b/examples/hello-uniapp/static/shake/shakedown.png
new file mode 100644
index 0000000000000000000000000000000000000000..92b931880eb3056197d2a40365484245c4aca640
Binary files /dev/null and b/examples/hello-uniapp/static/shake/shakedown.png differ
diff --git a/examples/hello-uniapp/static/shake/shakeup.png b/examples/hello-uniapp/static/shake/shakeup.png
new file mode 100644
index 0000000000000000000000000000000000000000..ec36b52355864dcc759bc1a8d606a795418b6ba6
Binary files /dev/null and b/examples/hello-uniapp/static/shake/shakeup.png differ
diff --git a/examples/hello-uniapp/static/shuijiao.jpg b/examples/hello-uniapp/static/shuijiao.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..824876804f145c57f60df139102f5a51c2bc4f11
Binary files /dev/null and b/examples/hello-uniapp/static/shuijiao.jpg differ
diff --git a/examples/hello-uniapp/static/stop.png b/examples/hello-uniapp/static/stop.png
new file mode 100644
index 0000000000000000000000000000000000000000..9e65f3e8cf2c9e7f2a4707d1d0c51b0214daadf2
Binary files /dev/null and b/examples/hello-uniapp/static/stop.png differ
diff --git a/examples/hello-uniapp/static/template.png b/examples/hello-uniapp/static/template.png
new file mode 100644
index 0000000000000000000000000000000000000000..4434ae3ee01fce50df412d45c4a4bc98ace296de
Binary files /dev/null and b/examples/hello-uniapp/static/template.png differ
diff --git a/examples/hello-uniapp/static/templateHL.png b/examples/hello-uniapp/static/templateHL.png
new file mode 100644
index 0000000000000000000000000000000000000000..264ed2f3444f0b5756c2009903969191a56f35bc
Binary files /dev/null and b/examples/hello-uniapp/static/templateHL.png differ
diff --git a/examples/hello-uniapp/static/templateIndex.png b/examples/hello-uniapp/static/templateIndex.png
new file mode 100644
index 0000000000000000000000000000000000000000..6e6d2805f88449edea719718aab963d535dd4ab6
Binary files /dev/null and b/examples/hello-uniapp/static/templateIndex.png differ
diff --git a/examples/hello-uniapp/static/trash.png b/examples/hello-uniapp/static/trash.png
new file mode 100644
index 0000000000000000000000000000000000000000..83d68f3afb8e886dd6ec79597dcdab3b58f05cc4
Binary files /dev/null and b/examples/hello-uniapp/static/trash.png differ
diff --git a/examples/hello-uniapp/static/uni@2x.png b/examples/hello-uniapp/static/uni@2x.png
new file mode 100644
index 0000000000000000000000000000000000000000..3c80e5d12a1b6aba9df966fa217aae8f22ebdebb
Binary files /dev/null and b/examples/hello-uniapp/static/uni@2x.png differ
diff --git a/examples/hello-uniapp/store/index.js b/examples/hello-uniapp/store/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..42ced57e7d775ae8f81174064daf15100379f728
--- /dev/null
+++ b/examples/hello-uniapp/store/index.js
@@ -0,0 +1,56 @@
+import Vue from 'vue'
+import Vuex from 'vuex'
+
+Vue.use(Vuex)
+
+const store = new Vuex.Store({
+ state: {
+ hasLogin: false,
+ loginProvider:"",
+ openid: null
+ },
+ mutations: {
+ login(state,provider) {
+ state.hasLogin = true;
+ state.loginProvider = provider;
+ },
+ logout(state) {
+ state.hasLogin = false
+ state.openid = null
+ },
+ setOpenid(state, openid) {
+ state.openid = openid
+ }
+ },
+ actions: {
+ // lazy loading openid
+ getUserOpenId: async function ({
+ commit,
+ state
+ }) {
+ return await new Promise((resolve, reject) => {
+ if (state.openid) {
+ resolve(state.openid)
+ } else {
+ uni.login({
+ success: function (data) {
+ commit('login')
+ setTimeout(function () { //模拟异步请求服务器获取 openid
+ const openid = '123456789'
+ console.log('uni.request mock openid[' + openid + ']')
+ commit('setOpenid', openid)
+ resolve(openid)
+ }, 1000)
+ },
+ fail: function (err) {
+ console.log('uni.login 接口调用失败,将无法正常使用开放接口等服务', err)
+ reject(err)
+ }
+ })
+ }
+ })
+ }
+ }
+})
+
+export default store