左右滑动菜单

   <scroll-view scroll-x="true" style=" white-space: nowrap; display: flex" >   
          <view class='picture certificate' wx:for="{{works}}"  wx:for-index='ind' wx:for-item="item">  //for循环  works为循环的数组  ind为下标   
            <image  src="{{imgurlsrc}}{{item.filePath}}{{ys}}" data-uuid='{{item.uuid}}' bindtap='toworkslist' ></image> //data-uuid自定义属性  
          </view>
  </scroll-view>

 

posted @ 2018-11-01 10:33  Jinsuo  阅读(161)  评论(0)    收藏  举报