/** * 这里是uni-app内置的常用样式变量 * * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App * */ /** * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 * * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 */ /* 颜色变量 */ /* 行为相关颜色 */ /* 文字基本颜色 */ /* 背景颜色 */ /* 边框颜色 */ /* 尺寸变量 */ /* 文字尺寸 */ /* 图片尺寸 */ /* Border Radius */ /* 水平间距 */ /* 垂直间距 */ /* 透明度 */ /* 文章场景相关 */ body { display: flex; flex-direction: column; height: 100%; overflow: hidden; background-color: #f4f4f4; } .symbol::before { content: "¥"; font-size: 80%; margin-right: 0.15625rem; } .shipment { margin: 0.625rem; padding: 0.9375rem 0.9375rem 0.9375rem 2.625rem; font-size: 0.8125rem; border-radius: 0.3125rem; background: url(https://pcapi-xiaotuxian-front-devtest.itheima.net/miniapp/images/locate.png) 0.625rem center/1.5625rem no-repeat #fff; position: relative; } .shipment .icon { font-size: 1.125rem; color: #333; transform: translateY(-50%); position: absolute; top: 50%; right: 0.625rem; } .shipment .user { color: #333; margin-bottom: 0.15625rem; } .shipment .address { color: #666; } .goods { margin: 0.625rem; padding: 0 0.625rem; border-radius: 0.3125rem; background-color: #fff; } .goods .item { display: flex; padding: 0.9375rem 0; border-top: 0.03125rem solid #eee; } .goods .item:first-child { border-top: none; } .goods .item .picture { width: 5.3125rem; height: 5.3125rem; border-radius: 0.3125rem; margin-right: 0.625rem; } .goods .item .meta { flex: 1; display: flex; flex-direction: column; justify-content: center; position: relative; } .goods .item .name { height: 2.5rem; font-size: 0.8125rem; color: #444; } .goods .item .attrs { line-height: 1.8; padding: 0 0.46875rem; margin-top: 0.1875rem; font-size: 0.75rem; align-self: flex-start; border-radius: 0.125rem; color: #888; background-color: #f7f7f8; } .goods .item .prices { display: flex; align-items: baseline; margin-top: 0.1875rem; font-size: 0.875rem; } .goods .item .prices .pay-price { margin-right: 0.3125rem; color: #cf4444; } .goods .item .prices .price { font-size: 0.75rem; color: #999; text-decoration: line-through; } .goods .item .count { position: absolute; bottom: 0; right: 0; font-size: 0.8125rem; color: #444; } .related { margin: 0.625rem; padding: 0 0.625rem; border-radius: 0.3125rem; background-color: #fff; } .related .item { display: flex; justify-content: space-between; align-items: center; min-height: 2.5rem; font-size: 0.8125rem; color: #333; } .related .input { flex: 1; text-align: right; margin: 0.625rem 0; padding-right: 0.625rem; font-size: 0.8125rem; color: #999; } .related .item .text { width: 3.90625rem; } .related .picker { color: #666; } .related .picker::after { content: "\e6c2"; } /* 结算清单 */ .settlement { margin: 0.625rem; padding: 0 0.625rem; border-radius: 0.3125rem; background-color: #fff; } .settlement .item { display: flex; align-items: center; justify-content: space-between; height: 2.5rem; font-size: 0.8125rem; color: #333; } .settlement .danger { color: #cf4444; } /* 吸底工具栏 */ .toolbar { position: fixed; left: 0; right: 0; bottom: calc(var(--window-bottom)); z-index: 1; background-color: #fff; height: 3.125rem; padding: 0 0.625rem; border-top: 0.03125rem solid #eaeaea; display: flex; justify-content: space-between; align-items: center; box-sizing: content-box; } .toolbar .total-pay { font-size: 1.25rem; color: #cf4444; } .toolbar .total-pay .decimal { font-size: 75%; } .toolbar .button { width: 6.875rem; text-align: center; line-height: 2.25rem; font-size: 0.8125rem; color: #fff; border-radius: 2.25rem; background-color: #27ba9b; } .toolbar .disabled { opacity: 0.6; }