415 lines
7.2 KiB
Plaintext
415 lines
7.2 KiB
Plaintext
/**
|
||
* 这里是uni-app内置的常用样式变量
|
||
*
|
||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||
*
|
||
*/
|
||
/**
|
||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||
*
|
||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||
*/
|
||
/* 颜色变量 */
|
||
/* 行为相关颜色 */
|
||
/* 文字基本颜色 */
|
||
/* 背景颜色 */
|
||
/* 边框颜色 */
|
||
/* 尺寸变量 */
|
||
/* 文字尺寸 */
|
||
/* 图片尺寸 */
|
||
/* Border Radius */
|
||
/* 水平间距 */
|
||
/* 垂直间距 */
|
||
/* 透明度 */
|
||
/* 文章场景相关 */
|
||
.priceTitle {
|
||
width: 100%;
|
||
height: 50px;
|
||
background-color: #4095e5;
|
||
font-size: 20px;
|
||
color: #fff;
|
||
padding-left: 5px;
|
||
line-height: 50px;
|
||
}
|
||
.tabs {
|
||
display: flex;
|
||
justify-content: space-around;
|
||
line-height: 60rpx;
|
||
margin: 0 10rpx;
|
||
background-color: #fff;
|
||
box-shadow: 0 4rpx 6rpx rgba(240, 240, 240, 0.6);
|
||
position: relative;
|
||
z-index: 9;
|
||
}
|
||
.tabs .item {
|
||
flex: 1;
|
||
text-align: center;
|
||
padding: 20rpx;
|
||
font-size: 28rpx;
|
||
color: #262626;
|
||
}
|
||
.tabs .cursor {
|
||
position: absolute;
|
||
left: 0;
|
||
bottom: 0;
|
||
width: 18%;
|
||
height: 6rpx;
|
||
padding: 0 50rpx;
|
||
background-color: #4095e5;
|
||
transition: all 0.4s;
|
||
}
|
||
.preview image {
|
||
width: 100%;
|
||
}
|
||
page {
|
||
height: 100%;
|
||
overflow: hidden;
|
||
}
|
||
.viewport {
|
||
height: 100%;
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
.search {
|
||
padding: 0 30rpx 20rpx;
|
||
background-color: #fff;
|
||
}
|
||
.search .input {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
height: 64rpx;
|
||
padding-left: 26rpx;
|
||
color: #8b8b8b;
|
||
font-size: 28rpx;
|
||
border-radius: 32rpx;
|
||
background-color: #f3f4f4;
|
||
}
|
||
.icon-search::before {
|
||
margin-right: 10rpx;
|
||
}
|
||
.categories {
|
||
flex: 1;
|
||
min-height: 400rpx;
|
||
display: flex;
|
||
}
|
||
.primary {
|
||
overflow: hidden;
|
||
width: 180rpx;
|
||
flex: none;
|
||
background-color: #f6f6f6;
|
||
}
|
||
.primary .item {
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
height: 96rpx;
|
||
font-size: 26rpx;
|
||
color: #595c63;
|
||
position: relative;
|
||
}
|
||
.primary .item::after {
|
||
content: "";
|
||
position: absolute;
|
||
left: 42rpx;
|
||
bottom: 0;
|
||
width: 96rpx;
|
||
border-top: 1rpx solid #e3e4e7;
|
||
}
|
||
.primary .active {
|
||
background-color: #fff;
|
||
}
|
||
.primary .active::before {
|
||
content: "";
|
||
position: absolute;
|
||
left: 0;
|
||
top: 0;
|
||
width: 8rpx;
|
||
height: 100%;
|
||
background-color: #ed0a3f;
|
||
}
|
||
.primary .item:last-child::after,
|
||
.primary .active::after {
|
||
display: none;
|
||
}
|
||
.secondary {
|
||
background-color: #fff;
|
||
}
|
||
.secondary .carousel {
|
||
height: 200rpx;
|
||
margin: 0 30rpx 20rpx;
|
||
border-radius: 4rpx;
|
||
overflow: hidden;
|
||
}
|
||
.secondary .panel {
|
||
margin: 0 30rpx 0rpx;
|
||
}
|
||
.secondary .title {
|
||
height: 60rpx;
|
||
line-height: 60rpx;
|
||
color: #333;
|
||
font-size: 28rpx;
|
||
border-bottom: 1rpx solid #f7f7f8;
|
||
}
|
||
.secondary .title .more {
|
||
float: right;
|
||
padding-left: 20rpx;
|
||
font-size: 24rpx;
|
||
color: #999;
|
||
}
|
||
.secondary .more::after {
|
||
font-family: "erabbit" !important;
|
||
content: "\e70c";
|
||
}
|
||
.secondary .section {
|
||
width: 100%;
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
padding: 20rpx 0;
|
||
}
|
||
.secondary .section .goods {
|
||
width: 150rpx;
|
||
margin: 0rpx 30rpx 20rpx 0;
|
||
}
|
||
.secondary .section .goods:nth-child(3n) {
|
||
margin-right: 0;
|
||
}
|
||
.secondary .section .goods image {
|
||
width: 150rpx;
|
||
height: 150rpx;
|
||
}
|
||
.secondary .section .goods .name {
|
||
padding: 5rpx;
|
||
font-size: 22rpx;
|
||
color: #333;
|
||
}
|
||
.secondary .section .goods .price {
|
||
padding: 5rpx;
|
||
font-size: 18rpx;
|
||
color: #cf4444;
|
||
}
|
||
.secondary .section .goods .number {
|
||
font-size: 24rpx;
|
||
margin-left: 2rpx;
|
||
}
|
||
.toolbar {
|
||
position: fixed;
|
||
left: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
z-index: 1;
|
||
background-color: #fff;
|
||
height: 100rpx;
|
||
padding: 0 20rpx var(--window-bottom);
|
||
border-top: 1rpx solid #eaeaea;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
box-sizing: content-box;
|
||
}
|
||
.toolbar .buttons {
|
||
display: flex;
|
||
}
|
||
.toolbar .buttons > view {
|
||
width: 220rpx;
|
||
text-align: center;
|
||
line-height: 72rpx;
|
||
font-size: 26rpx;
|
||
color: #fff;
|
||
border-radius: 72rpx;
|
||
}
|
||
.toolbar .buttons .addcart {
|
||
background-color: #4095e5;
|
||
}
|
||
.toolbar .buttons .buynow,
|
||
.toolbar .buttons .payment {
|
||
background-color: #4095e5;
|
||
margin-left: 20rpx;
|
||
}
|
||
.toolbar .icons {
|
||
padding-right: 10rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
flex: 1;
|
||
}
|
||
.toolbar .icons .icons-button {
|
||
flex: 1;
|
||
text-align: center;
|
||
line-height: 1.4;
|
||
padding: 0;
|
||
margin: 0;
|
||
border-radius: 0;
|
||
font-size: 20rpx;
|
||
color: #333;
|
||
background-color: #fff;
|
||
}
|
||
.toolbar .icons .icons-button::after {
|
||
border: none;
|
||
}
|
||
.toolbar .icons text {
|
||
display: block;
|
||
font-size: 34rpx;
|
||
}
|
||
.tab-menu {
|
||
display: flex;
|
||
justify-content: space-around;
|
||
padding: 10px 0;
|
||
background-color: #f5f5f5;
|
||
}
|
||
.tab-item {
|
||
padding: 10px;
|
||
cursor: pointer;
|
||
}
|
||
.tab-item.active {
|
||
color: #4095e5;
|
||
font-weight: bold;
|
||
}
|
||
.container {
|
||
align-items: center;
|
||
padding: 20rpx;
|
||
}
|
||
.history-list {
|
||
width: 100%;
|
||
}
|
||
.history-item {
|
||
padding: 10px 0px 10px 5px;
|
||
margin-bottom: 20rpx;
|
||
}
|
||
.history-img {
|
||
width: 200rpx;
|
||
height: 100rpx;
|
||
margin-right: 20rpx;
|
||
}
|
||
.history-info {
|
||
display: flex;
|
||
flex-direction: row;
|
||
}
|
||
.nameTime {
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
.history-title {
|
||
font-size: 32rpx;
|
||
font-weight: bold;
|
||
width: 170px;
|
||
}
|
||
.time {
|
||
font-size: 24rpx;
|
||
color: #999;
|
||
}
|
||
.star {
|
||
display: inline-block;
|
||
line-height: 15px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: flex-end;
|
||
}
|
||
.history-sale {
|
||
font-size: 30rpx;
|
||
color: #000;
|
||
float: right;
|
||
display: inline-block;
|
||
line-height: 15px;
|
||
font-weight: 700;
|
||
}
|
||
.extend {
|
||
font-size: 24rpx;
|
||
color: #999;
|
||
padding-top: 10px;
|
||
}
|
||
.example-body {
|
||
padding: 10px;
|
||
}
|
||
.scroll-view {
|
||
width: 100%;
|
||
height: 100%;
|
||
flex: 1;
|
||
}
|
||
.scroll-view-box {
|
||
flex: 1;
|
||
position: absolute;
|
||
top: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
left: 0;
|
||
}
|
||
.info {
|
||
padding: 15px;
|
||
color: #666;
|
||
}
|
||
.info-text {
|
||
font-size: 14px;
|
||
color: #666;
|
||
}
|
||
.info-content {
|
||
padding: 5px 15px;
|
||
}
|
||
.card {
|
||
width: 100%;
|
||
height: 100px;
|
||
border-radius: 15px;
|
||
background-image: -webkit-linear-gradient(top, #fff, #B0D3F4);
|
||
}
|
||
.containerShow {
|
||
padding: 7px;
|
||
position: relative;
|
||
}
|
||
.img {
|
||
width: 60px;
|
||
height: 40px;
|
||
display: inline-block;
|
||
margin-top: 30px;
|
||
}
|
||
.imageItem {
|
||
width: 100%;
|
||
height: 100%;
|
||
border-radius: 15px;
|
||
margin: auto 0;
|
||
}
|
||
.message {
|
||
width: 110px;
|
||
height: 88px;
|
||
float: right;
|
||
display: inline-block;
|
||
}
|
||
.quantity-selector {
|
||
display: flex;
|
||
justify-content: center;
|
||
margin-top: 10rpx;
|
||
}
|
||
.quantity-value {
|
||
font-size: 32rpx;
|
||
font-weight: bold;
|
||
margin: 0 20rpx;
|
||
}
|
||
.titleCard {
|
||
font-size: 16px;
|
||
padding-bottom: 3px;
|
||
}
|
||
.moneyCard {
|
||
font-size: 15px;
|
||
color: #666;
|
||
padding: 0;
|
||
}
|
||
.jia,
|
||
.jian {
|
||
background-color: #fff;
|
||
padding: 3px 5px 3px 5px;
|
||
border: 1px solid #999;
|
||
}
|
||
.sum {
|
||
position: fixed;
|
||
left: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
z-index: 1;
|
||
}
|
||
.containerShow:last-child {
|
||
padding-bottom: 150px;
|
||
}
|
||
.delete-button {
|
||
position: absolute;
|
||
top: 0;
|
||
right: 0;
|
||
} |