闫增涛
2024-03-25 8f9242a0cfc60fa3718c93123282fcb2b8dbf7fa
答题器bug修改,设置功能
17个文件已修改
2个文件已删除
366 ■■■■■ 已修改文件
packageBookService/pages/bookServices/buyResource/index.json 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/buyResource/index.wxss 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/buyResource/index.js 65 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/buyResource/index.wxml 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/components/tree/index.js 104 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/components/tree/index.wxml 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/index.js 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/index.wxml 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/index.wxss 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/examination/examination.js 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/examination/examination.wxml 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/examination/questionList/index.js 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/examination/questionList/index.wxml 59 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/examination/questionList/index.wxss 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/examination/questionOptions/index.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/examination/questionOptions/index.wxml 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/examination/questionSchedule/index.wxml 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/bookServices/assort/index.wxml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/bookServices/assort/index.wxss 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/buyResource/index.json
File was deleted
packageBookService/pages/bookServices/buyResource/index.wxss
File was deleted
packageBookService/pages/bookServices/detail/buyResource/index.js
@@ -218,16 +218,67 @@
      }
    })
    data.datas.cmsDatas[0].datas.forEach(item => {
      if (this.data.tabValue == 'jsek_teachingResources') {
        item.checked = false
      } else if (this.data.tabValue == 'jsek_cloudLearning') {
        item.checked = false
        item.isbuy = this.resourceIsBuy(item)
        item.isShopCar = this.isShoppingCart(item)
      }
      item.checked = false
      item.isbuy = this.resourceIsBuy(item)
      item.isShopCar = this.isShoppingCart(item)
    })
    return data.datas.cmsDatas[0].datas
  },
  getBookInfo(id) {
    this.setData({
      "mockData'.id": 0,
      "mockData.price": 0,
      "mockData.count": 0
    })
    const query = {
      path: '*',
      queryType: '*',
      productId: id,
      favoriteTypes: 'FavoriteBookCity',
      itemFields: {
        'SysType=': 'CmsFolder',
      },
      coverSize: {
        height: 300,
      },
      fields: {
        seriesName: [],
        author: [],
        isbn: [],
        publicationDate: [],
        bookClassification: [],
        paperPrice: [],
        JDLink: [],
        tmallLink: [],
        dangdangLink: [],
        weidianLink: [],
        content: [],
        authorIntroduction: [],
        isApplyBook: [],
        isSell: [],
        pdf: [],
        protectedEpub: [],
        probationPage: [], //pdf试读页数
        freeEpubPage: [], //epub试读百分比
      },
    };
    app.MG.store.getProductDetail(query).then(async (res) => {
      this.setData({
        bookDetail: res.datas,
        buyIdList: res.datas.purchasedSaleMethodIdList
      });
    });
  },
    // 判断资源是否购买
    resourceIsBuy(data) {
      if (data.saleMethod && data.saleMethod.length) {
        const isSHow = this.data.buyIdList.some((item) => item == data.saleMethod[0].Id)
        return !isSHow
      } else {
        return false
      }
    },
  // 获取展开项
  findChildIds(data, result) {
    let index = 0
packageBookService/pages/bookServices/detail/buyResource/index.wxml
@@ -19,7 +19,12 @@
<!-- 内容 -->
<view class="buy-resource" wx:if="{{!loading}}">
  <tree treeList="{{learn}}" tab="{{'jsek_cloudLearning'}}" />
  <tree
    treeList="{{learn}}"
    tab="{{'jsek_cloudLearning'}}"
    isShowCheck="{{true}}"
    openIds="{{openLearnids}}"
  />
</view>
<view class="noData" wx:if="{{loading}}">
packageBookService/pages/bookServices/detail/components/tree/index.js
@@ -26,22 +26,22 @@
      type: String,
      value: ''
    },
    openTeachids: {
    openIds: {
      type: Array,
      value: ''
    },
    openLearnids: {
      type: Array,
      value: ""
      value: [],
    }
    ,
    isShowCheck: {
      type: Boolean,
      value: false,
    }
  },
  data: {
    activeValues: [0],
    activeValues: [1, 2],
    webpageSrc: '',
    cloudShoppingCart: []
  },
  onShow() {
  },
