没有合适的资源?快使用搜索试试~ 我知道了~
首页微信小程序仿微信运动步数排行(交互)
资源详情
资源评论
资源推荐

微信小程序仿微信运动步数排行微信小程序仿微信运动步数排行(交互交互)
主要介绍了微信小程序仿微信运动步数排行(交互),小编觉得挺不错的,现在分享给大家,也给大家做个参考。
一起跟随小编过来看看吧
本文介绍了微信小程序仿微信运动步数排行(交互),分享给大家,也给自己留个笔记,废话不多说了,具体如下:
效果图如下:
wxml:
<view class="item-box">
<view class="items">
<view wx:for="{{list}}" wx:key="{{index}}" class="item">
<view bindtouchstart="touchS" bindtouchmove="touchM" bindtouchend="touchE" data-index="{{index}}" style="{{item.txtStyle}}" class="inner txt">
<image class="item-icon" mode="widthFix" src="{{item.url}}"></image>
<i> {{item.name}}</i>
<span class="item-data">
<i class="rankpace"> {{item.steps}}</i>
</span>
</view>
</view>
</view>
</view>
wxss:
/* pages/leftSwiperDel/index.wxss */
view{
box-sizing: border-box;
}
.item-box{
width: 700rpx;
margin: 0 auto;
padding:40rpx 0;
}
.items{
width: 100%;
}
.item{
position: relative;
border-top: 2rpx solid #eee;
height: 120rpx;
line-height: 120rpx;
overflow: hidden;
}
.item:last-child{
border-bottom: 2rpx solid #eee;
}
.inner{
position: absolute;
top:0;
}
.inner.txt{
background-color: #fff;
width: 100%;
z-index: 5;
padding:0 10rpx;
transition: left 0.2s ease-in-out;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
.inner.del{
background-color: #e64340;
width: 180rpx;text-align: center;
z-index: 4;
right: 0;
color: #fff
}
.item-icon{
width: 64rpx;
height: 64rpx;












安全验证
文档复制为VIP权益,开通VIP直接复制

评论0