zhongshujie
2024-12-12 09e445694a7360893a17152252f2dc5c1b77b2cf
packageBookService/pages/psychologyAnswer/questionOptions/index.wxml
@@ -23,13 +23,23 @@
    />
    设置
  </view>
  <view
    class="li-option"
    bind:tap="resterBtn"
    style="color: {{isNight ? '#fff' : '#000'}};"
  >
    <image
      src="{{isNight ? '/static/images/bookService/examination/chongzuo-w.png' : '/static/images/bookService/examination/reset.png'}}"
    />
    重做
  </view>
  <view class="bottom-submit">
    <t-button
      theme="primary"
      size="large"
      style="{{btnStyle}}"
      bind:tap="submitBtn"
      >{{!submitStatus ? '提交' : '退出'}}</t-button
      >{{!submitStatus ? '提交' : '查看结果'}}</t-button
    >
  </view>
</view>
@@ -151,34 +161,35 @@
  class="test-report"
  visible="{{testReportState}}"
  confirm-btn="{{null}}"
  close-btn
  title="测试报告"
  bind:close="closeTestReportDialog"
>
  <view slot="content" class="test-report">
    <view class="report-content-top">
      <view class="report-li">
        <view class="report-li-left">题目总数:</view>
        <view class="report-li-right">{{questionDataList.length}}道</view>
      </view>
      <view
        wx:for="{{scoreData}}"
        wx:for-item="ditem"
        wx:for-index="dindex"
        wx:key="dindex"
      >
      <scroll-view scroll-y style="height: 30vh; overflow-y: auto">
        <view class="report-li">
          <view class="report-li-left">{{ditem.name}}:</view>
          <view class="report-li-right"
            ><text class="score-color">{{ditem.score}}</text> 分</view
          >
          <view class="report-li-left">题目总数:</view>
          <view class="report-li-right">{{questionDataList.length}}道</view>
        </view>
        <view class="report-li">
          <view class="report-li-left" style="white-space: nowrap">结果:</view>
          <view class="report-li-right"
            ><text class="score-color">{{ditem.dispatch}}</text></view
          >
        <view
          wx:for="{{scoreData}}"
          wx:for-item="ditem"
          wx:for-index="dindex"
          wx:key="dindex"
        >
          <view class="report-li">
            <view class="report-li-left">{{ditem.name}}:</view>
            <view class="report-li-right"><text>{{ditem.score}}</text> 分</view>
          </view>
          <view class="report-li" wx:if="{{ditem.dispatch}}">
            <view class="report-li-left" style="white-space: nowrap"
              >结果:</view
            >
            <view class="report-li-right"><text>{{ditem.dispatch}}</text></view>
          </view>
        </view>
      </view>
      </scroll-view>
    </view>
  </view>
</t-dialog>