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.
419 lines
9.8 KiB
419 lines
9.8 KiB
4 years ago
|
@charset "UTF-8";
|
||
|
/**
|
||
|
* 这里是uni-app内置的常用样式变量
|
||
|
*
|
||
|
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||
|
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||
|
*
|
||
|
*/
|
||
|
/**
|
||
|
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||
|
*
|
||
|
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||
|
*/
|
||
|
/* 颜色变量 */
|
||
|
/* 行为相关颜色 */
|
||
|
/* 文字基本颜色 */
|
||
|
/* 背景颜色 */
|
||
|
/* 边框颜色 */
|
||
|
/* 尺寸变量 */
|
||
|
/* 文字尺寸 */
|
||
|
/* 图片尺寸 */
|
||
|
/* Border Radius */
|
||
|
/* 水平间距 */
|
||
|
/* 垂直间距 */
|
||
|
/* 透明度 */
|
||
|
/* 文章场景相关 */
|
||
|
page {
|
||
|
position: relative;
|
||
|
background-color: #fff;
|
||
|
}
|
||
|
.checkbox-box {
|
||
|
display: -webkit-box;
|
||
|
display: -webkit-flex;
|
||
|
display: flex;
|
||
|
-webkit-box-align: center;
|
||
|
-webkit-align-items: center;
|
||
|
align-items: center;
|
||
|
}
|
||
|
.checkbox-box .checkbox {
|
||
|
width: 35rpx;
|
||
|
height: 35rpx;
|
||
|
border-radius: 100%;
|
||
|
border: solid 2rpx #f06c7a;
|
||
|
display: -webkit-box;
|
||
|
display: -webkit-flex;
|
||
|
display: flex;
|
||
|
-webkit-box-pack: center;
|
||
|
-webkit-justify-content: center;
|
||
|
justify-content: center;
|
||
|
-webkit-box-align: center;
|
||
|
-webkit-align-items: center;
|
||
|
align-items: center;
|
||
|
}
|
||
|
.checkbox-box .checkbox .on {
|
||
|
width: 25rpx;
|
||
|
height: 25rpx;
|
||
|
border-radius: 100%;
|
||
|
background-color: #f06c7a;
|
||
|
}
|
||
|
.checkbox-box .text {
|
||
|
font-size: 28rpx;
|
||
|
margin-left: 10rpx;
|
||
|
}
|
||
|
.status {
|
||
|
width: 100%;
|
||
|
height: 0;
|
||
|
position: fixed;
|
||
|
z-index: 10;
|
||
|
background-color: #fff;
|
||
|
top: 0;
|
||
|
}
|
||
|
.header {
|
||
|
width: 92%;
|
||
|
padding: 0 4%;
|
||
|
height: 100rpx;
|
||
|
display: -webkit-box;
|
||
|
display: -webkit-flex;
|
||
|
display: flex;
|
||
|
-webkit-box-align: center;
|
||
|
-webkit-align-items: center;
|
||
|
align-items: center;
|
||
|
position: fixed;
|
||
|
top: 0;
|
||
|
z-index: 10;
|
||
|
background-color: #fff;
|
||
|
}
|
||
|
.header .title {
|
||
|
font-size: 36rpx;
|
||
|
}
|
||
|
.place {
|
||
|
background-color: #ffffff;
|
||
|
height: 100rpx;
|
||
|
}
|
||
|
.goods-list {
|
||
|
width: 100%;
|
||
|
padding: 20rpx 0 120rpx 0;
|
||
|
}
|
||
|
.goods-list .tis {
|
||
|
width: 100%;
|
||
|
height: 60rpx;
|
||
|
display: -webkit-box;
|
||
|
display: -webkit-flex;
|
||
|
display: flex;
|
||
|
-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;
|
||
|
}
|
||
|
.goods-list .row {
|
||
|
width: calc(92%);
|
||
|
height: calc(22vw + 40rpx);
|
||
|
margin: 20rpx auto;
|
||
|
border-radius: 15rpx;
|
||
|
box-shadow: 0rpx 5rpx 20rpx rgba(0, 0, 0, 0.1);
|
||
|
display: -webkit-box;
|
||
|
display: -webkit-flex;
|
||
|
display: flex;
|
||
|
-webkit-box-align: center;
|
||
|
-webkit-align-items: center;
|
||
|
align-items: center;
|
||
|
position: relative;
|
||
|
overflow: hidden;
|
||
|
z-index: 4;
|
||
|
border: 0;
|
||
|
}
|
||
|
.goods-list .row .menu {
|
||
|
position: absolute;
|
||
|
width: 30%;
|
||
|
height: 100%;
|
||
|
right: 0;
|
||
|
display: -webkit-box;
|
||
|
display: -webkit-flex;
|
||
|
display: flex;
|
||
|
-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;
|
||
|
}
|
||
|
.goods-list .row .menu .icon {
|
||
|
color: #fff;
|
||
|
}
|
||
|
.goods-list .row .carrier {
|
||
|
background-color: #fff;
|
||
|
position: absolute;
|
||
|
width: 100%;
|
||
|
padding: 0 0;
|
||
|
height: 100%;
|
||
|
z-index: 3;
|
||
|
display: -webkit-box;
|
||
|
display: -webkit-flex;
|
||
|
display: flex;
|
||
|
-webkit-box-align: center;
|
||
|
-webkit-align-items: center;
|
||
|
align-items: center;
|
||
|
}
|
||
|
@-webkit-keyframes showMenu {
|
||
|
0% {
|
||
|
-webkit-transform: translateX(0);
|
||
|
transform: translateX(0);
|
||
|
}
|
||
|
100% {
|
||
|
-webkit-transform: translateX(-30%);
|
||
|
transform: translateX(-30%);
|
||
|
}
|
||
|
}
|
||
|
@keyframes showMenu {
|
||
|
0% {
|
||
|
-webkit-transform: translateX(0);
|
||
|
transform: translateX(0);
|
||
|
}
|
||
|
100% {
|
||
|
-webkit-transform: translateX(-30%);
|
||
|
transform: translateX(-30%);
|
||
|
}
|
||
|
}
|
||
|
@-webkit-keyframes closeMenu {
|
||
|
0% {
|
||
|
-webkit-transform: translateX(-30%);
|
||
|
transform: translateX(-30%);
|
||
|
}
|
||
|
100% {
|
||
|
-webkit-transform: translateX(0);
|
||
|
transform: translateX(0);
|
||
|
}
|
||
|
}
|
||
|
@keyframes closeMenu {
|
||
|
0% {
|
||
|
-webkit-transform: translateX(-30%);
|
||
|
transform: translateX(-30%);
|
||
|
}
|
||
|
100% {
|
||
|
-webkit-transform: translateX(0);
|
||
|
transform: translateX(0);
|
||
|
}
|
||
|
}
|
||
|
.goods-list .row .carrier.open {
|
||
|
-webkit-animation: showMenu 0.25s linear both;
|
||
|
animation: showMenu 0.25s linear both;
|
||
|
}
|
||
|
.goods-list .row .carrier.close {
|
||
|
-webkit-animation: closeMenu 0.15s linear both;
|
||
|
animation: closeMenu 0.15s linear both;
|
||
|
}
|
||
|
.goods-list .row .carrier .checkbox-box {
|
||
|
padding-left: 20rpx;
|
||
|
-webkit-flex-shrink: 0;
|
||
|
flex-shrink: 0;
|
||
|
height: 22vw;
|
||
|
margin-right: 20rpx;
|
||
|
}
|
||
|
.goods-list .row .carrier .goods-info {
|
||
|
width: 100%;
|
||
|
display: -webkit-box;
|
||
|
display: -webkit-flex;
|
||
|
display: flex;
|
||
|
padding-right: 20rpx;
|
||
|
}
|
||
|
.goods-list .row .carrier .goods-info .img {
|
||
|
width: 22vw;
|
||
|
height: 22vw;
|
||
|
border-radius: 10rpx;
|
||
|
overflow: hidden;
|
||
|
-webkit-flex-shrink: 0;
|
||
|
flex-shrink: 0;
|
||
|
margin-right: 10rpx;
|
||
|
}
|
||
|
.goods-list .row .carrier .goods-info .img image {
|
||
|
width: 22vw;
|
||
|
height: 22vw;
|
||
|
}
|
||
|
.goods-list .row .carrier .goods-info .info {
|
||
|
width: 100%;
|
||
|
height: 22vw;
|
||
|
overflow: hidden;
|
||
|
display: -webkit-box;
|
||
|
display: -webkit-flex;
|
||
|
display: flex;
|
||
|
-webkit-flex-wrap: wrap;
|
||
|
flex-wrap: wrap;
|
||
|
position: relative;
|
||
|
}
|
||
|
.goods-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;
|
||
|
}
|
||
|
.goods-list .row .carrier .goods-info .info .spec {
|
||
|
font-size: 20rpx;
|
||
|
background-color: #f3f3f3;
|
||
|
color: #a7a7a7;
|
||
|
height: 30rpx;
|
||
|
display: -webkit-box;
|
||
|
display: -webkit-flex;
|
||
|
display: flex;
|
||
|
-webkit-box-align: center;
|
||
|
-webkit-align-items: center;
|
||
|
align-items: center;
|
||
|
padding: 0 10rpx;
|
||
|
border-radius: 15rpx;
|
||
|
margin-bottom: 20vw;
|
||
|
}
|
||
|
.goods-list .row .carrier .goods-info .info .price-number {
|
||
|
position: absolute;
|
||
|
width: 100%;
|
||
|
bottom: 0rpx;
|
||
|
display: -webkit-box;
|
||
|
display: -webkit-flex;
|
||
|
display: flex;
|
||
|
-webkit-box-pack: justify;
|
||
|
-webkit-justify-content: space-between;
|
||
|
justify-content: space-between;
|
||
|
-webkit-box-align: end;
|
||
|
-webkit-align-items: flex-end;
|
||
|
align-items: flex-end;
|
||
|
font-size: 28rpx;
|
||
|
height: 60rpx;
|
||
|
}
|
||
|
.goods-list .row .carrier .goods-info .info .price-number .number {
|
||
|
display: -webkit-box;
|
||
|
display: -webkit-flex;
|
||
|
display: flex;
|
||
|
-webkit-box-pack: center;
|
||
|
-webkit-justify-content: center;
|
||
|
justify-content: center;
|
||
|
-webkit-box-align: end;
|
||
|
-webkit-align-items: flex-end;
|
||
|
align-items: flex-end;
|
||
|
}
|
||
|
.goods-list .row .carrier .goods-info .info .price-number .number .input {
|
||
|
width: 60rpx;
|
||
|
height: 60rpx;
|
||
|
margin: 0 10rpx;
|
||
|
background-color: #f3f3f3;
|
||
|
}
|
||
|
.goods-list .row .carrier .goods-info .info .price-number .number .input input {
|
||
|
width: 60rpx;
|
||
|
height: 60rpx;
|
||
|
display: -webkit-box;
|
||
|
display: -webkit-flex;
|
||
|
display: flex;
|
||
|
-webkit-box-pack: center;
|
||
|
-webkit-justify-content: center;
|
||
|
justify-content: center;
|
||
|
-webkit-box-align: center;
|
||
|
-webkit-align-items: center;
|
||
|
align-items: center;
|
||
|
text-align: center;
|
||
|
font-size: 26rpx;
|
||
|
}
|
||
|
.goods-list .row .carrier .goods-info .info .price-number .number .sub, .goods-list .row .carrier .goods-info .info .price-number .number .add {
|
||
|
width: 45rpx;
|
||
|
height: 45rpx;
|
||
|
background-color: #f3f3f3;
|
||
|
border-radius: 5rpx;
|
||
|
}
|
||
|
.goods-list .row .carrier .goods-info .info .price-number .number .sub .icon, .goods-list .row .carrier .goods-info .info .price-number .number .add .icon {
|
||
|
font-size: 22rpx;
|
||
|
width: 45rpx;
|
||
|
height: 45rpx;
|
||
|
display: -webkit-box;
|
||
|
display: -webkit-flex;
|
||
|
display: flex;
|
||
|
-webkit-box-pack: center;
|
||
|
-webkit-justify-content: center;
|
||
|
justify-content: center;
|
||
|
-webkit-box-align: center;
|
||
|
-webkit-align-items: center;
|
||
|
align-items: center;
|
||
|
}
|
||
|
.footer {
|
||
|
width: 92%;
|
||
|
padding: 0 4%;
|
||
|
background-color: #fbfbfb;
|
||
|
height: 100rpx;
|
||
|
display: -webkit-box;
|
||
|
display: -webkit-flex;
|
||
|
display: flex;
|
||
|
-webkit-box-pack: justify;
|
||
|
-webkit-justify-content: space-between;
|
||
|
justify-content: space-between;
|
||
|
-webkit-box-align: center;
|
||
|
-webkit-align-items: center;
|
||
|
align-items: center;
|
||
|
font-size: 28rpx;
|
||
|
position: fixed;
|
||
|
bottom: 0rpx;
|
||
|
z-index: 5;
|
||
|
}
|
||
|
.footer .delBtn {
|
||
|
border: solid 1rpx #f06c7a;
|
||
|
color: #f06c7a;
|
||
|
padding: 0 30rpx;
|
||
|
height: 50rpx;
|
||
|
border-radius: 30rpx;
|
||
|
display: -webkit-box;
|
||
|
display: -webkit-flex;
|
||
|
display: flex;
|
||
|
-webkit-box-pack: center;
|
||
|
-webkit-justify-content: center;
|
||
|
justify-content: center;
|
||
|
-webkit-box-align: center;
|
||
|
-webkit-align-items: center;
|
||
|
align-items: center;
|
||
|
}
|
||
|
.footer .settlement {
|
||
|
width: 60%;
|
||
|
display: -webkit-box;
|
||
|
display: -webkit-flex;
|
||
|
display: flex;
|
||
|
-webkit-box-pack: end;
|
||
|
-webkit-justify-content: flex-end;
|
||
|
justify-content: flex-end;
|
||
|
-webkit-box-align: center;
|
||
|
-webkit-align-items: center;
|
||
|
align-items: center;
|
||
|
}
|
||
|
.footer .settlement .sum {
|
||
|
width: 50%;
|
||
|
font-size: 28rpx;
|
||
|
margin-right: 10rpx;
|
||
|
display: -webkit-box;
|
||
|
display: -webkit-flex;
|
||
|
display: flex;
|
||
|
-webkit-box-pack: end;
|
||
|
-webkit-justify-content: flex-end;
|
||
|
justify-content: flex-end;
|
||
|
}
|
||
|
.footer .settlement .sum .money {
|
||
|
font-weight: 600;
|
||
|
}
|
||
|
.footer .settlement .btn {
|
||
|
padding: 0 30rpx;
|
||
|
height: 50rpx;
|
||
|
background-color: #f06c7a;
|
||
|
color: #fff;
|
||
|
display: -webkit-box;
|
||
|
display: -webkit-flex;
|
||
|
display: flex;
|
||
|
-webkit-box-pack: center;
|
||
|
-webkit-justify-content: center;
|
||
|
justify-content: center;
|
||
|
-webkit-box-align: center;
|
||
|
-webkit-align-items: center;
|
||
|
align-items: center;
|
||
|
border-radius: 30rpx;
|
||
|
}
|
||
|
|