<view class="stars {{type}}">
  <image src="../../images/icon/star-red.png" wx:for="{{value}}" wx:key='index' data-val="{{item}}" bindtap="changeVal"></image>
  <image src="../../images/icon/star-empty.png" wx:for="{{5-value}}" wx:key='index' data-val="{{value + item}}" bindtap="changeVal"></image>
</view>