boutiqueComment.wxml 1.92 KB
<view class='layout boutique-comment flex-column' wx:if="{{showFlag}}">
	<view class="boutique-comment-order">
		<view class="boutique-order-content flex-column">
			<view class="title">请核对订单内容</view>
			<view class="order-item" wx:for="{{orderItem}}" wx:key="index">
				<view class="order-name">{{item.upgradeGoodsName}}</view>
				<view class="order-price">应付:¥{{item.totalPrice}}</view>
			</view>
		</view>
		<view class="boutique-total-price">
			应付总额:¥{{getTotalPrice}}
		</view>
	</view>

	<view class="boutique-comment-content">
		<view class="empty-comment-area" wx:if="{{!commentOrNot}}">
			<view class="comment-stars flex-row">
				<view class="keypoint">*</view>
				<view class="score">对本次服务打分</view>
				<star-score bindsyncscore="syncScore"></star-score>
			</view>
			<view class="comment-content flex-row">
				<view class="comment-title">评论</view>
				<textarea class="comment-input" type="text" value='{{commentVal}}' bindinput="commentInput" maxlength="50"></textarea>
				<view class="comment-label flex-row">
					<view class="label {{item.active ? 'active' : ''}}" wx:for="{{label}}" wx:key="index" data-index="{{index}}" bindtap="tapLabel">{{item.text}}</view>
				</view>
			</view>
			<view class="commit-comment">
				<button class="commit-btn boutique-commit-btn" bindtap="confirm">确定提交</button>
			</view>
		</view>
		<view class="comment-result-area" wx:else>
			<view class="comment-stars flex-row">
				<view class="score">本次服务打分</view>
				<star-score-res score="{{score}}"></star-score-res>
			</view>
			<view class="comment-content flex-row">
				<view class="comment-title comment-title-res">评论</view>
				<view class="comment-res">{{commentResult ? commentResult : '暂无评价'}}</view>
			</view>
		</view>
	</view>
</view>

<err-msg-no-icon  wx:if="{{!showFlag}}" errMsg="{{errMsg}}"></err-msg-no-icon>