@charset "UTF-8"; /** * 这里是uni-app内置的常用样式变量 * * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App * */ /** * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 * * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 */ /* 颜色变量 */ /* 行为相关颜色 */ /* 文字基本颜色 */ /* 背景颜色 */ /* 边框颜色 */ /* 尺寸变量 */ /* 文字尺寸 */ /* 图片尺寸 */ /* Border Radius */ /* 水平间距 */ /* 垂直间距 */ /* 透明度 */ /* 文章场景相关 */ view { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; } page { position: relative; background-color: #f5f5f5; } .hidden { display: none !important; } .place { width: 100%; height: 95rpx; } .tabr { background-color: #fff; width: 94%; height: 95rpx; padding: 0 3%; border-bottom: solid 1rpx #dedede; position: fixed; top: 0; z-index: 10; } .tabr view { width: 50%; height: 90rpx; -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; -webkit-box-align: center; -webkit-align-items: center; align-items: center; font-size: 32rpx; color: #999; } .tabr .on { color: #f06c7a; } .tabr .border { height: 4rpx; background-color: #f06c7a; -webkit-transition: all .3s ease-out; transition: all .3s ease-out; } .tabr .border.shop { -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); } .list { width: 100%; display: block; position: relative; } @-webkit-keyframes showGoods { 0% { -webkit-transform: translateX(-100%); transform: translateX(-100%); } 100% { -webkit-transform: translateX(0); transform: translateX(0); } } @keyframes showGoods { 0% { -webkit-transform: translateX(-100%); transform: translateX(-100%); } 100% { -webkit-transform: translateX(0); transform: translateX(0); } } @-webkit-keyframes showShop { 0% { -webkit-transform: translateX(0); transform: translateX(0); } 100% { -webkit-transform: translateX(-100%); transform: translateX(-100%); } } @keyframes showShop { 0% { -webkit-transform: translateX(0); transform: translateX(0); } 100% { -webkit-transform: translateX(-100%); transform: translateX(-100%); } } .sub-list { width: 100%; padding: 20rpx 0 120rpx 0; } .sub-list.shop { position: absolute; top: 0; left: 100%; display: none; } .sub-list.showgoods { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-animation: showGoods 0.20s linear both; animation: showGoods 0.20s linear both; } .sub-list.showshop { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-animation: showShop 0.20s linear both; animation: showShop 0.20s linear both; } .sub-list .tis { width: 100%; height: 60rpx; -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; -webkit-box-align: center; -webkit-align-items: center; align-items: center; font-size: 32rpx; } .sub-list.shop .row { height: 20vw; } .sub-list.shop .row .left { width: 20vw; height: 20vw; padding-left: 20rpx; -webkit-box-align: center; -webkit-align-items: center; align-items: center; } .sub-list.shop .row .left image { width: 18vw; height: 18vw; border-radius: 100%; } .sub-list.shop .row .right { height: 20vw; -webkit-box-align: center; -webkit-align-items: center; align-items: center; font-size: 32rpx; } .sub-list .row { width: 100%; height: 30vw; -webkit-box-align: center; -webkit-align-items: center; align-items: center; position: relative; overflow: hidden; border-bottom: solid 1rpx #dedede; } .sub-list .row .menu { position: absolute; width: 28%; height: 100%; right: 0; -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center; -webkit-box-align: center; -webkit-align-items: center; align-items: center; background-color: red; color: #fff; z-index: 2; } .sub-list .row .menu .icon { color: #fff; font-size: 50rpx; } .sub-list .row .carrier { background-color: #fff; position: absolute; width: 100%; padding: 0 0; height: 100%; z-index: 3; -webkit-flex-wrap: nowrap; flex-wrap: nowrap; } @-webkit-keyframes showMenu { 0% { -webkit-transform: translateX(0); transform: translateX(0); } 100% { -webkit-transform: translateX(-28%); transform: translateX(-28%); } } @keyframes showMenu { 0% { -webkit-transform: translateX(0); transform: translateX(0); } 100% { -webkit-transform: translateX(-28%); transform: translateX(-28%); } } @-webkit-keyframes closeMenu { 0% { -webkit-transform: translateX(-28%); transform: translateX(-28%); } 100% { -webkit-transform: translateX(0); transform: translateX(0); } } @keyframes closeMenu { 0% { -webkit-transform: translateX(-28%); transform: translateX(-28%); } 100% { -webkit-transform: translateX(0); transform: translateX(0); } } .sub-list .row .carrier.open { -webkit-animation: showMenu 0.25s linear both; animation: showMenu 0.25s linear both; } .sub-list .row .carrier.close { -webkit-animation: closeMenu 0.15s linear both; animation: closeMenu 0.15s linear both; } .sub-list .row .carrier .goods-info { width: calc(100% - 40rpx); padding: 20rpx; -webkit-flex-wrap: nowrap; flex-wrap: nowrap; } .sub-list .row .carrier .goods-info .img { width: calc(30vw - 40rpx); height: calc(30vw - 40rpx); border-radius: 10rpx; overflow: hidden; -webkit-flex-shrink: 0; flex-shrink: 0; margin-right: 20rpx; } .sub-list .row .carrier .goods-info .img image { width: calc(30vw - 40rpx); height: calc(30vw - 40rpx); } .sub-list .row .carrier .goods-info .info { width: 100%; height: calc(30vw - 40rpx); overflow: hidden; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-content: space-between; align-content: space-between; position: relative; } .sub-list .row .carrier .goods-info .info .title { width: 100%; font-size: 28rpx; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } .sub-list .row .carrier .goods-info .info .price-number { width: 100%; -webkit-box-pack: justify; -webkit-justify-content: space-between; justify-content: space-between; -webkit-box-align: baseline; -webkit-align-items: baseline; align-items: baseline; } .sub-list .row .carrier .goods-info .info .price-number .keep-num { font-size: 26rpx; color: #999; } .sub-list .row .carrier .goods-info .info .price-number .price { font-size: 30rpx; color: #f06c7a; }