| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316 |
- /* 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;
- }
|