闫增涛
2024-12-16 1fa2461678d7f93b88f5666c4898e5b6c72080f3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!--packageCourse/components/teaching/index.wxml-->
<view class="teachBox">
  <view class="header">
    <t-search style="flex:1" value="{{searchKey}}" bind:clear="changeHandle" bind:submit="changeHandle" placeholder="搜索用户名称" clearable />
  </view>
  <view class="count">共计 <text style="color: #ff6d00;">{{dataList.length}}</text> 人答题</view>
  <view class="teachContent" wx:if="{{dataList.length > 0 && !loading}}">
    <view class="list" wx:for="{{dataList}}" wx:key="index" bindtap="openLook" data-item="{{item}}">
      <view class="questionName">用户名:<text style="color: #ff6d00;">{{item.userName}}</text></view>
      <view class="questionInfo">
        <view class="questionCount">
          <text style="color: #67c23a"> 已答完</text>
        </view>
        <view class="questionDate">
          {{item.questionTime}}
        </view>
      </view>
    </view>
  </view>
  <view class="she" wx:if="{{loading}}">
    <view wx:for="{{10}}" wx:for-item="themeItem" wx:key="index">
      <view class="demo-section__content">
        <t-skeleton theme="text"></t-skeleton>
      </view>
    </view>
  </view>
  <view class="she" wx:if="{{dataList.length == 0 && !loading}}">
    <empty />
  </view>
  <t-popup visible="{{visible}}" usingCustomNavbar placement="bottom">
    <view class="block-question-title">
      <text class="block-question-title-text">答题浏览</text>
      <t-icon size="22px" bindtap="close" color="#999" name="close"></t-icon>
    </view>
    <view class="block-question">
      <view class="block-question-list" wx:for="{{dialogList}}" wx:key="index">
        <view class="block-question-user">答题人:{{ item.userNme }}</view>
        <questionDom wx:if="{{item.questionTypeList.length > 0}}" questionList="{{item.questionTypeList}}" noCheckbox="{{false}}" is-preview="{{true}}" />
      </view>
    </view>
  </t-popup>
</view>