detail.wxml 6.6 KB
<!--pages/wish/wish.wxml-->
<!-- 内容项 -->
<view class='content_box'>
  <view class='content_item2'>
    <view class='left_box2'>
      <view class='head_portrait' catchtap='showModal' data-index="{{index}}">
        <image src='{{list.avatar}}'></image>
      </view>
      <view class='list_head_box2'>
        <view class='user_name' catchtap='showModal' data-index="{{index}}">{{list.user_nickname}}</view>
        <view class='state_box'>
          <block>
            <view class='collect_box active' bindtap='collectInfo' data-index="{{index}}" data-id='{{item.id}}'>
              <text class='iconfont icon-shoucang0 star2'></text>
              <text class="collect_word">关注TA</text>
            </view>
          </block>
        </view>
      </view>
    </view>
    <view class='item_list2'>
      <view>
        <view class='list_content'>{{list.title}}</view>
        <view class='list_img_box'>
          <block wx:for='{{list.img}}' wx:for-item='items' wx:key=''>
            <image src='{{items}}'></image>
          </block>
        </view>
        <view class='list_content'>{{list.text}}</view>
      </view>
      <!-- <view class='list_state_box2'>
        <view class='time'>{{list.open_time}}</view>
        <view class='list_icon'>
          <text bindtap='likeCharge' data-index="{{index}}" data-id='{{item.id}}' data-is_paise='{{item.is_paise}}'>
              <text class='iconfont icon-heart xin1' wx:if="{{!item.is_paise}}"></text>
          <text class='iconfont icon-dianzan- zan'></text>
          <text class=''>{{list.support}}</text>
          </text>
          <text bindtap='review' data-id='{{item.id}}'>
            <text class='iconfont icon-pinglun pinglun1'></text>
          <text>{{list.table}}</text>
          </text>
          <text>
          <text class='iconfont icon-shoucang zan'></text>
          <text class=''>{{list.collect}}</text>
          </text>
          <view class='more_box'>
            <text class='iconfont icon-gengduo' bindtap='showMore'></text>
            <view class='more_label_box' wx:if='{{more_state}}'>
              <view class='more_item' bindtap='showPoster'>
                <text class='iconfont icon-haibao more'></text>
                <text>生成分享海报</text>
              </view>
              <view class='more_line'></view>
              <view class='more_item' bindtap='complain'>
                <text class='iconfont icon-jubao more'></text>
                <text>投诉举报</text>
              </view>
            </view>
          </view>
        </view>
      </view> -->
      <view class='list_state_box'>
        <view class='time'>{{list.open_time}}</view>
        <view class='list_icon'>
          <view catchtap='likeCharge' data-index="{{mindex}}" data-id='{{item.id}}'>
            <i class='iconfont icon-dianzan2 zan' wx:if="{{item.user_support==1}}"></i>
            <text class='iconfont icon-huida pinglun1' wx:else></text>
            <text class=''>{{list.support}}</text>
          </view>
          <view catchtap='review' data-id='{{item.id}}' data-type='review'>
            <text class='iconfont icon-pinglun pinglun1'></text>
            <text>{{list.table_num}}</text>
          </view>
          <view catchtap='collectInfo' data-index="{{mindex}}" data-id='{{item.id}}'>
            <i class='iconfont icon-shoucang2 zan' wx:if='{{item.user_collect==1}}'></i>
            <text class='iconfont icon-shoucang4 pinglun1' wx:else></text>
            <text class=''>{{list.collect}}</text>
          </view>
          <view class='more_box'>
            <text class='iconfont icon-gengduo' catchtap='showMore' data-index='{{mindex}}'></text>
            <view class='more_label_box' wx:if='{{item.more_state}}'>
              <view class='more_item' catchtap='showPoster' data-id="{{item.id}}">
                <text class='iconfont icon-haibao more'></text>
                <text>生成分享海报</text>
              </view>
              <view class='more_line'></view>
              <view class='more_item' catchtap='complain' data-id='{{item.id}}' data-type='complain'>
                <text class='iconfont icon-jubao more'></text>
                <text>投诉举报</text>
              </view>
            </view>
          </view>
        </view>
      </view>
    </view>
  </view>
</view>
<view class='content_box'>
  <view class='content_item' wx:for='{{tables}}' wx:key>
    <view class='left_box'>
      <view class='head_portrait' catchtap='showModal' data-index="{{index}}">
        <image src='{{item.avatar}}'></image>
      </view>
    </view>
    <view class='item_list'>
      <view class='list_head_box'>
        <view class='user_name' catchtap='showModal' data-index="{{index}}">{{item.user_nickname}}</view>
        <view class='state_box'>
          <block wx:if='{{item.user_status==1}}'>
            <view class='collect_box active' bindtap='replay' data-index="{{index}}" data-id='{{item.id}}' data-comment_state='{{item.user_status}}' data-name='{{item.user_nickname}}'>
              <text class='iconfont icon-pinglun star2'></text>
              <text class="collect_word">回复</text>
            </view>
          </block>
        </view>
      </view>
      <view bindtap='listDetail' data-post_id='{{item.id}}' data-index="{{index}}">
        <view class='list_info_box'>
          <text>{{item.create_time}}</text>
        </view>
        <view class='list_content'>{{item.text}}</view>
      </view>
    </view>
  </view>
</view>

<view class='null_box'></view>
<view class='comment_box' wx:if='{{state}}'>
  <textarea placeholder="回复:+{{name}}" bindconfirm='commentInfo' fixed='true'></textarea>
</view>
<!-- wx:else -->
<view class='comment_box' >
 <!-- <input placeholder='AAA' bindconfirm='alertInfo'></input> -->
  <textarea placeholder='请输入评论内容' bindconfirm='submitComment' fixed='true'></textarea>
</view>

<view class='mask_box' wx:if='{{poster_state}}'>
  <view class='popup_box'>
    <view>
      <view class='popup_content_box'>
        <view class='popup_img'>
          <image src='/images/img2.png'></image>
          <view class='circle'></view>
          <view class='circle2'></view>
        </view>
        <view class='popup_info_box'>
          <view class='popup_title'>混搭英伦风,不一样的经典诠释</view>
          <view>混搭英伦风,不一样的经典诠释</view>
          <view class='popup_icon_box'>
            <view class='popup_btn_box'>
              <view class='popup_btn'>保存图片</view>
            </view>
            <image src='/images/img1.png'></image>
          </view>
        </view>
      </view>
    </view>
    <view class='iconfont icon-quxiao' bindtap='canclePopup'></view>
  </view>
</view>