evaluate.wxml 2.0 KB
<!--pages/evaluate/evaluate.wxml-->
<view class="container">
  <!-- 商品信息 -->
  <view class="productInfo">
    <view class="leftPic">
      <image src="{{postData.listGoodsVoList[0].goodsPic}}"></image>
    </view>
    <view class="rightText">
      <view class="name">{{postData.listGoodsVoList[0].goodsName}}</view>
      <view class="detail">{{postData.listGoodsVoList[0].goodsAttributes}}</view>
      <view class="price">¥{{postData.listGoodsVoList[0].goodsPrice}}</view>
      <view class="num">x{{postData.listGoodsVoList[0].goodsQuantity}}</view>
    </view>
  </view>
  <!-- 商品评价 -->
  <view class="evaluateBox">
    <view class="title">商品评价
    </view>
    <textarea name="" id="" cols="30" rows="10" placeholder="请输入商品评价" bindinput="textAreaInput" maxlength="300"
      value="{{content}}"></textarea>
    <view class="number">300/{{length}}</view>

    <!-- 上传凭证 -->
    <view class="photoBox">
      <view class="photoText">
        <view class="lefttext">上传凭证</view>
        <view class="right">最多可上传3张</view>
      </view>
      <view class="photo">
        <view class="photoOne" bindtap="chooseImage">
          <image src="/images/05-06/photo.png" mode="aspectFill"></image>
        </view>
        <view class="photoOne" wx:for="{{imgs}}" data-index="{{index}}">
          <image src="{{item}}"></image>
          <view class="delBox" bindtap="delPic">
            <image src="/images/05-06/chaIcon.png"></image>
          </view>
        </view>
      </view>
    </view>

    <!-- bottom -->
    <view class="btnBox" bindtap="submit">
      <view class="btn">
        提交
      </view>
    </view>
  </view>
  <!-- 匿名评价 -->
  <view class="anonymBox">
    <view class="checkBox" data-type="{{checkType}}" bindtap="checkEvent">
      <image src="/images/04-01/uncheck.png" wx:if="{{checkType==0}}"></image>
      <image src="/images/04-01/check.png" wx:if="{{checkType==1}}"></image>
    </view>
    <view>匿名评价</view>
  </view>
</view>