<view class="star-rating" bindtap="onTap">
  <view class="stars">
    <text
      wx:for="{{stars}}"
      wx:key="index"
      class="star {{item <= value ? 'active' : ''}} {{item <= halfValue && item > value ? 'half' : ''}}"
    >★</text>
  </view>
  <text wx:if="{{showText}}" class="rating-text">{{valueText}}</text>
  <text wx:if="{{showCount && count != undefined}}" class="count-text">({{count}}条评价)</text>
</view>
