├── README.md ├── app.js ├── app.json ├── app.wxss ├── components └── BookCard │ ├── bookCard.js │ ├── bookCard.json │ ├── bookCard.wxml │ └── bookCard.wxss ├── pages └── index │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── static └── img │ ├── 1.jpg │ ├── 1.png │ ├── 2.jpg │ ├── 2.png │ ├── 3.jpg │ ├── 3.png │ └── reader.png └── styles └── weui.wxss /README.md: -------------------------------------------------------------------------------- 1 | 一个简单微信小程序(仿QQ浏览器小说-书城界面实现) 2 | 3 | > 开发工具: **微信Web开发者工具** [传送门](https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html) 4 | 5 | ### 项目结构 6 | ```Javascript 7 | |--components //存放项目组件 8 | |--static //存放静态资源 9 | |--pages //存放页面 10 | |--styles //存放样式,weui.wxss 11 | |--app.js //小程序公共方法 12 | |--app.json //小程序公共设置 13 | |--app.wxss //小程序公共样式表 14 | |--README.md //说明文档 15 | ``` 16 | 17 | ### 使用技术 18 | - `MINA` 微信小程序框架 [传送门](https://developers.weixin.qq.com/miniprogram/dev/framework/MINA.html/) 19 | - `WeUI` 一套同微信原生视觉体验一致的基础样式库 [传送门](https://weui.io/) 20 | 21 | ### 运行截图 22 | 23 | 24 | 25 | 26 | ### 运行 27 | git clone 该项目到本地用微信Web开发者工具打开即可 28 | 29 | PS:打开项目需要小程序id,注册一个小程序就可以了 [传送门](https://mp.weixin.qq.com/cgi-bin/wx) 30 | -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- 1 | //app.js 2 | App({ 3 | onLaunch () { 4 | //调用API从本地缓存中获取数据 5 | var logs = wx.getStorageSync('logs') || [] 6 | logs.unshift(Date.now()) 7 | wx.setStorageSync('logs', logs) 8 | }, 9 | //封装请求数据的方法 10 | ajax:function(url, data, callback, method) { 11 | var method = method ? method : "GET"; 12 | wx.request({ 13 | url: url, 14 | data: data, 15 | method: method, 16 | header: { 17 | 'Content-Type': 'application/json' 18 | }, 19 | success(res) { 20 | callback(res.data); 21 | }, 22 | fail(e) { 23 | callback(e); 24 | } 25 | }) 26 | }, 27 | getUserInfo:function(cb){ 28 | var that = this 29 | if(this.globalData.userInfo){ 30 | typeof cb == "function" && cb(this.globalData.userInfo) 31 | }else{ 32 | //调用登录接口 33 | wx.login({ 34 | success () { 35 | wx.getUserInfo({ 36 | success (res) { 37 | that.globalData.userInfo = res.userInfo 38 | typeof cb == "function" && cb(that.globalData.userInfo) 39 | } 40 | }) 41 | } 42 | }) 43 | } 44 | }, 45 | updateContactData: function(arr) { 46 | this.globalData.contactData = arr; 47 | }, 48 | updateMeetingrooms: function(arr) { 49 | this.globalData.meetingrooms = arr; 50 | }, 51 | updateCheckList: function(arr) { 52 | this.globalData.checkList = arr; 53 | }, 54 | updateCheckBrList: function(arr) { 55 | 56 | this.globalData.checkBrList = arr; 57 | }, 58 | updateContactsList: function(arr) { 59 | 60 | this.globalData.contactsList = arr; 61 | }, 62 | updateBoardroomList: function(arr) { 63 | 64 | this.globalData.boardroomList = arr; 65 | }, 66 | globalData:{ 67 | userInfo:null, 68 | contactData: [],//联系人列表 69 | checkList:[],//选中联系人 70 | meetingrooms: [],//会议室列表 71 | checkBrList:[],//选中会议室 72 | contactsList: [], 73 | boardroomList: [] 74 | } 75 | }) -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "pages": [ 3 | "pages/index/index" 4 | ], 5 | "window": { 6 | "navigationBarBackgroundColor": "#e87646", 7 | "navigationBarTextStyle": "#fff", 8 | "backgroundColor": "#f5f5f9", 9 | "backgroundTextStyle": "light" 10 | }, 11 | "debug": "true" 12 | } 13 | -------------------------------------------------------------------------------- /app.wxss: -------------------------------------------------------------------------------- 1 | /**app.wxss**/ 2 | @import './styles/weui.wxss'; 3 | page { 4 | background:#eee; 5 | height: 100%; 6 | } 7 | .container { 8 | height: 100%; 9 | display: flex; 10 | flex-direction: column; 11 | align-items: center; 12 | justify-content: space-between; 13 | box-sizing: border-box; 14 | } 15 | -------------------------------------------------------------------------------- /components/BookCard/bookCard.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @file bookCard.js 3 | * @author xuguixin0624@gmail.com 4 | * @description bookCard组件 5 | */ 6 | 7 | Component({ 8 | options: { 9 | multipleSlots: true // 在组件定义时的选项中启用多slot支持 10 | }, 11 | 12 | /** 13 | * 组件的属性列表 14 | * 用于组件自定义设置 15 | */ 16 | properties: { 17 | bookList: { // 属性名 18 | type: Array, // 类型(必填),目前接受的类型包括:String, Number, Boolean, Object, Array, null(表示任意类型) 19 | value: [], // 属性初始值(可选),如果未指定则会根据类型选择一个 20 | observer (newVal, oldVal, changedPath) { 21 | // 属性被改变时执行的函数(可选),也可以写成在methods段中定义的方法名字符串, 如:'_propertyChange' 22 | // 通常 newVal 就是新设置的数据, oldVal 是旧数据 23 | } 24 | } 25 | }, 26 | 27 | /** 28 | * 私有数据,组件的初始数据 29 | * 可用于模版渲染 30 | */ 31 | data: { 32 | }, 33 | 34 | /** 35 | * 组件的方法列表 36 | * 更新属性和数据的方法与更新页面数据的方法类似 37 | */ 38 | methods: { 39 | /* 40 | * 公有方法 41 | */ 42 | _onEnterDeatil (e) { 43 | this.triggerEvent("onEnterDeatil", e.currentTarget.dataset.book) 44 | } 45 | } 46 | }) 47 | -------------------------------------------------------------------------------- /components/BookCard/bookCard.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": {} 4 | } 5 | -------------------------------------------------------------------------------- /components/BookCard/bookCard.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {{item.title}} 5 | 6 | 7 | {{item.title}} 8 | {{item.des}} 9 | 10 | 11 | {{item.type}} 12 | 13 | 14 | 15 | 更多... 16 | 17 | -------------------------------------------------------------------------------- /components/BookCard/bookCard.wxss: -------------------------------------------------------------------------------- 1 | .InfoItemList { 2 | clear: both; 3 | list-style: none; 4 | padding: 0; 5 | margin-bottom: 0; 6 | overflow: auto; 7 | } 8 | 9 | .InfoItemList .list-item { 10 | position: relative; 11 | padding: 32rpx; 12 | font-size: 0; 13 | } 14 | 15 | .b-item-img { 16 | display: inline-block; 17 | width: 150rpx; 18 | height: 200rpx; 19 | margin-right: 24rpx; 20 | vertical-align: middle; 21 | } 22 | 23 | .b-item-img image { 24 | width: 100%; 25 | height: 100%; 26 | } 27 | 28 | .b-item-right { 29 | display: inline-block; 30 | width: calc(100% - 80px); 31 | vertical-align: middle; 32 | } 33 | 34 | .b-item-right .b-item-title { 35 | font-size: 38rpx; 36 | color: #242424; 37 | text-align: left; 38 | margin-bottom: 16rpx; 39 | } 40 | .b-item-right .b-item-des { 41 | display: -webkit-box; 42 | width: 100%; 43 | font-size: 34rpx; 44 | line-height: 40rpx; 45 | color: #8f8f8f; 46 | overflow : hidden; 47 | text-overflow: ellipsis; 48 | text-align: justify; 49 | -webkit-line-clamp: 2; 50 | -webkit-box-orient: vertical; 51 | } 52 | .b-item-right .b-item-info { 53 | position: relative; 54 | } 55 | 56 | .b-item-right .b-item-type { 57 | float: left; 58 | display: block; 59 | margin-left: 8rpx; 60 | overflow: hidden; 61 | text-overflow: ellipsis; 62 | white-space: nowrap; 63 | color: #8f8f8f; 64 | font-size: 30rpx; 65 | text-align: left; 66 | } 67 | .b-item-right .icon-read { 68 | float: left; 69 | position:relative; 70 | display: block; 71 | width: 28rpx; 72 | height: 28rpx; 73 | left: 0; 74 | top: 10rpx; 75 | } 76 | 77 | .InfoItemList .list-item::after { 78 | position: absolute; 79 | display: inline-block; 80 | content: ""; 81 | width: calc(100% - 32px); 82 | left: 32rpx; 83 | right: 0; 84 | height: 2rpx; 85 | bottom: 0; 86 | -webkit-transform: scaleY(.5); 87 | -ms-transform: scaleY(.5); 88 | transform: scaleY(.5); 89 | -webkit-transform-origin: 0 100%; 90 | -ms-transform-origin: 0 100%; 91 | transform-origin: 0 100%; 92 | pointer-events: none; 93 | background-color: #e5e5e5; 94 | } 95 | 96 | .InfoItemList .list-item::after { 97 | position: absolute; 98 | display: inline-block; 99 | content: ""; 100 | width: calc(100% - 64rpx); 101 | left: 32rpx; 102 | right: 0; 103 | height: 2rpx; 104 | bottom: 0; 105 | -webkit-transform: scaleY(.5); 106 | -ms-transform: scaleY(.5); 107 | transform: scaleY(.5); 108 | -webkit-transform-origin: 0 100%; 109 | -ms-transform-origin: 0 100%; 110 | transform-origin: 0 100%; 111 | pointer-events: none; 112 | background-color: #e5e5e5; 113 | } 114 | 115 | .InfoItemList .b-view-more { 116 | height: 88rpx; 117 | line-height: 88rpx; 118 | font-size: 30rpx; 119 | color: #666; 120 | text-align: center; 121 | } -------------------------------------------------------------------------------- /pages/index/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @file index.js 3 | * @author xuguixin0624@gmail.com 4 | * @description 登录页面 5 | */ 6 | const app = getApp(); 7 | const BOYLIST = { 8 | "data": [{ 9 | "imgSrc": "http://wfqqreader.3g.qq.com/cover/537/15808537/t3_15808537.jpg", 10 | "title": "大帝姬", 11 | "des": "穿越的薛青发现自己女扮男装在骗婚。不仅如此她还有一个更大的骗局。这是一个有很多秘密的人的故事", 12 | "type": "希行 / 古言", 13 | "status": "end", 14 | "id": "1" 15 | }, { 16 | "imgSrc": "http://wfqqreader.3g.qq.com/cover/305/20304305/t3_20304305.jpg", 17 | "title": "恰似寒光遇骄阳", 18 | "des": "这家伙,口味是有多重,这都下得去口?”一觉醒来,她看着镜子里的自己,爆炸头血腥纹身脸化得像鬼,多看一秒都辣眼睛。重生前,她另有所爱,一心逃离,与他发生关系后对他恨之入骨。重生后,她瞄了眼床上的美色,严肃思考,这事后留下阴影的,貌似应该是他?上一世脑子被门夹了放着绝色老公不要,被渣男贱女所害,被最信任的闺密洗脑,落了个众叛亲离的下场。这一世,任各路牛鬼蛇神处心积虑巴不得她离婚让位,不好意思,本小姐智商上线了!", 19 | "type": "囧囧有妖 / 现言", 20 | "status": "update", 21 | "id": "2" 22 | }, { 23 | "imgSrc": "http://wfqqreader.3g.qq.com/cover/200/835200/t3_835200.jpg", 24 | "title": "顾盼生辉", 25 | "des": "晋江人气作者夜蔓首部温暖之作,治愈每一段抱憾人生的手语之爱。因为遇见你,我才喜欢上雪天;也是因为遇见你,我才知道原来生活还有另一种可能。开间工作室,还有一家咖啡厅,里面放着翻不完的漫画书;养一只波斯猫,一个人的时候也不会觉得孤独。她想就这样过一辈子也挺好,如果陈绍宸没有出现的话……她一直记得那天,雪花纷飞,彻骨寒冷,他说:“你比画,我应该能看得懂。”从遇见她的那一刻起,他便以自己的方式守护她成长。宸,北极星的所在。永远北方的指向,航海的人们通过它来辨别方向,而陈绍宸是顾盼的方向。婚礼上,他拥着她,在她耳边沉声道:“从此,我便是你的声音,你比画,我来说。”只因遇见你,所有的遗憾便都不再是遗憾", 26 | "type": "夜蔓 / 青春", 27 | "status": "end", 28 | "id": "3" 29 | }, { 30 | "imgSrc": "http://wfqqreader.3g.qq.com/cover/826/913826/t3_913826.jpg", 31 | "title": "韩先生,我想请你结个婚", 32 | "des": "黑暗中,她为救他,成了他的女人,他却隔天清晨匆匆离去。六年后,她进入他的公司,与他擦肩而过,却互不相识,但一切却悄然发生改变,他有了自己爱的人,她有了爱自己的人......她带着女儿疲于奔命,他重新进入她的生活,当他决定娶她时,她却淡淡一笑,转身离开", 33 | "type": "顾伊雪 / 青春", 34 | "status": "update", 35 | "id": "4" 36 | }] 37 | }; 38 | const CARDDATA = [{ icon: '../../static/img/1.png', text: '免费' }, { icon: '../../static/img/2.png', text: '排行' }, { icon: '../../static/img/3.png', text: '分类' }, { icon: '../../static/img/2.png', text: '完本'}]; 39 | const IMAGES = ['../../static/img/1.jpg', '../../static/img/2.jpg', '../../static/img/3.jpg']; 40 | const TYPEDATA = [{name: '男生小说', id: 'boy'}, {name: '女生小说', id: 'girl'}, {name: '出版书籍', id: 'pub'}] 41 | 42 | Page({ 43 | data: { 44 | backgroundImage: IMAGES, 45 | typeData: TYPEDATA, 46 | cardData: CARDDATA, 47 | tags: ['科幻', '游戏', '末世', '校花'], 48 | boyList: BOYLIST.data 49 | }, 50 | _onEnterDeatil (e) { 51 | console.log(e.detail); // e.detail为当前信息 52 | } 53 | }) 54 | -------------------------------------------------------------------------------- /pages/index/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTextStyle": "#fff", 3 | "navigationBarTitleText": "书城", 4 | "backgroundColor": "#ebebeb", 5 | "backgroundTextStyle": "light", 6 | "usingComponents": { 7 | "book-card": "../../components/BookCard/bookCard" 8 | } 9 | } -------------------------------------------------------------------------------- /pages/index/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 选择阅读喜好 7 | 8 | 9 | 10 | 11 | {{item.name}} 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | {{item.text}} 30 | 31 | 32 | 33 | 精品推荐 34 | 35 | {{item}} 36 | 37 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /pages/index/index.wxss: -------------------------------------------------------------------------------- 1 | page { 2 | height: 100%; 3 | font-size: 32rpx; 4 | line-height: 1.6; 5 | } 6 | .page-body{ 7 | width:100%; 8 | } 9 | .page-section{ 10 | width: 100%; 11 | } 12 | .page-section-spacing{ 13 | box-sizing: border-box; 14 | } 15 | .swiper-item{ 16 | display:block; 17 | width:100%; 18 | height:100%; 19 | } 20 | 21 | .filter-wrap { 22 | padding: 32rpx 0; 23 | background-color: #fafafa; 24 | } 25 | .filter-wrap .filter-item-title { 26 | text-align: center; 27 | } 28 | .filter-wrap .filter-item-title .split { 29 | display: inline-block; 30 | vertical-align: middle; 31 | width: 32rpx; 32 | height: 2rpx; background-color: #e5e5e5; 33 | } 34 | .filter-wrap .filter-item-title .split::after { 35 | content: ''; 36 | position: absolute; 37 | height: 2rpx; 38 | top: 0; 39 | -webkit-transform: scaleY(.5); 40 | -ms-transform: scaleY(.5); 41 | transform: scaleY(.5); 42 | -webkit-transform-origin: 0 0; 43 | -ms-transform-origin: 0 0; 44 | transform-origin: 0 0; 45 | pointer-events: none; 46 | left: 0; 47 | right: 0; 48 | background-color: #e5e5e5; 49 | } 50 | .filter-wrap .filter-item-title .title { 51 | display: inline-block; 52 | margin: 0 30rpx; 53 | font-size: 26rpx; 54 | font-weight: 400; 55 | color: #8f8f8f; 56 | } 57 | .filter-wrap .filter-item-wrap { 58 | display: flex; 59 | list-style: none; 60 | padding: 0; 61 | margin-bottom: 0; 62 | } 63 | .filter-wrap .filter-item-wrap .type { 64 | flex: 1; 65 | font-size: 34rpx; 66 | color: #242424; 67 | text-align: center; 68 | } 69 | .filter-wrap .filter-item-wrap .type:nth-child(2) { 70 | border-left: 1px solid #e5e5e5; 71 | border-right: 1px solid #e5e5e5; 72 | } 73 | 74 | .icon-info-wrap { 75 | background-color: #fafafa; 76 | display: flex; 77 | } 78 | 79 | .icon-info-wrap .icon-block { 80 | width: 25%; 81 | padding: 40rpx 0 20rpx; 82 | text-align: center; 83 | } 84 | 85 | .icon-info-wrap .icon-block .block-img { 86 | display: inline-block; 87 | width: 90rpx; 88 | height: 90rpx; 89 | } 90 | 91 | .icon-info-wrap .icon-block .block-text { 92 | display:block; 93 | } 94 | 95 | .book-list-wrap { 96 | background-color: #fafafa; 97 | overflow:auto; 98 | margin-top: 16rpx; 99 | } 100 | 101 | .book-list-wrap .book-list-title { 102 | position: relative; 103 | display: block; 104 | font-size: 28rpx; 105 | font-weight: 400; 106 | margin: 0 16rpx; 107 | padding: 14rpx 0; 108 | text-align: left; 109 | color: #000; 110 | } 111 | .book-list-wrap .book-list-title::after { 112 | content: ''; 113 | position: absolute; 114 | display: block; 115 | width: 100%; 116 | height: 1rpx; 117 | bottom: 0; 118 | -webkit-transform: scaleY(.5); 119 | -ms-transform: scaleY(.5); 120 | transform: scaleY(.5); 121 | -webkit-transform-origin: 0 100%; 122 | -ms-transform-origin: 0 100%; 123 | transform-origin: 0 100%; 124 | pointer-events: none; 125 | left: 0; 126 | right: 0; 127 | background-color: #e5e5e5; 128 | } 129 | 130 | .book-list-wrap .b-tags { 131 | float: left; 132 | list-style: none; 133 | padding: 40rpx 16rpx; 134 | } 135 | 136 | .book-list-wrap .b-tags .b-tags-name { 137 | float: left; 138 | display: block; 139 | margin-right: 8rpx; 140 | width: 120rpx; 141 | height: 60rpx; 142 | line-height: 60rpx; 143 | text-align: center; 144 | font-size: 28rpx; 145 | border: 1rpx solid #e5e5e5; 146 | border-radius: 40rpx; 147 | } 148 | 149 | .book-list-wrap .b-view-more { 150 | height: 44rpx; 151 | line-height: 44rpx; 152 | font-size: 28rpx; 153 | color: #666; 154 | } -------------------------------------------------------------------------------- /static/img/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/infinityX3/wxApp/58794bf4199cb84ef19d311f9500329d2376a98a/static/img/1.jpg -------------------------------------------------------------------------------- /static/img/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/infinityX3/wxApp/58794bf4199cb84ef19d311f9500329d2376a98a/static/img/1.png -------------------------------------------------------------------------------- /static/img/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/infinityX3/wxApp/58794bf4199cb84ef19d311f9500329d2376a98a/static/img/2.jpg -------------------------------------------------------------------------------- /static/img/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/infinityX3/wxApp/58794bf4199cb84ef19d311f9500329d2376a98a/static/img/2.png -------------------------------------------------------------------------------- /static/img/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/infinityX3/wxApp/58794bf4199cb84ef19d311f9500329d2376a98a/static/img/3.jpg -------------------------------------------------------------------------------- /static/img/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/infinityX3/wxApp/58794bf4199cb84ef19d311f9500329d2376a98a/static/img/3.png -------------------------------------------------------------------------------- /static/img/reader.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/infinityX3/wxApp/58794bf4199cb84ef19d311f9500329d2376a98a/static/img/reader.png -------------------------------------------------------------------------------- /styles/weui.wxss: -------------------------------------------------------------------------------- 1 | /*! 2 | * weui.js v1.1.0 (https://github.com/weui/weui-wxss) 3 | * Copyright 2016, wechat ui team 4 | * MIT license 5 | */ 6 | page { 7 | line-height: 1.6; 8 | font-family: -apple-system-font, "Helvetica Neue", sans-serif; 9 | } 10 | icon { 11 | vertical-align: middle; 12 | } 13 | .weui-cells { 14 | position: relative; 15 | margin-top: 1.17647059em; 16 | background-color: #FFFFFF; 17 | line-height: 1.41176471; 18 | font-size: 17px; 19 | } 20 | .weui-cells:before { 21 | content: " "; 22 | position: absolute; 23 | left: 0; 24 | top: 0; 25 | right: 0; 26 | height: 1px; 27 | border-top: 1rpx solid #D9D9D9; 28 | color: #D9D9D9; 29 | } 30 | .weui-cells:after { 31 | content: " "; 32 | position: absolute; 33 | left: 0; 34 | bottom: 0; 35 | right: 0; 36 | height: 1px; 37 | border-bottom: 1rpx solid #D9D9D9; 38 | color: #D9D9D9; 39 | } 40 | .weui-cells__title { 41 | margin-top: .77em; 42 | margin-bottom: .3em; 43 | padding-left: 15px; 44 | padding-right: 15px; 45 | color: #999999; 46 | font-size: 14px; 47 | } 48 | .weui-cells_after-title { 49 | margin-top: 0; 50 | } 51 | .weui-cells__tips { 52 | margin-top: .3em; 53 | color: #999999; 54 | padding-left: 15px; 55 | padding-right: 15px; 56 | font-size: 14px; 57 | } 58 | .weui-cell { 59 | padding: 10px 15px; 60 | position: relative; 61 | display: -webkit-box; 62 | display: -webkit-flex; 63 | display: flex; 64 | -webkit-box-align: center; 65 | -webkit-align-items: center; 66 | align-items: center; 67 | } 68 | .weui-cell:before { 69 | content: " "; 70 | position: absolute; 71 | left: 0; 72 | top: 0; 73 | right: 0; 74 | height: 1px; 75 | border-top: 1rpx solid #D9D9D9; 76 | color: #D9D9D9; 77 | left: 15px; 78 | } 79 | .weui-cell:first-child:before { 80 | display: none; 81 | } 82 | .weui-cell_active { 83 | background-color: #ECECEC; 84 | } 85 | .weui-cell_primary { 86 | -webkit-box-align: start; 87 | -webkit-align-items: flex-start; 88 | align-items: flex-start; 89 | } 90 | .weui-cell__bd { 91 | -webkit-box-flex: 1; 92 | -webkit-flex: 1; 93 | flex: 1; 94 | } 95 | .weui-cell__ft { 96 | text-align: right; 97 | color: #999999; 98 | } 99 | .weui-cell_access { 100 | color: inherit; 101 | } 102 | .weui-cell__ft_in-access { 103 | padding-right: 13px; 104 | position: relative; 105 | } 106 | .weui-cell__ft_in-access:after { 107 | content: " "; 108 | display: inline-block; 109 | height: 6px; 110 | width: 6px; 111 | border-width: 2px 2px 0 0; 112 | border-color: #C8C8CD; 113 | border-style: solid; 114 | -webkit-transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0); 115 | transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0); 116 | position: relative; 117 | top: -2px; 118 | position: absolute; 119 | top: 50%; 120 | margin-top: -4px; 121 | right: 2px; 122 | } 123 | .weui-cell_link { 124 | color: #586C94; 125 | font-size: 14px; 126 | } 127 | .weui-cell_link:active { 128 | background-color: #ECECEC; 129 | } 130 | .weui-cell_link:first-child:before { 131 | display: block; 132 | } 133 | .weui-icon-radio { 134 | margin-left: 3.2px; 135 | margin-right: 3.2px; 136 | } 137 | .weui-icon-checkbox_circle, 138 | .weui-icon-checkbox_success { 139 | margin-left: 4.6px; 140 | margin-right: 4.6px; 141 | } 142 | .weui-check__label:active { 143 | background-color: #ECECEC; 144 | } 145 | .weui-check { 146 | position: absolute; 147 | left: -9999px; 148 | } 149 | .weui-check__hd_in-checkbox { 150 | padding-right: 0.35em; 151 | } 152 | .weui-cell__ft_in-radio { 153 | padding-left: 0.35em; 154 | } 155 | .weui-cell_input { 156 | padding-top: 0; 157 | padding-bottom: 0; 158 | } 159 | .weui-label { 160 | width: 105px; 161 | word-wrap: break-word; 162 | word-break: break-all; 163 | } 164 | .weui-input { 165 | height: 2.58823529em; 166 | min-height: 2.58823529em; 167 | line-height: 2.58823529em; 168 | } 169 | .weui-toptips { 170 | position: fixed; 171 | -webkit-transform: translateZ(0); 172 | transform: translateZ(0); 173 | top: 0; 174 | left: 0; 175 | right: 0; 176 | padding: 5px; 177 | font-size: 14px; 178 | text-align: center; 179 | color: #FFFFFF; 180 | z-index: 5000; 181 | word-wrap: break-word; 182 | word-break: break-all; 183 | } 184 | .weui-toptips_warn { 185 | background-color: #E64340; 186 | } 187 | .weui-textarea { 188 | display: block; 189 | width: 100%; 190 | } 191 | .weui-textarea-counter { 192 | color: #B2B2B2; 193 | text-align: right; 194 | } 195 | .weui-textarea-counter_warn { 196 | color: #E64340; 197 | } 198 | .weui-cell_warn { 199 | color: #E64340; 200 | } 201 | .weui-form-preview { 202 | position: relative; 203 | background-color: #FFFFFF; 204 | } 205 | .weui-form-preview:before { 206 | content: " "; 207 | position: absolute; 208 | left: 0; 209 | top: 0; 210 | right: 0; 211 | height: 1px; 212 | border-top: 1rpx solid #D9D9D9; 213 | color: #D9D9D9; 214 | } 215 | .weui-form-preview:after { 216 | content: " "; 217 | position: absolute; 218 | left: 0; 219 | bottom: 0; 220 | right: 0; 221 | height: 1px; 222 | border-bottom: 1rpx solid #D9D9D9; 223 | color: #D9D9D9; 224 | } 225 | .weui-form-preview__value { 226 | font-size: 14px; 227 | } 228 | .weui-form-preview__value_in-hd { 229 | font-size: 26px; 230 | } 231 | .weui-form-preview__hd { 232 | position: relative; 233 | padding: 10px 15px; 234 | text-align: right; 235 | line-height: 2.5em; 236 | } 237 | .weui-form-preview__hd:after { 238 | content: " "; 239 | position: absolute; 240 | left: 0; 241 | bottom: 0; 242 | right: 0; 243 | height: 1px; 244 | border-bottom: 1rpx solid #D9D9D9; 245 | color: #D9D9D9; 246 | left: 15px; 247 | } 248 | .weui-form-preview__bd { 249 | padding: 10px 15px; 250 | font-size: .9em; 251 | text-align: right; 252 | color: #999999; 253 | line-height: 2; 254 | } 255 | .weui-form-preview__ft { 256 | position: relative; 257 | line-height: 50px; 258 | display: -webkit-box; 259 | display: -webkit-flex; 260 | display: flex; 261 | } 262 | .weui-form-preview__ft:after { 263 | content: " "; 264 | position: absolute; 265 | left: 0; 266 | top: 0; 267 | right: 0; 268 | height: 1px; 269 | border-top: 1rpx solid #D5D5D6; 270 | color: #D5D5D6; 271 | } 272 | .weui-form-preview__item { 273 | overflow: hidden; 274 | } 275 | .weui-form-preview__label { 276 | float: left; 277 | margin-right: 1em; 278 | min-width: 4em; 279 | color: #999999; 280 | text-align: justify; 281 | text-align-last: justify; 282 | } 283 | .weui-form-preview__value { 284 | display: block; 285 | overflow: hidden; 286 | word-break: normal; 287 | word-wrap: break-word; 288 | } 289 | .weui-form-preview__btn { 290 | position: relative; 291 | display: block; 292 | -webkit-box-flex: 1; 293 | -webkit-flex: 1; 294 | flex: 1; 295 | color: #3CC51F; 296 | text-align: center; 297 | } 298 | .weui-form-preview__btn:after { 299 | content: " "; 300 | position: absolute; 301 | left: 0; 302 | top: 0; 303 | width: 1px; 304 | bottom: 0; 305 | border-left: 1rpx solid #D5D5D6; 306 | color: #D5D5D6; 307 | } 308 | .weui-form-preview__btn:first-child:after { 309 | display: none; 310 | } 311 | .weui-form-preview__btn_active { 312 | background-color: #EEEEEE; 313 | } 314 | .weui-form-preview__btn_default { 315 | color: #999999; 316 | } 317 | .weui-form-preview__btn_primary { 318 | color: #0BB20C; 319 | } 320 | .weui-cell_select { 321 | padding: 0; 322 | } 323 | .weui-select { 324 | position: relative; 325 | padding-left: 15px; 326 | padding-right: 30px; 327 | height: 2.58823529em; 328 | min-height: 2.58823529em; 329 | line-height: 2.58823529em; 330 | border-right: 1rpx solid #D9D9D9; 331 | } 332 | .weui-select:before { 333 | content: " "; 334 | display: inline-block; 335 | height: 6px; 336 | width: 6px; 337 | border-width: 2px 2px 0 0; 338 | border-color: #C8C8CD; 339 | border-style: solid; 340 | -webkit-transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0); 341 | transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0); 342 | position: relative; 343 | top: -2px; 344 | position: absolute; 345 | top: 50%; 346 | right: 15px; 347 | margin-top: -4px; 348 | } 349 | .weui-select_in-select-after { 350 | padding-left: 0; 351 | } 352 | .weui-cell__hd_in-select-after, 353 | .weui-cell__bd_in-select-before { 354 | padding-left: 15px; 355 | } 356 | .weui-cell_vcode { 357 | padding-right: 0; 358 | } 359 | .weui-vcode-img { 360 | margin-left: 5px; 361 | height: 2.58823529em; 362 | vertical-align: middle; 363 | } 364 | .weui-vcode-btn { 365 | display: inline-block; 366 | height: 2.58823529em; 367 | margin-left: 5px; 368 | padding: 0 0.6em 0 0.7em; 369 | border-left: 1px solid #E5E5E5; 370 | line-height: 2.58823529em; 371 | vertical-align: middle; 372 | font-size: 17px; 373 | color: #3CC51F; 374 | white-space: nowrap; 375 | } 376 | .weui-vcode-btn:active { 377 | color: #52a341; 378 | } 379 | .weui-cell_switch { 380 | padding-top: 6px; 381 | padding-bottom: 6px; 382 | } 383 | .weui-uploader__hd { 384 | display: -webkit-box; 385 | display: -webkit-flex; 386 | display: flex; 387 | padding-bottom: 10px; 388 | -webkit-box-align: center; 389 | -webkit-align-items: center; 390 | align-items: center; 391 | } 392 | .weui-uploader__title { 393 | -webkit-box-flex: 1; 394 | -webkit-flex: 1; 395 | flex: 1; 396 | } 397 | .weui-uploader__info { 398 | color: #B2B2B2; 399 | } 400 | .weui-uploader__bd { 401 | margin-bottom: -4px; 402 | margin-right: -9px; 403 | overflow: hidden; 404 | } 405 | .weui-uploader__file { 406 | float: left; 407 | margin-right: 9px; 408 | margin-bottom: 9px; 409 | } 410 | .weui-uploader__img { 411 | display: block; 412 | width: 79px; 413 | height: 79px; 414 | } 415 | .weui-uploader__file_status { 416 | position: relative; 417 | } 418 | .weui-uploader__file_status:before { 419 | content: " "; 420 | position: absolute; 421 | top: 0; 422 | right: 0; 423 | bottom: 0; 424 | left: 0; 425 | background-color: rgba(0, 0, 0, 0.5); 426 | } 427 | .weui-uploader__file-content { 428 | position: absolute; 429 | top: 50%; 430 | left: 50%; 431 | -webkit-transform: translate(-50%, -50%); 432 | transform: translate(-50%, -50%); 433 | color: #FFFFFF; 434 | } 435 | .weui-uploader__input-box { 436 | float: left; 437 | position: relative; 438 | margin-right: 9px; 439 | margin-bottom: 9px; 440 | width: 77px; 441 | height: 77px; 442 | border: 1px solid #D9D9D9; 443 | } 444 | .weui-uploader__input-box:before, 445 | .weui-uploader__input-box:after { 446 | content: " "; 447 | position: absolute; 448 | top: 50%; 449 | left: 50%; 450 | -webkit-transform: translate(-50%, -50%); 451 | transform: translate(-50%, -50%); 452 | background-color: #D9D9D9; 453 | } 454 | .weui-uploader__input-box:before { 455 | width: 2px; 456 | height: 39.5px; 457 | } 458 | .weui-uploader__input-box:after { 459 | width: 39.5px; 460 | height: 2px; 461 | } 462 | .weui-uploader__input-box:active { 463 | border-color: #999999; 464 | } 465 | .weui-uploader__input-box:active:before, 466 | .weui-uploader__input-box:active:after { 467 | background-color: #999999; 468 | } 469 | .weui-uploader__input { 470 | position: absolute; 471 | z-index: 1; 472 | top: 0; 473 | left: 0; 474 | width: 100%; 475 | height: 100%; 476 | opacity: 0; 477 | } 478 | .weui-article { 479 | padding: 20px 15px; 480 | font-size: 15px; 481 | } 482 | .weui-article__section { 483 | margin-bottom: 1.5em; 484 | } 485 | .weui-article__h1 { 486 | font-size: 18px; 487 | font-weight: 400; 488 | margin-bottom: .9em; 489 | } 490 | .weui-article__h2 { 491 | font-size: 16px; 492 | font-weight: 400; 493 | margin-bottom: .34em; 494 | } 495 | .weui-article__h3 { 496 | font-weight: 400; 497 | font-size: 15px; 498 | margin-bottom: .34em; 499 | } 500 | .weui-article__p { 501 | margin: 0 0 .8em; 502 | } 503 | .weui-msg { 504 | padding-top: 36px; 505 | text-align: center; 506 | } 507 | .weui-msg__link { 508 | display: inline; 509 | color: #586C94; 510 | } 511 | .weui-msg__icon-area { 512 | margin-bottom: 30px; 513 | } 514 | .weui-msg__text-area { 515 | margin-bottom: 25px; 516 | padding: 0 20px; 517 | } 518 | .weui-msg__title { 519 | margin-bottom: 5px; 520 | font-weight: 400; 521 | font-size: 20px; 522 | } 523 | .weui-msg__desc { 524 | font-size: 14px; 525 | color: #999999; 526 | } 527 | .weui-msg__opr-area { 528 | margin-bottom: 25px; 529 | } 530 | .weui-msg__extra-area { 531 | margin-bottom: 15px; 532 | font-size: 14px; 533 | color: #999999; 534 | } 535 | @media screen and (min-height: 438px) { 536 | .weui-msg__extra-area { 537 | position: fixed; 538 | left: 0; 539 | bottom: 0; 540 | width: 100%; 541 | text-align: center; 542 | } 543 | } 544 | .weui-flex { 545 | display: -webkit-box; 546 | display: -webkit-flex; 547 | display: flex; 548 | } 549 | .weui-flex__item { 550 | -webkit-box-flex: 1; 551 | -webkit-flex: 1; 552 | flex: 1; 553 | } 554 | .weui-btn { 555 | margin-top: 15px; 556 | } 557 | .weui-btn:first-child { 558 | margin-top: 0; 559 | } 560 | .weui-btn-area { 561 | margin: 1.17647059em 15px 0.3em; 562 | } 563 | .weui-agree { 564 | display: block; 565 | padding: .5em 15px; 566 | font-size: 13px; 567 | } 568 | .weui-agree__text { 569 | color: #999999; 570 | } 571 | .weui-agree__link { 572 | display: inline; 573 | color: #586C94; 574 | } 575 | .weui-agree__checkbox { 576 | position: absolute; 577 | left: -9999px; 578 | } 579 | .weui-agree__checkbox-icon { 580 | position: relative; 581 | top: 2px; 582 | display: inline-block; 583 | border: 1px solid #D1D1D1; 584 | background-color: #FFFFFF; 585 | border-radius: 3px; 586 | width: 11px; 587 | height: 11px; 588 | } 589 | .weui-agree__checkbox-icon-check { 590 | position: absolute; 591 | top: 1px; 592 | left: 1px; 593 | } 594 | .weui-footer { 595 | color: #999999; 596 | font-size: 14px; 597 | text-align: center; 598 | } 599 | .weui-footer_fixed-bottom { 600 | position: fixed; 601 | bottom: .52em; 602 | left: 0; 603 | right: 0; 604 | } 605 | .weui-footer__links { 606 | font-size: 0; 607 | } 608 | .weui-footer__link { 609 | display: inline-block; 610 | vertical-align: top; 611 | margin: 0 .62em; 612 | position: relative; 613 | font-size: 14px; 614 | color: #586C94; 615 | } 616 | .weui-footer__link:before { 617 | content: " "; 618 | position: absolute; 619 | left: 0; 620 | top: 0; 621 | width: 1px; 622 | bottom: 0; 623 | border-left: 1rpx solid #C7C7C7; 624 | color: #C7C7C7; 625 | left: -0.65em; 626 | top: .36em; 627 | bottom: .36em; 628 | } 629 | .weui-footer__link:first-child:before { 630 | display: none; 631 | } 632 | .weui-footer__text { 633 | padding: 0 .34em; 634 | font-size: 12px; 635 | } 636 | .weui-grids { 637 | border-top: 1rpx solid #D9D9D9; 638 | border-left: 1rpx solid #D9D9D9; 639 | overflow: hidden; 640 | } 641 | .weui-grid { 642 | position: relative; 643 | float: left; 644 | padding: 20px 10px; 645 | width: 33.33333333%; 646 | box-sizing: border-box; 647 | border-right: 1rpx solid #D9D9D9; 648 | border-bottom: 1rpx solid #D9D9D9; 649 | } 650 | .weui-grid_active { 651 | background-color: #ECECEC; 652 | } 653 | .weui-grid__icon { 654 | display: block; 655 | width: 28px; 656 | height: 28px; 657 | margin: 0 auto; 658 | } 659 | .weui-grid__label { 660 | margin-top: 5px; 661 | display: block; 662 | text-align: center; 663 | color: #000000; 664 | font-size: 14px; 665 | white-space: nowrap; 666 | text-overflow: ellipsis; 667 | overflow: hidden; 668 | } 669 | .weui-loading { 670 | margin: 0 5px; 671 | width: 20px; 672 | height: 20px; 673 | display: inline-block; 674 | vertical-align: middle; 675 | -webkit-animation: weuiLoading 1s steps(12, end) infinite; 676 | animation: weuiLoading 1s steps(12, end) infinite; 677 | background: transparent url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=) no-repeat; 678 | background-size: 100%; 679 | } 680 | @-webkit-keyframes weuiLoading { 681 | 0% { 682 | -webkit-transform: rotate3d(0, 0, 1, 0deg); 683 | transform: rotate3d(0, 0, 1, 0deg); 684 | } 685 | 100% { 686 | -webkit-transform: rotate3d(0, 0, 1, 360deg); 687 | transform: rotate3d(0, 0, 1, 360deg); 688 | } 689 | } 690 | @keyframes weuiLoading { 691 | 0% { 692 | -webkit-transform: rotate3d(0, 0, 1, 0deg); 693 | transform: rotate3d(0, 0, 1, 0deg); 694 | } 695 | 100% { 696 | -webkit-transform: rotate3d(0, 0, 1, 360deg); 697 | transform: rotate3d(0, 0, 1, 360deg); 698 | } 699 | } 700 | .weui-badge { 701 | display: inline-block; 702 | padding: .15em .4em; 703 | min-width: 8px; 704 | border-radius: 18px; 705 | background-color: #F43530; 706 | color: #FFFFFF; 707 | line-height: 1.2; 708 | text-align: center; 709 | font-size: 12px; 710 | vertical-align: middle; 711 | } 712 | .weui-badge_dot { 713 | padding: .4em; 714 | min-width: 0; 715 | } 716 | .weui-loadmore { 717 | width: 65%; 718 | margin: 1.5em auto; 719 | line-height: 1.6em; 720 | font-size: 14px; 721 | text-align: center; 722 | } 723 | .weui-loadmore__tips { 724 | display: inline-block; 725 | vertical-align: middle; 726 | } 727 | .weui-loadmore_line { 728 | border-top: 1px solid #E5E5E5; 729 | margin-top: 2.4em; 730 | } 731 | .weui-loadmore__tips_in-line { 732 | position: relative; 733 | top: -0.9em; 734 | padding: 0 .55em; 735 | background-color: #FFFFFF; 736 | color: #999999; 737 | } 738 | .weui-loadmore__tips_in-dot { 739 | position: relative; 740 | padding: 0 .16em; 741 | width: 4px; 742 | height: 1.6em; 743 | } 744 | .weui-loadmore__tips_in-dot:before { 745 | content: " "; 746 | position: absolute; 747 | top: 50%; 748 | left: 50%; 749 | margin-top: -1px; 750 | margin-left: -2px; 751 | width: 4px; 752 | height: 4px; 753 | border-radius: 50%; 754 | background-color: #E5E5E5; 755 | } 756 | .weui-panel { 757 | background-color: #FFFFFF; 758 | margin-top: 10px; 759 | position: relative; 760 | overflow: hidden; 761 | } 762 | .weui-panel:first-child { 763 | margin-top: 0; 764 | } 765 | .weui-panel:before { 766 | content: " "; 767 | position: absolute; 768 | left: 0; 769 | top: 0; 770 | right: 0; 771 | height: 1px; 772 | border-top: 1rpx solid #E5E5E5; 773 | color: #E5E5E5; 774 | } 775 | .weui-panel:after { 776 | content: " "; 777 | position: absolute; 778 | left: 0; 779 | bottom: 0; 780 | right: 0; 781 | height: 1px; 782 | border-bottom: 1rpx solid #E5E5E5; 783 | color: #E5E5E5; 784 | } 785 | .weui-panel__hd { 786 | padding: 14px 15px 10px; 787 | color: #999999; 788 | font-size: 13px; 789 | position: relative; 790 | } 791 | .weui-panel__hd:after { 792 | content: " "; 793 | position: absolute; 794 | left: 0; 795 | bottom: 0; 796 | right: 0; 797 | height: 1px; 798 | border-bottom: 1rpx solid #E5E5E5; 799 | color: #E5E5E5; 800 | left: 15px; 801 | } 802 | .weui-media-box { 803 | padding: 15px; 804 | position: relative; 805 | } 806 | .weui-media-box:before { 807 | content: " "; 808 | position: absolute; 809 | left: 0; 810 | top: 0; 811 | right: 0; 812 | height: 1px; 813 | border-top: 1rpx solid #E5E5E5; 814 | color: #E5E5E5; 815 | left: 15px; 816 | } 817 | .weui-media-box:first-child:before { 818 | display: none; 819 | } 820 | .weui-media-box__title { 821 | font-weight: 400; 822 | font-size: 17px; 823 | width: auto; 824 | overflow: hidden; 825 | text-overflow: ellipsis; 826 | white-space: nowrap; 827 | word-wrap: normal; 828 | word-wrap: break-word; 829 | word-break: break-all; 830 | } 831 | .weui-media-box__desc { 832 | color: #999999; 833 | font-size: 13px; 834 | line-height: 1.2; 835 | overflow: hidden; 836 | text-overflow: ellipsis; 837 | display: -webkit-box; 838 | -webkit-box-orient: vertical; 839 | -webkit-line-clamp: 2; 840 | } 841 | .weui-media-box__info { 842 | margin-top: 15px; 843 | padding-bottom: 5px; 844 | font-size: 13px; 845 | color: #CECECE; 846 | line-height: 1em; 847 | list-style: none; 848 | overflow: hidden; 849 | } 850 | .weui-media-box__info__meta { 851 | float: left; 852 | padding-right: 1em; 853 | } 854 | .weui-media-box__info__meta_extra { 855 | padding-left: 1em; 856 | border-left: 1px solid #CECECE; 857 | } 858 | .weui-media-box__title_in-text { 859 | margin-bottom: 8px; 860 | } 861 | .weui-media-box_appmsg { 862 | display: -webkit-box; 863 | display: -webkit-flex; 864 | display: flex; 865 | -webkit-box-align: center; 866 | -webkit-align-items: center; 867 | align-items: center; 868 | } 869 | .weui-media-box__thumb { 870 | width: 100%; 871 | height: 100%; 872 | vertical-align: top; 873 | } 874 | .weui-media-box__hd_in-appmsg { 875 | margin-right: .8em; 876 | width: 60px; 877 | height: 60px; 878 | line-height: 60px; 879 | text-align: center; 880 | } 881 | .weui-media-box__bd_in-appmsg { 882 | -webkit-box-flex: 1; 883 | -webkit-flex: 1; 884 | flex: 1; 885 | min-width: 0; 886 | } 887 | .weui-media-box_small-appmsg { 888 | padding: 0; 889 | } 890 | .weui-cells_in-small-appmsg { 891 | margin-top: 0; 892 | } 893 | .weui-cells_in-small-appmsg:before { 894 | display: none; 895 | } 896 | .weui-progress { 897 | display: -webkit-box; 898 | display: -webkit-flex; 899 | display: flex; 900 | -webkit-box-align: center; 901 | -webkit-align-items: center; 902 | align-items: center; 903 | } 904 | .weui-progress__bar { 905 | -webkit-box-flex: 1; 906 | -webkit-flex: 1; 907 | flex: 1; 908 | } 909 | .weui-progress__opr { 910 | margin-left: 15px; 911 | font-size: 0; 912 | } 913 | .weui-navbar { 914 | display: -webkit-box; 915 | display: -webkit-flex; 916 | display: flex; 917 | position: absolute; 918 | z-index: 500; 919 | top: 0; 920 | width: 100%; 921 | border-bottom: 1rpx solid #CCCCCC; 922 | } 923 | .weui-navbar__item { 924 | position: relative; 925 | display: block; 926 | -webkit-box-flex: 1; 927 | -webkit-flex: 1; 928 | flex: 1; 929 | padding: 13px 0; 930 | text-align: center; 931 | font-size: 0; 932 | } 933 | .weui-navbar__item.weui-bar__item_on { 934 | color: #1AAD19; 935 | } 936 | .weui-navbar__slider { 937 | position: absolute; 938 | content: " "; 939 | left: 0; 940 | bottom: 0; 941 | width: 6em; 942 | height: 3px; 943 | background-color: #1AAD19; 944 | -webkit-transition: -webkit-transform .3s; 945 | transition: -webkit-transform .3s; 946 | transition: transform .3s; 947 | transition: transform .3s, -webkit-transform .3s; 948 | } 949 | .weui-navbar__title { 950 | display: inline-block; 951 | font-size: 15px; 952 | max-width: 8em; 953 | width: auto; 954 | overflow: hidden; 955 | text-overflow: ellipsis; 956 | white-space: nowrap; 957 | word-wrap: normal; 958 | } 959 | .weui-tab { 960 | position: relative; 961 | height: 100%; 962 | } 963 | .weui-tab__panel { 964 | box-sizing: border-box; 965 | height: 100%; 966 | padding-top: 50px; 967 | overflow: auto; 968 | -webkit-overflow-scrolling: touch; 969 | } 970 | .weui-search-bar { 971 | position: relative; 972 | padding: 8px 10px; 973 | display: -webkit-box; 974 | display: -webkit-flex; 975 | display: flex; 976 | box-sizing: border-box; 977 | background-color: #EFEFF4; 978 | border-top: 1rpx solid #D7D6DC; 979 | border-bottom: 1rpx solid #D7D6DC; 980 | } 981 | .weui-icon-search { 982 | margin-right: 8px; 983 | font-size: inherit; 984 | } 985 | .weui-icon-search_in-box { 986 | position: absolute; 987 | left: 10px; 988 | top: 7px; 989 | } 990 | .weui-search-bar__text { 991 | display: inline-block; 992 | font-size: 14px; 993 | vertical-align: middle; 994 | } 995 | .weui-search-bar__form { 996 | position: relative; 997 | -webkit-box-flex: 1; 998 | -webkit-flex: auto; 999 | flex: auto; 1000 | border-radius: 5px; 1001 | background: #FFFFFF; 1002 | border: 1rpx solid #E6E6EA; 1003 | } 1004 | .weui-search-bar__box { 1005 | position: relative; 1006 | padding-left: 30px; 1007 | padding-right: 30px; 1008 | width: 100%; 1009 | box-sizing: border-box; 1010 | z-index: 1; 1011 | } 1012 | .weui-search-bar__input { 1013 | height: 28px; 1014 | line-height: 28px; 1015 | font-size: 14px; 1016 | } 1017 | .weui-icon-clear { 1018 | position: absolute; 1019 | top: 0; 1020 | right: 0; 1021 | padding: 7px 8px; 1022 | font-size: 0; 1023 | } 1024 | .weui-search-bar__label { 1025 | position: absolute; 1026 | top: 0; 1027 | right: 0; 1028 | bottom: 0; 1029 | left: 0; 1030 | z-index: 2; 1031 | border-radius: 3px; 1032 | text-align: center; 1033 | color: #9B9B9B; 1034 | background: #FFFFFF; 1035 | line-height: 28px; 1036 | } 1037 | .weui-search-bar__cancel-btn { 1038 | margin-left: 10px; 1039 | line-height: 28px; 1040 | color: #09BB07; 1041 | white-space: nowrap; 1042 | } 1043 | --------------------------------------------------------------------------------