├── .gitignore ├── page ├── API │ ├── navigator │ │ ├── navigator.wxss │ │ ├── navigator.json │ │ ├── navigator.js │ │ └── navigator.wxml │ ├── request │ │ ├── request.wxss │ │ ├── request.js │ │ ├── request.json │ │ └── request.wxml │ ├── storage │ │ ├── storage.wxss │ │ ├── storage.json │ │ ├── storage.wxml │ │ └── storage.js │ ├── upload-file │ │ ├── upload-file.wxss │ │ ├── upload-file.js │ │ ├── upload-file.json │ │ └── upload-file.wxml │ ├── web-socket │ │ ├── web-socket.wxss │ │ ├── web-socket.js │ │ ├── web-socket.json │ │ └── web-socket.wxml │ ├── download-file │ │ ├── download-file.wxss │ │ ├── download-file.js │ │ ├── download-file.json │ │ └── download-file.wxml │ ├── open-location │ │ ├── open-location.wxss │ │ ├── open-location.json │ │ ├── open-location.js │ │ └── open-location.wxml │ ├── get-system-info │ │ ├── get-system-info.wxss │ │ ├── get-system-info.json │ │ ├── get-system-info.js │ │ └── get-system-info.wxml │ ├── request-payment │ │ ├── request-payment.wxss │ │ ├── request-payment.js │ │ ├── request-payment.json │ │ └── request-payment.wxml │ ├── navigation-bar-loading │ │ ├── navigation-bar-loading.wxss │ │ ├── navigation-bar-loading.json │ │ ├── navigation-bar-loading.js │ │ └── navigation-bar-loading.wxml │ ├── set-navigation-bar-title │ │ ├── set-navigation-bar-title.wxss │ │ ├── set-navigation-bar-title.json │ │ ├── set-navigation-bar-title.js │ │ └── set-navigation-bar-title.wxml │ ├── file │ │ ├── file.json │ │ ├── file.wxss │ │ ├── file.wxml │ │ └── file.js │ ├── image │ │ ├── image.json │ │ ├── image.wxss │ │ ├── image.js │ │ └── image.wxml │ ├── login │ │ ├── login.json │ │ ├── login.js │ │ ├── login.wxss │ │ └── login.wxml │ ├── voice │ │ ├── voice.json │ │ ├── voice.wxss │ │ ├── voice.js │ │ └── voice.wxml │ ├── canvas │ │ ├── canvas.json │ │ ├── canvas.wxss │ │ ├── canvas.wxml │ │ └── canvas.js │ ├── animation │ │ ├── animation.json │ │ ├── animation.wxss │ │ ├── animation.wxml │ │ └── animation.js │ ├── get-location │ │ ├── get-location.json │ │ ├── get-location.wxss │ │ ├── format-location.js │ │ ├── get-location.js │ │ └── get-location.wxml │ ├── get-user-info │ │ ├── get-user-info.json │ │ ├── get-user-info.wxss │ │ ├── get-user-info.js │ │ └── get-user-info.wxml │ ├── background-audio │ │ ├── background-audio.json │ │ ├── background-audio.wxss │ │ ├── background-audio.wxml │ │ └── background-audio.js │ ├── get-network-type │ │ ├── get-network-type.json │ │ ├── get-network-type.wxss │ │ ├── get-network-type.js │ │ └── get-network-type.wxml │ ├── on-compass-change │ │ ├── on-compass-change.json │ │ ├── on-compass-change.wxss │ │ ├── on-compass-change.js │ │ └── on-compass-change.wxml │ ├── generate.sh │ ├── on-accelerometer-change │ │ ├── on-accelerometer-change.json │ │ ├── on-accelerometer-change.wxss │ │ ├── on-accelerometer-change.wxml │ │ └── on-accelerometer-change.js │ ├── common │ │ ├── footer.wxml │ │ └── header.wxml │ ├── pull-down-refresh │ │ ├── pull-down-refresh.json │ │ ├── pull-down-refresh.wxss │ │ ├── pull-down-refresh.js │ │ └── pull-down-refresh.wxml │ └── index │ │ ├── index.wxml │ │ ├── index.wxss │ │ └── index.js └── component │ ├── component-pages │ ├── wx-input │ │ ├── wx-input.wxss │ │ ├── wx-input.js │ │ └── wx-input.wxml │ ├── wx-button │ │ ├── wx-button.wxss │ │ ├── wx-button.js │ │ └── wx-button.wxml │ ├── wx-slide-tab │ │ ├── wx-slide-tab.wxss │ │ ├── wx-slide-tab.js │ │ └── wx-slide-tab.wxml │ ├── wx-view │ │ ├── wx-view.js │ │ ├── wx-view.wxss │ │ └── wx-view.wxml │ ├── wx-navigator │ │ ├── wx-navigator.js │ │ ├── wx-navigator.wxss │ │ ├── navigate.js │ │ ├── redirect.js │ │ ├── navigate.wxml │ │ ├── redirect.wxml │ │ └── wx-navigator.wxml │ ├── wx-progress │ │ ├── wx-progress.js │ │ ├── wx-progress.wxss │ │ └── wx-progress.wxml │ ├── wx-image │ │ ├── wx-image.wxss │ │ ├── wx-image.js │ │ └── wx-image.wxml │ ├── wx-icon │ │ ├── wx-icon.wxss │ │ ├── wx-icon.js │ │ └── wx-icon.wxml │ ├── wx-radio │ │ ├── wx-radio.wxss │ │ ├── wx-radio.js │ │ └── wx-radio.wxml │ ├── wx-swiper │ │ ├── wx-swiper.wxss │ │ ├── wx-swiper.js │ │ └── wx-swiper.wxml │ ├── wx-checkbox │ │ ├── wx-checkbox.wxss │ │ ├── wx-checkbox.js │ │ └── wx-checkbox.wxml │ ├── wx-picker │ │ ├── wx-picker.wxss │ │ ├── wx-picker.js │ │ └── wx-picker.wxml │ ├── wx-label │ │ ├── wx-label.wxss │ │ ├── wx-label.js │ │ └── wx-label.wxml │ ├── wx-action-sheet │ │ ├── wx-action-sheet.wxss │ │ ├── wx-action-sheet.js │ │ └── wx-action-sheet.wxml │ ├── wx-audio │ │ ├── wx-audio.js │ │ └── wx-audio.wxml │ ├── wx-form │ │ ├── wx-form.wxss │ │ ├── wx-form.js │ │ └── wx-form.wxml │ ├── wx-scroll-view │ │ ├── wx-scroll-view.wxss │ │ ├── wx-scroll-view.js │ │ └── wx-scroll-view.wxml │ ├── wx-slider │ │ ├── wx-slider.js │ │ └── wx-slider.wxml │ ├── wx-switch │ │ ├── wx-switch.wxml │ │ └── wx-switch.js │ ├── wx-video │ │ ├── wx-video.js │ │ └── wx-video.wxml │ ├── wx-mask │ │ ├── wx-mask.js │ │ └── wx-mask.wxml │ ├── wx-text │ │ ├── wx-text.wxml │ │ └── wx-text.js │ ├── wx-modal │ │ ├── wx-modal.js │ │ └── wx-modal.wxml │ └── wx-toast │ │ ├── wx-toast.js │ │ └── wx-toast.wxml │ ├── resources │ ├── 1.jpg │ ├── 2.jpg │ ├── 3.jpg │ ├── 4.jpg │ ├── 5.jpg │ ├── pic.jpg │ ├── arrow.png │ └── kind │ │ ├── form.png │ │ ├── map.png │ │ ├── nav.png │ │ ├── view.png │ │ ├── canvas.png │ │ ├── media.png │ │ ├── content.png │ │ └── interact.png │ ├── navigation-pages │ ├── media │ │ ├── media.wxml │ │ └── media.js │ ├── controller │ │ ├── controller.wxml │ │ └── controller.js │ ├── form │ │ ├── form.js │ │ └── form.wxml │ └── view │ │ ├── view.js │ │ └── view.wxml │ ├── index.js │ ├── index.wxss │ └── index.wxml ├── bak └── home.zip ├── image ├── home.png ├── logo.png ├── pause.png ├── play.png ├── plus.png ├── stop.png ├── trash.png ├── profile.png ├── record.png ├── wechat.png ├── wechatHL.png ├── arrowright.png ├── home.active.png ├── logo.active.png ├── profile.active.png └── icon64_appwx_logo.png ├── app.js ├── util └── util.js ├── app.json ├── Readme.md └── app.wxss /.gitignore: -------------------------------------------------------------------------------- 1 | *swp 2 | -------------------------------------------------------------------------------- /page/API/navigator/navigator.wxss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /page/API/request/request.wxss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /page/API/storage/storage.wxss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /page/API/upload-file/upload-file.wxss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /page/API/web-socket/web-socket.wxss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /page/API/download-file/download-file.wxss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /page/API/open-location/open-location.wxss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /page/API/request/request.js: -------------------------------------------------------------------------------- 1 | Page({}) 2 | -------------------------------------------------------------------------------- /page/API/get-system-info/get-system-info.wxss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /page/API/request-payment/request-payment.wxss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /page/API/upload-file/upload-file.js: -------------------------------------------------------------------------------- 1 | Page({}) 2 | -------------------------------------------------------------------------------- /page/API/web-socket/web-socket.js: -------------------------------------------------------------------------------- 1 | Page({}) 2 | -------------------------------------------------------------------------------- /page/API/download-file/download-file.js: -------------------------------------------------------------------------------- 1 | Page({}) 2 | -------------------------------------------------------------------------------- /page/component/component-pages/wx-input/wx-input.wxss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /page/component/component-pages/wx-button/wx-button.wxss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /page/API/navigation-bar-loading/navigation-bar-loading.wxss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /page/API/request-payment/request-payment.js: -------------------------------------------------------------------------------- 1 | Page({ 2 | }) 3 | -------------------------------------------------------------------------------- /page/API/set-navigation-bar-title/set-navigation-bar-title.wxss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /page/component/component-pages/wx-slide-tab/wx-slide-tab.wxss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /page/component/component-pages/wx-view/wx-view.js: -------------------------------------------------------------------------------- 1 | Page({}) 2 | -------------------------------------------------------------------------------- /page/component/component-pages/wx-navigator/wx-navigator.js: -------------------------------------------------------------------------------- 1 | Page({}) -------------------------------------------------------------------------------- /page/component/component-pages/wx-progress/wx-progress.js: -------------------------------------------------------------------------------- 1 | Page({}) 2 | -------------------------------------------------------------------------------- /bak/home.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etoah/wechat-app/HEAD/bak/home.zip -------------------------------------------------------------------------------- /page/API/file/file.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "文件" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/image/image.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "图片" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/login/login.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "微信登录" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/voice/voice.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "录音" 3 | } 4 | -------------------------------------------------------------------------------- /image/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etoah/wechat-app/HEAD/image/home.png -------------------------------------------------------------------------------- /image/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etoah/wechat-app/HEAD/image/logo.png -------------------------------------------------------------------------------- /image/pause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etoah/wechat-app/HEAD/image/pause.png -------------------------------------------------------------------------------- /image/play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etoah/wechat-app/HEAD/image/play.png -------------------------------------------------------------------------------- /image/plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etoah/wechat-app/HEAD/image/plus.png -------------------------------------------------------------------------------- /image/stop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etoah/wechat-app/HEAD/image/stop.png -------------------------------------------------------------------------------- /image/trash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etoah/wechat-app/HEAD/image/trash.png -------------------------------------------------------------------------------- /page/API/canvas/canvas.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "创建画布" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/request/request.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "网络请求" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/storage/storage.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "数据存储" 3 | } 4 | -------------------------------------------------------------------------------- /image/profile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etoah/wechat-app/HEAD/image/profile.png -------------------------------------------------------------------------------- /image/record.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etoah/wechat-app/HEAD/image/record.png -------------------------------------------------------------------------------- /image/wechat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etoah/wechat-app/HEAD/image/wechat.png -------------------------------------------------------------------------------- /image/wechatHL.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etoah/wechat-app/HEAD/image/wechatHL.png -------------------------------------------------------------------------------- /page/API/animation/animation.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "动画" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/navigator/navigator.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "页面跳转" 3 | } 4 | -------------------------------------------------------------------------------- /image/arrowright.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etoah/wechat-app/HEAD/image/arrowright.png -------------------------------------------------------------------------------- /page/API/get-location/get-location.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "获取位置" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/upload-file/upload-file.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "上传文件" 3 | } 4 | -------------------------------------------------------------------------------- /image/home.active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etoah/wechat-app/HEAD/image/home.active.png -------------------------------------------------------------------------------- /image/logo.active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etoah/wechat-app/HEAD/image/logo.active.png -------------------------------------------------------------------------------- /page/API/download-file/download-file.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "下载文件" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/get-user-info/get-user-info.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "获取用户信息" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/open-location/open-location.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "查看位置" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/request-payment/request-payment.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "发起支付" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/web-socket/web-socket.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "Web Socket" 3 | } 4 | -------------------------------------------------------------------------------- /image/profile.active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etoah/wechat-app/HEAD/image/profile.active.png -------------------------------------------------------------------------------- /page/API/background-audio/background-audio.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "背景音乐" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/get-system-info/get-system-info.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "获取手机系统信息" 3 | } 4 | -------------------------------------------------------------------------------- /page/component/component-pages/wx-image/wx-image.wxss: -------------------------------------------------------------------------------- 1 | .section__ctn{ 2 | text-align: center; 3 | } -------------------------------------------------------------------------------- /page/component/component-pages/wx-progress/wx-progress.wxss: -------------------------------------------------------------------------------- 1 | progress{ 2 | margin-bottom: 30px; 3 | } -------------------------------------------------------------------------------- /image/icon64_appwx_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etoah/wechat-app/HEAD/image/icon64_appwx_logo.png -------------------------------------------------------------------------------- /page/API/get-network-type/get-network-type.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "获取手机网络状态" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/on-compass-change/on-compass-change.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "监听罗盘数据" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/get-network-type/get-network-type.wxss: -------------------------------------------------------------------------------- 1 | .page-body-text-network-type { 2 | font-size: 80rpx; 3 | } 4 | -------------------------------------------------------------------------------- /page/component/resources/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etoah/wechat-app/HEAD/page/component/resources/1.jpg -------------------------------------------------------------------------------- /page/component/resources/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etoah/wechat-app/HEAD/page/component/resources/2.jpg -------------------------------------------------------------------------------- /page/component/resources/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etoah/wechat-app/HEAD/page/component/resources/3.jpg -------------------------------------------------------------------------------- /page/component/resources/4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etoah/wechat-app/HEAD/page/component/resources/4.jpg -------------------------------------------------------------------------------- /page/component/resources/5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etoah/wechat-app/HEAD/page/component/resources/5.jpg -------------------------------------------------------------------------------- /page/API/canvas/canvas.wxss: -------------------------------------------------------------------------------- 1 | .canvas { 2 | width: 305px; 3 | height: 305px; 4 | background-color: #fff; 5 | } 6 | -------------------------------------------------------------------------------- /page/API/generate.sh: -------------------------------------------------------------------------------- 1 | mkdir $1 2 | touch $1/$1.js 3 | touch $1/$1.wxss 4 | touch $1/$1.wxml 5 | touch $1/$1.json 6 | -------------------------------------------------------------------------------- /page/API/navigation-bar-loading/navigation-bar-loading.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "标题栏加载动画" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/on-accelerometer-change/on-accelerometer-change.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "监听重力感应数据" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/set-navigation-bar-title/set-navigation-bar-title.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "设置页面标题" 3 | } 4 | -------------------------------------------------------------------------------- /page/component/resources/pic.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etoah/wechat-app/HEAD/page/component/resources/pic.jpg -------------------------------------------------------------------------------- /page/component/component-pages/wx-icon/wx-icon.wxss: -------------------------------------------------------------------------------- 1 | .group{ 2 | flex-direction: row; 3 | align-items: center; 4 | } -------------------------------------------------------------------------------- /page/component/component-pages/wx-radio/wx-radio.wxss: -------------------------------------------------------------------------------- 1 | .radio { 2 | display: block; 3 | margin-bottom: 10px; 4 | } -------------------------------------------------------------------------------- /page/component/component-pages/wx-swiper/wx-swiper.wxss: -------------------------------------------------------------------------------- 1 | .swiper-item{ 2 | display: block; 3 | height: 150px; 4 | } -------------------------------------------------------------------------------- /page/component/resources/arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etoah/wechat-app/HEAD/page/component/resources/arrow.png -------------------------------------------------------------------------------- /page/component/component-pages/wx-checkbox/wx-checkbox.wxss: -------------------------------------------------------------------------------- 1 | .checkbox{ 2 | display: block; 3 | margin-bottom: 10px; 4 | } -------------------------------------------------------------------------------- /page/component/component-pages/wx-picker/wx-picker.wxss: -------------------------------------------------------------------------------- 1 | .picker{ 2 | padding: 13px; 3 | background-color: #FFFFFF; 4 | } -------------------------------------------------------------------------------- /page/component/resources/kind/form.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etoah/wechat-app/HEAD/page/component/resources/kind/form.png -------------------------------------------------------------------------------- /page/component/resources/kind/map.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etoah/wechat-app/HEAD/page/component/resources/kind/map.png -------------------------------------------------------------------------------- /page/component/resources/kind/nav.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etoah/wechat-app/HEAD/page/component/resources/kind/nav.png -------------------------------------------------------------------------------- /page/component/resources/kind/view.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etoah/wechat-app/HEAD/page/component/resources/kind/view.png -------------------------------------------------------------------------------- /page/component/resources/kind/canvas.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etoah/wechat-app/HEAD/page/component/resources/kind/canvas.png -------------------------------------------------------------------------------- /page/component/resources/kind/media.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etoah/wechat-app/HEAD/page/component/resources/kind/media.png -------------------------------------------------------------------------------- /page/API/common/footer.wxml: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /page/component/resources/kind/content.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etoah/wechat-app/HEAD/page/component/resources/kind/content.png -------------------------------------------------------------------------------- /page/component/resources/kind/interact.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/etoah/wechat-app/HEAD/page/component/resources/kind/interact.png -------------------------------------------------------------------------------- /page/API/pull-down-refresh/pull-down-refresh.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "下拉刷新", 3 | "enablePullDownRefresh": true 4 | } 5 | -------------------------------------------------------------------------------- /page/component/component-pages/wx-image/wx-image.js: -------------------------------------------------------------------------------- 1 | Page({ 2 | imageError: function(e) { 3 | console.log('image3发生error事件,携带值为', e.detail.errMsg) 4 | } 5 | }) -------------------------------------------------------------------------------- /page/API/common/header.wxml: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /page/API/file/file.wxss: -------------------------------------------------------------------------------- 1 | .image { 2 | width: 300rpx; 3 | height: 300rpx; 4 | } 5 | .image-plus { 6 | width: 150rpx; 7 | height: 150rpx; 8 | border: 1px solid #bbb; 9 | } 10 | -------------------------------------------------------------------------------- /page/component/component-pages/wx-label/wx-label.wxss: -------------------------------------------------------------------------------- 1 | .label-1, .label-2{ 2 | margin-bottom: 15px; 3 | } 4 | 5 | .label-4_text{ 6 | text-align: center; 7 | margin-top: 15px; 8 | } -------------------------------------------------------------------------------- /page/component/component-pages/wx-navigator/wx-navigator.wxss: -------------------------------------------------------------------------------- 1 | .navigator-hover button{ 2 | background-color:blue; 3 | } 4 | .other-navigator-hover button{ 5 | background-color:red; 6 | } -------------------------------------------------------------------------------- /page/component/component-pages/wx-navigator/navigate.js: -------------------------------------------------------------------------------- 1 | Page({ 2 | onLoad: function(options) { 3 | console.log(options) 4 | this.setData({ 5 | title: options.title 6 | }) 7 | } 8 | }) 9 | -------------------------------------------------------------------------------- /page/component/component-pages/wx-navigator/redirect.js: -------------------------------------------------------------------------------- 1 | Page({ 2 | onLoad: function(options) { 3 | console.log(options) 4 | this.setData({ 5 | title: options.title 6 | }) 7 | } 8 | }) 9 | -------------------------------------------------------------------------------- /page/component/component-pages/wx-action-sheet/wx-action-sheet.wxss: -------------------------------------------------------------------------------- 1 | /* 2 | .cancel { 3 | color: white; 4 | background: #303F9F; 5 | } 6 | .item { 7 | color: black; 8 | background: #C5CAE9; 9 | }*/ 10 | -------------------------------------------------------------------------------- /page/component/component-pages/wx-view/wx-view.wxss: -------------------------------------------------------------------------------- 1 | .flex-wrp{ 2 | height: 100px; 3 | display:flex; 4 | background-color: #FFFFFF; 5 | } 6 | .flex-item{ 7 | width: 100px; 8 | height: 100px; 9 | } -------------------------------------------------------------------------------- /page/API/get-user-info/get-user-info.wxss: -------------------------------------------------------------------------------- 1 | .userinfo-avatar { 2 | border-radius: 128rpx; 3 | width: 128rpx; 4 | height: 128rpx; 5 | } 6 | .userinfo-nickname { 7 | margin-top: 20rpx; 8 | font-size: 38rpx; 9 | } 10 | -------------------------------------------------------------------------------- /page/API/on-compass-change/on-compass-change.wxss: -------------------------------------------------------------------------------- 1 | .direction { 2 | margin-top: 100rpx; 3 | display: flex; 4 | } 5 | .direction-value { 6 | font-size: 200rpx; 7 | } 8 | .direction-degree { 9 | font-size: 40rpx; 10 | } 11 | -------------------------------------------------------------------------------- /page/component/component-pages/wx-audio/wx-audio.js: -------------------------------------------------------------------------------- 1 | Page({ 2 | data: { 3 | audioAction: { 4 | method: 'pause' 5 | } 6 | }, 7 | audioPlayed: function(e) { 8 | console.log('audio is played') 9 | } 10 | }) -------------------------------------------------------------------------------- /page/component/component-pages/wx-navigator/navigate.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | {{title}} 4 | 这是新建的页面,点击左上角返回回到之前页面 5 | 6 | -------------------------------------------------------------------------------- /page/component/component-pages/wx-navigator/redirect.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | {{title}} 4 | 这是当前页,点击左上角返回回到上级菜单 5 | 6 | -------------------------------------------------------------------------------- /page/API/navigation-bar-loading/navigation-bar-loading.js: -------------------------------------------------------------------------------- 1 | Page({ 2 | showNavigationBarLoading: function () { 3 | wx.showNavigationBarLoading() 4 | }, 5 | hideNavigationBarLoading: function () { 6 | wx.hideNavigationBarLoading() 7 | } 8 | }) 9 | -------------------------------------------------------------------------------- /page/API/set-navigation-bar-title/set-navigation-bar-title.js: -------------------------------------------------------------------------------- 1 | Page({ 2 | setNaivgationBarTitle: function (e) { 3 | var title = e.detail.value.title 4 | console.log(title) 5 | wx.setNavigationBarTitle({ 6 | title: title 7 | }) 8 | } 9 | }) 10 | -------------------------------------------------------------------------------- /page/API/pull-down-refresh/pull-down-refresh.wxss: -------------------------------------------------------------------------------- 1 | .page-body-info { 2 | background-color: transparent; 3 | } 4 | .page-body-buttons button { 5 | color: #21c932; 6 | margin: 0 100rpx; 7 | } 8 | .page-body-buttons button:after { 9 | border-color: #21c932; 10 | } 11 | -------------------------------------------------------------------------------- /page/component/component-pages/wx-form/wx-form.wxss: -------------------------------------------------------------------------------- 1 | wx-button { 2 | margin-top: 10px; 3 | margin-bottom: 10px; 4 | } 5 | wx-label { 6 | display: block; 7 | margin-top: 5px; 8 | } 9 | .picker-text { 10 | margin-left: 10px; 11 | position: relative; 12 | } 13 | -------------------------------------------------------------------------------- /page/component/component-pages/wx-scroll-view/wx-scroll-view.wxss: -------------------------------------------------------------------------------- 1 | .scroll-view_H{ 2 | white-space: nowrap; 3 | } 4 | .scroll-view-item{ 5 | height: 200px; 6 | } 7 | .scroll-view-item_H{ 8 | display: inline-block; 9 | width: 100%; 10 | height: 200px; 11 | } -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- 1 | App({ 2 | onLaunch: function () { 3 | console.log('App Launch') 4 | }, 5 | onShow: function () { 6 | console.log('App Show') 7 | }, 8 | onHide: function () { 9 | console.log('App Hide') 10 | }, 11 | globalData: { 12 | hasLogin: false 13 | } 14 | }) 15 | -------------------------------------------------------------------------------- /page/API/get-location/get-location.wxss: -------------------------------------------------------------------------------- 1 | .page-body-text-small { 2 | font-size: 24rpx; 3 | color: #000; 4 | margin-bottom: 100rpx; 5 | } 6 | .page-body-text-location { 7 | display: flex; 8 | font-size: 50rpx; 9 | } 10 | .page-body-text-location text { 11 | margin: 10rpx; 12 | } 13 | -------------------------------------------------------------------------------- /page/API/navigator/navigator.js: -------------------------------------------------------------------------------- 1 | Page({ 2 | navigateTo: function () { 3 | wx.navigateTo({ url: './navigator' }) 4 | }, 5 | navigateBack: function () { 6 | wx.navigateBack() 7 | }, 8 | redirectTo: function () { 9 | wx.redirectTo({ url: './navigator' }) 10 | } 11 | }) 12 | -------------------------------------------------------------------------------- /page/component/component-pages/wx-slider/wx-slider.js: -------------------------------------------------------------------------------- 1 | var pageData = {} 2 | for(var i = 1; i < 5; ++i) { 3 | (function (index) { 4 | pageData[`slider${index}change`] = function(e) { 5 | console.log(`slider${index}发生change事件,携带值为`, e.detail.value) 6 | } 7 | })(i); 8 | } 9 | Page(pageData) -------------------------------------------------------------------------------- /page/API/on-compass-change/on-compass-change.js: -------------------------------------------------------------------------------- 1 | Page({ 2 | data: { 3 | direction: 0 4 | }, 5 | onReady: function () { 6 | var that = this 7 | wx.onCompassChange(function (res) { 8 | that.setData({ 9 | direction: parseInt(res.direction) 10 | }) 11 | }) 12 | } 13 | }) 14 | -------------------------------------------------------------------------------- /page/component/navigation-pages/media/media.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /page/API/get-location/format-location.js: -------------------------------------------------------------------------------- 1 | function formatLocation(longitude, latitude) { 2 | longitude = longitude.toFixed(2) 3 | latitude = latitude.toFixed(2) 4 | 5 | return { 6 | longitude: longitude.toString().split('.'), 7 | latitude: latitude.toString().split('.') 8 | } 9 | } 10 | 11 | module.exports = formatLocation 12 | -------------------------------------------------------------------------------- /page/API/pull-down-refresh/pull-down-refresh.js: -------------------------------------------------------------------------------- 1 | Page({ 2 | onPullDownRefresh: function () { 3 | console.log('onPullDownRefresh', new Date()) 4 | }, 5 | stopPullDownRefresh: function () { 6 | wx.stopPullDownRefresh({ 7 | complete: function (res) { 8 | console.log(res, new Date()) 9 | } 10 | }) 11 | } 12 | }) 13 | -------------------------------------------------------------------------------- /page/API/get-system-info/get-system-info.js: -------------------------------------------------------------------------------- 1 | Page({ 2 | data: { 3 | systemInfo: {} 4 | }, 5 | getSystemInfo: function () { 6 | var that = this 7 | wx.getSystemInfo({ 8 | success: function (res) { 9 | that.setData({ 10 | systemInfo: res 11 | }) 12 | that.update() 13 | } 14 | }) 15 | } 16 | }) 17 | -------------------------------------------------------------------------------- /page/API/open-location/open-location.js: -------------------------------------------------------------------------------- 1 | Page({ 2 | openLocation: function (e) { 3 | console.log(e) 4 | var value = e.detail.value 5 | console.log(value) 6 | wx.openLocation({ 7 | longitude: Number(value.longitude), 8 | latitude: Number(value.latitude), 9 | name: value.name, 10 | address: value.address 11 | }) 12 | } 13 | }) 14 | -------------------------------------------------------------------------------- /page/component/navigation-pages/media/media.js: -------------------------------------------------------------------------------- 1 | var components = [ 2 | 'image', 'audio', 'video' 3 | ] 4 | var pageData = {} 5 | for(var i = 0; i < components.length; ++i) { 6 | (function (index) { 7 | pageData[components[index]] = function(e) { 8 | var url = '../../component-pages/wx-' + components[index] + '/wx-' + components[index] 9 | wx.navigateTo({url: url}) 10 | } 11 | })(i) 12 | } 13 | Page(pageData) -------------------------------------------------------------------------------- /page/API/canvas/canvas.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |