v2.0.2 (单位全局使用rpx)

v2.0.2 (单位全局使用rpx)
This commit is contained in:
Weilanwl
2018-12-27 23:59:12 +08:00
parent 631054af7b
commit ec50ad8a7b
15 changed files with 5965 additions and 119 deletions

View File

@@ -97,8 +97,8 @@
<switch class='red sm' checked/>
</form-group>
<form-group>
<switch class='switch-sex' checked/>
<view class='title'>定义图标</view>
<switch class='switch-sex sm' checked/>
</form-group>
<form-group>
<view class='title'>方形开关</view>

View File

@@ -46,7 +46,6 @@ Page({
// 初始化towerSwiper
towerSwiper(name) {
let list = this.data[name];
for (let i = 0; i < list.length; i++) {
list[i].zIndex = parseInt(list.length / 2) + 1 - Math.abs(i - parseInt(list.length / 2))
list[i].mLeft = i - parseInt(list.length / 2)
@@ -99,6 +98,5 @@ Page({
towerList: list
})
}
console.log(list);
},
});