/*外部容器*/
.container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
}
/*整体列表*/
.carts-list {
display: flex;
flex-direction: column;
}
/*每行单元格*/
.carts-item {
display: flex;
flex-direction: row;
height:220rpx;
/*width属性解决标题文字太短而缩略图偏移*/
width:100%;
align-items: center;
">white;
margin-bottom: 1px;
}
/* 对号图标 */
.carts-choice{
margin-right: 20rpx;
margin-left: 24rpx;
}
/*左部图片*/
.carts-image {
width:160rpx;
height:160rpx;
margin-right: 20rpx;
}
.carts-image image{
width: 100%;
height: 100%;
}
/*右上部分标题*/
.carts-title {
margin: 10rpx;
font-size: 28rpx;
}
/*右下部分价格与数量*/
.carts-subtitle {
font-size: 25rpx;
color:#ff3300;
margin: 20rpx 0 20rpx;
}
/*加减号控制数量*/
.stepper{
display: flex;
border-radius: 5px;
text-align: center;
}
.stepper text{
display: block;
width: 50rpx;
height: 50rpx;
border:1px solid #ddd;
line-height: 50rpx;
color: #cccccc;
}
.stepper text.normal{
border:1px solid rgba(221,221,221,1);
}
.stepper text.disabled{
border:1px solid rgba(221,221,221,0.3);
}
.stepper .number{
width: 80rpx;
font-size: 28rpx;
height: 50rpx;
border: 1px solid #ddd;
line-height: 50rpx;
color: #333333;
}
.stepper text:first-child{
border-right: none;
border-top-left-radius: 3px;
border-bottom-left-radius: 3px;
}
.stepper text:last-child{
border-left: none;
border-top-right-radius: 3px;
border-bottom-right-radius: 3px;
}
.carts-list .delete{
flex: 1;
height: 100%;
position: relative;
}
.delete-img{
width: 32rpx;
height: 32rpx;
position: absolute;
right: 24rpx;
bottom: 20rpx;
}
.delete-img image{
width: 100%;
height: 100%;
vertical-align: top;
}
/* 全选和区结算按钮 ********************************/
/*底部按钮*/
.carts-footer {
width: 100%;
height: 120rpx;
display: flex;
/* flex-direction: row; */
/* justify-content: space-between; */
align-items: center;
position: fixed;
left: 0;
bottom: 0;
">white;
}
/*复选框*/
.carts-footer icon {
margin-left: 20rpx;
margin-right: 15rpx;
}
/*全选字样*/
.carts-footer text {
font-size: 30rpx;
margin-left: 8rpx;
line-height: 10rpx;
}
.all-chioce{
height: 100%;
border-top: 1px solid #dddddd;
box-sizing: border-box;
flex: 1;
display: flex;
justify-content: space-between;
}
.footer-left{
width: 190rpx;
display: flex;
align-items: center;
}
.footer-right{
padding-right: 25rpx;
flex: 1;
direction: rtl;
}
.right-text{
line-height: 80rpx;
}
.right-text text:last-child{
color: #ff3300;
}
/* .right-text{ */
/* margin-bottom: 10rpx; */
/* } */
.footer-right .free{
font-size: 20rpx;
color:#cccccc;
}
/*立即结算按钮*/
.carts-footer .button {
line-height: 120rpx;
text-align: center;
width:260rpx;
height: 120rpx;
">#ff3300;
color: white;
font-size: 36rpx;
border-radius: 0;
border: 0;
}
/* 全选和区结算按钮 ********************************/
/*复选框样式*/
/* .carts-list icon {
margin-top: 60rpx;
margin-right: 20rpx;
} */
- 微信 小程序组件 加入购物车全套 one wxml
<!--pages/shop/shop.wxml--> <view wx:if="{{hasList}}"> <view class="co ...
- 微信 小程序组件 加入购物车全套 one js
// pages/shop/shop.js Page({ /** * 页面的初始数据 */ data: { carts: [ { teaname: '冠军乌龙茶-150g', image: '../. ...
- 微信小程序组件设计规范
微信小程序组件设计规范 组件化开发的思想贯穿着我开发设计过程的始终.在过去很长一段时间里,我都受益于这种思想. 组件可复用 - 减少了重复代码量 组件做为抽离的功能单元 - 方便维护 组件作为temp ...
- 微信小程序组件学习 -- 注册页面
微信小程序组件使用手册地址: 1. 百度搜索"微信公众平台",扫码登录之后,点击帮助文档里面的普通小程序. 2. 接着选择"开发"-->"组件& ...
- 微信小程序开发:学习笔记[3]——WXSS样式
微信小程序开发:学习笔记[3]——WXSS样式 快速开始 介绍 WXSS(WeiXin Style Sheets)是一套用于小程序的样式语言,用于描述WXML的组件样式,也就是视觉上的效果. WXSS ...
- 【腾讯Bugly干货分享】打造“微信小程序”组件化开发框架
本文来自于腾讯Bugly公众号(weixinBugly),未经作者同意,请勿转载,原文地址:http://mp.weixin.qq.com/s/2nQzsuqq7Avgs8wsRizUhw 作者:Gc ...
- 微信小程序(组件demo)以及预览方法:(小程序交流群:604788754)
1. 获取微信小程序的 AppID 登录 https://mp.weixin.qq.com ,就可以在网站的"设置"-"开发者设置"中,查看到微信小程序的 Ap ...
- 详解封装微信小程序组件及小程序坑(附带解决方案)
一.序 上一篇介绍了如何从零开发微信小程序,博客园审核变智障了,每次代码都不算篇幅,好好滴一篇原创,不到3分钟从首页移出来了.这篇介绍一下组件封装和我的踩坑历程. 二.封装微信小程序可复用组件 首先模 ...
- 微信小程序组件通信
父子通信 在子组件的对应js中 properties:{ prop名字:数据类型, prop名字:{ type:数据类型, value:默认值 } } 在父组件的wxml模板中找到子组件标签 < ...
- Node.js实战(四)之调试Node.js
当项目逐渐扩大以后,功能越来越多,这时有的时候需要增加或者修改,同时优化某些功能,就有可能出问题了.针对于线上Linux环境我们应该如何调试项目呢? 别怕,Node.js已经为我们考虑到了. 通过 n ...
- JAVA框架 Spring 事务
一.我们之前在hibernate的时候,需要直接写事务,需要绑定当前线程保证获取同一个连接,虽然hibernate的帮我们封装绑定当前现成的操作,但是需要我们手动的去开启和关闭事务. 而spring帮 ...
- nodejs 模板引擎ejs的使用
1.test.ejs文件 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> ...
- Javascript跨浏览器的事件对象
一.跨浏览器的事件对象 var EventUtil = { ///添加事件 addHandler: function (element, type, handler) { if (element.ad ...
- POJ1127 Jack Straws
给你一些线段,求出哪些线段是相连的,哪些是不相连的.相连包括间接相连,即这两条线段本身不直接相连,而是通过其它线段的连接而间接相连. 线段相交+并查集 这里主要说如何判断线段相交:快速排斥试验+跨立试 ...
- P1821 [USACO07FEB]银牛派对Silver Cow Party
题目描述 One cow from each of N farms (1 ≤ N ≤ 1000) conveniently numbered 1..N is going to attend the b ...
- VMware 克隆多台Linux机器并配置IP
1.查看并分配虚拟网络 我们首先要知道 VMware 三种网络模式的区别. ①.Bridged(桥接模式):就是将主机网卡与虚拟机虚拟的网卡利用虚拟网桥进行通信.在桥接的作用下,类似于把物理主机虚拟为 ...
- R语言--输入输出
基本输入输出 输入: readline, edit, fix 输出: print, cat 输出重定向 sink #基本输入输出 x=readline('请输入:') #读取输入,一行为一个字符串 x ...
- Scala _ 下划线
1.引入包中的全部方法 import math._ //引入包中所有方法,与java中的*类似 2.表示集合元素 val a = (1 to 10).filter(_%2==0).map(_*2) / ...
- MiZ702学习笔记9——XADC采集片上数据PS版
这次借助zynq的内嵌的XADC来采集zynq内部的一些参数: •VCCINT:内部PL核心电压 •VCCAUX:辅助PL电压 •VREFP:XADC正参考电压 •VREFN:XADC负参考电压 •V ...