滑动模块组件

来源:互联网 发布:16年网络流行歌曲 编辑:程序博客网 时间:2024/05/12 15:47



/* 滑动 */.slide{  margin-top:20rpx;  display: inline-block;  padding:10rpx 0 0 50rpx;}.slide image{  width:190rpx;height:190rpx;  border-radius: 50%;}.text_zd{  text-align: center;}.text_main{  font-size: 28rpx;  color: #B5B5B5}


<block wx:if="{{list_data.q2}}">  <view>    <view class='title'>明星红娘      <text bindtap='to_arr' id='1'>查看全部 ></text>    </view>    <scroll-view scroll-x style="width:100%; white-space: nowrap;">      <block wx:for="{{list_data.q2}}" wx:key="">        <view class='slide'>          <navigator url="../detail/detail?productId={{item.id}}">            <image src="{{img + item.headimg}}" mode="aspectFill" />          </navigator>          <view class='text_zd'>{{item.name}}</view>          <view class='text_zd text_main'>{{item.qinaming}}</view>        </view>      </block>    </scroll-view>  </view></block>