123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388 |
- /**
- * 这里是uni-app内置的常用样式变量
- *
- * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
- * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
- *
- */
- /**
- * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
- *
- * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
- */
- /* 颜色变量 */
- @import '@/uni_modules/uview-ui/theme.scss';
- /* 行为相关颜色 */
- $uni-color-primary: #00A447;
- $uni-color-success: #4cd964;
- $uni-color-warning: #f0ad4e;
- $uni-color-error: #dd524d;
- /* 文字基本颜色 */
- $uni-text-color:#333;//基本色
- $uni-text-color-inverse:#fff;//反色
- $uni-text-color-grey:#999;//辅助灰色,如加载更多的提示信息
- $uni-text-color-placeholder: #808080;
- $uni-text-color-disable:#c0c0c0;
- $uni-text-color-red:#FF3C3F;
- /* 背景颜色 */
- $uni-bg-color:#ffffff;
- $uni-bg-color-grey:#f8f8f8;
- $uni-bg-color-hover:#f1f1f1;//点击状态颜色
- $uni-bg-color-mask:rgba(0, 0, 0, 0.4);//遮罩颜色
- $uni-background-color:#F5F5F5;
- /* 边框颜色 */
- $uni-border-color:#eee;
- /* 尺寸变量 */
- /* 文字尺寸 */
- $uni-font-size-sm:12px;
- $uni-font-size-base:14px;
- $uni-font-size-lg:16;
- /* 图片尺寸 */
- $uni-img-size-sm:20px;
- $uni-img-size-base:26px;
- $uni-img-size-lg:40px;
- /* Border Radius */
- $uni-border-radius-sm: 2px;
- $uni-border-radius-base: 3px;
- $uni-border-radius-lg: 6px;
- $uni-border-radius-circle: 50%;
- /* 水平间距 */
- $uni-spacing-row-sm: 5px;
- $uni-spacing-row-base: 10px;
- $uni-spacing-row-lg: 15px;
- /* 垂直间距 */
- $uni-spacing-col-sm: 4px;
- $uni-spacing-col-base: 8px;
- $uni-spacing-col-lg: 12px;
- /* 透明度 */
- $uni-opacity-disabled: 0.3; // 组件禁用态的透明度
- /* 文章场景相关 */
- $uni-color-title: #2C405A; // 文章标题颜色
- $uni-font-size-title:20px;
- $uni-color-subtitle: #555555; // 二级标题颜色
- $uni-font-size-subtitle:26px;
- $uni-color-paragraph: #3F536E; // 文章段落颜色
- $uni-font-size-paragraph:15px;
- page{
- padding-top: 0;
- // &:has(.u-navbar){
- // padding-top: 104px;
- // }
- }
- // @import url("@/static/css/flex.scss");
- .u-flex {
- display: flex;
- flex-direction: row;
- align-items: center;
- }
- .u-flex-wrap {
- flex-wrap: wrap;
- }
- .u-flex-nowrap {
- flex-wrap: nowrap;
- }
- .u-col-center {
- align-items: center;
- }
- .u-col-top {
- align-items: flex-start;
- }
- .u-col-bottom {
- align-items: flex-end;
- }
- .u-row-center {
- justify-content: center;
- }
- .u-row-left {
- justify-content: flex-start;
- }
- .u-row-right {
- justify-content: flex-end;
- }
- .u-row-between {
- justify-content: space-between;
- }
- .u-row-around {
- justify-content: space-around;
- }
- .u-text-left {
- text-align: left;
- }
- .u-text-center {
- text-align: center;
- }
- .u-text-right {
- text-align: right;
- }
- .u-flex-col {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: column;
- }
- // 定义flex等分
- @for $i from 0 through 12 {
- .u-flex-#{$i} {
- flex: $i;
- }
- }
- @mixin multi-ellipsis($line: 1) {
- @if $line <= 0 {
- $line: 1;
- }
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: $line;
- -webkit-box-orient: vertical;
- }
- .ellipsis-1 {
- @include multi-ellipsis(1);
- }
- .ellipsis-2 {
- @include multi-ellipsis(2);
- }
- .product{
- padding-bottom: 30rpx;
- padding-right: 20rpx;
- margin-bottom: 30rpx;
- border-bottom: 1px solid $uni-border-color;
- .text{
- flex: 1;
- margin-left: 50rpx;
- .name{
- height: 76rpx;
- font-size: 30rpx;
- font-weight: 600;
- color: #333;
- line-height: 38rpx;
- margin-bottom: 16rpx;
- }
- .price{
- color: $uni-text-color-red;
- }
- .price-num{
- font-size: 40rpx;
- font-weight: bold;
- margin-left: 2px;
- }
- .original-price{
-
- }
- .sales{
- &:not(:first-of-type){
- margin-left: 30rpx;
- }
- }
- .discount{
- padding: 4rpx 14rpx;
- border: 1px solid #FF3C3F;
- border-radius: 2px;
- color: #FF3C3F;
- margin-right: 50rpx;
- }
- .up{
- margin-bottom: 10rpx;
- }
- .down{
- font-size: 20rpx;
- }
- }
-
- }
- .product.small-product{
- .text{
- margin-left: 30rpx;
- .name{font-size: 26rpx}
- .price-num{font-size: 30rpx}
- .discount{margin-right: 5px}
- }
- }
- .icon-nav{
- margin-bottom: 45rpx;
- .u-image{
- margin-bottom: 15rpx;
- }
- .nav-item{
- text-align: center;
- font-size: 22rpx;
- color: #666;
- }
- }
- .half-product{
- &-item{
- background-color: #fff;
- margin-bottom: 30rpx;
- width: 48%;
- .down{
- padding: 20rpx;
- .name{
- font-size: 30rpx;
- line-height: 42rpx;
- color: #333;
- margin-bottom: 10rpx;
- }
- .price-num{font-size: 40rpx;margin-left: 10rpx}
- }
- }
- &-item:nth-child(even){
- margin-left: 10rpx;
- }
- }
- .product-list-v2{
- .product-wrap{
-
- }
- .product-v2{
- width: calc( (100% - 22rpx )/2 );
- margin-bottom: 22rpx;
- border: 1rpx solid #EEEEEE;
- box-sizing: border-box;
- .name{
- padding: 0 20rpx;
- height: 76rpx;
- font-size: 30rpx;
- font-weight: 400;
- color: #333333;
- line-height: 38rpx;
- margin-top: 20rpx;
- margin-bottom: 16rpx;
- }
- .price{
- padding: 0 20rpx;
- margin-bottom: 20rpx;
- font-size: 20rpx;
- font-weight: 600;
- color: #00A447;
- .price-num{
- font-size: 30rpx;
- font-weight: 600;
- margin-left: 5rpx;
- }
- .gray{
- margin-left: 21rpx;
- font-size: 22rpx;
- font-weight: 400;
- color: #999999;
- }
- }
- }
- }
- .tabs-wrap{
- margin-bottom: 30rpx;
- .more{
- font-size: 24rpx;
- color: #999;
- }
- }
- .news{
- .news-item{
- padding-bottom: 30rpx;
- margin-bottom: 30rpx;
- .text{
- flex: 1;
- margin-left: 20rpx;
- .til{
- font-size: 30rpx;
- color: #333;
- line-height: 1.5;
- font-weight: 600;
- margin-bottom: 17rpx;
- }
- // .time{
- // text-align: left;
- // color: #999;
- // font-size: 24rpx;
- // }
- .info{
- color: #999;
- font-size: 24rpx;
- }
- }
- }
- }
- .page-bg{
- position: absolute;
- z-index: -1;
- left: 0;
- top: 0;
- right: 0;
- .img{
- width: 100%;
- }
- }
- .activity-list{
- .activity-item{
- margin-bottom: 24rpx;
- .title{
- font-size: 30rpx;
- font-weight: 400;
- color: #333333;
- line-height: 42rpx;
- margin-bottom: 7rpx;
- margin-top: 20rpx;
- }
- .time{
- font-size: 26rpx;
- font-weight: 400;
- color: #999999;
- line-height: 37rpx;
- }
- }
- }
- .pickup-info{
- padding: 0 30rpx;
- .item{
- padding: 30rpx 0;
- font-size: 30rpx;
- font-weight: 400;
- color: #333333;
- line-height: 42rpx;
- &:not(:last-of-type){
- border-bottom: 1px solid #eee;
- }
- }
- }
|