/** * 这里是uni-app内置的常用样式变量 * * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App * */ /** * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 * * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 */ /* 颜色变量 */ /* 行为相关颜色 */ /* 文字基本颜色 */ /* 背景颜色 */ /* 边框颜色 */ /* 尺寸变量 */ /* 文字尺寸 */ /* 图片尺寸 */ /* Border Radius */ /* 水平间距 */ /* 垂直间距 */ /* 透明度 */ /* 文章场景相关 */ page { height: 100%; overflow: hidden; } .viewport { height: 100%; display: flex; flex-direction: column; background-color: #fff; } .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: 20%; height: 6rpx; padding: 0 50rpx; background-color: #4095e5; transition: all 0.4s; } .swiper { background-color: #4095e5; } .orders .card { min-height: 100rpx; padding: 20rpx; margin: 20rpx 20rpx 0; border-radius: 10rpx; background-color: #fff; } .orders .card:last-child { padding-bottom: 40rpx; } .orders .status { display: flex; align-items: center; justify-content: space-between; font-size: 28rpx; color: #999; margin-bottom: 15rpx; } .orders .status .title { color: #343434; font-weight: 700; flex: 1; } .orders .status .primary { color: #ff9240; } .orders .status .icon-delete { line-height: 1; margin-left: 10rpx; padding-left: 10rpx; border-left: 1rpx solid #e3e3e3; } .orders .goods { display: flex; margin-bottom: 20rpx; } .orders .goods .cover { width: 170rpx; height: 170rpx; margin-right: 20rpx; border-radius: 10rpx; overflow: hidden; position: relative; } .orders .goods .quantity { position: absolute; bottom: 0; right: 0; line-height: 1; padding: 6rpx 4rpx 6rpx 8rpx; font-size: 24rpx; color: #fff; border-radius: 10rpx 0 0 0; background-color: rgba(0, 0, 0, 0.6); } .orders .goods .meta { flex: 1; display: flex; flex-direction: column; justify-content: center; } .orders .goods .name { height: 80rpx; font-size: 26rpx; color: #444; } .orders .goods .type { line-height: 1.8; padding: 0 15rpx; margin-top: 10rpx; font-size: 24rpx; align-self: flex-start; border-radius: 4rpx; color: #888; background-color: #f7f7f8; } .orders .goods .more { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 22rpx; color: #333; } .orders .action { display: flex; justify-content: flex-end; align-items: center; padding-top: 20rpx; } .orders .action .button { width: 180rpx; height: 60rpx; display: flex; justify-content: center; align-items: center; margin-left: 20rpx; border-radius: 60rpx; border: 1rpx solid #ccc; font-size: 26rpx; color: #444; } .orders .action .secondary { color: #4095e5; border-color: #4095e5; } .orders .action .primary { color: #fff; background-color: #4095e5; } .orders .loading-text { text-align: center; font-size: 28rpx; color: #666; padding: 20rpx 0; } image { width: 100%; height: 100%; border-radius: 20px; } .status-btn { display: flex; flex-direction: row; align-items: center; justify-content: center; height: 92rpx; margin: 30rpx; background-color: #007AFF; } .example-body { display: block; padding: 15px; flex-direction: row; } .tab-menu { display: flex; justify-content: space-around; padding: 10px 0; background-color: #f5f5f5; } .tab-item { padding: 10px; cursor: pointer; } .tab-item.active { color: #007aff; font-weight: bold; }