/* pages/cart/cart.wxss */ @import "./cart.skeleton.wxss"; page { background-color: #F8F8F8; } .checkbox { font-size: 30rpx; } .goodsInfo image { width: 180rpx; height: 180rpx; } .goods { flex: 1; min-height: 180rpx; padding-left: 24rpx; display: flex; flex-flow: column; justify-content: space-between; } .goods .name { font-weight: 500; font-size: 24rpx; color: #202020; height: 62rpx; } .goods .brief { flex: 1; margin: 10rpx 0; font-weight: 400; font-size: 20rpx; color: #424242; height: 56rpx; } .priceTool { display: flex; flex-wrap: nowrap; flex-flow: row; align-items: center; justify-content: space-between; } .priceTool>view:first-child { font-weight: bold; font-size: 32rpx; color: #202020; line-height: 1.2; } .number { flex: 1; text-align: right; } .number view:first-child { flex: auto; display: inline-block; /* width: 38rpx; height: 38rpx; border-radius: 50%; border: 1px solid #373737; text-align: center; */ font-size: 38rpx; vertical-align: middle; margin-right: 10rpx; } .number input { display: inline-block; width: 60rpx; height: 38rpx; vertical-align: middle; background: #F8F8F8; font-size: 25rpx; padding: 0 10rpx; box-sizing: border-box; text-align: center; line-height: 38rpx; font-size: 20rpx; color: #000000; } .number view:last-child { display: inline-block; /* width: 38rpx; */ /* height: 38rpx; border-radius: 50%; */ /* border: 1px solid #373737; */ /* text-align: center; */ line-height: 38rpx; font-size: 38rpx; vertical-align: middle; margin-left: 10rpx; } .switch-icon { font-size: 30rpx; color: #00BC8A; line-height: 180rpx; padding: 0 24rpx; } .toolBar { position: fixed; left: 0; bottom: 142rpx; background: #FFFFFF; width: 100%; height: 128rpx; z-index: 999; padding: 24rpx; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; } .toolBar .switch-icon { line-height: 88rpx; font-size: 24rpx; color: #000000; } .toolBar .switch-icon::before { color: #00BC8A; margin-right: 10rpx; line-height: 88rpx; font-size: 30rpx; } .priceInfo { flex: 1; text-align: right; font-size: 24rpx; color: #000000; line-height: 88rpx; padding: 0 28rpx; } .priceInfo view { display: inline-block; font-weight: bold; font-size: 28rpx; color: #D1222C; } .nextBtn { width: 200rpx; height: 88rpx; font-weight: 500; font-size: 36rpx; text-align: center; line-height: 88rpx; color: #FFFFFF; background: #00BC8A; border-radius: 16rpx; } .topToolBar { position: sticky; top: 0; background: #FFFFFF; width: 100%; height: 60rpx; z-index: 999; padding: 24rpx; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; border-bottom: 1rpx solid #EEEEEE; } .topToolBar { padding-left: 0; } .topToolBar .priceInfo { flex: 1; text-align: right; font-size: 24rpx; color: #000000; line-height: 60rpx; padding: 0 28rpx; } .toolBar .switch-icon, .topToolBar .switch-icon { line-height: 60rpx; font-size: 24rpx; color: #b6b6b6; } .toolBar .switch-icon, .topToolBar .switch-icon::before { color: #b6b6b6; margin-right: 10rpx; line-height: 60rpx; font-size: 30rpx; } .topToolBar .icon-shanchu::before { color: #b6b6b6; line-height: 60rpx; font-size: 36rpx; } .toolBar .active, .topToolBar .active { color: #000000; } .topToolBar .switch-icon.active::before { color: #00BC8A; } .topToolBar .icon-shanchu.active::before { color: #000000; } .goodsInfo { display: flex; justify-content: space-between; width: 100%; overflow: hidden; /* background: rgba(255, 255, 255, 1); */ opacity: 1; box-sizing: border-box; display: flex; flex-flow: row; flex-wrap: nowrap; align-items: center; justify-content: space-between; background: #FFFFFF; padding-left: 0; } .content { width: 100%; margin-right: 0; display: flex; flex-flow: row; flex-wrap: nowrap; align-items: center; justify-content: space-between; padding: 50rpx 24rpx; padding-left: 0; box-sizing: border-box; /* -webkit-transition: all 0.4s; transition: all 0.4s; */ /* -webkit-transform: translateX(120px); */ /* transform: translateX(120px); */ /* margin-left: -120px; */ } .del { width: 0; display: flex; flex-flow: column; align-items: center; justify-content: space-between; color: #fff; -webkit-transition: all 0.4s; transition: all 0.4s; font-size: 28rpx; -webkit-transform: translateX(180px); transform: translateX(180px); height: 220rpx; } .del .delete { background: red; display: flex; align-items: center; justify-content: center; width: 100rpx; height: 100%; border-top-right-radius: 15rpx; border-bottom-right-radius: 15rpx; } .del .untying { background: orange; display: flex; align-items: center; justify-content: center; width: 100rpx; height: 100%; } .touch-move-active .content, .touch-move-active .del { -webkit-transform: translateX(0); transform: translateX(0); } .touch-move-active .del { width: 100rpx; }