<!--pages/member/CommentDetails/CommentDetails.wxml-->
<view class="commentDetails">
	<view class="all">
		<view class="pj">
			<view class="user">
				<view class="userimg">
					<image src="{{head_img_url}}" mode='widthFix' />
				</view>
				<view>
					<view>{{nick_name}}</view>
					<view class="level-name">{{level_name}}</view>
				</view>
				<view class="spaet">{{created_at}}</view>
			</view>
			<view class="p">
				<text wx:if="{{content}}">{{content}}</text>
				<text wx:else style="color: #919191;">此用户没有填写评价。</text>
			</view>
		</view>
		<view style="text-align:left;margin:10rpx" wx:if="{{images && images.length > 0}}">
			<view style="margin:16rpx;">晒图：</view>
			<view style="display: flex; flex-wrap: wrap;padding: 0 16rpx;">
				<view class="pj-imgs" wx:for="{{images}}" wx:for-index="index" wx:key="index" wx:for-item="item"
				data-images="{{images}}" data-src="{{item}}" bindtap="previewImage"
				>
					<image src="{{item}}" mode='aspectFill'></image>
				</view>
			</view>
		</view>
		<view class="rate">
			<view>评分:</view><van-rate disabled="{{true}}" disabled-color="#ff9900" value="{{level}}" />
		</view>
		<!-- 追评 -->
		<view class="zjpj" wx:if="{{append}}" style="margin-left: 32prx;">
			<view class="zp">
				<view style="color: #E21D43;white-space: nowrap;">
					<text wx:if="{{append.diff_date && append.diff_date.value > 0}}">{{append.diff_date.value}}{{append.diff_date.sku}}</text>追评：
				</view>
				<view class="p">{{append.content}}</view>
			</view>
			<view class="pic">
				<view class="pj-imgs" wx:for="{{append.images}}" wx:key="index" data-images="{{append.images}}" data-src="{{item}}" bindtap="previewImage">
					<image src="{{item}}" mode='aspectFill'></image>
				</view>
			</view>
		</view>
		<view class="rate" wx:if="{{worker_score!=null}}">
			<view>{{worker_name}}评分:</view><van-rate disabled="{{true}}" disabled-color="#ff9900" value="{{worker_score}}" />
		</view>

		<!-- 评价商品 -->
		<view class="pjgoods" wx:if="{{has_one_order_goods}}">
			<view class="goods" catchtap="toGoods" data-goodsId="{{has_one_order_goods.goods_id}}">
				<view class="img">
					<image src="{{has_one_order_goods.thumb}}" mode='widthFix' />
				</view>
				<view class="warp">
					<view class="ul inner">
						<view class="li name">{{has_one_order_goods.title}}</view>

						<view class="li option">规格: {{has_one_order_goods.goods_option_title}}</view>
					</view>
					<view class="ul price">
						<view class="li product_price"><text class="small">{{language['money']}}</text>{{has_one_order_goods.price}}</view>
						<view class="li option"> ×{{has_one_order_goods.total}}</view>
					</view>
				</view>
			</view>
		</view>
	</view>
	<view class="allpl" wx:if="{{has_many_reply.length>0}}">
		<view class="tilse">全部评论</view>
		<view class="pj">
			<view class="user">
				<view class="userimg">
					<image src="{{head_img_url}}" mode='widthFix' />
				</view>
				<view>{{nick_name}}</view>
				<view class="spaet">{{created_at}}</view>
			</view>
			<view class="p">{{content}}</view>
		</view>
		<view class="pjhf">
			<view class="pjtime">{{created_at}}</view>
			<view class="span" catchtap="submitReplyForComment">回复</view>
		</view>
		<view class="othepj" wx:if="{{has_many_reply.length>0}}">
			<view wx:for="{{has_many_reply}}" wx:key="index" class="pj">
				<view class="user">
					<view class="userimg">
						<image src="{{item.head_img_url}}" mode='widthFix' />
					</view>
					<view>{{item.nick_name}}</view>
					<view class="spaet">{{item.created_at}}</view>
				</view>
				<view class="p">{{item.nick_name}}回复{{item.reply_name}}:{{item.content}}</view>
				<view class="pjImgs">
				<view class="pjImgWrapper" wx:for="{{item.images}}" wx:for-item="imgItem" wx:for-index="imgIndex" wx:key="{{imgIndex}}"  data-images="{{item.images}}" data-src="{{imgItem}}" bindtap="previewImage">
					<image src="{{imgItem}}" ></image>
				</view>
        </view>
				<view class="pjhf">
					<view class="pjtime">{{item.created_at}}</view>
					<view class="span" data-item="{{item}}" catchtap="replyToSomeOne">回复</view>
				</view>
			</view>
		</view>
	</view>
	<view class="callback">
		<input value="{{reply_content}}" bindinput="replyContentBtn" placeholder="{{reply_placeholder}}" />
		<view class="button" catchtap="submitReply">提交</view>
		<button class="btn-share" open-type="share">分享</button>
	</view>
	<view class="placeholder" style="height: 120rpx;"></view>
</view>
