<view class="commoditymax">
  <!-- 商品评价 -->
  <view class='commodity'>
    <!-- 商品信息 -->
    <navigator class='information flex-vertical' url="{{'/pages/goods/goodsInfo/goodsInfo?goods_id='+options.goods_id}}">
      <image src="{{options.img}}" binderror="bind_bnerr2" data-errorimg="options.img"></image>
      <view class="goods_name xc-black">
        <!-- 商品名称 -->
        <view class='ellipsis-2 fs32'>{{options.goods_name}}</view>
        <!-- 商品价格，数量 -->
        <view class='flex jc_sb balin'>
          <!-- 价格 -->
          <view class='flex-vertical balin'>
            <view class="fs24">￥</view>
            <view class="fs35">{{options.price}}</view>
          </view>

          <!-- 商品数量 -->
          <view class='sum flex-vertical balin xc-black'>
            <view class="fs24">x</view>
            <view class="fs28">{{options.goods_num}}</view>
          </view>

        </view>

      </view>

    </navigator>


    <!-- 商品评价信息 -->
    <view class="addComment">
      <textarea class="fs24" placeholder="已经收到商品,快跟大家分享一下宝贝吧!" bindinput="txtInpt" placeholder-class="fs24" maxlength="500" value="{{content}}" />
      <view class="flex addimages">
        <!-- 评论图片集合 -->
        <view class="images">
          <image class="rel" catchtap="previewImg" data-index="{{index}}" src="{{item}}" wx:for="{{imgs}}">
            <image class="abs" src="{{iurl}}miniapp/images/cancel.png" data-index="{{index}}" bindtap="deleteImg"></image>
          </image>

        </view>

        <!-- 添加图片按钮框架 -->
        <view class="addimage flex-center xc-ash" bindtap="chooseImg">
          <view>
            <view class="flex-center">
              <image src="{{iurl}}miniapp/images/camera.png"></image>
            </view>
            <view class="flex-center fs20">添加图片</view>
            <view class="flex-center fs20">{{imgs.length>0?imgs.length:0}}/3</view>
          </view>
        </view>

      </view>

    </view>
  </view>

  <!-- 评价等级 -->
  <view class="Grade">
    <!-- 宝贝评分 -->
    <view class="title flex-vertical">
      <view class="column"></view>
      <view class="fs28">宝贝评分</view>
    </view>

    <!-- 服务评级 -->
    <view class="score-items">
      <view class="score-item flex-vertical">
        <view class="fs24">描述相符</view>
        <view class="stars flex-vertical">
          <view class="flex-vertical" data-i="{{index}}" wx:for="{{5}}" wx:key="{{index}}" bindtap="checkGoodsRank">
            <image src="{{index<goods_rank?iurl+'/miniapp/images/StarsredCk.png':iurl+'/miniapp/images/StarswhiteUnCk.png'}}"></image>
          </view>
        </view>
      </view>
			<!-- 卡项订单不用给予物流服务评价 -->
			<view class="score-item flex-vertical" wx:if="{{!options.card}}">
      <!-- <view class="score-item flex-vertical"> -->
        <view class="fs24">物流服务</view>
        <view class="stars flex-vertical">
          <view class="flex-vertical" bindtap="checkDeliverRank" data-i="{{index}}" wx:for="{{5}}" wx:key="{{index}}">
            <image src="{{index<deliver_rank?iurl+'/miniapp/images/StarsredCk.png':iurl+'/miniapp/images/StarswhiteUnCk.png'}}"></image>
          </view>
        </view>
      </view>
      <view class="score-item flex-vertical">
        <view class="fs24">服务态度</view>
        <view class="stars flex-vertical">
          <view class="flex-vertical" bindtap="checkServiceRank" data-i="{{index}}" wx:for="{{5}}" wx:key="{{index}}">
            <image src="{{index<service_rank?iurl+'/miniapp/images/StarsredCk.png':iurl+'/miniapp/images/StarswhiteUnCk.png'}}"></image>
          </view>
        </view>

      </view>

    </view>

  </view>
</view>
<!-- 是否匿名评价 -->
<view class=" Whether ">
  <!-- 选择是否匿名 -->
  <view class="allClick flex-right-vertical" bindtap="checkAnonymous">
    <icon class="radio" size="15" type="success" color="{{is_anonymous?'red':'gainsboro'}}"></icon>
    <view class="fs24 ">匿名评价</view>
  </view>

  <view class="Submission flex-level ">
		<block>
			<!-- 卡项订单 -->
			<view class="fs30 flex-level white " bindtap="submitComment" data-url="/packageB/pages/user/view_comment/view_comment?card=1&goods_id={{options.goods_id}}&order_id={{order_id}}" wx:if="{{options.card == 1}}">提交评价</view>
			<!-- 其他订单 -->
			<view class="fs30 flex-level white " bindtap="submitComment" data-url="/packageB/pages/user/view_comment/view_comment?goods_id={{goods_id}}&order_id={{order_id}}" wx:else>提交评价</view>
		</block>
  </view>
</view>


<warn id="warn"></warn>