闫增涛
2024-09-19 d7e794685c439cb820259813b5e826a0ea218914
pages/digitalCourses/digitalCoursesDetails/components/question/question.wxml
@@ -1,7 +1,12 @@
<view class="note">
  <view class="note-btn">
    <view>共{{pageCount.total}}个</view>
    <t-button theme="primary" class="make-note" bind:tap="openDialog" style="width: 240rpx">
    <t-button
      theme="primary"
      class="make-note"
      bind:tap="openDialog"
      style="width: 240rpx"
    >
      <view slot="content" class="btn-content">
        <image src="/static/images/digitalCourses/bianji.png" />
        <text class="note-btn-text">提问</text>
@@ -9,8 +14,17 @@
    </t-button>
  </view>
  <view class="note-content">
    <t-collapse value="{{activeValues}}" bind:change="handleChange" wx:if="{{!loading && onlineQuestionsList.length}}">
      <t-collapse-panel value="{{item.id}}" expandIcon wx:for="{{onlineQuestionsList}}" wx:key="id">
    <t-collapse
      value="{{activeValues}}"
      bind:change="handleChange"
      wx:if="{{!loading && onlineQuestionsList.length}}"
    >
      <t-collapse-panel
        value="{{item.id}}"
        expandIcon
        wx:for="{{onlineQuestionsList}}"
        wx:key="id"
      >
        <view slot="header" class="collapse-header">
          <view class="note-icon"></view>
          <view class="header-name">{{item.title}}</view>
@@ -24,7 +38,6 @@
      </t-collapse-panel>
    </t-collapse>
    <view wx:if="{{noList}}" class="noData">
      <!-- <t-empty icon="folder-open" description="暂无数据" /> -->
      <empty />
    </view>
  </view>
@@ -34,33 +47,73 @@
  </view>
</view>
<view class="loading-box" wx:if="{{loading}}">
  <t-skeleton row-col="{{[1,1,1,1,1,1]}}" theme="paragraph" animation="gradient" loading="{{loading}}"></t-skeleton>
  <t-skeleton
    row-col="{{[1,1,1,1,1,1]}}"
    theme="paragraph"
    animation="gradient"
    loading="{{loading}}"
  ></t-skeleton>
</view>
<!-- 记笔记弹窗 -->
<t-popup visible="{{showNoteDialog}}" bind:visible-change="onVisibleChange" placement="center">
<t-popup
  visible="{{showNoteDialog}}"
  bind:visible-change="onVisibleChange"
  placement="center"
>
  <view class="popup">
    <view class="from-item">
      <view class="label"><text class="icon">*</text> 联系人: </view>
      <view class="item-content">
        <t-input placeholder="请输入联系人" borderless value="{{userName}}" bindchange="bindTnputBlur" style="{{inputStyle}}" />
        <t-input
          placeholder="请输入联系人"
          borderless
          value="{{userName}}"
          bindchange="bindTnputBlur"
          style="{{inputStyle}}"
        />
      </view>
    </view>
    <view class="from-item">
      <view class="label"> <text class="icon">*</text>联系方式: </view>
      <view class="item-content">
        <t-input placeholder="输入联系方式" borderless value="{{mannder}}" type="number" tips="{{phoneError ? '手机号输入不正确' : ''}}" bindchange="onPhoneInput" style="{{inputStyle}}" />
        <t-input
          placeholder="输入联系方式"
          borderless
          value="{{mannder}}"
          type="number"
          tips="{{phoneError ? '手机号输入不正确' : ''}}"
          bindchange="onPhoneInput"
          style="{{inputStyle}}"
        />
      </view>
    </view>
    <view class="from-item">
      <view class="label"> <text class="icon">*</text>反馈内容: </view>
      <view class="item-content">
        <t-textarea placeholder="请输入反馈内容" value="{{content}}" disableDefaultPadding="{{true}}" autosize="{{true}}" maxlength="300" indicator bindchange="bindTextAreaBlur" style="{{inputStyle}}" />
        <t-textarea
          placeholder="请输入反馈内容"
          value="{{content}}"
          disableDefaultPadding="{{true}}"
          autosize="{{true}}"
          maxlength="300"
          indicator
          bindchange="bindTextAreaBlur"
          style="{{inputStyle}}"
        />
      </view>
    </view>
    <view class="submit-btn">
      <t-button theme="primary" size="large" block bind:tap="confirmSuggest">提交</t-button>
      <t-button theme="primary" size="large" block bind:tap="confirmSuggest"
        >提交</t-button
      >
    </view>
  </view>
  <t-icon t-class="close-btn" name="close-circle" size="32" color="#fff" bind:tap="closeDialog" />
</t-popup>
  <t-icon
    t-class="close-btn"
    name="close-circle"
    size="32"
    color="#fff"
    bind:tap="closeDialog"
  />
</t-popup>