index.wxml 2.1 KB

1234567891011121314151617181920212223242526272829303132
  1. <!-- components/diy-myfunction/index.wxml -->
  2. <block wx:if="{{style.styleType == 'one'}}">
  3. <view style="width:{{style.width}}%;margin:{{style.areaMargin.top*2}}rpx {{style.areaMargin.right*2}}rpx {{style.areaMargin.bottom*2}}rpx {{style.areaMargin.left*2}}rpx;padding:{{style.padding.top*2}}rpx {{style.padding.right*2}}rpx {{style.padding.bottom*2}}rpx {{style.padding.left*2}}rpx;background:{{style.backgroundColor}};">
  4. <block wx:for="{{list}}" wx:key="index">
  5. <block wx:if="{{item.switch == true}}" wx:key="index">
  6. <div class="box" bind:tap="goNovaURL" data-url="{{item.url}}">
  7. <div class="box-title">
  8. <image wx:if="{{item.showIcon == true}}" src="{{item.backgroundimg}}" class="icon-img" style="width:{{style.iconWidth*2}}rpx;height:{{style.iconHeight*2}}rpx" />
  9. <div class="functionname" style="font-size:{{style.fontSize*2}}rpx">
  10. {{item.name}}
  11. </div>
  12. </div>
  13. <van-icon name="arrow" />
  14. </div>
  15. </block>
  16. </block>
  17. </view>
  18. </block>
  19. <block wx:if="{{style.styleType == 'two'}}">
  20. <div class="myfunction-sudoku" style="width:{{style.width}}%;margin:{{style.areaMargin.top*2}}rpx {{style.areaMargin.right*2}}rpx {{style.areaMargin.bottom*2}}rpx {{style.areaMargin.left*2}}rpx;padding:{{style.padding.top*2}}rpx {{style.padding.right*2}}rpx {{style.padding.bottom*2}}rpx {{style.padding.left*2}}rpx;background:{{style.backgroundColor}};">
  21. <block wx:for="{{list}}" wx:key="index">
  22. <div wx:if="{{item.switch == true}}" wx:key="index">
  23. <div class="sudoku-box" bind:tap="goNovaURL" data-url="">
  24. <image class="sudoku-img" src="{{item.backgroundimg}}" style="width:{{style.iconWidth*2}}rpx;height:{{style.iconHeight*2}}rpx" />
  25. <div class="sudoku-name" style="font-size:{{style.fontSize*2}}rpx">
  26. {{item.name}}
  27. </div>
  28. </div>
  29. </div>
  30. </block>
  31. </div>
  32. </block>