微信小程序电商平台购物车交互功能
微信小程序电商平台购物车交互功能。包括选择,改变数量,删除
cart.wxml页面
cart.wxss 页面
/*头部 */.b_head{ width: 750rpx; height: 70rpx; line-height: 70rpx; font-size: 24rpx; border-bottom: 2rpx #ccc solid; padding: 0 20rpx; box-sizing: border-box; background: #F5F5F5;}.b_head .b_select{ width: 34rpx; height: 34rpx; float: left; margin-top:16rpx;}.b_head .ziying{ margin-left: 50rpx; color: #C62127;}.b_head .ruzhu .b_flag{ margin-left:10rpx; color: #C62127;}.b_head .ruzhu .bname{ margin-left:20rpx;}.touch-item { font-size: 14px; display: flex; justify-content: space-between; border-bottom:2rpx solid #ccc; width: 750rpx; overflow: hidden}.content { width: 750rpx; padding: 20rpx; line-height: 44rpx; margin-right:0; -webkit-transition: all 0.4s; transition: all 0.4s; -webkit-transform: translateX(180rpx); transform: translateX(180rpx); margin-left: -180rpx; box-sizing:border-box; font-size: 24rpx;}.content .select{ width: 34rpx; height: 34rpx; float: left; margin-top:80rpx;}.content .thumb{ width: 180rpx; height: 180rpx; margin-left:10rpx; float: left; }.content .name{ width: 460rpx; height: 84rpx; margin-left: 60rpx; line-height: 42rpx; margin-top:0rpx; overflow: hidden; padding: 10rpx 20rpx; box-sizing: border-box;}.content .attr{ width: 470rpx; line-height: 21rpx; margin-top:10rpx; padding: 10rpx 20rpx; margin-left:222rpx; color:#ccc;}.content .price{ width: 200rpx; height: 22rpx; line-height: 22rpx; margin-top:10rpx; color: #C62127; float: left; padding: 10rpx 20rpx; box-sizing: border-box;}.del { background-color: #C62127; width: 120rpx; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; -webkit-transform: translateX(180rpx); transform: translateX(180rpx); -webkit-transition: all 0.4s; transition: all 0.4s;}.touch-move-active .content,.touch-move-active .del { -webkit-transform: translateX(0); transform: translateX(0);}/*购买 */.content .buy_num { margin-top:10rpx; margin-bottom: 10rpx; font-size: 24rpx; float: left;}.content .buy_num .font_num{ margin-left: 20rpx;}/*主容器*/.content .buy_num .stepper { width: 200rpx; height: 52rpx; /*给主容器设一个边框*/ border: 2rpx solid #ccc; border-radius: 3px TAG标签: 微信小程序微信电商平台声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。