@@ -78,7 +78,8 @@
    // 判断资源是否购买
    resourceIsBuy(data) {
      if (data.saleMethod && data.saleMethod.length) {
        const isSHow = buyIdList.value.some((item) => item == data.saleMethod[0].Id)
        if (data.saleMethod[0].State == 'Disable') return false
        const isSHow = this.properties.buyIds.some((item) => item == data.saleMethod[0].Id)
        return !isSHow
      } else {
        return false
@@ -86,22 +87,23 @@
    },
    // 跳转音视频播放器
    goPlayer(e) {
      console.log(e);
      // debugger
      if (this.properties.isShowCheck) return true
      const item = e.currentTarget.dataset.item
      const parent = e.currentTarget.dataset.parent
      let url
      if (item.selectType == 'video') {
      if (item.selectType == 'video' || item.learnSelectType == 'video') {
        url = '/packageDomain/pages/resourceDetails/myVideo/index'
      } else if (item.selectType == 'audio') {
      } else if (item.selectType == 'audio' || item.learnSelectType == 'audio') {
        url = '/packageDomain/pages/resourceDetails/myAudio/index'
      } else if (item.selectType == 'picture' || item.selectType == 'zip') {
        url = '/packageDomain/pages/resourceDetails/document/index'
      }
      // else {
      //
      // }
      if (this.properties.tab == 'jsek_cloudLearning' && this.resourceIsBuy(item)) {
        return wx.showToast({
          icon: 'error',
          title: '请先购买该资源',
        })
      }
      wx.navigateTo({
        url: `${url}?productLinkPath=${item.productLinkPath}&parentProductLinkPath=${parent.productLinkPath}&parentName=${parent.name}&activeId=${item.id}&bookId=${this.properties.bookInfo.id}&bookName=${this.properties.bookInfo.name}&cmsId=${this.properties.bookInfo.rootCmsItemId}`,
      })
@@ -202,35 +204,9 @@
      return result
    },
    findAndUpdateItemById(tree, id) {
      function findAndUpdate(node) {
        if (node.id === id) {
          node.check = true; // 将目标项的 check 属性设置为 true
          return true; // 返回 true 表示找到了目标项
        }
        if (node.children && node.children.length > 0) {
          for (let child of node.children) {
            if (findAndUpdate(child)) {
              return true; // 如果在子节点中找到了目标项,则直接返回 true
            }
          }
        }
        return false; // 表示未找到目标项
      }
      for (let node of tree) {
        if (findAndUpdate(node)) {
          break; // 如果在顶层节点中找到了目标项,直接退出循环
        }
      }
    },
    // 变为true
    findAndUpdateItemsByIds(tree, ids) {
      function findAndUpdate(node) {
        if (ids.includes(node.id)) {
          // console.log(node, 'node');
          node.checked = !node.checked  // 将目标项的 check 属性设置为 true
@@ -250,26 +226,38 @@
      return tree; // 返回修改后的完整数组
    },
    checkResoucrceInfo(tree, id) {
      function findAndUpdate(node) {
        if (node.sysType == 'CmsFolder' && node.children.length > 0) {
          for (let index = 0; index < node.children.length; index++) {
            const element = node.children[index];
            findAndUpdate(element)
          }
        }
        else if (id == node.id && node.sysType == "CmsItem") {
          debugger
          node.checked = !node.checked  // 将目标项的 check 属性设置为 true
        }
      }
      for (let node of tree) {
        findAndUpdate(node); // 对每个顶层节点执行查找和更新操作
      }
      return tree; // 返回修改后的完整数组
    },
    // 章节勾选
    checkResourceTitle(e) {
      // 这个时候checked的值是fals
      const item = e.currentTarget.dataset.item
      let list = this.flattenTree([item])
      let ids = []
      list.forEach(item => {
        ids.push(item.id)
      })
      const updatedTreeList = this.findAndUpdateItemsByIds(this.properties.treeList, ids);
      // console.log(updatedTreeList, 'updatedTreeList');   //这个时候checked的值就变成了true
      this.setData({
        treeList: updatedTreeList  // 更新 treeList 数据
      });
      console.log(list, 'list');
      list.forEach(items => {
        console.log(items.checked, 'itesasd');
@@ -279,27 +267,15 @@
          })
        }
      })
      this.onCloudShoppingCart()
    },
    // 子项勾选
    checkResource(e) {
      const item = e.currentTarget.dataset.item
      // let list = this.flattenTree([item])
      // console.log(list, 'list121');
      // let ids = []
      // list.forEach(items => {
      //   console.log(items.id, 'itemsId');
      //   ids.push(items.id)
      // })
      const citem = e.currentTarget.dataset.item
      this.checkResoucrceInfo(this.properties.treeList, citem.id)
    },
    // 加入购物车
    async onCloudShoppingCart() {
      let requests = []
      const item = this.data.cloudShoppingCart
      console.log(item, 'item');
packageBookService/pages/bookServices/detail/components/tree/index.wxml
@@ -1,16 +1,16 @@
<view class="tree">
  <t-collapse default-value="{{activeValues}}" bind:change="handleChange">
  <t-collapse default-value="{{openIds}}" bind:change="handleChange">
    <t-collapse-panel
      wx:for="{{treeList}}"
      wx:for-item="item"
      wx:for-index="index"
      wx:key="id"
      value="{{index}}"
      value="{{item.id}}"
      expandIcon
      disabled="{{!item.children}}"
      disabled="{{!item.children.length}}"
    >
      <view slot="header" class="header-title">
        <view wx:if="{{tab == 'jsek_cloudLearning'}}">
        <view wx:if="{{isShowCheck}}">
          <t-checkbox
            icon="rectangle"
            checked="{{item.checked}}"
@@ -50,7 +50,7 @@
                class="box-image"
                style="{{ tab == 'jsek_teachingResources' ? 'width: 350rpx;' : 'width: 450rpx;'}}"
              >
                <view class="checkBox" wx:if="{{tab == 'jsek_cloudLearning'}}">
                <view class="checkBox" wx:if="{{isShowCheck}}">
                  <!-- checked="{{citem.checked}}"  -->
                  <!-- <t-checkbox icon="rectangle" checked="{{citem.checked}}" disabled="{{citem.selectType=='webpage' || citem.isDownload != 1 || citem.fileMap[citem.file].protectType == 'Private'}}" catch:change="checkResource" data-item="{{citem}}" /> -->
                  <t-checkbox
@@ -63,12 +63,12 @@
                <!-- 教学资源图标 -->
                <view class="teach-icon">
                  <image
                    wx:if="{{citem.selectType == 'audio'}}"
                    wx:if="{{citem.selectType == 'audio' || citem.learnSelectType == 'audio'}}"
                    src="/static/images/bookService/detail/audioIcon.png"
                    mode="aspectFill"
                  />
                  <image
                    wx:if="{{citem.selectType == 'video'}}"
                    wx:if="{{citem.selectType == 'video' || citem.learnSelectType == 'video'}}"
                    src="/static/images/bookService/detail/video.png"
                    mode="aspectFill"
                  />
@@ -159,10 +159,12 @@
        <!-- // 判断 不是商品 有子项 递归组件 -->
        <tree
          wx:else
          isShowCheck="{{isShowCheck}}"
          bookInfo="{{bookInfo}}"
          treeList="{{[citem]}}"
          itemId="{{itemId}}"
          tab="{{tab}}"
          buyIds="{{buyIds}}"
          openTeachids="{{openTeachids}}"
          openLearnids="{{openLearnids}}"
        ></tree>
packageBookService/pages/bookServices/detail/index.js
@@ -589,22 +589,26 @@
              item.checked = false
            })
            const list = await this.getAllResource(res.datas.cmsDatas[0].datas)
            let result = []
            if (type.refCode == 'jsek_teachingResources') {
              this.findChildIds(list, result)
              this.setData({
                teach: list,
                loading: false
                loading: false,
                openTeachids: result
              })
              this.findChildIds(this.data.teach, this.data.openTeachids = [])
              console.log('教学资源', this.data.teach);
            } else if (type.refCode == 'jsek_cloudLearning') {
              res.datas.cmsDatas[0].datas.forEach(item => {
                item.checked = false
              })
              const list = await this.getAllResource(res.datas.cmsDatas[0].datas)
              // res.datas.cmsDatas[0].datas.forEach(item => {
              //   item.checked = false
              // })
              // const list = await this.getAllResource(res.datas.cmsDatas[0].datas)
              this.findChildIds(list, result)
              this.setData({
                learn: list,
                loading: false
                loading: false,
                openLearnids: result
              })
              this.findChildIds(this.data.learn, this.data.openLearnids = [])
            }
          } else {
            // 无数据
@@ -654,7 +658,8 @@
        isDownload: [],
        jsek_resourceBrief: [],
        jsek_link: [],
        accessType: []
        accessType: [],
        learnSelectType: []
      },
      pading: {
        start: 0,
packageBookService/pages/bookServices/detail/index.wxml
@@ -190,6 +190,7 @@
            applyResourceLoading="{{applyResourceLoading}}"
          ></teach-resource>
          <tree
            openIds="{{openTeachids}}"
            bookInfo="{{bookDetail}}"
            treeList="{{teach}}"
            tab="{{tabValue}}"
@@ -224,6 +225,7 @@
          ></learn-resource>
          <tree
            id="tree"
            openIds="{{openLearnids}}"
            bookInfo="{{bookDetail}}"
            tab="{{tabValue}}"
            treeList="{{learn}}"
packageBookService/pages/bookServices/detail/index.wxss
@@ -204,7 +204,7 @@
/* 图书资源 */
.book-resource {
  /* min-height: 640rpx; */
  min-height: calc(100vh - 960rpx);
  min-height: calc(100vh - 900rpx);
  margin-top: 20rpx;
  background-color: #fff !important;
}
packageBookService/pages/bookServices/examination/examination.js
@@ -41,7 +41,8 @@
      answer: []
    },
    saveTime: 20,
    isNight: false
    isNight: false,
    sliderValue: 0, // 字体滑块
  },
  /**
@@ -169,7 +170,12 @@
      }
    });
  },
  onChangeSlider(e) {
    this.setData({
      sliderValue: e.detail.value
    })
    console.log(e.detail.value);
  },
  // 返回
  goBack() {
    console.log(this.data.submitStatus);
@@ -437,9 +443,15 @@
      await this.getCollectIdList() // 获取收藏id列表
      await this.getErrorList()   // 获取错题id列表
    } else if (this.data.answerType == 'collectQuestion') {
      this.setData({
        submitStatus: true
      })
      // 我的收藏
      await this.getcollectId() // 获取收藏题目
    } else if (this.data.answerType == 'errorQuestion') {
      this.setData({
        submitStatus: true
      })
      // 我的错题
      // loadings.value = true
      await this.getErrorIdList()
packageBookService/pages/bookServices/examination/examination.wxml
@@ -1,16 +1,24 @@
<!--pages/examination/examination.wxml-->
<!--导航区域 -->
<view style="width: 100%; height: {{barHeight}}px; "></view>
<view class="nacigationBar" style="width: 70%; height: {{navBarHeight}}px;">
<view
  style="width: 100%; height: {{barHeight}}px;background-color: {{isNight ? '#191919' : '#fff'}} "
></view>
<view
  class="nacigationBar"
  style="width: 75%; height: {{navBarHeight}}px; background-color: {{isNight ? '#191919' : '#fff'}}"
>
  <view>
    <t-icon
      name="chevron-left"
      size="30"
      data-name="{{item}}"
      bind:click="goBack"
      color="{{isNight ? '#fff' : '#000'}}"
    />
  </view>
  <view class="navbar-title">{{answerTitle}}</view>
  <view class="navbar-title" style="color: {{isNight ? '#fff' : '#000'}};"
    >{{answerTitle}}</view
  >
</view>
<!-- 
<view class="lodaing-box" wx:if="{{loaidng}}">
@@ -37,6 +45,7 @@
  ></question-schedule>
  <question-list
    wx:if="{{!loading}}"
    sliderValue="{{sliderValue}}"
    isNight="{{isNight}}"
    answerType="{{answerType}}"
    currentIndex="{{currentIndex}}"
@@ -77,5 +86,6 @@
    bind:restart="restart"
    bind:goQuestion="goQuestion"
    bind:changeBGColor="changeBGColor"
    bind:onChangeSlider="onChangeSlider"
  ></question-options>
</view>
packageBookService/pages/bookServices/examination/questionList/index.js
@@ -23,6 +23,9 @@
    answerType: {
      type: String,
      value: ''
    },
    sliderValue: {
      type: Number,
    }
  },
  observers: {
packageBookService/pages/bookServices/examination/questionList/index.wxml
@@ -16,11 +16,11 @@
  </view>
  <!-- 题目列表 -->
  <swiper class="swiper" bind:change="changeSwiper" current="{{currentIndex}}">
    <swiper-item wx:for="{{questionList}}" wx:key="{{id}}">
    <swiper-item wx:for="{{questionList}}" wx:key="id">
      <!-- 题干 -->
      <view
        class="question-stem title-score"
        style="color: {{isNight ? '#fff' : '#000'}};"
        style="color: {{isNight ? '#fff' : '#000'}}; font-size: {{sliderValue || 32}}rpx;"
      >
        <!-- 题号 -->
        <text>{{item.number}}.</text>
@@ -64,7 +64,7 @@
              data-id="{{item.id}}"
              data-index="{{inputItem.num}}"
              class="title-input"
              style="{{inputstyle}}"
              style="border: 2rpx solid rgba(220,220,220,1);border-radius: 12rpx;background-color:{{isNight ? '#000' : '#fff'}}; "
              placeholder-style="{{placeholderstyle}}"
              wx:if="{{inputItem.data == 'input'}}"
              placeholder="请输入文字"
@@ -97,9 +97,11 @@
              icon="none"
              placement="right"
              borderless
              style="background-color: {{isNight ? '#222' : '#fff'}}"
            >
              <view
                class="radio-item {{(answerType == 'option' || answerType == 'mock' ) && !submitStatus && item.userAnswer == contentItem.value ? 'radio-active' : ''}} {{ (item.answer == contentItem.value && item.answer == item.userAnswer &&  submitStatus) ? 'radio-correct' :  (item.userAnswer == contentItem.value && item.userAnswer != item.answer && submitStatus) ?'radio-error' :'' }}"
                style="font-size: {{sliderValue || 32}}rpx;"
                class="radio-item {{(answerType == 'option' || answerType == 'mock' ) && !submitStatus && item.userAnswer == contentItem.value ? 'radio-active' : isNight ? 'night' :''}} {{ (item.answer == contentItem.value && item.answer == item.userAnswer &&  submitStatus) ? 'radio-correct' :  (item.userAnswer == contentItem.value && item.userAnswer != item.answer && submitStatus) ?'radio-error' :'' }}"
              >
                <!-- 仅文字 -->
                <text wx:if="{{item.optionStyle == 'Txt'}}"
@@ -154,9 +156,15 @@
            wx:for-index="contentIndex"
            wx:key="contentIndex"
          >
            <t-checkbox block="{{false}}" value="{{contentItem.value}}">
            <t-checkbox
              block="{{false}}"
              value="{{contentItem.value}}"
              style="background-color:{{isNight ? '#000' :'#fff'}}; "
            >
              <!-- 仅文字 -->
              <text wx:if="{{item.optionStyle == 'Txt'}}"
              <text
                wx:if="{{item.optionStyle == 'Txt'}}"
                style="color:{{ isNight  ? '#fff' : '#000'}}"
                >{{contentItem.value}}、{{contentItem.txt}}</text
              >
              <!-- 仅图片 -->
@@ -196,7 +204,7 @@
          maxlength="500"
          disableDefaultPadding="{{true}}"
          indicator
          style="{{style}}"
          style="background-color:{{isNight ? '#000' : '#fff'}}; "
        />
      </view>
      <!-- 单选、多选解析 -->
@@ -205,19 +213,29 @@
        wx:if="{{item.isComplete && (item.questionType == 'singleChoice' || item.questionType == 'judge' || item.questionType == 'multipleChoice')}}"
      >
        <view class="analysis-answer">
          <view class="answer-correct answer-center">
          <view
            class="answer-correct answer-center"
            style="font-size: {{sliderValue || 32}}rpx;"
          >
            <text class="analysis-title-box">正确答案:</text>
            <rich-text
              nodes="{{item.answer}}"
              style="font-size: 40rpx"
              style="font-size: {{sliderValue || 40}}rpx;"
            ></rich-text>
          </view>
          <view
            class="answer-center marginL {{item.isRight ? 'answer-correct' : 'answer-error'}}"
            wx:if="{{item.questionType !== 'shortAnswer'}}"
          >
            <text class="analysis-title-box">您的答案:</text
            ><text class="answer-text">{{item.userAnswer}}</text>
            <text
              class="analysis-title-box"
              style="font-size: {{sliderValue || 32}}rpx;"
              >您的答案:</text
            ><text
              class="answer-text"
              style="font-size: {{sliderValue || 40}}rpx;"
              >{{item.userAnswer}}</text
            >
          </view>
        </view>
        <view
@@ -225,7 +243,9 @@
          wx:if="{{item.analysisCon}}"
          style="color: {{isNight ? '#fff' : '#000'}};"
        >
          答案解析:<rich-text
          <text style="font-size: {{sliderValue || 32}}rpx;">答案解析:</text
          ><rich-text
            style="font-size: {{sliderValue || 32}}rpx;"
            nodes="{{item.analysisCon}}"
            class="analysis-content"
          ></rich-text>
@@ -242,21 +262,24 @@
          <text
            wx:if="{{item.questionType == 'completion'}}"
            class="short-answer-fz answer-correct"
            style="font-size:{{sliderValue || 32}}rpx;"
            >正确答案:</text
          >
          <text
            wx:if="{{item.questionType == 'shortAnswer'}}"
            class="short-answer-fz"
            style="color:{{isNight ? '#fff' : '#000'}};font-size:{{sliderValue || 28}}rpx;"
          >
            参考答案:
          </text>
          <rich-text
            wx:if="{{item.questionType == 'shortAnswer'}}"
            nodes="{{item.answer}}"
            style="font-size: 28rpx; color:{{item.questionType == 'completion' ? '#1FBC1F' : '#000'}}"
            style="font-size:{{sliderValue || 28}}rpx; color:{{item.questionType == 'completion' ? '#1FBC1F' : isNight ? '#fff' : '#000'}}"
          ></rich-text>
          <view
            wx:if="{{item.questionType == 'completion'}}"
            style="font-size:{{sliderValue || 28}}rpx;"
            class="short-answer-fz answer-correct"
            >{{item.answer}}</view
          >
@@ -268,18 +291,24 @@
        >
          <text
            class="short-answer-fz {{item.isRight ? 'answer-correct' : 'answer-error'}}"
            style="font-size:{{sliderValue || 28}}rpx;"
            >您的答案:</text
          >
          <view
            class="short-answer-fz {{item.isRight ? 'answer-correct' : 'answer-error'}}"
            style="color:{{isNight ? '#fff' : '#000'}};font-size:{{sliderValue || 28}}rpx;"
            >{{item.userAnswer}}</view
          >
        </view>
        <view class="short-answer-mr">
          <text class="short-answer-fz">答案解析:</text>
          <text
            class="short-answer-fz;"
            style="color:{{isNight ? '#fff' : '#000'}};font-size:{{sliderValue || 28}}rpx;"
            >答案解析:</text
          >
          <rich-text
            nodes="{{item.analysisCon}}"
            style="font-size: 28rpx"
            style="font-size:{{sliderValue || 28}}rpx;;color:{{isNight ? '#fff' : '#000'}}"
          ></rich-text>
        </view>
      </view>
packageBookService/pages/bookServices/examination/questionList/index.wxss
@@ -51,16 +51,21 @@
  background-color: #F9F9F9;
}
.night {
  background-color: #000;
  color: #ffffff;
}
.radio-active {
  background-color: #fff0e6;
}
.radio-correct {
  background-color: #EAF7EE;
  background-color: #EAF7EE !important;
}
.radio-error {
  background-color: #FFEBEB;
  background-color: #FFEBEB !important;
}
.question-stem image {
@@ -148,8 +153,7 @@
.analysis-title-box {
  display: inline-block;
  width: 160rpx;
  height: 52rpx;
  /* width: 160rpx; */
  white-space: nowrap;
}
packageBookService/pages/bookServices/examination/questionOptions/index.js
@@ -64,7 +64,7 @@
    questionCardState: false,
    setUpPopup: false,
    testReportState: false,
    sliderValue: 28,
    sliderValue: 36,
    useTime: '',
    radioItem: 'daytime'
  },
