detail.wxml 5.9 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 wx:if='{{list.open_user_id!=user_id}}'>
            <view class="collect_box {{list.user_host==1?'active':''}}" bindtap='attention' data-id='{{list.open_user_id}}'>
              <text class='iconfont icon-shoucang0 star2'></text>
              <text class="collect_word">{{list.user_host==1?'取消关注':'关注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.img}}'></image>
          </block>
        </view>
        <view class='list_content'>
          <text wx:for='{{list.styles}}' wx:key=''>#{{item}}</text>
        </view>
      </view>
      <view class='list_state_box'>
        <view class='time'>{{list.open_time}}</view>
        <view class='list_icon'>
          <view catchtap='likeCharge' data-id='{{list.id}}'>
            <i class='iconfont icon-dianzan2 zan' wx:if="{{list.user_support==1}}"></i>
            <text class='iconfont icon-huida pinglun1' wx:else></text>
            <text class=''>{{list.support}}</text>
          </view>
          <view catchtap='review' data-id='{{list.id}}' data-type='review'>
            <text class='iconfont icon-pinglun pinglun1'></text>
            <text>{{list.table_num}}</text>
          </view>
          <view catchtap='collectInfo' data-id='{{list.id}}'>
            <i class='iconfont icon-shoucang2 zan' wx:if='{{list.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'></text>
            <view class='more_label_box' wx:if='{{more_state}}'>
              <view class='more_item' catchtap='showPoster' data-id="{{list.id}}">
                <text class='iconfont icon-haibao more'></text>
                <text>生成分享海报</text>
              </view>
              <view class='more_line'></view>
              <view class='more_item' catchtap='complain' data-id='{{list.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='请输入评论内容' value='{{comment_text}}' bindconfirm='submitComment' data-id='{{list.id}}'></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> -->

<view class='mask_box2' wx:if='{{poster_state}}'>
  <view class='popup_box2'>
    <view>
      <view class='popup_content_box'>
        <view class='popup_info_box'>
          <view class='popup_img'>
            <image src='{{poster}}'></image>
          </view>
          <view class='popup_icon_box'>
            <view class='popup_btn_box' bindtap='saveImg' data-src='{{poster}}'>
              <view class='popup_btn2'>保存图片</view>
            </view>
          </view>
        </view>
      </view>
    </view>
    <view class='iconfont icon-quxiao' bindtap='canclePopup'></view>
  </view>
</view>