cube.wxml 454 B

123456789
  1. <template name="cube">
  2. <view class="rubik-cube" style="{{'background:'+(item.backgroundColor)+';'}}">
  3. <block wx:for="{{item.list}}" wx:for-item="cubeItem" wx:for-index="idx" wx:key="idx">
  4. <view class="item {{item.selectedTemplate}}" bindtap="goDiysliderUrl" data-link="{{cubeItem.link}}" style="padding:{{item.imageGap}}rpx">
  5. <image src="{{cubeItem.imageUrl}}" mode="widthFix"></image>
  6. </view>
  7. </block>
  8. </view>
  9. </template>