├── README.md ├── app.js ├── app.json ├── app.wxss ├── component ├── timeTranslate │ └── timeTranslate.js ├── weui │ ├── base │ │ ├── fn.wxss │ │ ├── mixin │ │ │ ├── setArrow.wxss │ │ │ ├── setOnepx.wxss │ │ │ └── text.wxss │ │ ├── reset.wxss │ │ └── variable │ │ │ ├── color.wxss │ │ │ ├── global.wxss │ │ │ ├── weui-button.wxss │ │ │ ├── weui-cell.wxss │ │ │ ├── weui-dialog.wxss │ │ │ ├── weui-grid.wxss │ │ │ ├── weui-msg.wxss │ │ │ └── weui-progress.wxss │ ├── weui.wxss │ └── widget │ │ ├── weui-agree │ │ └── weui-agree.wxss │ │ ├── weui-animate │ │ └── weui-animate.wxss │ │ ├── weui-button │ │ └── weui-button.wxss │ │ ├── weui-cell │ │ ├── weui-access.wxss │ │ ├── weui-cell.wxss │ │ ├── weui-check.wxss │ │ ├── weui-form.wxss │ │ ├── weui-form │ │ │ ├── weui-form-preview.wxss │ │ │ ├── weui-form_common.wxss │ │ │ ├── weui-select.wxss │ │ │ └── weui-vcode.wxss │ │ ├── weui-switch.wxss │ │ └── weui-uploader.wxss │ │ ├── weui-flex │ │ └── weui-flex.wxss │ │ ├── weui-footer │ │ └── weui-footer.wxss │ │ ├── weui-grid │ │ └── weui-grid.wxss │ │ ├── weui-loading │ │ └── weui-loading.wxss │ │ ├── weui-media-box │ │ └── weui-media-box.wxss │ │ ├── weui-page │ │ ├── weui-article.wxss │ │ └── weui-msg.wxss │ │ ├── weui-panel │ │ └── weui-panel.wxss │ │ ├── weui-progress │ │ └── weui-progress.wxss │ │ ├── weui-searchbar │ │ └── weui-searchbar.wxss │ │ ├── weui-tab │ │ ├── weui-navbar.wxss │ │ └── weui-tab.wxss │ │ └── weui-tips │ │ ├── weui-badge.wxss │ │ └── weui-loadmore.wxss └── wxParse │ ├── emojis │ ├── 00.gif │ ├── 01.gif │ ├── 02.gif │ ├── 03.gif │ ├── 04.gif │ ├── 05.gif │ ├── 06.gif │ ├── 07.gif │ ├── 08.gif │ ├── 09.gif │ ├── 10.gif │ ├── 100.gif │ ├── 101.gif │ ├── 102.gif │ ├── 103.gif │ ├── 104.gif │ ├── 105.gif │ ├── 106.gif │ ├── 107.gif │ ├── 108.gif │ ├── 109.gif │ ├── 11.gif │ ├── 110.gif │ ├── 111.gif │ ├── 112.gif │ ├── 113.gif │ ├── 114.gif │ ├── 115.gif │ ├── 116.gif │ ├── 117.gif │ ├── 118.gif │ ├── 119.gif │ ├── 12.gif │ ├── 120.gif │ ├── 121.gif │ ├── 122.gif │ ├── 123.gif │ ├── 124.gif │ ├── 125.gif │ ├── 126.gif │ ├── 127.gif │ ├── 128.gif │ ├── 129.gif │ ├── 13.gif │ ├── 130.gif │ ├── 131.gif │ ├── 132.gif │ ├── 133.gif │ ├── 134.gif │ ├── 14.gif │ ├── 15.gif │ ├── 16.gif │ ├── 17.gif │ ├── 18.gif │ ├── 19.gif │ ├── 20.gif │ ├── 21.gif │ ├── 22.gif │ ├── 23.gif │ ├── 24.gif │ ├── 25.gif │ ├── 26.gif │ ├── 27.gif │ ├── 28.gif │ ├── 29.gif │ ├── 30.gif │ ├── 31.gif │ ├── 32.gif │ ├── 33.gif │ ├── 34.gif │ ├── 35.gif │ ├── 36.gif │ ├── 37.gif │ ├── 38.gif │ ├── 39.gif │ ├── 40.gif │ ├── 41.gif │ ├── 42.gif │ ├── 43.gif │ ├── 44.gif │ ├── 45.gif │ ├── 46.gif │ ├── 47.gif │ ├── 48.gif │ ├── 49.gif │ ├── 50.gif │ ├── 51.gif │ ├── 52.gif │ ├── 53.gif │ ├── 54.gif │ ├── 55.gif │ ├── 56.gif │ ├── 57.gif │ ├── 58.gif │ ├── 59.gif │ ├── 60.gif │ ├── 61.gif │ ├── 62.gif │ ├── 63.gif │ ├── 64.gif │ ├── 65.gif │ ├── 66.gif │ ├── 67.gif │ ├── 68.gif │ ├── 69.gif │ ├── 70.gif │ ├── 71.gif │ ├── 72.gif │ ├── 73.gif │ ├── 74.gif │ ├── 75.gif │ ├── 76.gif │ ├── 77.gif │ ├── 78.gif │ ├── 79.gif │ ├── 80.gif │ ├── 81.gif │ ├── 82.gif │ ├── 83.gif │ ├── 84.gif │ ├── 85.gif │ ├── 86.gif │ ├── 87.gif │ ├── 88.gif │ ├── 89.gif │ ├── 90.gif │ ├── 91.gif │ ├── 92.gif │ ├── 93.gif │ ├── 94.gif │ ├── 95.gif │ ├── 96.gif │ ├── 97.gif │ ├── 98.gif │ └── 99.gif │ ├── html2json.js │ ├── htmlparser.js │ ├── showdown.js │ ├── wxDiscode.js │ ├── wxParse.js │ ├── wxParse.wxml │ └── wxParse.wxss ├── pages ├── api.js ├── const.js ├── detail │ ├── detail.js │ ├── detail.json │ ├── detail.wxml │ └── detail.wxss ├── index │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss └── user │ ├── collect │ ├── collect.js │ ├── collect.json │ ├── collect.wxml │ └── collect.wxss │ ├── login │ ├── login.js │ ├── login.json │ ├── login.wxml │ └── login.wxss │ ├── message │ ├── message.js │ ├── message.json │ ├── message.wxml │ └── message.wxss │ ├── newtopic │ ├── newtopic.js │ ├── newtopic.json │ ├── newtopic.wxml │ └── newtopic.wxss │ └── user │ ├── user.js │ ├── user.json │ ├── user.wxml │ └── user.wxss └── static └── image └── vue.png /README.md: -------------------------------------------------------------------------------- 1 | # wechat-weapp-vueForum 2 | 基于Vue中文论坛提供的API,写了个小程序版的VueForum 3 | 4 | ### 1. 主要功能: 5 | 6 | - 论坛帖子查看、收藏 7 | - 登陆发布新帖子 8 | - 评论和消息管理 9 | 10 | ### 2. 目录结构 11 | 12 | ``` 13 | |——README.md <= 项目介绍 14 | |——app.js <= 主要逻辑文件 15 | |——app.json <= 全局配置文件 16 | |——app.wxss <= 公共样式文件 17 | |——component <= 组件库 18 | | |——timeTeanslate <= 时间格式转换组件 19 | | |——wxParse <= 富文本解析组件 20 | | |——weui <= weui样式库 21 | |——pages <= 页面文件 22 | | |——detail 23 | | |——index 24 | | |——user 25 | |——static <= 静态资源 26 | |——image 27 | ``` 28 | 29 | ### 3. 页面介绍 30 | 写了一篇文章介绍它: 31 | https://segmentfault.com/a/1190000010679082 32 | -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- 1 | //app.js 2 | App({ 3 | onLaunch: function() { 4 | //调用API从本地缓存中获取数据 5 | console.log('go') 6 | } 7 | }) 8 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "pages":[ 3 | "pages/index/index", 4 | "pages/detail/detail", 5 | "pages/user/user/user", 6 | "pages/user/login/login", 7 | "pages/user/message/message", 8 | "pages/user/collect/collect", 9 | "pages/user/newtopic/newtopic" 10 | ], 11 | "window":{ 12 | "backgroundTextStyle":"light", 13 | "navigationBarBackgroundColor": "#fff", 14 | "navigationBarTitleText": "WeChat", 15 | "navigationBarTextStyle":"black", 16 | "enablePullDownRefresh":true 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /app.wxss: -------------------------------------------------------------------------------- 1 | /**app.wxss**/ 2 | @import "/component/weui/weui.wxss"; 3 | .container { 4 | height: 100%; 5 | display: flex; 6 | flex-direction: column; 7 | align-items: center; 8 | justify-content: space-between; 9 | box-sizing: border-box; 10 | } 11 | .top{ 12 | padding:10rpx; 13 | margin-right:10rpx; 14 | border-radius:10rpx; 15 | background:#369219; 16 | 17 | color:#fff; 18 | font-size:28rpx; 19 | } 20 | /* 回复公共样式 */ 21 | .reply .item{ 22 | display: flex; 23 | justify-content: flex-start; 24 | align-items: center; 25 | flex-direction: column; 26 | padding:16rpx; 27 | border-bottom:.5rpx solid #f0f0f0; 28 | font-size:28rpx; 29 | } 30 | .reply .item image{ 31 | width:60rpx; 32 | height:60rpx; 33 | margin-right:10rpx; 34 | border-radius:30rpx; 35 | } 36 | .reply .item .author{ 37 | width:100%; 38 | display: flex; 39 | margin-bottom:10rpx; 40 | justify-content: flex-start; 41 | align-items: center; 42 | } 43 | .reply .item .author .author-name{ 44 | color:#666 45 | } 46 | .reply .item .reply-time{ 47 | margin-left:20rpx; 48 | font-size:26rpx; 49 | color:#08c; 50 | } 51 | .reply .item .reply-cot{ 52 | width:100%; 53 | font-size:26rpx; 54 | } -------------------------------------------------------------------------------- /component/timeTranslate/timeTranslate.js: -------------------------------------------------------------------------------- 1 | function getDateDiff(dateTimeStamp){ 2 | dateTimeStamp=Date.parse(dateTimeStamp) 3 | var minute = 1000 * 60; 4 | var hour = minute * 60; 5 | var day = hour * 24; 6 | var halfamonth = day * 15; 7 | var month = day * 30; 8 | var now = new Date().getTime(); 9 | var diffValue = now - dateTimeStamp; 10 | if(diffValue < 0){return;} 11 | var monthC =diffValue/month; 12 | var weekC =diffValue/(7*day); 13 | var dayC =diffValue/day; 14 | var hourC =diffValue/hour; 15 | var minC =diffValue/minute; 16 | if(monthC>=1){ 17 | result="" + parseInt(monthC) + "月前"; 18 | } 19 | else if(weekC>=1){ 20 | result="" + parseInt(weekC) + "周前"; 21 | } 22 | else if(dayC>=1){ 23 | result=""+ parseInt(dayC) +"天前"; 24 | } 25 | else if(hourC>=1){ 26 | result=""+ parseInt(hourC) +"小时前"; 27 | } 28 | else if(minC>=1){ 29 | result=""+ parseInt(minC) +"分钟前"; 30 | }else 31 | result="刚刚"; 32 | return result; 33 | } 34 | exports.getDateDiff = getDateDiff -------------------------------------------------------------------------------- /component/weui/base/fn.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | -------------------------------------------------------------------------------- /component/weui/base/mixin/setArrow.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | -------------------------------------------------------------------------------- /component/weui/base/mixin/setOnepx.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | -------------------------------------------------------------------------------- /component/weui/base/mixin/text.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | -------------------------------------------------------------------------------- /component/weui/base/reset.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | page{line-height:1.6;font-family:-apple-system-font,Helvetica Neue,sans-serif}icon{vertical-align:middle} -------------------------------------------------------------------------------- /component/weui/base/variable/color.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | -------------------------------------------------------------------------------- /component/weui/base/variable/global.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | -------------------------------------------------------------------------------- /component/weui/base/variable/weui-button.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | -------------------------------------------------------------------------------- /component/weui/base/variable/weui-cell.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | -------------------------------------------------------------------------------- /component/weui/base/variable/weui-dialog.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | -------------------------------------------------------------------------------- /component/weui/base/variable/weui-grid.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | -------------------------------------------------------------------------------- /component/weui/base/variable/weui-msg.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | -------------------------------------------------------------------------------- /component/weui/base/variable/weui-progress.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | -------------------------------------------------------------------------------- /component/weui/weui.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | page{line-height:1.6;font-family:-apple-system-font,Helvetica Neue,sans-serif}icon{vertical-align:middle}.weui-cells{position:relative;margin-top:1.17647059em;background-color:#fff;line-height:1.41176471;font-size:17px}.weui-cells:before{top:0;border-top:1rpx solid #d9d9d9}.weui-cells:after,.weui-cells:before{content:" ";position:absolute;left:0;right:0;height:1px;color:#d9d9d9}.weui-cells:after{bottom:0;border-bottom:1rpx solid #d9d9d9}.weui-cells__title{margin-top:.77em;margin-bottom:.3em;padding-left:15px;padding-right:15px;color:#999;font-size:14px}.weui-cells_after-title{margin-top:0}.weui-cells__tips{margin-top:.3em;color:#999;padding-left:15px;padding-right:15px;font-size:14px}.weui-cell{padding:10px 15px;position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.weui-cell:before{content:" ";position:absolute;left:0;top:0;right:0;height:1px;border-top:1rpx solid #d9d9d9;color:#d9d9d9;left:15px}.weui-cell:first-child:before{display:none}.weui-cell_active{background-color:#ececec}.weui-cell_primary{-webkit-box-align:start;-webkit-align-items:flex-start;align-items:flex-start}.weui-cell__bd{-webkit-box-flex:1;-webkit-flex:1;flex:1}.weui-cell__ft{text-align:right;color:#999}.weui-cell_access{color:inherit}.weui-cell__ft_in-access{padding-right:13px;position:relative}.weui-cell__ft_in-access:after{content:" ";display:inline-block;height:6px;width:6px;border-width:2px 2px 0 0;border-color:#c8c8cd;border-style:solid;-webkit-transform:matrix(.71,.71,-.71,.71,0,0);transform:matrix(.71,.71,-.71,.71,0,0);position:relative;top:-2px;position:absolute;top:50%;margin-top:-4px;right:2px}.weui-cell_link{color:#586c94;font-size:14px}.weui-cell_link:active{background-color:#ececec}.weui-cell_link:first-child:before{display:block}.weui-icon-radio{margin-left:3.2px;margin-right:3.2px}.weui-icon-checkbox_circle,.weui-icon-checkbox_success{margin-left:4.6px;margin-right:4.6px}.weui-check__label:active{background-color:#ececec}.weui-check{position:absolute;left:-9999px}.weui-check__hd_in-checkbox{padding-right:.35em}.weui-cell__ft_in-radio{padding-left:.35em}.weui-cell_input{padding-top:0;padding-bottom:0}.weui-label{width:105px;word-wrap:break-word;word-break:break-all}.weui-input{height:2.58823529em;min-height:2.58823529em;line-height:2.58823529em}.weui-toptips{position:fixed;-webkit-transform:translateZ(0);transform:translateZ(0);top:0;left:0;right:0;padding:5px;font-size:14px;text-align:center;color:#fff;z-index:5000;word-wrap:break-word;word-break:break-all}.weui-toptips_warn{background-color:#e64340}.weui-textarea{display:block;width:100%}.weui-textarea-counter{color:#b2b2b2;text-align:right}.weui-cell_warn,.weui-textarea-counter_warn{color:#e64340}.weui-form-preview{position:relative;background-color:#fff}.weui-form-preview:before{top:0;border-top:1rpx solid #d9d9d9}.weui-form-preview:after,.weui-form-preview:before{content:" ";position:absolute;left:0;right:0;height:1px;color:#d9d9d9}.weui-form-preview:after{bottom:0;border-bottom:1rpx solid #d9d9d9}.weui-form-preview__value{font-size:14px}.weui-form-preview__value_in-hd{font-size:26px}.weui-form-preview__hd{position:relative;padding:10px 15px;text-align:right;line-height:2.5em}.weui-form-preview__hd:after{content:" ";position:absolute;left:0;bottom:0;right:0;height:1px;border-bottom:1rpx solid #d9d9d9;color:#d9d9d9;left:15px}.weui-form-preview__bd{padding:10px 15px;font-size:.9em;text-align:right;color:#999;line-height:2}.weui-form-preview__ft{position:relative;line-height:50px;display:-webkit-box;display:-webkit-flex;display:flex}.weui-form-preview__ft:after{content:" ";position:absolute;left:0;top:0;right:0;height:1px;border-top:1rpx solid #d5d5d6;color:#d5d5d6}.weui-form-preview__item{overflow:hidden}.weui-form-preview__label{float:left;margin-right:1em;min-width:4em;color:#999;text-align:justify;text-align-last:justify}.weui-form-preview__value{display:block;overflow:hidden;word-break:normal;word-wrap:break-word}.weui-form-preview__btn{position:relative;display:block;-webkit-box-flex:1;-webkit-flex:1;flex:1;color:#3cc51f;text-align:center}.weui-form-preview__btn:after{content:" ";position:absolute;left:0;top:0;width:1px;bottom:0;border-left:1rpx solid #d5d5d6;color:#d5d5d6}.weui-form-preview__btn:first-child:after{display:none}.weui-form-preview__btn_active{background-color:#eee}.weui-form-preview__btn_default{color:#999}.weui-form-preview__btn_primary{color:#0bb20c}.weui-cell_select{padding:0}.weui-select{position:relative;padding-left:15px;padding-right:30px;height:2.58823529em;min-height:2.58823529em;line-height:2.58823529em;border-right:1rpx solid #d9d9d9}.weui-select:before{content:" ";display:inline-block;height:6px;width:6px;border-width:2px 2px 0 0;border-color:#c8c8cd;border-style:solid;-webkit-transform:matrix(.71,.71,-.71,.71,0,0);transform:matrix(.71,.71,-.71,.71,0,0);position:relative;top:-2px;position:absolute;top:50%;right:15px;margin-top:-4px}.weui-select_in-select-after{padding-left:0}.weui-cell__bd_in-select-before,.weui-cell__hd_in-select-after{padding-left:15px}.weui-cell_vcode{padding-right:0}.weui-vcode-btn,.weui-vcode-img{margin-left:5px;height:2.58823529em;vertical-align:middle}.weui-vcode-btn{display:inline-block;padding:0 .6em 0 .7em;border-left:1px solid #e5e5e5;line-height:2.58823529em;font-size:17px;color:#3cc51f;white-space:nowrap}.weui-vcode-btn:active{color:#52a341}.weui-cell_switch{padding-top:6px;padding-bottom:6px}.weui-uploader__hd{display:-webkit-box;display:-webkit-flex;display:flex;padding-bottom:10px;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.weui-uploader__title{-webkit-box-flex:1;-webkit-flex:1;flex:1}.weui-uploader__info{color:#b2b2b2}.weui-uploader__bd{margin-bottom:-4px;margin-right:-9px;overflow:hidden}.weui-uploader__file{float:left;margin-right:9px;margin-bottom:9px}.weui-uploader__img{display:block;width:79px;height:79px}.weui-uploader__file_status{position:relative}.weui-uploader__file_status:before{content:" ";position:absolute;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,.5)}.weui-uploader__file-content{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);color:#fff}.weui-uploader__input-box{float:left;position:relative;margin-right:9px;margin-bottom:9px;width:77px;height:77px;border:1px solid #d9d9d9}.weui-uploader__input-box:after,.weui-uploader__input-box:before{content:" ";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:#d9d9d9}.weui-uploader__input-box:before{width:2px;height:39.5px}.weui-uploader__input-box:after{width:39.5px;height:2px}.weui-uploader__input-box:active{border-color:#999}.weui-uploader__input-box:active:after,.weui-uploader__input-box:active:before{background-color:#999}.weui-uploader__input{position:absolute;z-index:1;top:0;left:0;width:100%;height:100%;opacity:0}.weui-article{padding:20px 15px;font-size:15px}.weui-article__section{margin-bottom:1.5em}.weui-article__h1{font-size:18px;font-weight:400;margin-bottom:.9em}.weui-article__h2{font-size:16px;font-weight:400;margin-bottom:.34em}.weui-article__h3{font-weight:400;font-size:15px;margin-bottom:.34em}.weui-article__p{margin:0 0 .8em}.weui-msg{padding-top:36px;text-align:center}.weui-msg__link{display:inline;color:#586c94}.weui-msg__icon-area{margin-bottom:30px}.weui-msg__text-area{margin-bottom:25px;padding:0 20px}.weui-msg__title{margin-bottom:5px;font-weight:400;font-size:20px}.weui-msg__desc{font-size:14px;color:#999}.weui-msg__opr-area{margin-bottom:25px}.weui-msg__extra-area{margin-bottom:15px;font-size:14px;color:#999}@media screen and (min-height:438px){.weui-msg__extra-area{position:fixed;left:0;bottom:0;width:100%;text-align:center}}.weui-flex{display:-webkit-box;display:-webkit-flex;display:flex}.weui-flex__item{-webkit-box-flex:1;-webkit-flex:1;flex:1}.weui-btn{margin-top:15px}.weui-btn:first-child{margin-top:0}.weui-btn-area{margin:1.17647059em 15px .3em}.weui-agree{display:block;padding:.5em 15px;font-size:13px}.weui-agree__text{color:#999}.weui-agree__link{display:inline;color:#586c94}.weui-agree__checkbox{position:absolute;left:-9999px}.weui-agree__checkbox-icon{position:relative;top:2px;display:inline-block;border:1px solid #d1d1d1;background-color:#fff;border-radius:3px;width:11px;height:11px}.weui-agree__checkbox-icon-check{position:absolute;top:1px;left:1px}.weui-footer{color:#999;font-size:14px;text-align:center}.weui-footer_fixed-bottom{position:fixed;bottom:.52em;left:0;right:0}.weui-footer__links{font-size:0}.weui-footer__link{display:inline-block;vertical-align:top;margin:0 .62em;position:relative;font-size:14px;color:#586c94}.weui-footer__link:before{content:" ";position:absolute;left:0;top:0;width:1px;bottom:0;border-left:1rpx solid #c7c7c7;color:#c7c7c7;left:-.65em;top:.36em;bottom:.36em}.weui-footer__link:first-child:before{display:none}.weui-footer__text{padding:0 .34em;font-size:12px}.weui-grids{border-top:1rpx solid #d9d9d9;border-left:1rpx solid #d9d9d9;overflow:hidden}.weui-grid{position:relative;float:left;padding:20px 10px;width:33.33333333%;box-sizing:border-box;border-right:1rpx solid #d9d9d9;border-bottom:1rpx solid #d9d9d9}.weui-grid_active{background-color:#ececec}.weui-grid__icon{display:block;width:28px;height:28px;margin:0 auto}.weui-grid__label{margin-top:5px;display:block;text-align:center;color:#000;font-size:14px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.weui-loading{margin:0 5px;width:20px;height:20px;display:inline-block;vertical-align:middle;-webkit-animation:a 1s steps(12) infinite;animation:a 1s steps(12) infinite;background:transparent url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=) no-repeat;background-size:100%}.weui-loading.weui-loading_transparent{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cpath fill='none' d='M0 0h100v100H0z'/%3E%3Crect xmlns='http://www.w3.org/2000/svg' width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.56)' rx='5' ry='5' transform='translate(0 -30)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.5)' rx='5' ry='5' transform='rotate(30 105.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.43)' rx='5' ry='5' transform='rotate(60 75.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.38)' rx='5' ry='5' transform='rotate(90 65 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.32)' rx='5' ry='5' transform='rotate(120 58.66 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.28)' rx='5' ry='5' transform='rotate(150 54.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.25)' rx='5' ry='5' transform='rotate(180 50 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.2)' rx='5' ry='5' transform='rotate(-150 45.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.17)' rx='5' ry='5' transform='rotate(-120 41.34 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.14)' rx='5' ry='5' transform='rotate(-90 35 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.1)' rx='5' ry='5' transform='rotate(-60 24.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.03)' rx='5' ry='5' transform='rotate(-30 -5.98 65)'/%3E%3C/svg%3E")}@-webkit-keyframes a{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes a{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.weui-badge{display:inline-block;padding:.15em .4em;min-width:8px;border-radius:18px;background-color:#e64340;color:#fff;line-height:1.2;text-align:center;font-size:12px;vertical-align:middle}.weui-badge_dot{padding:.4em;min-width:0}.weui-loadmore{width:65%;margin:1.5em auto;line-height:1.6em;font-size:14px;text-align:center}.weui-loadmore__tips{display:inline-block;vertical-align:middle}.weui-loadmore_line{border-top:1px solid #e5e5e5;margin-top:2.4em}.weui-loadmore__tips_in-line{position:relative;top:-.9em;padding:0 .55em;background-color:#fff;color:#999}.weui-loadmore__tips_in-dot{position:relative;padding:0 .16em;width:4px;height:1.6em}.weui-loadmore__tips_in-dot:before{content:" ";position:absolute;top:50%;left:50%;margin-top:-1px;margin-left:-2px;width:4px;height:4px;border-radius:50%;background-color:#e5e5e5}.weui-panel{background-color:#fff;margin-top:10px;position:relative;overflow:hidden}.weui-panel:first-child{margin-top:0}.weui-panel:before{top:0;border-top:1rpx solid #e5e5e5}.weui-panel:after,.weui-panel:before{content:" ";position:absolute;left:0;right:0;height:1px;color:#e5e5e5}.weui-panel:after{bottom:0;border-bottom:1rpx solid #e5e5e5}.weui-panel__hd{padding:14px 15px 10px;color:#999;font-size:13px;position:relative}.weui-panel__hd:after{content:" ";position:absolute;left:0;bottom:0;right:0;height:1px;border-bottom:1rpx solid #e5e5e5;color:#e5e5e5;left:15px}.weui-media-box{padding:15px;position:relative}.weui-media-box:before{content:" ";position:absolute;left:0;top:0;right:0;height:1px;border-top:1rpx solid #e5e5e5;color:#e5e5e5;left:15px}.weui-media-box:first-child:before{display:none}.weui-media-box__title{font-weight:400;font-size:17px;width:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;word-wrap:break-word;word-break:break-all}.weui-media-box__desc{color:#999;font-size:13px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.weui-media-box__info{margin-top:15px;padding-bottom:5px;font-size:13px;color:#cecece;line-height:1em;list-style:none;overflow:hidden}.weui-media-box__info__meta{float:left;padding-right:1em}.weui-media-box__info__meta_extra{padding-left:1em;border-left:1px solid #cecece}.weui-media-box__title_in-text{margin-bottom:8px}.weui-media-box_appmsg{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.weui-media-box__thumb{width:100%;height:100%;vertical-align:top}.weui-media-box__hd_in-appmsg{margin-right:.8em;width:60px;height:60px;line-height:60px;text-align:center}.weui-media-box__bd_in-appmsg{-webkit-box-flex:1;-webkit-flex:1;flex:1;min-width:0}.weui-media-box_small-appmsg{padding:0}.weui-cells_in-small-appmsg{margin-top:0}.weui-cells_in-small-appmsg:before{display:none}.weui-progress{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.weui-progress__bar{-webkit-box-flex:1;-webkit-flex:1;flex:1}.weui-progress__opr{margin-left:15px;font-size:0}.weui-navbar{display:-webkit-box;display:-webkit-flex;display:flex;position:absolute;z-index:500;top:0;width:100%;border-bottom:1rpx solid #ccc}.weui-navbar__item{position:relative;display:block;-webkit-box-flex:1;-webkit-flex:1;flex:1;padding:13px 0;text-align:center;font-size:0}.weui-navbar__item.weui-bar__item_on{color:#1aad19}.weui-navbar__slider{position:absolute;content:" ";left:0;bottom:0;width:6em;height:3px;background-color:#1aad19;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}.weui-navbar__title{display:inline-block;font-size:15px;max-width:8em;width:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal}.weui-tab{position:relative;height:100%}.weui-tab__panel{box-sizing:border-box;height:100%;padding-top:50px;overflow:auto;-webkit-overflow-scrolling:touch}.weui-search-bar{position:relative;padding:8px 10px;display:-webkit-box;display:-webkit-flex;display:flex;box-sizing:border-box;background-color:#efeff4;border-top:1rpx solid #d7d6dc;border-bottom:1rpx solid #d7d6dc}.weui-icon-search{margin-right:8px;font-size:inherit}.weui-icon-search_in-box{position:absolute;left:10px;top:7px}.weui-search-bar__text{display:inline-block;font-size:14px;vertical-align:middle}.weui-search-bar__form{position:relative;-webkit-box-flex:1;-webkit-flex:auto;flex:auto;border-radius:5px;background:#fff;border:1rpx solid #e6e6ea}.weui-search-bar__box{position:relative;padding-left:30px;padding-right:30px;width:100%;box-sizing:border-box;z-index:1}.weui-search-bar__input{height:28px;line-height:28px;font-size:14px}.weui-icon-clear{position:absolute;top:0;right:0;padding:7px 8px;font-size:0}.weui-search-bar__label{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;border-radius:3px;text-align:center;color:#9b9b9b;background:#fff;line-height:28px}.weui-search-bar__cancel-btn{margin-left:10px;line-height:28px;color:#09bb07;white-space:nowrap} -------------------------------------------------------------------------------- /component/weui/widget/weui-agree/weui-agree.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-agree{display:block;padding:.5em 15px;font-size:13px}.weui-agree__text{color:#999}.weui-agree__link{display:inline;color:#586c94}.weui-agree__checkbox{position:absolute;left:-9999px}.weui-agree__checkbox-icon{position:relative;top:2px;display:inline-block;border:1px solid #d1d1d1;background-color:#fff;border-radius:3px;width:11px;height:11px}.weui-agree__checkbox-icon-check{position:absolute;top:1px;left:1px} -------------------------------------------------------------------------------- /component/weui/widget/weui-animate/weui-animate.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | @-webkit-keyframes a{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes a{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}.weui-animate-slide-up{-webkit-animation:a ease .3s forwards;animation:a ease .3s forwards}@-webkit-keyframes b{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes b{0%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.weui-animate-slide-down{-webkit-animation:b ease .3s forwards;animation:b ease .3s forwards}@-webkit-keyframes c{0%{opacity:0}to{opacity:1}}@keyframes c{0%{opacity:0}to{opacity:1}}.weui-animate-fade-in{-webkit-animation:c ease .3s forwards;animation:c ease .3s forwards}@-webkit-keyframes d{0%{opacity:1}to{opacity:0}}@keyframes d{0%{opacity:1}to{opacity:0}}.weui-animate-fade-out{-webkit-animation:d ease .3s forwards;animation:d ease .3s forwards} -------------------------------------------------------------------------------- /component/weui/widget/weui-button/weui-button.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-btn{margin-top:15px}.weui-btn:first-child{margin-top:0}.weui-btn-area{margin:1.17647059em 15px .3em} -------------------------------------------------------------------------------- /component/weui/widget/weui-cell/weui-access.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-cell_access{color:inherit}.weui-cell__ft_in-access{padding-right:13px;position:relative}.weui-cell__ft_in-access:after{content:" ";display:inline-block;height:6px;width:6px;border-width:2px 2px 0 0;border-color:#c8c8cd;border-style:solid;-webkit-transform:matrix(.71,.71,-.71,.71,0,0);transform:matrix(.71,.71,-.71,.71,0,0);position:relative;top:-2px;position:absolute;top:50%;margin-top:-4px;right:2px}.weui-cell_link{color:#586c94;font-size:14px}.weui-cell_link:active{background-color:#ececec}.weui-cell_link:first-child:before{display:block} -------------------------------------------------------------------------------- /component/weui/widget/weui-cell/weui-cell.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-cells{position:relative;margin-top:1.17647059em;background-color:#fff;line-height:1.41176471;font-size:17px}.weui-cells:before{top:0;border-top:1rpx solid #d9d9d9}.weui-cells:after,.weui-cells:before{content:" ";position:absolute;left:0;right:0;height:1px;color:#d9d9d9}.weui-cells:after{bottom:0;border-bottom:1rpx solid #d9d9d9}.weui-cells__title{margin-top:.77em;margin-bottom:.3em;padding-left:15px;padding-right:15px;color:#999;font-size:14px}.weui-cells_after-title{margin-top:0}.weui-cells__tips{margin-top:.3em;color:#999;padding-left:15px;padding-right:15px;font-size:14px}.weui-cell{padding:10px 15px;position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.weui-cell:before{content:" ";position:absolute;left:0;top:0;right:0;height:1px;border-top:1rpx solid #d9d9d9;color:#d9d9d9;left:15px}.weui-cell:first-child:before{display:none}.weui-cell_active{background-color:#ececec}.weui-cell_primary{-webkit-box-align:start;-webkit-align-items:flex-start;align-items:flex-start}.weui-cell__bd{-webkit-box-flex:1;-webkit-flex:1;flex:1}.weui-cell__ft{text-align:right;color:#999} -------------------------------------------------------------------------------- /component/weui/widget/weui-cell/weui-check.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-icon-radio{margin-left:3.2px;margin-right:3.2px}.weui-icon-checkbox_circle,.weui-icon-checkbox_success{margin-left:4.6px;margin-right:4.6px}.weui-check__label:active{background-color:#ececec}.weui-check{position:absolute;left:-9999px}.weui-check__hd_in-checkbox{padding-right:.35em}.weui-cell__ft_in-radio{padding-left:.35em} -------------------------------------------------------------------------------- /component/weui/widget/weui-cell/weui-form.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-cell_input{padding-top:0;padding-bottom:0}.weui-label{width:105px;word-wrap:break-word;word-break:break-all}.weui-input{height:2.58823529em;min-height:2.58823529em;line-height:2.58823529em}.weui-toptips{position:fixed;-webkit-transform:translateZ(0);transform:translateZ(0);top:0;left:0;right:0;padding:5px;font-size:14px;text-align:center;color:#fff;z-index:5000;word-wrap:break-word;word-break:break-all}.weui-toptips_warn{background-color:#e64340}.weui-textarea{display:block;width:100%}.weui-textarea-counter{color:#b2b2b2;text-align:right}.weui-cell_warn,.weui-textarea-counter_warn{color:#e64340}.weui-form-preview{position:relative;background-color:#fff}.weui-form-preview:before{top:0;border-top:1rpx solid #d9d9d9}.weui-form-preview:after,.weui-form-preview:before{content:" ";position:absolute;left:0;right:0;height:1px;color:#d9d9d9}.weui-form-preview:after{bottom:0;border-bottom:1rpx solid #d9d9d9}.weui-form-preview__value{font-size:14px}.weui-form-preview__value_in-hd{font-size:26px}.weui-form-preview__hd{position:relative;padding:10px 15px;text-align:right;line-height:2.5em}.weui-form-preview__hd:after{content:" ";position:absolute;left:0;bottom:0;right:0;height:1px;border-bottom:1rpx solid #d9d9d9;color:#d9d9d9;left:15px}.weui-form-preview__bd{padding:10px 15px;font-size:.9em;text-align:right;color:#999;line-height:2}.weui-form-preview__ft{position:relative;line-height:50px;display:-webkit-box;display:-webkit-flex;display:flex}.weui-form-preview__ft:after{content:" ";position:absolute;left:0;top:0;right:0;height:1px;border-top:1rpx solid #d5d5d6;color:#d5d5d6}.weui-form-preview__item{overflow:hidden}.weui-form-preview__label{float:left;margin-right:1em;min-width:4em;color:#999;text-align:justify;text-align-last:justify}.weui-form-preview__value{display:block;overflow:hidden;word-break:normal;word-wrap:break-word}.weui-form-preview__btn{position:relative;display:block;-webkit-box-flex:1;-webkit-flex:1;flex:1;color:#3cc51f;text-align:center}.weui-form-preview__btn:after{content:" ";position:absolute;left:0;top:0;width:1px;bottom:0;border-left:1rpx solid #d5d5d6;color:#d5d5d6}.weui-form-preview__btn:first-child:after{display:none}.weui-form-preview__btn_active{background-color:#eee}.weui-form-preview__btn_default{color:#999}.weui-form-preview__btn_primary{color:#0bb20c}.weui-cell_select{padding:0}.weui-select{position:relative;padding-left:15px;padding-right:30px;height:2.58823529em;min-height:2.58823529em;line-height:2.58823529em;border-right:1rpx solid #d9d9d9}.weui-select:before{content:" ";display:inline-block;height:6px;width:6px;border-width:2px 2px 0 0;border-color:#c8c8cd;border-style:solid;-webkit-transform:matrix(.71,.71,-.71,.71,0,0);transform:matrix(.71,.71,-.71,.71,0,0);position:relative;top:-2px;position:absolute;top:50%;right:15px;margin-top:-4px}.weui-select_in-select-after{padding-left:0}.weui-cell__bd_in-select-before,.weui-cell__hd_in-select-after{padding-left:15px}.weui-cell_vcode{padding-right:0}.weui-vcode-btn,.weui-vcode-img{margin-left:5px;height:2.58823529em;vertical-align:middle}.weui-vcode-btn{display:inline-block;padding:0 .6em 0 .7em;border-left:1px solid #e5e5e5;line-height:2.58823529em;font-size:17px;color:#3cc51f;white-space:nowrap}.weui-vcode-btn:active{color:#52a341} -------------------------------------------------------------------------------- /component/weui/widget/weui-cell/weui-form/weui-form-preview.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-form-preview{position:relative;background-color:#fff}.weui-form-preview:before{top:0;border-top:1rpx solid #d9d9d9}.weui-form-preview:after,.weui-form-preview:before{content:" ";position:absolute;left:0;right:0;height:1px;color:#d9d9d9}.weui-form-preview:after{bottom:0;border-bottom:1rpx solid #d9d9d9}.weui-form-preview__value{font-size:14px}.weui-form-preview__value_in-hd{font-size:26px}.weui-form-preview__hd{position:relative;padding:10px 15px;text-align:right;line-height:2.5em}.weui-form-preview__hd:after{content:" ";position:absolute;left:0;bottom:0;right:0;height:1px;border-bottom:1rpx solid #d9d9d9;color:#d9d9d9;left:15px}.weui-form-preview__bd{padding:10px 15px;font-size:.9em;text-align:right;color:#999;line-height:2}.weui-form-preview__ft{position:relative;line-height:50px;display:-webkit-box;display:-webkit-flex;display:flex}.weui-form-preview__ft:after{content:" ";position:absolute;left:0;top:0;right:0;height:1px;border-top:1rpx solid #d5d5d6;color:#d5d5d6}.weui-form-preview__item{overflow:hidden}.weui-form-preview__label{float:left;margin-right:1em;min-width:4em;color:#999;text-align:justify;text-align-last:justify}.weui-form-preview__value{display:block;overflow:hidden;word-break:normal;word-wrap:break-word}.weui-form-preview__btn{position:relative;display:block;-webkit-box-flex:1;-webkit-flex:1;flex:1;color:#3cc51f;text-align:center}.weui-form-preview__btn:after{content:" ";position:absolute;left:0;top:0;width:1px;bottom:0;border-left:1rpx solid #d5d5d6;color:#d5d5d6}.weui-form-preview__btn:first-child:after{display:none}.weui-form-preview__btn_active{background-color:#eee}.weui-form-preview__btn_default{color:#999}.weui-form-preview__btn_primary{color:#0bb20c} -------------------------------------------------------------------------------- /component/weui/widget/weui-cell/weui-form/weui-form_common.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-cell_input{padding-top:0;padding-bottom:0}.weui-label{width:105px;word-wrap:break-word;word-break:break-all}.weui-input{height:2.58823529em;min-height:2.58823529em;line-height:2.58823529em}.weui-toptips{position:fixed;-webkit-transform:translateZ(0);transform:translateZ(0);top:0;left:0;right:0;padding:5px;font-size:14px;text-align:center;color:#fff;z-index:5000;word-wrap:break-word;word-break:break-all}.weui-toptips_warn{background-color:#e64340}.weui-textarea{display:block;width:100%}.weui-textarea-counter{color:#b2b2b2;text-align:right}.weui-cell_warn,.weui-textarea-counter_warn{color:#e64340} -------------------------------------------------------------------------------- /component/weui/widget/weui-cell/weui-form/weui-select.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-cell_select{padding:0}.weui-select{position:relative;padding-left:15px;padding-right:30px;height:2.58823529em;min-height:2.58823529em;line-height:2.58823529em;border-right:1rpx solid #d9d9d9}.weui-select:before{content:" ";display:inline-block;height:6px;width:6px;border-width:2px 2px 0 0;border-color:#c8c8cd;border-style:solid;-webkit-transform:matrix(.71,.71,-.71,.71,0,0);transform:matrix(.71,.71,-.71,.71,0,0);position:relative;top:-2px;position:absolute;top:50%;right:15px;margin-top:-4px}.weui-select_in-select-after{padding-left:0}.weui-cell__bd_in-select-before,.weui-cell__hd_in-select-after{padding-left:15px} -------------------------------------------------------------------------------- /component/weui/widget/weui-cell/weui-form/weui-vcode.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-cell_vcode{padding-right:0}.weui-vcode-btn,.weui-vcode-img{margin-left:5px;height:2.58823529em;vertical-align:middle}.weui-vcode-btn{display:inline-block;padding:0 .6em 0 .7em;border-left:1px solid #e5e5e5;line-height:2.58823529em;font-size:17px;color:#3cc51f;white-space:nowrap}.weui-vcode-btn:active{color:#52a341} -------------------------------------------------------------------------------- /component/weui/widget/weui-cell/weui-switch.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-cell_switch{padding-top:6px;padding-bottom:6px} -------------------------------------------------------------------------------- /component/weui/widget/weui-cell/weui-uploader.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-uploader__hd{display:-webkit-box;display:-webkit-flex;display:flex;padding-bottom:10px;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.weui-uploader__title{-webkit-box-flex:1;-webkit-flex:1;flex:1}.weui-uploader__info{color:#b2b2b2}.weui-uploader__bd{margin-bottom:-4px;margin-right:-9px;overflow:hidden}.weui-uploader__file{float:left;margin-right:9px;margin-bottom:9px}.weui-uploader__img{display:block;width:79px;height:79px}.weui-uploader__file_status{position:relative}.weui-uploader__file_status:before{content:" ";position:absolute;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,.5)}.weui-uploader__file-content{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);color:#fff}.weui-uploader__input-box{float:left;position:relative;margin-right:9px;margin-bottom:9px;width:77px;height:77px;border:1px solid #d9d9d9}.weui-uploader__input-box:after,.weui-uploader__input-box:before{content:" ";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:#d9d9d9}.weui-uploader__input-box:before{width:2px;height:39.5px}.weui-uploader__input-box:after{width:39.5px;height:2px}.weui-uploader__input-box:active{border-color:#999}.weui-uploader__input-box:active:after,.weui-uploader__input-box:active:before{background-color:#999}.weui-uploader__input{position:absolute;z-index:1;top:0;left:0;width:100%;height:100%;opacity:0} -------------------------------------------------------------------------------- /component/weui/widget/weui-flex/weui-flex.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-flex{display:-webkit-box;display:-webkit-flex;display:flex}.weui-flex__item{-webkit-box-flex:1;-webkit-flex:1;flex:1} -------------------------------------------------------------------------------- /component/weui/widget/weui-footer/weui-footer.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-footer{color:#999;font-size:14px;text-align:center}.weui-footer_fixed-bottom{position:fixed;bottom:.52em;left:0;right:0}.weui-footer__links{font-size:0}.weui-footer__link{display:inline-block;vertical-align:top;margin:0 .62em;position:relative;font-size:14px;color:#586c94}.weui-footer__link:before{content:" ";position:absolute;left:0;top:0;width:1px;bottom:0;border-left:1rpx solid #c7c7c7;color:#c7c7c7;left:-.65em;top:.36em;bottom:.36em}.weui-footer__link:first-child:before{display:none}.weui-footer__text{padding:0 .34em;font-size:12px} -------------------------------------------------------------------------------- /component/weui/widget/weui-grid/weui-grid.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-grids{border-top:1rpx solid #d9d9d9;border-left:1rpx solid #d9d9d9;overflow:hidden}.weui-grid{position:relative;float:left;padding:20px 10px;width:33.33333333%;box-sizing:border-box;border-right:1rpx solid #d9d9d9;border-bottom:1rpx solid #d9d9d9}.weui-grid_active{background-color:#ececec}.weui-grid__icon{display:block;width:28px;height:28px;margin:0 auto}.weui-grid__label{margin-top:5px;display:block;text-align:center;color:#000;font-size:14px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden} -------------------------------------------------------------------------------- /component/weui/widget/weui-loading/weui-loading.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-loading{margin:0 5px;width:20px;height:20px;display:inline-block;vertical-align:middle;-webkit-animation:a 1s steps(12) infinite;animation:a 1s steps(12) infinite;background:transparent url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=) no-repeat;background-size:100%}.weui-loading.weui-loading_transparent{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cpath fill='none' d='M0 0h100v100H0z'/%3E%3Crect xmlns='http://www.w3.org/2000/svg' width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.56)' rx='5' ry='5' transform='translate(0 -30)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.5)' rx='5' ry='5' transform='rotate(30 105.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.43)' rx='5' ry='5' transform='rotate(60 75.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.38)' rx='5' ry='5' transform='rotate(90 65 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.32)' rx='5' ry='5' transform='rotate(120 58.66 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.28)' rx='5' ry='5' transform='rotate(150 54.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.25)' rx='5' ry='5' transform='rotate(180 50 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.2)' rx='5' ry='5' transform='rotate(-150 45.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.17)' rx='5' ry='5' transform='rotate(-120 41.34 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.14)' rx='5' ry='5' transform='rotate(-90 35 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.1)' rx='5' ry='5' transform='rotate(-60 24.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.03)' rx='5' ry='5' transform='rotate(-30 -5.98 65)'/%3E%3C/svg%3E")}@-webkit-keyframes a{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes a{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}} -------------------------------------------------------------------------------- /component/weui/widget/weui-media-box/weui-media-box.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-media-box{padding:15px;position:relative}.weui-media-box:before{content:" ";position:absolute;left:0;top:0;right:0;height:1px;border-top:1rpx solid #e5e5e5;color:#e5e5e5;left:15px}.weui-media-box:first-child:before{display:none}.weui-media-box__title{font-weight:400;font-size:17px;width:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;word-wrap:break-word;word-break:break-all}.weui-media-box__desc{color:#999;font-size:13px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.weui-media-box__info{margin-top:15px;padding-bottom:5px;font-size:13px;color:#cecece;line-height:1em;list-style:none;overflow:hidden}.weui-media-box__info__meta{float:left;padding-right:1em}.weui-media-box__info__meta_extra{padding-left:1em;border-left:1px solid #cecece}.weui-media-box__title_in-text{margin-bottom:8px}.weui-media-box_appmsg{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.weui-media-box__thumb{width:100%;height:100%;vertical-align:top}.weui-media-box__hd_in-appmsg{margin-right:.8em;width:60px;height:60px;line-height:60px;text-align:center}.weui-media-box__bd_in-appmsg{-webkit-box-flex:1;-webkit-flex:1;flex:1;min-width:0}.weui-media-box_small-appmsg{padding:0}.weui-cells_in-small-appmsg{margin-top:0}.weui-cells_in-small-appmsg:before{display:none} -------------------------------------------------------------------------------- /component/weui/widget/weui-page/weui-article.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-article{padding:20px 15px;font-size:15px}.weui-article__section{margin-bottom:1.5em}.weui-article__h1{font-size:18px;font-weight:400;margin-bottom:.9em}.weui-article__h2{font-size:16px;font-weight:400;margin-bottom:.34em}.weui-article__h3{font-weight:400;font-size:15px;margin-bottom:.34em}.weui-article__p{margin:0 0 .8em} -------------------------------------------------------------------------------- /component/weui/widget/weui-page/weui-msg.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-msg{padding-top:36px;text-align:center}.weui-msg__link{display:inline;color:#586c94}.weui-msg__icon-area{margin-bottom:30px}.weui-msg__text-area{margin-bottom:25px;padding:0 20px}.weui-msg__title{margin-bottom:5px;font-weight:400;font-size:20px}.weui-msg__desc{font-size:14px;color:#999}.weui-msg__opr-area{margin-bottom:25px}.weui-msg__extra-area{margin-bottom:15px;font-size:14px;color:#999}@media screen and (min-height:438px){.weui-msg__extra-area{position:fixed;left:0;bottom:0;width:100%;text-align:center}} -------------------------------------------------------------------------------- /component/weui/widget/weui-panel/weui-panel.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-panel{background-color:#fff;margin-top:10px;position:relative;overflow:hidden}.weui-panel:first-child{margin-top:0}.weui-panel:before{top:0;border-top:1rpx solid #e5e5e5}.weui-panel:after,.weui-panel:before{content:" ";position:absolute;left:0;right:0;height:1px;color:#e5e5e5}.weui-panel:after{bottom:0;border-bottom:1rpx solid #e5e5e5}.weui-panel__hd{padding:14px 15px 10px;color:#999;font-size:13px;position:relative}.weui-panel__hd:after{content:" ";position:absolute;left:0;bottom:0;right:0;height:1px;border-bottom:1rpx solid #e5e5e5;color:#e5e5e5;left:15px} -------------------------------------------------------------------------------- /component/weui/widget/weui-progress/weui-progress.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-progress{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.weui-progress__bar{-webkit-box-flex:1;-webkit-flex:1;flex:1}.weui-progress__opr{margin-left:15px;font-size:0} -------------------------------------------------------------------------------- /component/weui/widget/weui-searchbar/weui-searchbar.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-search-bar{position:relative;padding:8px 10px;display:-webkit-box;display:-webkit-flex;display:flex;box-sizing:border-box;background-color:#efeff4;border-top:1rpx solid #d7d6dc;border-bottom:1rpx solid #d7d6dc}.weui-icon-search{margin-right:8px;font-size:inherit}.weui-icon-search_in-box{position:absolute;left:10px;top:7px}.weui-search-bar__text{display:inline-block;font-size:14px;vertical-align:middle}.weui-search-bar__form{position:relative;-webkit-box-flex:1;-webkit-flex:auto;flex:auto;border-radius:5px;background:#fff;border:1rpx solid #e6e6ea}.weui-search-bar__box{position:relative;padding-left:30px;padding-right:30px;width:100%;box-sizing:border-box;z-index:1}.weui-search-bar__input{height:28px;line-height:28px;font-size:14px}.weui-icon-clear{position:absolute;top:0;right:0;padding:7px 8px;font-size:0}.weui-search-bar__label{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;border-radius:3px;text-align:center;color:#9b9b9b;background:#fff;line-height:28px}.weui-search-bar__cancel-btn{margin-left:10px;line-height:28px;color:#09bb07;white-space:nowrap} -------------------------------------------------------------------------------- /component/weui/widget/weui-tab/weui-navbar.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-navbar{display:-webkit-box;display:-webkit-flex;display:flex;position:absolute;z-index:500;top:0;width:100%;border-bottom:1rpx solid #ccc}.weui-navbar__item{position:relative;display:block;-webkit-box-flex:1;-webkit-flex:1;flex:1;padding:13px 0;text-align:center;font-size:0}.weui-navbar__item.weui-bar__item_on{color:#1aad19}.weui-navbar__slider{position:absolute;content:" ";left:0;bottom:0;width:6em;height:3px;background-color:#1aad19;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}.weui-navbar__title{display:inline-block;font-size:15px;max-width:8em;width:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal} -------------------------------------------------------------------------------- /component/weui/widget/weui-tab/weui-tab.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-navbar{display:-webkit-box;display:-webkit-flex;display:flex;position:absolute;z-index:500;top:0;width:100%;border-bottom:1rpx solid #ccc}.weui-navbar__item{position:relative;display:block;-webkit-box-flex:1;-webkit-flex:1;flex:1;padding:13px 0;text-align:center;font-size:0}.weui-navbar__item.weui-bar__item_on{color:#1aad19}.weui-navbar__slider{position:absolute;content:" ";left:0;bottom:0;width:6em;height:3px;background-color:#1aad19;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}.weui-navbar__title{display:inline-block;font-size:15px;max-width:8em;width:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal}.weui-tab{position:relative;height:100%}.weui-tab__panel{box-sizing:border-box;height:100%;padding-top:50px;overflow:auto;-webkit-overflow-scrolling:touch} -------------------------------------------------------------------------------- /component/weui/widget/weui-tips/weui-badge.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-badge{display:inline-block;padding:.15em .4em;min-width:8px;border-radius:18px;background-color:#e64340;color:#fff;line-height:1.2;text-align:center;font-size:12px;vertical-align:middle}.weui-badge_dot{padding:.4em;min-width:0} -------------------------------------------------------------------------------- /component/weui/widget/weui-tips/weui-loadmore.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * WeUI v1.1.1 (https://github.com/weui/weui-wxss) 3 | * Copyright 2017 Tencent, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | .weui-loadmore{width:65%;margin:1.5em auto;line-height:1.6em;font-size:14px;text-align:center}.weui-loadmore__tips{display:inline-block;vertical-align:middle}.weui-loadmore_line{border-top:1px solid #e5e5e5;margin-top:2.4em}.weui-loadmore__tips_in-line{position:relative;top:-.9em;padding:0 .55em;background-color:#fff;color:#999}.weui-loadmore__tips_in-dot{position:relative;padding:0 .16em;width:4px;height:1.6em}.weui-loadmore__tips_in-dot:before{content:" ";position:absolute;top:50%;left:50%;margin-top:-1px;margin-left:-2px;width:4px;height:4px;border-radius:50%;background-color:#e5e5e5} -------------------------------------------------------------------------------- /component/wxParse/emojis/00.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/00.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/01.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/01.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/02.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/02.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/03.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/03.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/04.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/04.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/05.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/05.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/06.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/06.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/07.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/07.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/08.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/08.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/09.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/09.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/10.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/10.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/100.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/100.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/101.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/101.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/102.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/102.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/103.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/103.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/104.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/104.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/105.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/105.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/106.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/106.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/107.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/107.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/108.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/108.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/109.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/109.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/11.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/11.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/110.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/110.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/111.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/111.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/112.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/112.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/113.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/113.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/114.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/114.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/115.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/115.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/116.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/116.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/117.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/117.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/118.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/118.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/119.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/119.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/12.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/12.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/120.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/120.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/121.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/121.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/122.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/122.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/123.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/123.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/124.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/124.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/125.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/125.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/126.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/126.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/127.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/127.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/128.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/128.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/129.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/129.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/13.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/13.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/130.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/130.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/131.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/131.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/132.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/132.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/133.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/133.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/134.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/134.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/14.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/14.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/15.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/15.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/16.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/17.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/17.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/18.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/19.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/19.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/20.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/20.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/21.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/21.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/22.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/22.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/23.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/23.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/24.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/24.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/25.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/25.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/26.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/26.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/27.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/27.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/28.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/28.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/29.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/29.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/30.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/30.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/31.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/31.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/32.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/32.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/33.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/33.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/34.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/34.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/35.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/35.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/36.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/36.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/37.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/37.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/38.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/38.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/39.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/39.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/40.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/40.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/41.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/41.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/42.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/42.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/43.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/43.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/44.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/44.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/45.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/45.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/46.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/46.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/47.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/47.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/48.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/48.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/49.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/49.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/50.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/50.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/51.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/51.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/52.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/52.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/53.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/53.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/54.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/54.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/55.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/55.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/56.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/56.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/57.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/57.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/58.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/58.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/59.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/59.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/60.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/60.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/61.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/61.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/62.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/62.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/63.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/63.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/64.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/64.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/65.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/65.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/66.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/66.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/67.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/67.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/68.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/68.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/69.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/69.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/70.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/70.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/71.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/71.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/72.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/72.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/73.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/73.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/74.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/74.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/75.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/75.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/76.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/76.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/77.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/77.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/78.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/78.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/79.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/79.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/80.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/80.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/81.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/81.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/82.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/82.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/83.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/83.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/84.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/84.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/85.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/85.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/86.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/86.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/87.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/87.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/88.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/88.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/89.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/89.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/90.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/90.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/91.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/91.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/92.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/92.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/93.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/93.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/94.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/94.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/95.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/95.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/96.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/96.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/97.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/97.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/98.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/98.gif -------------------------------------------------------------------------------- /component/wxParse/emojis/99.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ghostdar/wechat-weapp-vueForum/984f2c627e3d99047115689f53cf05f3b4e2aa32/component/wxParse/emojis/99.gif -------------------------------------------------------------------------------- /component/wxParse/html2json.js: -------------------------------------------------------------------------------- 1 | /** 2 | * html2Json 改造来自: https://github.com/Jxck/html2json 3 | * 4 | * 5 | * author: Di (微信小程序开发工程师) 6 | * organization: WeAppDev(微信小程序开发论坛)(http://weappdev.com) 7 | * 垂直微信小程序开发交流社区 8 | * 9 | * github地址: https://github.com/icindy/wxParse 10 | * 11 | * for: 微信小程序富文本解析 12 | * detail : http://weappdev.com/t/wxparse-alpha0-1-html-markdown/184 13 | */ 14 | 15 | var __placeImgeUrlHttps = "https"; 16 | var __emojisReg = ''; 17 | var __emojisBaseSrc = ''; 18 | var __emojis = {}; 19 | var wxDiscode = require('./wxDiscode.js'); 20 | var HTMLParser = require('./htmlparser.js'); 21 | // Empty Elements - HTML 5 22 | var empty = makeMap("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"); 23 | // Block Elements - HTML 5 24 | var block = makeMap("br,a,code,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,ins,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"); 25 | 26 | // Inline Elements - HTML 5 27 | var inline = makeMap("abbr,acronym,applet,b,basefont,bdo,big,button,cite,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"); 28 | 29 | // Elements that you can, intentionally, leave open 30 | // (and which close themselves) 31 | var closeSelf = makeMap("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"); 32 | 33 | // Attributes that have their values filled in disabled="disabled" 34 | var fillAttrs = makeMap("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"); 35 | 36 | // Special Elements (can contain anything) 37 | var special = makeMap("wxxxcode-style,script,style,view,scroll-view,block"); 38 | function makeMap(str) { 39 | var obj = {}, items = str.split(","); 40 | for (var i = 0; i < items.length; i++) 41 | obj[items[i]] = true; 42 | return obj; 43 | } 44 | 45 | function q(v) { 46 | return '"' + v + '"'; 47 | } 48 | 49 | function removeDOCTYPE(html) { 50 | return html 51 | .replace(/<\?xml.*\?>\n/, '') 52 | .replace(/<.*!doctype.*\>\n/, '') 53 | .replace(/<.*!DOCTYPE.*\>\n/, ''); 54 | } 55 | 56 | function trimHtml(html) { 57 | return html 58 | .replace(/\n+/g, '') 59 | .replace(//ig, '') 60 | .replace(/\/\*.*?\*\//ig, '') 61 | .replace(/[ ]+ 189 | // add to parents 190 | var parent = bufArray[0] || results; 191 | if (parent.nodes === undefined) { 192 | parent.nodes = []; 193 | } 194 | parent.nodes.push(node); 195 | } else { 196 | bufArray.unshift(node); 197 | } 198 | }, 199 | end: function (tag) { 200 | //debug(tag); 201 | // merge into parent tag 202 | var node = bufArray.shift(); 203 | if (node.tag !== tag) console.error('invalid state: mismatch end tag'); 204 | 205 | //当有缓存source资源时于于video补上src资源 206 | if(node.tag === 'video' && results.source){ 207 | node.attr.src = results.source; 208 | delete result.source; 209 | } 210 | 211 | if (bufArray.length === 0) { 212 | results.nodes.push(node); 213 | } else { 214 | var parent = bufArray[0]; 215 | if (parent.nodes === undefined) { 216 | parent.nodes = []; 217 | } 218 | parent.nodes.push(node); 219 | } 220 | }, 221 | chars: function (text) { 222 | //debug(text); 223 | var node = { 224 | node: 'text', 225 | text: text, 226 | textArray:transEmojiStr(text) 227 | }; 228 | 229 | if (bufArray.length === 0) { 230 | results.nodes.push(node); 231 | } else { 232 | var parent = bufArray[0]; 233 | if (parent.nodes === undefined) { 234 | parent.nodes = []; 235 | } 236 | node.index = parent.index + '.' + parent.nodes.length 237 | parent.nodes.push(node); 238 | } 239 | }, 240 | comment: function (text) { 241 | //debug(text); 242 | // var node = { 243 | // node: 'comment', 244 | // text: text, 245 | // }; 246 | // var parent = bufArray[0]; 247 | // if (parent.nodes === undefined) { 248 | // parent.nodes = []; 249 | // } 250 | // parent.nodes.push(node); 251 | }, 252 | }); 253 | return results; 254 | }; 255 | 256 | function transEmojiStr(str){ 257 | // var eReg = new RegExp("["+__reg+' '+"]"); 258 | // str = str.replace(/\[([^\[\]]+)\]/g,':$1:') 259 | 260 | var emojiObjs = []; 261 | //如果正则表达式为空 262 | if(__emojisReg.length == 0 || !__emojis){ 263 | var emojiObj = {} 264 | emojiObj.node = "text"; 265 | emojiObj.text = str; 266 | array = [emojiObj]; 267 | return array; 268 | } 269 | //这个地方需要调整 270 | str = str.replace(/\[([^\[\]]+)\]/g,':$1:') 271 | var eReg = new RegExp("[:]"); 272 | var array = str.split(eReg); 273 | for(var i = 0; i < array.length; i++){ 274 | var ele = array[i]; 275 | var emojiObj = {}; 276 | if(__emojis[ele]){ 277 | emojiObj.node = "element"; 278 | emojiObj.tag = "emoji"; 279 | emojiObj.text = __emojis[ele]; 280 | emojiObj.baseSrc= __emojisBaseSrc; 281 | }else{ 282 | emojiObj.node = "text"; 283 | emojiObj.text = ele; 284 | } 285 | emojiObjs.push(emojiObj); 286 | } 287 | 288 | return emojiObjs; 289 | } 290 | 291 | function emojisInit(reg='',baseSrc="/wxParse/emojis/",emojis){ 292 | __emojisReg = reg; 293 | __emojisBaseSrc=baseSrc; 294 | __emojis=emojis; 295 | } 296 | 297 | module.exports = { 298 | html2json: html2json, 299 | emojisInit:emojisInit 300 | }; 301 | 302 | -------------------------------------------------------------------------------- /component/wxParse/htmlparser.js: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * htmlParser改造自: https://github.com/blowsie/Pure-JavaScript-HTML5-Parser 4 | * 5 | * author: Di (微信小程序开发工程师) 6 | * organization: WeAppDev(微信小程序开发论坛)(http://weappdev.com) 7 | * 垂直微信小程序开发交流社区 8 | * 9 | * github地址: https://github.com/icindy/wxParse 10 | * 11 | * for: 微信小程序富文本解析 12 | * detail : http://weappdev.com/t/wxparse-alpha0-1-html-markdown/184 13 | */ 14 | // Regular Expressions for parsing tags and attributes 15 | var startTag = /^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/, 16 | endTag = /^<\/([-A-Za-z0-9_]+)[^>]*>/, 17 | attr = /([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g; 18 | 19 | // Empty Elements - HTML 5 20 | var empty = makeMap("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"); 21 | 22 | // Block Elements - HTML 5 23 | var block = makeMap("a,address,code,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,ins,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"); 24 | 25 | // Inline Elements - HTML 5 26 | var inline = makeMap("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"); 27 | 28 | // Elements that you can, intentionally, leave open 29 | // (and which close themselves) 30 | var closeSelf = makeMap("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"); 31 | 32 | // Attributes that have their values filled in disabled="disabled" 33 | var fillAttrs = makeMap("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"); 34 | 35 | // Special Elements (can contain anything) 36 | var special = makeMap("wxxxcode-style,script,style,view,scroll-view,block"); 37 | 38 | function HTMLParser(html, handler) { 39 | var index, chars, match, stack = [], last = html; 40 | stack.last = function () { 41 | return this[this.length - 1]; 42 | }; 43 | 44 | while (html) { 45 | chars = true; 46 | 47 | // Make sure we're not in a script or style element 48 | if (!stack.last() || !special[stack.last()]) { 49 | 50 | // Comment 51 | if (html.indexOf(""); 53 | 54 | if (index >= 0) { 55 | if (handler.comment) 56 | handler.comment(html.substring(4, index)); 57 | html = html.substring(index + 3); 58 | chars = false; 59 | } 60 | 61 | // end tag 62 | } else if (html.indexOf("") == 0) { 63 | match = html.match(endTag); 64 | 65 | if (match) { 66 | html = html.substring(match[0].length); 67 | match[0].replace(endTag, parseEndTag); 68 | chars = false; 69 | } 70 | 71 | // start tag 72 | } else if (html.indexOf("<") == 0) { 73 | match = html.match(startTag); 74 | 75 | if (match) { 76 | html = html.substring(match[0].length); 77 | match[0].replace(startTag, parseStartTag); 78 | chars = false; 79 | } 80 | } 81 | 82 | if (chars) { 83 | index = html.indexOf("<"); 84 | var text = '' 85 | while (index === 0) { 86 | text += "<"; 87 | html = html.substring(1); 88 | index = html.indexOf("<"); 89 | } 90 | text += index < 0 ? html : html.substring(0, index); 91 | html = index < 0 ? "" : html.substring(index); 92 | 93 | if (handler.chars) 94 | handler.chars(text); 95 | } 96 | 97 | } else { 98 | 99 | html = html.replace(new RegExp("([\\s\\S]*?)<\/" + stack.last() + "[^>]*>"), function (all, text) { 100 | text = text.replace(/|/g, "$1$2"); 101 | if (handler.chars) 102 | handler.chars(text); 103 | 104 | return ""; 105 | }); 106 | 107 | 108 | parseEndTag("", stack.last()); 109 | } 110 | 111 | if (html == last) 112 | throw "Parse Error: " + html; 113 | last = html; 114 | } 115 | 116 | // Clean up any remaining tags 117 | parseEndTag(); 118 | 119 | function parseStartTag(tag, tagName, rest, unary) { 120 | tagName = tagName.toLowerCase(); 121 | 122 | if (block[tagName]) { 123 | while (stack.last() && inline[stack.last()]) { 124 | parseEndTag("", stack.last()); 125 | } 126 | } 127 | 128 | if (closeSelf[tagName] && stack.last() == tagName) { 129 | parseEndTag("", tagName); 130 | } 131 | 132 | unary = empty[tagName] || !!unary; 133 | 134 | if (!unary) 135 | stack.push(tagName); 136 | 137 | if (handler.start) { 138 | var attrs = []; 139 | 140 | rest.replace(attr, function (match, name) { 141 | var value = arguments[2] ? arguments[2] : 142 | arguments[3] ? arguments[3] : 143 | arguments[4] ? arguments[4] : 144 | fillAttrs[name] ? name : ""; 145 | 146 | attrs.push({ 147 | name: name, 148 | value: value, 149 | escaped: value.replace(/(^|[^\\])"/g, '$1\\\"') //" 150 | }); 151 | }); 152 | 153 | if (handler.start) { 154 | handler.start(tagName, attrs, unary); 155 | } 156 | 157 | } 158 | } 159 | 160 | function parseEndTag(tag, tagName) { 161 | // If no tag name is provided, clean shop 162 | if (!tagName) 163 | var pos = 0; 164 | 165 | // Find the closest opened tag of the same type 166 | else { 167 | tagName = tagName.toLowerCase(); 168 | for (var pos = stack.length - 1; pos >= 0; pos--) 169 | if (stack[pos] == tagName) 170 | break; 171 | } 172 | if (pos >= 0) { 173 | // Close all the open elements, up the stack 174 | for (var i = stack.length - 1; i >= pos; i--) 175 | if (handler.end) 176 | handler.end(stack[i]); 177 | 178 | // Remove the open elements from the stack 179 | stack.length = pos; 180 | } 181 | } 182 | }; 183 | 184 | 185 | function makeMap(str) { 186 | var obj = {}, items = str.split(","); 187 | for (var i = 0; i < items.length; i++) 188 | obj[items[i]] = true; 189 | return obj; 190 | } 191 | 192 | module.exports = HTMLParser; 193 | -------------------------------------------------------------------------------- /component/wxParse/wxDiscode.js: -------------------------------------------------------------------------------- 1 | // HTML 支持的数学符号 2 | function strNumDiscode(str){ 3 | str = str.replace(/∀/g, '∀'); 4 | str = str.replace(/∂/g, '∂'); 5 | str = str.replace(/&exists;/g, '∃'); 6 | str = str.replace(/∅/g, '∅'); 7 | str = str.replace(/∇/g, '∇'); 8 | str = str.replace(/∈/g, '∈'); 9 | str = str.replace(/∉/g, '∉'); 10 | str = str.replace(/∋/g, '∋'); 11 | str = str.replace(/∏/g, '∏'); 12 | str = str.replace(/∑/g, '∑'); 13 | str = str.replace(/−/g, '−'); 14 | str = str.replace(/∗/g, '∗'); 15 | str = str.replace(/√/g, '√'); 16 | str = str.replace(/∝/g, '∝'); 17 | str = str.replace(/∞/g, '∞'); 18 | str = str.replace(/∠/g, '∠'); 19 | str = str.replace(/∧/g, '∧'); 20 | str = str.replace(/∨/g, '∨'); 21 | str = str.replace(/∩/g, '∩'); 22 | str = str.replace(/∩/g, '∪'); 23 | str = str.replace(/∫/g, '∫'); 24 | str = str.replace(/∴/g, '∴'); 25 | str = str.replace(/∼/g, '∼'); 26 | str = str.replace(/≅/g, '≅'); 27 | str = str.replace(/≈/g, '≈'); 28 | str = str.replace(/≠/g, '≠'); 29 | str = str.replace(/≤/g, '≤'); 30 | str = str.replace(/≥/g, '≥'); 31 | str = str.replace(/⊂/g, '⊂'); 32 | str = str.replace(/⊃/g, '⊃'); 33 | str = str.replace(/⊄/g, '⊄'); 34 | str = str.replace(/⊆/g, '⊆'); 35 | str = str.replace(/⊇/g, '⊇'); 36 | str = str.replace(/⊕/g, '⊕'); 37 | str = str.replace(/⊗/g, '⊗'); 38 | str = str.replace(/⊥/g, '⊥'); 39 | str = str.replace(/⋅/g, '⋅'); 40 | return str; 41 | } 42 | 43 | //HTML 支持的希腊字母 44 | function strGreeceDiscode(str){ 45 | str = str.replace(/Α/g, 'Α'); 46 | str = str.replace(/Β/g, 'Β'); 47 | str = str.replace(/Γ/g, 'Γ'); 48 | str = str.replace(/Δ/g, 'Δ'); 49 | str = str.replace(/Ε/g, 'Ε'); 50 | str = str.replace(/Ζ/g, 'Ζ'); 51 | str = str.replace(/Η/g, 'Η'); 52 | str = str.replace(/Θ/g, 'Θ'); 53 | str = str.replace(/Ι/g, 'Ι'); 54 | str = str.replace(/Κ/g, 'Κ'); 55 | str = str.replace(/Λ/g, 'Λ'); 56 | str = str.replace(/Μ/g, 'Μ'); 57 | str = str.replace(/Ν/g, 'Ν'); 58 | str = str.replace(/Ξ/g, 'Ν'); 59 | str = str.replace(/Ο/g, 'Ο'); 60 | str = str.replace(/Π/g, 'Π'); 61 | str = str.replace(/Ρ/g, 'Ρ'); 62 | str = str.replace(/Σ/g, 'Σ'); 63 | str = str.replace(/Τ/g, 'Τ'); 64 | str = str.replace(/Υ/g, 'Υ'); 65 | str = str.replace(/Φ/g, 'Φ'); 66 | str = str.replace(/Χ/g, 'Χ'); 67 | str = str.replace(/Ψ/g, 'Ψ'); 68 | str = str.replace(/Ω/g, 'Ω'); 69 | 70 | str = str.replace(/α/g, 'α'); 71 | str = str.replace(/β/g, 'β'); 72 | str = str.replace(/γ/g, 'γ'); 73 | str = str.replace(/δ/g, 'δ'); 74 | str = str.replace(/ε/g, 'ε'); 75 | str = str.replace(/ζ/g, 'ζ'); 76 | str = str.replace(/η/g, 'η'); 77 | str = str.replace(/θ/g, 'θ'); 78 | str = str.replace(/ι/g, 'ι'); 79 | str = str.replace(/κ/g, 'κ'); 80 | str = str.replace(/λ/g, 'λ'); 81 | str = str.replace(/μ/g, 'μ'); 82 | str = str.replace(/ν/g, 'ν'); 83 | str = str.replace(/ξ/g, 'ξ'); 84 | str = str.replace(/ο/g, 'ο'); 85 | str = str.replace(/π/g, 'π'); 86 | str = str.replace(/ρ/g, 'ρ'); 87 | str = str.replace(/ς/g, 'ς'); 88 | str = str.replace(/σ/g, 'σ'); 89 | str = str.replace(/τ/g, 'τ'); 90 | str = str.replace(/υ/g, 'υ'); 91 | str = str.replace(/φ/g, 'φ'); 92 | str = str.replace(/χ/g, 'χ'); 93 | str = str.replace(/ψ/g, 'ψ'); 94 | str = str.replace(/ω/g, 'ω'); 95 | str = str.replace(/ϑ/g, 'ϑ'); 96 | str = str.replace(/ϒ/g, 'ϒ'); 97 | str = str.replace(/ϖ/g, 'ϖ'); 98 | str = str.replace(/·/g, '·'); 99 | return str; 100 | } 101 | 102 | // 103 | 104 | function strcharacterDiscode(str){ 105 | // 加入常用解析 106 | str = str.replace(/ /g, ' '); 107 | str = str.replace(/"/g, "'"); 108 | str = str.replace(/&/g, '&'); 109 | // str = str.replace(/</g, '‹'); 110 | // str = str.replace(/>/g, '›'); 111 | 112 | str = str.replace(/</g, '<'); 113 | str = str.replace(/>/g, '>'); 114 | str = str.replace(/•/g, '•'); 115 | 116 | return str; 117 | } 118 | 119 | // HTML 支持的其他实体 120 | function strOtherDiscode(str){ 121 | str = str.replace(/Œ/g, 'Œ'); 122 | str = str.replace(/œ/g, 'œ'); 123 | str = str.replace(/Š/g, 'Š'); 124 | str = str.replace(/š/g, 'š'); 125 | str = str.replace(/Ÿ/g, 'Ÿ'); 126 | str = str.replace(/ƒ/g, 'ƒ'); 127 | str = str.replace(/ˆ/g, 'ˆ'); 128 | str = str.replace(/˜/g, '˜'); 129 | str = str.replace(/ /g, ''); 130 | str = str.replace(/ /g, ''); 131 | str = str.replace(/ /g, ''); 132 | str = str.replace(//g, ''); 133 | str = str.replace(//g, ''); 134 | str = str.replace(//g, ''); 135 | str = str.replace(//g, ''); 136 | str = str.replace(/–/g, '–'); 137 | str = str.replace(/—/g, '—'); 138 | str = str.replace(/‘/g, '‘'); 139 | str = str.replace(/’/g, '’'); 140 | str = str.replace(/‚/g, '‚'); 141 | str = str.replace(/“/g, '“'); 142 | str = str.replace(/”/g, '”'); 143 | str = str.replace(/„/g, '„'); 144 | str = str.replace(/†/g, '†'); 145 | str = str.replace(/‡/g, '‡'); 146 | str = str.replace(/•/g, '•'); 147 | str = str.replace(/…/g, '…'); 148 | str = str.replace(/‰/g, '‰'); 149 | str = str.replace(/′/g, '′'); 150 | str = str.replace(/″/g, '″'); 151 | str = str.replace(/‹/g, '‹'); 152 | str = str.replace(/›/g, '›'); 153 | str = str.replace(/‾/g, '‾'); 154 | str = str.replace(/€/g, '€'); 155 | str = str.replace(/™/g, '™'); 156 | 157 | str = str.replace(/←/g, '←'); 158 | str = str.replace(/↑/g, '↑'); 159 | str = str.replace(/→/g, '→'); 160 | str = str.replace(/↓/g, '↓'); 161 | str = str.replace(/↔/g, '↔'); 162 | str = str.replace(/↵/g, '↵'); 163 | str = str.replace(/⌈/g, '⌈'); 164 | str = str.replace(/⌉/g, '⌉'); 165 | 166 | str = str.replace(/⌊/g, '⌊'); 167 | str = str.replace(/⌋/g, '⌋'); 168 | str = str.replace(/◊/g, '◊'); 169 | str = str.replace(/♠/g, '♠'); 170 | str = str.replace(/♣/g, '♣'); 171 | str = str.replace(/♥/g, '♥'); 172 | 173 | str = str.replace(/♦/g, '♦'); 174 | str = str.replace(/'/g, '\''); 175 | return str; 176 | } 177 | 178 | function strMoreDiscode(str){ 179 | str = str.replace(/\r\n/g,""); 180 | str = str.replace(/\n/g,""); 181 | 182 | str = str.replace(/code/g,"wxxxcode-style"); 183 | return str; 184 | } 185 | 186 | function strDiscode(str){ 187 | str = strNumDiscode(str); 188 | str = strGreeceDiscode(str); 189 | str = strcharacterDiscode(str); 190 | str = strOtherDiscode(str); 191 | str = strMoreDiscode(str); 192 | return str; 193 | } 194 | function urlToHttpUrl(url,rep){ 195 | 196 | var patt1 = new RegExp("^//"); 197 | var result = patt1.test(url); 198 | if(result){ 199 | url = rep+":"+url; 200 | } 201 | return url; 202 | } 203 | 204 | module.exports = { 205 | strDiscode:strDiscode, 206 | urlToHttpUrl:urlToHttpUrl 207 | } -------------------------------------------------------------------------------- /component/wxParse/wxParse.js: -------------------------------------------------------------------------------- 1 | /** 2 | * author: Di (微信小程序开发工程师) 3 | * organization: WeAppDev(微信小程序开发论坛)(http://weappdev.com) 4 | * 垂直微信小程序开发交流社区 5 | * 6 | * github地址: https://github.com/icindy/wxParse 7 | * 8 | * for: 微信小程序富文本解析 9 | * detail : http://weappdev.com/t/wxparse-alpha0-1-html-markdown/184 10 | */ 11 | 12 | /** 13 | * utils函数引入 14 | **/ 15 | import showdown from './showdown.js'; 16 | import HtmlToJson from './html2json.js'; 17 | /** 18 | * 配置及公有属性 19 | **/ 20 | var realWindowWidth = 0; 21 | var realWindowHeight = 0; 22 | wx.getSystemInfo({ 23 | success: function (res) { 24 | realWindowWidth = res.windowWidth 25 | realWindowHeight = res.windowHeight 26 | } 27 | }) 28 | /** 29 | * 主函数入口区 30 | **/ 31 | function wxParse(bindName = 'wxParseData', type='html', data='