You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
673 lines
12 KiB
673 lines
12 KiB
@charset "UTF-8";
|
|
/**
|
|
* 这里是uni-app内置的常用样式变量
|
|
*
|
|
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
|
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
|
*
|
|
*/
|
|
/**
|
|
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
|
*
|
|
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
|
*/
|
|
/* 颜色变量 */
|
|
/* 行为相关颜色 */
|
|
/* 文字基本颜色 */
|
|
/* 背景颜色 */
|
|
/* 边框颜色 */
|
|
/* 尺寸变量 */
|
|
/* 文字尺寸 */
|
|
/* 图片尺寸 */
|
|
/* Border Radius */
|
|
/* 水平间距 */
|
|
/* 垂直间距 */
|
|
/* 透明度 */
|
|
/* 文章场景相关 */
|
|
/* 字体大小 */
|
|
.font12 {
|
|
font-size: 12px;
|
|
}
|
|
.font13 {
|
|
font-size: 13px;
|
|
}
|
|
.font14 {
|
|
font-size: 14px;
|
|
}
|
|
.font15 {
|
|
font-size: 15px;
|
|
}
|
|
.font16 {
|
|
font-size: 16px;
|
|
}
|
|
.font18 {
|
|
font-size: 18px;
|
|
}
|
|
.font20 {
|
|
font-size: 20px;
|
|
}
|
|
.font24 {
|
|
font-size: 24px;
|
|
}
|
|
.font28 {
|
|
font-size: 28px;
|
|
}
|
|
.fontwig6 {
|
|
font-weight: 600;
|
|
}
|
|
/* 字体间距 */
|
|
.fontspec {
|
|
letter-spacing: 1px;
|
|
}
|
|
/* 字体行间距 */
|
|
.linehet {
|
|
line-height: 20px;
|
|
}
|
|
/* 字体位置 */
|
|
.fotlt {
|
|
text-align: left;
|
|
}
|
|
.fotrt {
|
|
text-align: right;
|
|
}
|
|
.fotct {
|
|
text-align: center;
|
|
}
|
|
.margle {
|
|
margin-left: 6px;
|
|
}
|
|
.marglerig {
|
|
margin-right: 5px;
|
|
}
|
|
.verc {
|
|
vertical-align: middle;
|
|
}
|
|
.versub {
|
|
vertical-align: sub;
|
|
}
|
|
.text1 {
|
|
overflow: hidden;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 1;
|
|
-webkit-box-orient: vertical;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.text2 {
|
|
overflow: hidden;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
text-overflow: ellipsis;
|
|
}
|
|
/* 字体颜色 */
|
|
.fcor333 {
|
|
color: #333333;
|
|
}
|
|
.fcorfff {
|
|
color: #ffffff;
|
|
}
|
|
.fcor666 {
|
|
color: #666666;
|
|
}
|
|
.fcor999 {
|
|
color: #b2b2b2;
|
|
}
|
|
.fcor089 {
|
|
color: #089bf5;
|
|
}
|
|
.fcoreb5 {
|
|
color: #eb5823;
|
|
}
|
|
.fcorred {
|
|
color: red;
|
|
}
|
|
.fcor41c {
|
|
color: #41cda2;
|
|
}
|
|
/* 背景颜色 */
|
|
.backcor9 {
|
|
background-color: #f6f6f6;
|
|
}
|
|
.backcor9 {
|
|
background-color: #f6f6f6;
|
|
}
|
|
.backcorf06 {
|
|
background-color: #f06c7a;
|
|
}
|
|
.backcor89 {
|
|
background-color: #089bf5;
|
|
}
|
|
.backcorfff {
|
|
background-color: white;
|
|
}
|
|
.backshare {
|
|
background: transparent;
|
|
}
|
|
/* 页面布局 */
|
|
.width90 {
|
|
width: 90%;
|
|
margin-left: 5%;
|
|
}
|
|
.width80 {
|
|
width: 80%;
|
|
margin-left: 10%;
|
|
}
|
|
.width70 {
|
|
width: 70%;
|
|
}
|
|
.width15 {
|
|
width: 15%;
|
|
}
|
|
.width50 {
|
|
width: 50%;
|
|
}
|
|
.width60 {
|
|
width: 65%;
|
|
margin-left: 5%;
|
|
}
|
|
.width30 {
|
|
width: 30%;
|
|
}
|
|
.width95 {
|
|
width: 95%;
|
|
}
|
|
.width100 {
|
|
width: 100%;
|
|
}
|
|
.bor-botm1 {
|
|
border-bottom: 1px solid #f4f4f4;
|
|
}
|
|
/* 高40px */
|
|
.height45 {
|
|
height: 45px;
|
|
}
|
|
.height40 {
|
|
height: 40px;
|
|
}
|
|
.height22 {
|
|
height: 22px;
|
|
}
|
|
.height100 {
|
|
height: 100%;
|
|
}
|
|
.height10 {
|
|
height: 10px;
|
|
}
|
|
.height60 {
|
|
height: 60px;
|
|
}
|
|
.height30 {
|
|
height: 30px;
|
|
line-height: 30px;
|
|
}
|
|
.height40 {
|
|
height: 40px;
|
|
line-height: 40px;
|
|
}
|
|
.height20 {
|
|
height: 20px;
|
|
line-height: 20px;
|
|
}
|
|
.height50 {
|
|
height: 50px;
|
|
line-height: 50px;
|
|
}
|
|
/* 向上下外间距 */
|
|
.mart90 {
|
|
margin-top: 90px;
|
|
}
|
|
.mart60 {
|
|
margin-top: 60px;
|
|
}
|
|
.mart50 {
|
|
margin-top: 50px;
|
|
}
|
|
.mart40 {
|
|
margin-top: 40px;
|
|
}
|
|
.mart30 {
|
|
margin-top: 30px;
|
|
}
|
|
.mart15 {
|
|
margin-top: 15px;
|
|
}
|
|
.mart20 {
|
|
margin-top: 20px;
|
|
}
|
|
.mart10 {
|
|
margin-top: 10px;
|
|
}
|
|
.mart5 {
|
|
margin-top: 5px;
|
|
}
|
|
.marb65 {
|
|
margin-bottom: 65px;
|
|
}
|
|
.marb50 {
|
|
margin-bottom: 50px;
|
|
}
|
|
.marb40 {
|
|
margin-bottom: 40px;
|
|
}
|
|
.marb30 {
|
|
margin-bottom: 30px;
|
|
}
|
|
.marb20 {
|
|
margin-bottom: 20px;
|
|
}
|
|
.marb10 {
|
|
margin-bottom: 10px;
|
|
}
|
|
.marb5 {
|
|
margin-bottom: 5px;
|
|
}
|
|
/* 向上下内间距 */
|
|
.paddtop10 {
|
|
padding-top: 10px;
|
|
}
|
|
.paading10 {
|
|
padding: 10px;
|
|
}
|
|
.paddtop13 {
|
|
padding-top: 13px;
|
|
}
|
|
.paddleft10 {
|
|
padding-left: 10px;
|
|
}
|
|
.padleft15 {
|
|
padding-left: 15px;
|
|
}
|
|
.paddtright10 {
|
|
padding-right: 10px;
|
|
}
|
|
.paddbotm10 {
|
|
padding-bottom: 10px;
|
|
}
|
|
/* 左悬浮 */
|
|
.flleft {
|
|
float: left;
|
|
}
|
|
/* 右悬浮 */
|
|
.flright {
|
|
float: right;
|
|
}
|
|
/* button样式 */
|
|
.btnw70 {
|
|
width: 70%;
|
|
color: white;
|
|
margin-top: 40px;
|
|
background-color: #089bf5;
|
|
-webkit-border-radius: 6px;
|
|
border-radius: 6px;
|
|
}
|
|
/* 下滑线 */
|
|
.line1 {
|
|
height: 1px;
|
|
background-color: #f4f4f4;
|
|
}
|
|
.line10 {
|
|
height: 10px;
|
|
background-color: #f4f4f4;
|
|
}
|
|
.line1089 {
|
|
height: 10px;
|
|
background-color: #089bf5;
|
|
}
|
|
/* 展示样式 */
|
|
.displ {
|
|
display: inline-block;
|
|
}
|
|
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.invalid {
|
|
-webkit-transform: translate3d(100%, 0, 0);
|
|
transform: translate3d(100%, 0, 0);
|
|
}
|
|
.list {
|
|
width: 100%;
|
|
display: block;
|
|
position: relative;
|
|
}
|
|
@-webkit-keyframes showValid {
|
|
0% {
|
|
-webkit-transform: translateX(-100%);
|
|
transform: translateX(-100%);
|
|
}
|
|
100% {
|
|
-webkit-transform: translateX(0);
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
@keyframes showValid {
|
|
0% {
|
|
-webkit-transform: translateX(-100%);
|
|
transform: translateX(-100%);
|
|
}
|
|
100% {
|
|
-webkit-transform: translateX(0);
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
@-webkit-keyframes showInvalid {
|
|
0% {
|
|
-webkit-transform: translateX(0);
|
|
transform: translateX(0);
|
|
}
|
|
100% {
|
|
-webkit-transform: translateX(-100%);
|
|
transform: translateX(-100%);
|
|
}
|
|
}
|
|
@keyframes showInvalid {
|
|
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.invalid {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 100%;
|
|
display: none;
|
|
}
|
|
.sub-list.showvalid {
|
|
display: -webkit-box;
|
|
display: -webkit-flex;
|
|
display: flex;
|
|
-webkit-animation: showValid 0.20s linear both;
|
|
animation: showValid 0.20s linear both;
|
|
}
|
|
.sub-list.showinvalid {
|
|
display: -webkit-box;
|
|
display: -webkit-flex;
|
|
display: flex;
|
|
-webkit-animation: showInvalid 0.20s linear both;
|
|
animation: showInvalid 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 .row {
|
|
width: 92%;
|
|
height: 24vw;
|
|
margin: 20rpx auto 10rpx auto;
|
|
-webkit-border-radius: 8rpx;
|
|
border-radius: 8rpx;
|
|
-webkit-box-align: center;
|
|
-webkit-align-items: center;
|
|
align-items: center;
|
|
position: relative;
|
|
overflow: hidden;
|
|
z-index: 4;
|
|
border: 0;
|
|
/*
|
|
<view class="carrier" :class="[theIndex==index?'open':oldIndex==index?'close':'']" @touchstart="touchStart(index,$event)" @touchmove="touchMove(index,$event)" @touchend="touchEnd(index,$event)">
|
|
<view class="left">
|
|
<view class="title">
|
|
10元日常用品类
|
|
</view>
|
|
<view class="term">
|
|
2019-04-01~2019-05-30
|
|
</view>
|
|
</view>
|
|
<view class="right">
|
|
<view class="ticket">
|
|
<view class="num">
|
|
10
|
|
</view>
|
|
<view class="unit">
|
|
元
|
|
</view>
|
|
</view>
|
|
<view class="criteria">
|
|
满50使用
|
|
</view>
|
|
<view class="use">
|
|
去使用
|
|
</view>
|
|
</view>
|
|
</view>
|
|
*
|
|
* */
|
|
}
|
|
.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 .left {
|
|
width: 100%;
|
|
position: relative;
|
|
}
|
|
.sub-list .row .carrier .left .title {
|
|
padding-top: 3vw;
|
|
width: 90%;
|
|
margin: 0 5%;
|
|
font-size: 36rpx;
|
|
}
|
|
.sub-list .row .carrier .left .term {
|
|
width: 90%;
|
|
margin: 0 5%;
|
|
font-size: 26rpx;
|
|
color: #999;
|
|
}
|
|
.sub-list .row .carrier .left .gap-top, .sub-list .row .carrier .left .gap-bottom {
|
|
position: absolute;
|
|
width: 20rpx;
|
|
height: 20rpx;
|
|
right: -10rpx;
|
|
-webkit-border-radius: 100%;
|
|
border-radius: 100%;
|
|
background-color: #f5f5f5;
|
|
}
|
|
.sub-list .row .carrier .left .gap-top {
|
|
top: -10rpx;
|
|
}
|
|
.sub-list .row .carrier .left .gap-bottom {
|
|
bottom: -10rpx;
|
|
}
|
|
.sub-list .row .carrier .left .shixiao {
|
|
position: absolute;
|
|
right: 20rpx;
|
|
font-size: 150rpx;
|
|
z-index: 6;
|
|
color: rgba(153, 153, 153, 0.2);
|
|
}
|
|
.sub-list .row .carrier .right {
|
|
-webkit-flex-shrink: 0;
|
|
flex-shrink: 0;
|
|
width: 28%;
|
|
color: #fff;
|
|
background: -webkit-gradient(linear, left top, right top, from(#ec625c), to(#ee827f));
|
|
background: -webkit-linear-gradient(left, #ec625c, #ee827f);
|
|
background: linear-gradient(to right, #ec625c, #ee827f);
|
|
-webkit-box-pack: center;
|
|
-webkit-justify-content: center;
|
|
justify-content: center;
|
|
}
|
|
.sub-list .row .carrier .right.invalid {
|
|
background: -webkit-gradient(linear, left top, right top, from(#aaa), to(#999));
|
|
background: -webkit-linear-gradient(left, #aaa, #999);
|
|
background: linear-gradient(to right, #aaa, #999);
|
|
}
|
|
.sub-list .row .carrier .right.invalid .use {
|
|
color: #aaa;
|
|
}
|
|
.sub-list .row .carrier .right .ticket, .sub-list .row .carrier .right .criteria {
|
|
width: 100%;
|
|
}
|
|
.sub-list .row .carrier .right .ticket {
|
|
padding-top: 1vw;
|
|
-webkit-box-pack: center;
|
|
-webkit-justify-content: center;
|
|
justify-content: center;
|
|
-webkit-box-align: baseline;
|
|
-webkit-align-items: baseline;
|
|
align-items: baseline;
|
|
height: 6vw;
|
|
}
|
|
.sub-list .row .carrier .right .ticket .num {
|
|
font-size: 42rpx;
|
|
font-weight: 600;
|
|
}
|
|
.sub-list .row .carrier .right .ticket .unit {
|
|
font-size: 24rpx;
|
|
}
|
|
.sub-list .row .carrier .right .criteria {
|
|
-webkit-box-pack: center;
|
|
-webkit-justify-content: center;
|
|
justify-content: center;
|
|
font-size: 28rpx;
|
|
}
|
|
.sub-list .row .carrier .right .use {
|
|
width: 50%;
|
|
height: 40rpx;
|
|
-webkit-box-pack: center;
|
|
-webkit-justify-content: center;
|
|
justify-content: center;
|
|
-webkit-box-align: center;
|
|
-webkit-align-items: center;
|
|
align-items: center;
|
|
font-size: 24rpx;
|
|
background-color: #fff;
|
|
color: #ee827f;
|
|
-webkit-border-radius: 40rpx;
|
|
border-radius: 40rpx;
|
|
padding: 0 10rpx;
|
|
}
|
|
|
|
|