@@ -166,10 +166,8 @@
    },
    // 滑块变化
    onChangeSlider(e) {
      this.setData({
        sliderValue: e.detail.value
      })
      console.log(e.detail.value);
      const value = e.detail.value
      this.triggerEvent('onChangeSlider', { value })
    },
    // 设置遮罩层点击
    onSetUpChange(e) {
packageBookService/pages/bookServices/examination/questionOptions/index.wxml
@@ -115,21 +115,22 @@
    <view class="brightness">
      <text>A-</text>
      <view class="brightness-slider">
        <t-slider
        <!-- <t-slider
          value="{{sliderValue}}"
          theme="capsule"
          min="{{14}}"
          min="{{24}}"
          max="{{100}}"
          step="{{7}}"
          bind:change="onChangeSlider"
        />
        <!-- <slider
          value="{{sliderValue}}"
          min="{{10}}"
          step="{{10}}"
          activeColor="#ff6c00"
          bind:chang="onChangeSlider"
        /> -->
        <slider
          value="{{sliderValue}}"
          min="{{28}}"
          max="{{48}}"
          step="{{7}}"
          activeColor="#ff6c00"
          bind:changing="onChangeSlider"
        />
      </view>
      <text>A+</text>
packageBookService/pages/bookServices/examination/questionSchedule/index.wxml
@@ -31,7 +31,11 @@
</view>
<!--  练习、组卷 提交后 -->
<view wx:else class="schedule submit-message">
<view
  wx:else
  class="schedule submit-message"
  style="background-color:{{isNight ? '#1a1a1a' : '#fff'}};color: {{isNight ? '#fff' : '#000'}}; "
>
  <view>
    客观题得分:<text class="parimary-color">{{subjectiveNum}}分</text> /
    {{subjectiveGrade}}分
pages/bookServices/assort/index.wxml
@@ -70,7 +70,7 @@
          <view
            wx:for="{{startList}}"
            wx:for-item="item"
            wx:key="item.id"
            wx:key="id"
            id="{{ 'list' + item.id}}"
            class="class-box"
            wx:if="{{!listLoading}}"
pages/bookServices/assort/index.wxss
@@ -83,7 +83,7 @@
.myScroll .row:last-child {
  /* 选择最后一个子件 清零边距 */
  margin-right: 0;
  margin-right: 240rpx;
}
.class-list {