├── .gitignore ├── page ├── API │ ├── pages │ │ ├── request │ │ │ ├── request.wxss │ │ │ ├── request.json │ │ │ ├── request.wxml │ │ │ └── request.js │ │ ├── navigator │ │ │ ├── navigator.wxss │ │ │ ├── navigator.json │ │ │ ├── navigator.js │ │ │ └── navigator.wxml │ │ ├── custom-service │ │ │ ├── custom-service.wxss │ │ │ ├── custom-service.js │ │ │ ├── custom-service.json │ │ │ └── custom-service.wxml │ │ ├── custom-message │ │ │ ├── custom-message.js │ │ │ ├── custom-message.json │ │ │ └── custom-message.wxml │ │ ├── sendMessage │ │ │ ├── sendMessage.js │ │ │ ├── sendMessage.wxss │ │ │ ├── sendMessage.json │ │ │ └── sendMessage.wxml │ │ ├── navigation-bar-loading │ │ │ ├── navigation-bar-loading.wxss │ │ │ ├── navigation-bar-loading.json │ │ │ ├── navigation-bar-loading.js │ │ │ └── navigation-bar-loading.wxml │ │ ├── image │ │ │ ├── image.wxss │ │ │ ├── image.json │ │ │ ├── image.js │ │ │ └── image.wxml │ │ ├── share │ │ │ ├── share.wxss │ │ │ ├── share.json │ │ │ ├── share.js │ │ │ └── share.wxml │ │ ├── storage │ │ │ ├── storage.wxss │ │ │ ├── storage.json │ │ │ ├── storage.wxml │ │ │ └── storage.js │ │ ├── file │ │ │ ├── file.json │ │ │ ├── file.wxss │ │ │ ├── file.wxml │ │ │ └── file.js │ │ ├── voice │ │ │ ├── voice.json │ │ │ ├── voice.wxss │ │ │ ├── voice.wxml │ │ │ └── voice.js │ │ ├── canvas │ │ │ ├── canvas.json │ │ │ ├── canvas.wxss │ │ │ ├── canvas.wxml │ │ │ └── canvas.js │ │ ├── login │ │ │ ├── login.json │ │ │ ├── login.js │ │ │ ├── login.wxss │ │ │ └── login.wxml │ │ ├── modal │ │ │ ├── modal.json │ │ │ ├── modal.wxml │ │ │ └── modal.js │ │ ├── open-location │ │ │ ├── open-location.wxss │ │ │ ├── open-location.json │ │ │ ├── open-location.js │ │ │ └── open-location.wxml │ │ ├── toast │ │ │ ├── toast.json │ │ │ ├── toast.js │ │ │ └── toast.wxml │ │ ├── video │ │ │ ├── video.json │ │ │ ├── video.wxss │ │ │ ├── video.js │ │ │ └── video.wxml │ │ ├── web-socket │ │ │ ├── web-socket.wxss │ │ │ ├── web-socket.json │ │ │ ├── web-socket.wxml │ │ │ └── web-socket.js │ │ ├── animation │ │ │ ├── animation.json │ │ │ ├── animation.wxss │ │ │ ├── animation.wxml │ │ │ └── animation.js │ │ ├── get-system-info │ │ │ ├── get-system-info.wxss │ │ │ ├── get-system-info.json │ │ │ ├── get-system-info.js │ │ │ └── get-system-info.wxml │ │ ├── scan-code │ │ │ ├── scan-code.json │ │ │ ├── scan-code.wxss │ │ │ ├── scan-code.js │ │ │ └── scan-code.wxml │ │ ├── template-message │ │ │ ├── template-message.wxss │ │ │ ├── template-message.json │ │ │ ├── template-message.js │ │ │ └── template-message.wxml │ │ ├── action-sheet │ │ │ ├── action-sheet.json │ │ │ ├── action-sheet.wxss │ │ │ ├── action-sheet.js │ │ │ └── action-sheet.wxml │ │ ├── get-location │ │ │ ├── get-location.json │ │ │ ├── get-location.wxss │ │ │ ├── get-location.js │ │ │ └── get-location.wxml │ │ ├── upload-file │ │ │ ├── upload-file.json │ │ │ ├── upload-file.wxss │ │ │ ├── upload-file.wxml │ │ │ └── upload-file.js │ │ ├── choose-location │ │ │ ├── choose-location.json │ │ │ ├── choose-location.wxss │ │ │ ├── choose-location.js │ │ │ └── choose-location.wxml │ │ ├── download-file │ │ │ ├── download-file.json │ │ │ ├── download-file.wxss │ │ │ ├── download-file.js │ │ │ └── download-file.wxml │ │ ├── get-user-info │ │ │ ├── get-user-info.json │ │ │ ├── get-user-info.wxss │ │ │ ├── get-user-info.js │ │ │ └── get-user-info.wxml │ │ ├── make-phone-call │ │ │ ├── make-phone-call.json │ │ │ ├── make-phone-call.wxss │ │ │ ├── make-phone-call.js │ │ │ └── make-phone-call.wxml │ │ ├── background-audio │ │ │ ├── background-audio.json │ │ │ ├── background-audio.wxss │ │ │ ├── background-audio.wxml │ │ │ └── background-audio.js │ │ ├── request-payment │ │ │ ├── request-payment.json │ │ │ ├── request-payment.wxss │ │ │ ├── request-payment.wxml │ │ │ └── request-payment.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 │ │ │ ├── compass.png │ │ │ ├── on-compass-change.js │ │ │ ├── on-compass-change.wxml │ │ │ └── on-compass-change.wxss │ │ ├── on-accelerometer-change │ │ │ ├── on-accelerometer-change.json │ │ │ ├── on-accelerometer-change.wxss │ │ │ ├── on-accelerometer-change.wxml │ │ │ └── on-accelerometer-change.js │ │ ├── set-navigation-bar-title │ │ │ ├── set-navigation-bar-title.json │ │ │ ├── set-navigation-bar-title.wxss │ │ │ ├── set-navigation-bar-title.js │ │ │ └── set-navigation-bar-title.wxml │ │ └── pull-down-refresh │ │ │ ├── pull-down-refresh.json │ │ │ ├── pull-down-refresh.wxss │ │ │ ├── pull-down-refresh.js │ │ │ └── pull-down-refresh.wxml │ ├── index.wxss │ ├── index.json │ ├── resources │ │ └── kind │ │ │ ├── api.png │ │ │ ├── logo.png │ │ │ ├── page.png │ │ │ ├── device.png │ │ │ ├── media.png │ │ │ ├── network.png │ │ │ ├── storage.png │ │ │ ├── feedback.png │ │ │ └── location.png │ ├── index.wxml │ └── index.js ├── component │ ├── pages │ │ ├── icon │ │ │ ├── icon.js │ │ │ ├── icon.json │ │ │ ├── icon.wxss │ │ │ └── icon.wxml │ │ ├── view │ │ │ ├── view.js │ │ │ ├── view.json │ │ │ ├── view.wxss │ │ │ └── view.wxml │ │ ├── image │ │ │ ├── image.js │ │ │ ├── image.json │ │ │ ├── image.wxss │ │ │ └── image.wxml │ │ ├── navigator │ │ │ ├── navigator.js │ │ │ ├── navigator.json │ │ │ ├── navigate.json │ │ │ ├── redirect.json │ │ │ ├── navigator.wxss │ │ │ ├── navigate.js │ │ │ ├── redirect.js │ │ │ ├── navigate.wxml │ │ │ ├── redirect.wxml │ │ │ └── navigator.wxml │ │ ├── progress │ │ │ ├── progress.js │ │ │ ├── progress.json │ │ │ ├── progress.wxss │ │ │ └── progress.wxml │ │ ├── switch │ │ │ ├── switch.wxss │ │ │ ├── switch.json │ │ │ ├── switch.js │ │ │ └── switch.wxml │ │ ├── form │ │ │ ├── form.json │ │ │ ├── form.wxss │ │ │ ├── form.js │ │ │ └── form.wxml │ │ ├── map │ │ │ ├── map.json │ │ │ ├── map.js │ │ │ └── map.wxml │ │ ├── text │ │ │ ├── text.json │ │ │ ├── text.wxss │ │ │ ├── text.wxml │ │ │ └── text.js │ │ ├── audio │ │ │ ├── audio.json │ │ │ ├── audio.js │ │ │ └── audio.wxml │ │ ├── input │ │ │ ├── input.json │ │ │ ├── input.wxss │ │ │ ├── input.js │ │ │ └── input.wxml │ │ ├── label │ │ │ ├── label.json │ │ │ ├── label.wxss │ │ │ ├── label.js │ │ │ └── label.wxml │ │ ├── radio │ │ │ ├── radio.json │ │ │ ├── radio.wxss │ │ │ ├── radio.js │ │ │ └── radio.wxml │ │ ├── video │ │ │ ├── video.json │ │ │ ├── video.wxss │ │ │ ├── video.wxml │ │ │ └── video.js │ │ ├── button │ │ │ ├── button.json │ │ │ ├── button.wxss │ │ │ ├── button.js │ │ │ └── button.wxml │ │ ├── canvas │ │ │ ├── canvas.json │ │ │ ├── canvas.wxss │ │ │ ├── canvas.wxml │ │ │ └── canvas.js │ │ ├── picker │ │ │ ├── picker.json │ │ │ ├── picker.wxss │ │ │ ├── picker.js │ │ │ └── picker.wxml │ │ ├── slider │ │ │ ├── slider.json │ │ │ ├── slider.js │ │ │ └── slider.wxml │ │ ├── swiper │ │ │ ├── swiper.json │ │ │ ├── swiper.wxss │ │ │ ├── swiper.js │ │ │ └── swiper.wxml │ │ ├── checkbox │ │ │ ├── checkbox.json │ │ │ ├── checkbox.wxss │ │ │ ├── checkbox.js │ │ │ └── checkbox.wxml │ │ ├── textarea │ │ │ ├── textarea.json │ │ │ ├── textarea.js │ │ │ ├── textarea.wxss │ │ │ └── textarea.wxml │ │ └── scroll-view │ │ │ ├── scroll-view.json │ │ │ ├── scroll-view.wxss │ │ │ ├── scroll-view.js │ │ │ └── scroll-view.wxml │ ├── index.wxss │ ├── index.json │ ├── resources │ │ ├── pic │ │ │ ├── 1.jpg │ │ │ └── 2.jpg │ │ └── kind │ │ │ ├── map.png │ │ │ ├── nav.png │ │ │ ├── canvas.png │ │ │ ├── form.png │ │ │ ├── logo.png │ │ │ ├── media.png │ │ │ ├── view.png │ │ │ └── content.png │ ├── index.wxml │ └── index.js └── common │ ├── foot.wxml │ ├── head.wxml │ └── index.wxss ├── image ├── pause.png ├── play.png ├── plus.png ├── stop.png ├── trash.png ├── record.png ├── wechat.png ├── green_tri.png ├── icon_API.png ├── icon_foot.png ├── location.png ├── wechatHL.png ├── icon_API_HL.png ├── icon_component.png ├── icon64_appwx_logo.png └── icon_component_HL.png ├── README.md ├── vendor └── qcloud-weapp-client-sdk │ ├── lib │ ├── utils.js │ ├── session.js │ ├── constants.js │ ├── wxTunnel.js │ ├── request.js │ └── login.js │ ├── bower.json │ ├── index.js │ ├── .bower.json │ └── LICENSE ├── config.js ├── util └── util.js ├── app.js ├── app.json └── app.wxss /.gitignore: -------------------------------------------------------------------------------- 1 | *swp 2 | *~ 3 | -------------------------------------------------------------------------------- /page/API/pages/request/request.wxss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /page/API/pages/navigator/navigator.wxss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /page/component/pages/icon/icon.js: -------------------------------------------------------------------------------- 1 | Page({}) 2 | -------------------------------------------------------------------------------- /page/component/pages/view/view.js: -------------------------------------------------------------------------------- 1 | Page({}) 2 | -------------------------------------------------------------------------------- /page/API/index.wxss: -------------------------------------------------------------------------------- 1 | @import "../common/index.wxss"; -------------------------------------------------------------------------------- /page/API/pages/custom-service/custom-service.wxss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /page/component/pages/image/image.js: -------------------------------------------------------------------------------- 1 | Page({ 2 | }) 3 | -------------------------------------------------------------------------------- /page/component/pages/navigator/navigator.js: -------------------------------------------------------------------------------- 1 | Page({}) -------------------------------------------------------------------------------- /page/API/pages/custom-message/custom-message.js: -------------------------------------------------------------------------------- 1 | Page({}) -------------------------------------------------------------------------------- /page/API/pages/sendMessage/sendMessage.js: -------------------------------------------------------------------------------- 1 | Page({}) 2 | -------------------------------------------------------------------------------- /page/component/index.wxss: -------------------------------------------------------------------------------- 1 | @import "../common/index.wxss"; -------------------------------------------------------------------------------- /page/component/pages/progress/progress.js: -------------------------------------------------------------------------------- 1 | Page({}) 2 | -------------------------------------------------------------------------------- /page/API/pages/custom-service/custom-service.js: -------------------------------------------------------------------------------- 1 | Page({}) 2 | -------------------------------------------------------------------------------- /page/API/pages/navigation-bar-loading/navigation-bar-loading.wxss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /page/API/pages/image/image.wxss: -------------------------------------------------------------------------------- 1 | @import "../../../common/lib/weui.wxss"; -------------------------------------------------------------------------------- /page/API/pages/share/share.wxss: -------------------------------------------------------------------------------- 1 | @import "../../../common/lib/weui.wxss"; -------------------------------------------------------------------------------- /page/API/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "小程序接口能力展示" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/pages/storage/storage.wxss: -------------------------------------------------------------------------------- 1 | @import "../../../common/lib/weui.wxss"; -------------------------------------------------------------------------------- /image/pause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/image/pause.png -------------------------------------------------------------------------------- /image/play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/image/play.png -------------------------------------------------------------------------------- /image/plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/image/plus.png -------------------------------------------------------------------------------- /image/stop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/image/stop.png -------------------------------------------------------------------------------- /image/trash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/image/trash.png -------------------------------------------------------------------------------- /page/API/pages/file/file.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "文件" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/pages/image/image.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "图片" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/pages/sendMessage/sendMessage.wxss: -------------------------------------------------------------------------------- 1 | @import "../../../common/lib/weui.wxss"; -------------------------------------------------------------------------------- /page/API/pages/share/share.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "分享" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/pages/voice/voice.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "录音" 3 | } 4 | -------------------------------------------------------------------------------- /page/component/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "小程序官方组件展示" 3 | } 4 | -------------------------------------------------------------------------------- /page/component/pages/switch/switch.wxss: -------------------------------------------------------------------------------- 1 | @import "../../../common/lib/weui.wxss"; -------------------------------------------------------------------------------- /image/record.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/image/record.png -------------------------------------------------------------------------------- /image/wechat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/image/wechat.png -------------------------------------------------------------------------------- /page/API/pages/canvas/canvas.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "创建画布" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/pages/login/login.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "微信登录" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/pages/modal/modal.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "模态弹窗" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/pages/open-location/open-location.wxss: -------------------------------------------------------------------------------- 1 | @import "../../../common/lib/weui.wxss"; -------------------------------------------------------------------------------- /page/API/pages/request/request.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "网络请求" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/pages/storage/storage.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "数据存储" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/pages/toast/toast.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "消息提示框" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/pages/video/video.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "拍摄/选择视频" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/pages/web-socket/web-socket.wxss: -------------------------------------------------------------------------------- 1 | @import "../../../common/lib/weui.wxss"; 2 | -------------------------------------------------------------------------------- /page/component/pages/form/form.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "form" 3 | } 4 | -------------------------------------------------------------------------------- /page/component/pages/icon/icon.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "icon" 3 | } 4 | -------------------------------------------------------------------------------- /page/component/pages/map/map.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "map" 3 | } 4 | -------------------------------------------------------------------------------- /page/component/pages/text/text.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "text" 3 | } 4 | -------------------------------------------------------------------------------- /page/component/pages/view/view.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "view" 3 | } 4 | -------------------------------------------------------------------------------- /image/green_tri.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/image/green_tri.png -------------------------------------------------------------------------------- /image/icon_API.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/image/icon_API.png -------------------------------------------------------------------------------- /image/icon_foot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/image/icon_foot.png -------------------------------------------------------------------------------- /image/location.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/image/location.png -------------------------------------------------------------------------------- /image/wechatHL.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/image/wechatHL.png -------------------------------------------------------------------------------- /page/API/pages/animation/animation.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "动画" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/pages/get-system-info/get-system-info.wxss: -------------------------------------------------------------------------------- 1 | @import "../../../common/lib/weui.wxss"; -------------------------------------------------------------------------------- /page/API/pages/navigator/navigator.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "页面跳转" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/pages/scan-code/scan-code.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "扫码" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/pages/template-message/template-message.wxss: -------------------------------------------------------------------------------- 1 | @import "../../../common/lib/weui.wxss"; -------------------------------------------------------------------------------- /page/component/pages/audio/audio.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "audio" 3 | } 4 | -------------------------------------------------------------------------------- /page/component/pages/image/image.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "image" 3 | } 4 | -------------------------------------------------------------------------------- /page/component/pages/input/input.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "input" 3 | } 4 | -------------------------------------------------------------------------------- /page/component/pages/label/label.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "label" 3 | } 4 | -------------------------------------------------------------------------------- /page/component/pages/radio/radio.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "radio" 3 | } 4 | -------------------------------------------------------------------------------- /page/component/pages/video/video.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "video" 3 | } 4 | -------------------------------------------------------------------------------- /image/icon_API_HL.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/image/icon_API_HL.png -------------------------------------------------------------------------------- /page/API/pages/action-sheet/action-sheet.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "操作菜单" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/pages/get-location/get-location.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "获取位置" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/pages/sendMessage/sendMessage.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "发送模板消息" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/pages/upload-file/upload-file.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "上传文件" 3 | } 4 | -------------------------------------------------------------------------------- /page/component/pages/button/button.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "button" 3 | } 4 | -------------------------------------------------------------------------------- /page/component/pages/canvas/canvas.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "canvas" 3 | } 4 | -------------------------------------------------------------------------------- /page/component/pages/picker/picker.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "picker" 3 | } 4 | -------------------------------------------------------------------------------- /page/component/pages/slider/slider.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "slider" 3 | } 4 | -------------------------------------------------------------------------------- /page/component/pages/swiper/swiper.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "swiper" 3 | } 4 | -------------------------------------------------------------------------------- /page/component/pages/switch/switch.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "switch" 3 | } 4 | -------------------------------------------------------------------------------- /image/icon_component.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/image/icon_component.png -------------------------------------------------------------------------------- /page/API/pages/choose-location/choose-location.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "使用原生地图选择位置" 3 | } -------------------------------------------------------------------------------- /page/API/pages/custom-message/custom-message.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "客服消息" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/pages/custom-service/custom-service.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "客服消息" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/pages/download-file/download-file.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "下载文件" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/pages/get-user-info/get-user-info.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "获取用户信息" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/pages/make-phone-call/make-phone-call.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "打电话" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/pages/open-location/open-location.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "查看位置" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/pages/web-socket/web-socket.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "Web Socket" 3 | } 4 | -------------------------------------------------------------------------------- /page/component/pages/checkbox/checkbox.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "checkbox" 3 | } 4 | -------------------------------------------------------------------------------- /page/component/pages/navigator/navigator.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "navigator" 3 | } 4 | -------------------------------------------------------------------------------- /page/component/pages/progress/progress.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "progress" 3 | } 4 | -------------------------------------------------------------------------------- /page/component/pages/textarea/textarea.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "textarea" 3 | } 4 | -------------------------------------------------------------------------------- /image/icon64_appwx_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/image/icon64_appwx_logo.png -------------------------------------------------------------------------------- /image/icon_component_HL.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/image/icon_component_HL.png -------------------------------------------------------------------------------- /page/API/pages/background-audio/background-audio.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "背景音乐" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/pages/get-system-info/get-system-info.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "获取手机系统信息" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/pages/request-payment/request-payment.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "发起支付" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/pages/template-message/template-message.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "模板消息" 3 | } 4 | -------------------------------------------------------------------------------- /page/component/pages/navigator/navigate.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "navigatePage" 3 | } 4 | -------------------------------------------------------------------------------- /page/component/pages/navigator/redirect.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "redirectPage" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/pages/get-network-type/get-network-type.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "获取手机网络状态" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/pages/on-compass-change/on-compass-change.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "监听罗盘数据" 3 | } 4 | -------------------------------------------------------------------------------- /page/component/pages/scroll-view/scroll-view.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "scroll-view" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/resources/kind/api.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/page/API/resources/kind/api.png -------------------------------------------------------------------------------- /page/API/resources/kind/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/page/API/resources/kind/logo.png -------------------------------------------------------------------------------- /page/API/resources/kind/page.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/page/API/resources/kind/page.png -------------------------------------------------------------------------------- /page/API/pages/choose-location/choose-location.wxss: -------------------------------------------------------------------------------- 1 | .page-body-info{ 2 | padding-bottom: 0; 3 | height: 440rpx; 4 | } -------------------------------------------------------------------------------- /page/API/pages/navigation-bar-loading/navigation-bar-loading.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "标题栏加载动画" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/resources/kind/device.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/page/API/resources/kind/device.png -------------------------------------------------------------------------------- /page/API/resources/kind/media.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/page/API/resources/kind/media.png -------------------------------------------------------------------------------- /page/API/resources/kind/network.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/page/API/resources/kind/network.png -------------------------------------------------------------------------------- /page/API/resources/kind/storage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/page/API/resources/kind/storage.png -------------------------------------------------------------------------------- /page/component/resources/pic/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/page/component/resources/pic/1.jpg -------------------------------------------------------------------------------- /page/component/resources/pic/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/page/component/resources/pic/2.jpg -------------------------------------------------------------------------------- /page/API/pages/on-accelerometer-change/on-accelerometer-change.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "监听重力感应数据" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/pages/set-navigation-bar-title/set-navigation-bar-title.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "设置页面标题" 3 | } 4 | -------------------------------------------------------------------------------- /page/API/resources/kind/feedback.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/page/API/resources/kind/feedback.png -------------------------------------------------------------------------------- /page/API/resources/kind/location.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/page/API/resources/kind/location.png -------------------------------------------------------------------------------- /page/component/resources/kind/map.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/page/component/resources/kind/map.png -------------------------------------------------------------------------------- /page/component/resources/kind/nav.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/page/component/resources/kind/nav.png -------------------------------------------------------------------------------- /page/component/pages/canvas/canvas.wxss: -------------------------------------------------------------------------------- 1 | .canvas { 2 | width: 305px; 3 | height: 305px; 4 | background-color: #fff; 5 | } 6 | -------------------------------------------------------------------------------- /page/component/pages/radio/radio.wxss: -------------------------------------------------------------------------------- 1 | @import "../../../common/lib/weui.wxss"; 2 | 3 | .radio { 4 | margin-right: 20rpx; 5 | } 6 | -------------------------------------------------------------------------------- /page/component/resources/kind/canvas.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/page/component/resources/kind/canvas.png -------------------------------------------------------------------------------- /page/component/resources/kind/form.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/page/component/resources/kind/form.png -------------------------------------------------------------------------------- /page/component/resources/kind/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/page/component/resources/kind/logo.png -------------------------------------------------------------------------------- /page/component/resources/kind/media.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/page/component/resources/kind/media.png -------------------------------------------------------------------------------- /page/component/resources/kind/view.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/page/component/resources/kind/view.png -------------------------------------------------------------------------------- /page/component/pages/input/input.wxss: -------------------------------------------------------------------------------- 1 | @import "../../../common/lib/weui.wxss"; 2 | 3 | .page-section{ 4 | margin-bottom: 20rpx; 5 | } -------------------------------------------------------------------------------- /page/component/resources/kind/content.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/page/component/resources/kind/content.png -------------------------------------------------------------------------------- /page/API/pages/download-file/download-file.wxss: -------------------------------------------------------------------------------- 1 | .page-body image { 2 | width: 600rpx; 3 | height: 600rpx; 4 | 5 | margin: 0 75rpx; 6 | } -------------------------------------------------------------------------------- /page/API/pages/on-compass-change/compass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hao-Wu/WeApp-Demo/HEAD/page/API/pages/on-compass-change/compass.png -------------------------------------------------------------------------------- /page/component/pages/checkbox/checkbox.wxss: -------------------------------------------------------------------------------- 1 | @import "../../../common/lib/weui.wxss"; 2 | 3 | .checkbox{ 4 | margin-right: 20rpx; 5 | } 6 | -------------------------------------------------------------------------------- /page/API/pages/pull-down-refresh/pull-down-refresh.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "下拉刷新", 3 | "enablePullDownRefresh": true 4 | } 5 | -------------------------------------------------------------------------------- /page/API/pages/pull-down-refresh/pull-down-refresh.wxss: -------------------------------------------------------------------------------- 1 | .page-body-info { 2 | background-color: transparent; 3 | } 4 | .btn-area{ 5 | margin-top: 300rpx; 6 | } -------------------------------------------------------------------------------- /page/API/pages/set-navigation-bar-title/set-navigation-bar-title.wxss: -------------------------------------------------------------------------------- 1 | @import "../../../common/lib/weui.wxss"; 2 | 3 | .weui-label{ 4 | width: 5em; 5 | } 6 | -------------------------------------------------------------------------------- /page/API/pages/scan-code/scan-code.wxss: -------------------------------------------------------------------------------- 1 | @import "../../../common/lib/weui.wxss"; 2 | 3 | .weui-cell__bd{ 4 | min-height: 48rpx; 5 | word-break: break-all; 6 | } -------------------------------------------------------------------------------- /page/component/pages/picker/picker.wxss: -------------------------------------------------------------------------------- 1 | @import "../../../common/lib/weui.wxss"; 2 | 3 | .picker{ 4 | padding: 19rpx 26rpx; 5 | background-color: #FFFFFF; 6 | } 7 | -------------------------------------------------------------------------------- /page/component/pages/image/image.wxss: -------------------------------------------------------------------------------- 1 | .page-section-ctn { 2 | text-align: center; 3 | } 4 | 5 | .image { 6 | margin-top: 30rpx; 7 | width: 580rpx; 8 | height: 208rpx; 9 | } -------------------------------------------------------------------------------- /page/component/pages/navigator/navigator.wxss: -------------------------------------------------------------------------------- 1 | .navigator-hover button{ 2 | background-color: #DEDEDE; 3 | } 4 | .other-navigator-hover button{ 5 | background-color: #DEDEDE; 6 | } 7 | -------------------------------------------------------------------------------- /page/component/pages/textarea/textarea.js: -------------------------------------------------------------------------------- 1 | Page({ 2 | data: { 3 | focus: false 4 | }, 5 | bindTextAreaBlur: function(e) { 6 | console.log(e.detail.value) 7 | } 8 | }) 9 | -------------------------------------------------------------------------------- /page/component/pages/textarea/textarea.wxss: -------------------------------------------------------------------------------- 1 | textarea { 2 | width: 700rpx; 3 | padding: 25rpx 0; 4 | } 5 | .textarea-wrp { 6 | padding: 0 25rpx; 7 | background-color: #fff; 8 | } -------------------------------------------------------------------------------- /page/API/pages/action-sheet/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/pages/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/pages/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/pages/video/video.wxss: -------------------------------------------------------------------------------- 1 | @import "../../../common/lib/weui.wxss"; 2 | 3 | .weui-cells{ 4 | margin-top: 80rpx; 5 | text-align: left; 6 | } 7 | .weui-label{ 8 | width: 5em; 9 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ### 微信小程序官方Demo,代码同步更新 2 | 3 | * [开发文档](https://mp.weixin.qq.com/debug/wxadoc/introduction/index.html) 4 | 5 | 6 | * 截图 7 | 8 | ![微信小程序官方Demo 截图](https://mp.weixin.qq.com/debug/wxadoc/dev/image/demo.png) 9 | -------------------------------------------------------------------------------- /page/component/pages/button/button.wxss: -------------------------------------------------------------------------------- 1 | button{ 2 | margin-top: 30rpx; 3 | margin-bottom: 30rpx; 4 | } 5 | .button-sp-area{ 6 | margin: 0 auto; 7 | width: 60%; 8 | } 9 | .mini-btn{ 10 | margin-right: 10rpx; 11 | } -------------------------------------------------------------------------------- /page/component/pages/label/label.wxss: -------------------------------------------------------------------------------- 1 | .label-1, .label-2{ 2 | margin: 30rpx 0; 3 | } 4 | .label-3-text{ 5 | color: #576B95; 6 | font-size: 28rpx; 7 | } 8 | .checkbox-3{ 9 | display: block; 10 | margin: 30rpx 0; 11 | } -------------------------------------------------------------------------------- /page/component/pages/navigator/navigate.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |