/** * 这里是uni-app内置的常用样式变量 * * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App * */ /** * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 * * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 */ /* 颜色变量 */ /* 行为相关颜色 */ /* 文字基本颜色 */ /* 背景颜色 */ /* 边框颜色 */ /* 尺寸变量 */ /* 文字尺寸 */ /* 图片尺寸 */ /* Border Radius */ /* 水平间距 */ /* 垂直间距 */ /* 透明度 */ /* 文章场景相关 */ /*自定义主题色 */ .like-title[data-v-68f2157a] { display: flex; align-items: center; justify-content: center; padding: 0.9375rem 0; } .like-title uni-image[data-v-68f2157a] { width: 1.15625rem; height: 1.15625rem; margin-right: 0.625rem; } .like-title .text[data-v-68f2157a] { font-size: 1.125rem; font-family: PingFang SC; font-weight: bold; color: #111111; line-height: 1; } .like-list[data-v-68f2157a] { display: flex; flex-wrap: wrap; } .like-list .item[data-v-68f2157a] { margin-right: 0.625rem; margin-bottom: 0.625rem; width: 10.78125rem; background: #FFFFFF; box-shadow: 0px 0px 0.3125rem 0.125rem rgba(199, 199, 199, 0.22); border-radius: 0.625rem; overflow: hidden; } .like-list .item[data-v-68f2157a]:nth-child(2n) { margin-right: 0; } .like-list .item .img-box[data-v-68f2157a] { width: 100%; height: 10.4375rem; } .like-list .item .img-box uni-image[data-v-68f2157a] { width: 100%; height: 100%; } .like-list .item .info-box[data-v-68f2157a] { box-sizing: border-box; height: 5.6875rem; padding: 0.625rem 0.625rem 0.9375rem; display: flex; flex-direction: column; justify-content: space-between; } .like-list .item .info-box .title[data-v-68f2157a] { font-size: 0.8125rem; font-family: PingFang SC; font-weight: 500; color: #111111; line-height: 1.25rem; } .like-list .item .info-box .price-box[data-v-68f2157a] { display: flex; align-items: flex-end; } .like-list .item .info-box .price-box .now[data-v-68f2157a] { display: flex; align-items: flex-end; margin-right: 0.625rem; } .like-list .item .info-box .price-box .now .unit[data-v-68f2157a] { font-size: 0.75rem; font-family: PingFang SC; font-weight: 500; color: #FF6633; line-height: 1.2; margin-right: 0.125rem; } .like-list .item .info-box .price-box .now .num[data-v-68f2157a] { font-size: 1.125rem; font-family: PingFang SC; font-weight: bold; color: #FF6633; line-height: 1; } .like-list .item .info-box .price-box .old[data-v-68f2157a] { font-size: 0.8125rem; font-family: PingFang SC; font-weight: 500; text-decoration: line-through; color: #BBBBBB; line-height: 1.1; } /** * 这里是uni-app内置的常用样式变量 * * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App * */ /** * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 * * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 */ /* 颜色变量 */ /* 行为相关颜色 */ /* 文字基本颜色 */ /* 背景颜色 */ /* 边框颜色 */ /* 尺寸变量 */ /* 文字尺寸 */ /* 图片尺寸 */ /* Border Radius */ /* 水平间距 */ /* 垂直间距 */ /* 透明度 */ /* 文章场景相关 */ /*自定义主题色 */ body { height: 100%; } .content { height: 100%; padding: 0.625rem; } .content .shopbox { background: #FFFFFF; border-radius: 0.5rem; margin-bottom: 0.625rem; } .content .shopbox-name { padding: 0.9375rem 0.9375rem 0 0.9375rem; font-family: PingFang SC, PingFang SC; font-weight: 400; font-size: 0.9375rem; color: #111; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .content .goods-list .item { box-sizing: border-box; height: 6.90625rem; background: #FFFFFF; border-radius: 0.5rem; margin-bottom: 0.625rem; padding: 0.9375rem; display: flex; align-items: center; } .content .goods-list .item:last-child { margin-bottom: 0; } .content .goods-list .item .goods-img { width: 5rem; height: 5rem; background: #FFFFFF; margin-right: 0.9375rem; flex-shrink: 0; } .content .goods-list .item .info-box { height: 5rem; display: flex; flex-direction: column; justify-content: space-between; width: calc(100% - 7.96875rem); } .content .goods-list .item .info-box .title-box { width: 100%; display: flex; align-items: center; } .content .goods-list .item .info-box .title-box .tag { padding: 0 0.1875rem; height: 0.9375rem; line-height: 0.9375rem; font-size: 0.6875rem; font-family: PingFang SC; font-weight: bold; color: #FFFFFF; background: linear-gradient(90deg, #66b2ef 0%, #0bb3f2 100%); border-radius: 0.125rem; margin-right: 0.3125rem; flex-shrink: 0; } .content .goods-list .item .info-box .title-box .title { flex: 1; font-size: 0.875rem; font-family: PingFang SC; font-weight: 500; color: #111111; line-height: 1; } .content .goods-list .item .info-box .intro { font-size: 0.75rem; font-family: PingFang SC; font-weight: 500; color: #999999; margin-top: 0.6875rem; line-height: 1; } .content .goods-list .item .info-box .price-num { display: flex; align-items: center; justify-content: space-between; } .content .goods-list .item .info-box .price-num .price { display: flex; align-items: flex-end; } .content .goods-list .item .info-box .price-num .price .unit { font-size: 0.75rem; font-family: PingFang SC; font-weight: 500; color: #FF6633; line-height: 1.2; margin-right: 0.125rem; } .content .goods-list .item .info-box .price-num .price .text { font-size: 1rem; font-family: PingFang SC; font-weight: bold; color: #FF6633; line-height: 1; } .content .goods-list .item .info-box .price-num .num-box { display: flex; align-items: center; } .content .goods-list .item .info-box .price-num .num-box .img-box { width: 1.875rem; height: 1.875rem; border: 1px solid #dddddd; display: flex; align-items: center; justify-content: center; } .content .goods-list .item .info-box .price-num .num-box .img-box uni-image { width: 0.78125rem; height: 0.78125rem; } .content .goods-list .item .info-box .price-num .num-box uni-input { width: 1.875rem; height: 1.875rem; line-height: 1.875rem; font-size: 0.875rem; font-family: PingFang SC; font-weight: 500; color: #111111; border-top: 1px solid #dddddd; border-bottom: 1px solid #dddddd; text-align: center; } .content .like-product { padding-bottom: 3.75rem; } .content .btn-foot { box-sizing: border-box; width: 100%; height: 3.78125rem; background: #FFFFFF; padding: 0.5rem 0.9375rem 0.5rem 1.875rem; display: flex; align-items: center; justify-content: space-between; position: fixed; left: 0; bottom: 0; z-index: 99; } .content .btn-foot .left { display: flex; align-items: center; } .content .btn-foot .left .text { margin-left: 0.4375rem; font-size: 0.875rem; font-family: PingFang SC; font-weight: 500; color: #666666; line-height: 1; } .content .btn-foot .right { display: flex; align-items: center; } .content .btn-foot .right .total { display: flex; align-items: flex-end; margin-right: 1.125rem; } .content .btn-foot .right .total .label { font-size: 0.8125rem; font-family: PingFang SC; font-weight: 500; color: #999999; line-height: 1.5; } .content .btn-foot .right .total .price { display: flex; align-items: flex-end; } .content .btn-foot .right .total .price .unit { font-size: 1rem; font-family: PingFang SC; font-weight: bold; color: #FF6633; line-height: 1.2; margin-right: 0.3125rem; } .content .btn-foot .right .total .price .num { font-size: 0.9375rem; font-family: PingFang SC; font-weight: bold; color: #FF6633; line-height: 1; } .content .btn-foot .right .btn { width: 6.25rem; height: 2.75rem; line-height: 2.75rem; text-align: center; font-size: 0.9375rem; font-family: PingFang SC; font-weight: bold; color: #FFFFFF; background: #0bb3f2; border-radius: 1.375rem; }