
<import src="../../wxParse/wxParse.wxml"/> 
<view class="container">

  <view class="info_list">
    <view  wx:for="{{datas}}" wx:for-index="index" wx class="demo-container{{item.userid == 0?'-right':''}}  demo-container-box">
          <view class="demo-container-time-box"><view>{{item.addtime}} </view>
          </view>
          <view class="demo-container-box-to">
               <view wx:if="{{item.userid>0}}" class="demo-container-left-box">
                    <image src='{{item.avatar==""?"../../images/logo.png":item.avatar}}'/>
                </view>
               <view class="demo-container-right-box">
                     <view class="webui-popover">
                           <view class="webui-popover-content">
                             <image wx:if="{{item.CategoryId==2}}" bindtap="onviewimage"  src="{{item.content}}" data-id="{{item.content}}" />
                             <view wx:if="{{item.CategoryId==0}}" class="content"><template is="wxParse" data="{{wxParseData:contentArr[index]}}"/></view>
                           </view>
                         <view wx:if="{{item.CategoryId==0}}" class="webui-popover-ico"></view>
                     </view>
                   <view wx:if="{{item.userid==0}}" class="demo-container-left-box">
                       <image src="{{item.avatar}}"/>
                    </view>
                </view>
           </view>
        </view>
  </view>
</view>
  <view class="footer">
    <view class="ub addchatbox">
            <view class="ub-f1 addbody">
                <textarea type="text" name="addbody" placeholder="想说点什么呢?" placeholder-class="body_placeholder" bindinput="onkeyupbody" confirm-type="send" value="{{body}}" ></textarea>
            </view>
            <view class="addabtn" bindtap="showemojicons"><image src="../../images/emojicons/14.png" /></view>
            <view wx:if="{{body==''}}" class="mybtn addabtn" bindtap="uploadpic">
    <image src="{{addpic}}" />
   
</view>
            <view  wx:if="{{body!=''}}" class="mybtn addabtn0" bindtap="bsubmit">{{savebutton}}</view>
        </view>
    </view>

    <view class="Hidden_box" bindtap="closeshowemojicons" wx:if="{{ifshowemojicons}}">
        <view class="Hidden_box_to showemojicons_box" catchtap="inaddcart">
            <view class="close" bindtap="closeshowemojicons"><image src="../../images/close.png" /></view>
           
<view class="select_box_title">
  插入表情
</view>
    <view class="select_box">
      <swiper class="swiper_box0" indicator-dots="true" vertical="{{vertical}}"  circular="true" 
                autoplay="true" interval="8000" duration="1000" bindchange="swiperchange0">
                <swiper-item wx:for="{{images1}}">
         <view class="emojicons" wx:for="{{item.datas}}" wx:for-item="cell" wx:for-index="index0" bindtap="onemojicons" data-id='{{cell.key}}'>
           <image src="../../images/emojicons/{{cell.image}}"></image>
         </view> 
        </swiper-item>
        </swiper> 
           
</view>
</view>
</view>
<loading hidden="{{loadingHidden}}">
        加载中...
    </loading> 