<template name="fanTemplate">
  <view class="fan">
    <view class="shanxing" style="width:{{FanSize}}rpx;height:{{FanSize}}rpx;background-color:{{Color2}};">
      <view class="sx1" style="clip: rect(0, {{FanSize/2}}rpx, {{FanSize}}rpx, 0);transform: rotate({{Angle1}}deg);background-color:{{Color1}};">
      </view>
      <view class="sx2" style="clip: rect(0, {{FanSize/2}}rpx, {{FanSize}}rpx, 0);transform: rotate({{Angle2}}deg);{{BGColor}}">
      </view>
    </view>
    <view class="shanxingSmall" style="width:{{FanSize-FanSize/FanScale}}rpx;height:{{FanSize-FanSize/FanScale}}rpx;line-height:{{FanSize-FanSize/FanScale}}rpx;left:{{FanSize/(FanScale*2)}}rpx;top:{{FanSize/(FanScale*2)}}rpx;">
      <block wx:if="{{ShowNumber}}">{{ShowNumber}}</block>
    </view>
  </view>
</template>

<template name="fanTemplate2">
  <view class="fan">
    <view class="shanxing" style="width:{{FanSize2}}rpx;height:{{FanSize2}}rpx;background-color:{{Color22}};">
      <view class="sx1" style="clip: rect(0, {{FanSize2/2}}rpx, {{FanSize2}}rpx, 0);transform: rotate({{Angle12}}deg);background-color:{{Color12}};">
      </view>
      <view class="sx2" style="clip: rect(0, {{FanSize2/2}}rpx, {{FanSize2}}rpx, 0);transform: rotate({{Angle22}}deg);{{BGColor2}}">
      </view>
    </view>
    <view class="shanxingSmall" style="width:{{FanSize2-FanSize2/FanScale2}}rpx;height:{{FanSize2-FanSize2/FanScale2}}rpx;line-height:{{FanSize2-FanSize2/FanScale2}}rpx;left:{{FanSize2/(FanScale2*2)}}rpx;top:{{FanSize2/(FanScale2*2)}}rpx;">
      <block wx:if="{{ShowNumber2}}">{{ShowNumber2}}</block>
    </view>
  </view>
</template>