<view class='com-rating'>
  <text class='pingfen'>评分</text>
  <view class='rating-icon' wx:for='{{[1,2,3,4,5]}}' wx:key='*this'
    bindtap='_handleTap' data-num='{{item}}'>
    <view class='rating-on' style='width:{{rating >= (max/5)*item ? 1.5 : rating < (max/5)*(item-1) ? 0 : (rating*15)%(max/5*15)/(max/5*15)}}em'>
      <image src='../../../images/voucher/rating_on_icon.png' mode='widthFix' style='width:1.5em' />
    </view>
    <view class='rating-off' style='width:1.5em;'>
      <image src='../../../images/voucher/rating_off_icon.png' mode='widthFix' style='width:1.5em' />
    </view>
  </view>
  <view  class='pingfen-tips'>
    <text wx:if="{{rating === 1}}">非常不满意</text>
    <text wx:elif="{{rating === 2}}">不满意</text>
    <text wx:elif="{{rating === 3}}">感觉一般</text>
    <text wx:elif="{{rating === 4}}">满意</text>
    <text wx:elif="{{rating === 5}}">非常满意</text>
  </view>
</view>