<view class="items {{subcomment?'subcomment':''}}" wx:for="{{comments}}" wx:key="sys_datacommentid">
	<view wx:if="{{subcomment}}" class="name">
		<view class="head-portrait">{{item.createby[0]}}</view>
		<text>{{item.createby}}</text>
		<view class="replyusername" wx:if="{{item.replyusername}}" /><text>{{language[item.replyusername]||item.replyusername}}</text>
		<view class="content">{{language[item.content]||item.content}}</view>
	</view>
	<view wx:else class="name">
		<view class="head-portrait">{{item.createby[0]}}</view>
		<view>
		{{item.createby}}
			<view class="multi-line">{{language[item.content]||item.content}}</view>
		</view>
	</view>
	<view class="bottom">
		<view class="createdate">{{item.createdate}}</view>
		<view class="iconfont icon-huifu" data-item="{{item}}" bind:tap="reply"></view>
		<view style="flex:1;" />
		<view class="iconfont icon-qingkong" wx:if="{{userid==item.createuserid}}" data-item="{{item}}" bind:tap="deleteItem"></view>
	</view>
	<view class="comment-box" wx:if="{{replyid == item.sys_datacommentid}}">
		<textarea maxlength='499' auto-focus='autoFocus' confirm-type='send' value="{{comment}}" placeholder="{{language['我回复']||'我回复'}}{{replyUser.createby}}：" placeholder-style='font-size:28rpx; color:#BBBBBB;' auto-height bind:input="onInput" bind:confirm="onSend" />
		<view class="but-box">
			<van-button custom-class='but' disabled='{{!comment.length}}' loading='{{loading}}' bind:tap="onSend">{{language['发布']||'发表'}}</van-button>
		</view>
	</view>
	<view class="sub">
		<items userid='{{userid}}' subcomment comments='{{item.subcomment}}' replyid="{{replyid}}" ownerid='{{ownerid}}' ownertable='{{ownertable}}' />
	</view>
</view>