闫增涛
2024-03-27 1053bf2995141d5f73868bd2fb58deb1bc68c480
图书详情,答题器bug修改
13个文件已修改
16个文件已添加
198 ■■■■ 已修改文件
packageBookService/pages/bookServices/detail/components/tag/index.js 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/components/tag/index.json 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/components/tag/index.wxml 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/components/tag/index.wxss 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/components/tree/index.json 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/components/tree/index.wxml 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/index.js 39 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/index.wxml 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/index.wxss 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/examination/examination.json 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/examination/examination.wxml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/examination/questionList/index.wxml 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/examination/questionOptions/index.js 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/examination/questionOptions/index.wxml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/list/index.wxml 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/list/index.wxss 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/bookServices/assort/index.js 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/images/bookService/detail/biji-click-icon.png 补丁 | 查看 | 原始文档 | blame | 历史
static/images/bookService/detail/biji-icon-g.png 补丁 | 查看 | 原始文档 | blame | 历史
static/images/bookService/detail/ebook-click.png 补丁 | 查看 | 原始文档 | blame | 历史
static/images/bookService/detail/ebook-g.png 补丁 | 查看 | 原始文档 | blame | 历史
static/images/bookService/detail/jiaoxueziyuan-click.png 补丁 | 查看 | 原始文档 | blame | 历史
static/images/bookService/detail/jiaoxueziyuan.png 补丁 | 查看 | 原始文档 | blame | 历史
static/images/bookService/detail/test-click-icon.png 补丁 | 查看 | 原始文档 | blame | 历史
static/images/bookService/detail/test-icon-g.png 补丁 | 查看 | 原始文档 | blame | 历史
static/images/bookService/detail/tushujianjie-click.png 补丁 | 查看 | 原始文档 | blame | 历史
static/images/bookService/detail/tushujianjie-g.png 补丁 | 查看 | 原始文档 | blame | 历史
static/images/bookService/detail/yunxuexi-click.png 补丁 | 查看 | 原始文档 | blame | 历史
static/images/bookService/detail/yunxuexi.png 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/components/tag/index.js
New file
@@ -0,0 +1,30 @@
// packageBookService/pages/bookServices/detail/components/tag/index.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
  },
  /**
   * 组件的初始数据
   */
  data: {
    list: [
      { id: 1, name: '图书简介' },
      { id: 2, name: '电子书' },
      { id: 3, name: '教学资源' },
      { id: 2, name: '云学习' },
      { id: 2, name: '云测试' },
      { id: 2, name: '云笔记' },
    ]
  },
  /**
   * 组件的方法列表
   */
  methods: {
  }
})
packageBookService/pages/bookServices/detail/components/tag/index.json
New file
@@ -0,0 +1,4 @@
{
  "component": true,
  "usingComponents": {}
}
packageBookService/pages/bookServices/detail/components/tag/index.wxml
New file
@@ -0,0 +1,8 @@
<!--packageBookService/pages/bookServices/detail/components/tag/index.wxml-->
<scroll-view scroll-x="{{true}}">
  <view wx:for="{{list}}" wx:key="id">
    <view>
      <text>{{item.name}}</text>
    </view>
  </view>
</scroll-view>
packageBookService/pages/bookServices/detail/components/tag/index.wxss
New file
@@ -0,0 +1 @@
/* packageBookService/pages/bookServices/detail/components/tag/index.wxss */
packageBookService/pages/bookServices/detail/components/tree/index.json
@@ -7,6 +7,7 @@
    "t-collapse-panel": "tdesign-miniprogram/collapse-panel/collapse-panel",
    "t-button": "tdesign-miniprogram/button/button",
    "t-checkbox": "tdesign-miniprogram/checkbox/checkbox",
    "tree": "/packageBookService/pages/bookServices/detail/components/tree/index"
    "tree": "/packageBookService/pages/bookServices/detail/components/tree/index",
    "t-empty": "tdesign-miniprogram/empty/empty"
  }
}
packageBookService/pages/bookServices/detail/components/tree/index.wxml
@@ -1,16 +1,11 @@
<view class="tree">
  <t-collapse
    default-value="{{openIds}}"
    expandIcon="{{false}}"
    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="{{item.id}}"
      disabled="{{!item.children.length}}"
    >
      <view slot="header" class="header-title">
        <view>
@@ -22,13 +17,11 @@
            wx:if="{{isShowCheck}}"
          />
          <!-- <t-checkbox icon="rectangle" checked="{{true}}" data-item="{{item}}" bind:change="checkResourceTitle" /> -->
          <text>{{item.name}}</text>
          <text>{{item.name}} </text
          ><text wx:if="{{item.sysType =='CmsFolder'}}"
            >({{item.children ? item.children.length : 0}})</text
          >
        </view>
        <image
          src="{{item.open ? '/static/images/bookService/detail/up.png' : '/static/images/bookService/detail/down.png'}}"
          class="list-icon"
          wx:if="{{item.children.length}}"
        />
      </view>
      <view
        class="list"
@@ -179,6 +172,10 @@
          
        ></tree>
      </view>
      <!-- 暂无数据 -->
      <view wx:if="{{!item.children || !item.children.length}}" class="noData">
        <t-empty icon="folder-open" description="暂无数据" />
      </view>
      <view class="listItems" wx:if="{{children.length <= 0 && !loading}}">
        暂无数据
      </view>
packageBookService/pages/bookServices/detail/index.js
@@ -76,6 +76,45 @@
    buyResourceData: {
      productLinkPath: '',
      refCode: '',
    },
    briefIcon: {
      name: "/static/images/bookService/detail/tushujianjie-g.png"
    },
    briefIconClick: {
      name: '/static/images/bookService/detail/tushujianjie-click.png'
    },
    eBookIcon: {
      name: '/static/images/bookService/detail/ebook-g.png'
    },
    eBookClickIcon: {
      name: '/static/images/bookService/detail/ebook-click.png'
    },
    teachResourcesIcon: {
      name: '/static/images/bookService/detail/jiaoxueziyuan.png'
    },
    teachResourcesClickIcon: {
      name: '/static/images/bookService/detail/jiaoxueziyuan-click.png'
    },
    learnResourceIcon: {
      name: '/static/images/bookService/detail/yunxuexi.png'
    },
    learnResourceClickIcon: {
      name: '/static/images/bookService/detail/yunxuexi-click.png'
    },
    testResourceIocn: {
      name: '/static/images/bookService/detail/test-icon-g.png'
    },
    testResourceClickIocn: {
      name: '/static/images/bookService/detail/test-click-icon.png'
    },
    noteIcon: {
      name: '/static/images/bookService/detail/biji-icon-g.png'
    },
    noteClickIcon: {
      name: '/static/images/bookService/detail/biji-click-icon.png'
    },
    icon1: {
      name: "/static/images/bookService/detail/dangdang.png"
    }
  },
packageBookService/pages/bookServices/detail/index.wxml
@@ -165,7 +165,12 @@
        t-class-content="custom-panel"
        class="tab-class"
      >
        <t-tab-panel label="图书简介" value="brief" style="{{tabPanelstyle}}">
        <t-tab-panel
          label="图书简介"
          icon="{{ tabValue == 'brief' ? briefIconClick : briefIcon}}"
          value="brief"
          style="{{tabPanelstyle}}"
        >
          <book-brief
            content="{{bookDetail.content}}"
            authorIntroduction="{{bookDetail.authorIntroduction}}"
@@ -180,6 +185,7 @@
        </t-tab-panel>
        <t-tab-panel
          label="电子书"
          icon="{{tabValue == 'jsek_eBook' ? eBookClickIcon : eBookIcon}}"
          value="jsek_eBook"
          style="{{tabPanelstyle}}"
        >
@@ -191,6 +197,7 @@
        </t-tab-panel>
        <t-tab-panel
          label="教学资源"
          icon="{{tabValue == 'jsek_teachingResources' ? teachResourcesClickIcon : teachResourcesIcon}}"
          value="jsek_teachingResources"
          class="{{loading ? 'loading': ''}}"
        >
@@ -229,6 +236,7 @@
        </t-tab-panel>
        <t-tab-panel
          label="云学习"
          icon="{{tabValue == 'jsek_cloudLearning' ? learnResourceClickIcon : learnResourceIcon}}"
          value="jsek_cloudLearning"
          style="{{tabPanelstyle}}"
        >
@@ -256,6 +264,7 @@
        </t-tab-panel>
        <t-tab-panel
          label="云测试"
          icon="{{tabValue == 'questionBank' ? testResourceClickIocn : testResourceIocn}}"
          value="questionBank"
          style="{{tabPanelstyle}}"
        >
@@ -270,7 +279,12 @@
            <t-empty icon="folder-open" description="暂无数据" />
          </view>
        </t-tab-panel>
        <t-tab-panel label="云笔记" value="jsek_note" style="{{tabPanelstyle}}">
        <t-tab-panel
          label="云笔记"
          icon="{{tabValue == 'jsek_note' ? noteClickIcon: noteIcon}}"
          value="jsek_note"
          style="{{tabPanelstyle}}"
        >
          <note bookInfo="{{bookDetail}}" id="note" class="note-list"></note>
        </t-tab-panel>
      </t-tabs>
packageBookService/pages/bookServices/detail/index.wxss
@@ -358,4 +358,17 @@
.webView {
  height: 500rpx;
}
.t-tabs__item-inner {
  flex-direction: column;
}
.t-tabs .t-tabs__item--active {
  /* color: #ff6d00;
  font-size: 30rpx; */
  background-repeat: no-repeat;
  background-size: 40% 64%;
  background-position: right;
  background-image: url(http://jsysf.bnuic.com/website/image/click-icon.png);
}
packageBookService/pages/bookServices/examination/examination.json
@@ -8,5 +8,6 @@
    "t-button": "tdesign-miniprogram/button/button",
    "t-loading": "tdesign-miniprogram/loading/loading"
  },
  "navigationStyle": "custom"
  "navigationStyle": "custom",
  "navigationBarBackgroundColor": "#010101"
}
packageBookService/pages/bookServices/examination/examination.wxml
@@ -5,7 +5,7 @@
></view>
<view
  class="nacigationBar"
  style="width: 75%; height: {{navBarHeight}}px; background-color: {{isNight ? '#191919' : '#fff'}}"
  style="width: 100%; height: {{navBarHeight}}px; background-color: {{isNight ? '#191919' : '#fff'}}"
>
  <view>
    <t-icon
packageBookService/pages/bookServices/examination/questionList/index.wxml
@@ -15,7 +15,11 @@
    >
  </view>
  <!-- 题目列表 -->
  <swiper class="swiper" bind:change="changeSwiper" current="{{currentIndex}}">
  <swiper
    class="swiper"
    bindanimationfinish="changeSwiper"
    current="{{currentIndex}}"
  >
    <swiper-item wx:for="{{questionList}}" wx:key="id" style="overflow-y: auto">
      <!-- 题干 -->
      <view
@@ -161,17 +165,18 @@
            <t-checkbox
              block="{{false}}"
              value="{{contentItem.value}}"
              style="background-color:{{isNight ? '#000' :'#fff'}}; "
              style="background-color:{{isNight ? '#222' :'#fff'}}; "
            >
              <!-- 仅文字 -->
              <text
                wx:if="{{item.optionStyle == 'Txt'}}"
                style="color:{{ isNight  ? '#fff' : '#000'}}"
                style="color:{{ isNight  ? '#fff' : '#000'}};font-size:{{sliderValue || 32}}rpx;"
                >{{contentItem.value}}、{{contentItem.txt}}</text
              >
              <!-- 仅图片 -->
              <view wx:if="{{item.optionStyle == 'Image'}}" class="fl-center">
                <text style="color:{{ isNight  ? '#fff' : '#000'}}"
                <text
                  style="color:{{ isNight  ? '#fff' : '#000'}};font-size:{{sliderValue || 32}}rpx;"
                  >{{contentItem.value}}、</text
                >
                <t-image src="{{contentItem.img}}" />
@@ -181,10 +186,12 @@
                wx:if="{{item.optionStyle == 'TxtAndImage'}}"
                class="fl-center"
              >
                <text style="color:{{ isNight  ? '#fff' : '#000'}}"
                <text
                  style="color:{{ isNight  ? '#fff' : '#000'}};font-size:{{sliderValue || 32}}rpx;"
                  >{{contentItem.value}}、</text
                >
                <text style="color:{{ isNight  ? '#fff' : '#000'}}"
                <text
                  style="color:{{ isNight  ? '#fff' : '#000'}};font-size:{{sliderValue || 32}}rpx;"
                  >{{contentItem.txt}}</text
                >
                <t-image src="{{contentItem.img}}" />
packageBookService/pages/bookServices/examination/questionOptions/index.js
@@ -167,6 +167,7 @@
    // 滑块变化
    onChangeSlider(e) {
      const value = e.detail.value
      console.log(value);
      this.triggerEvent('onChangeSlider', { value })
    },
    // 设置遮罩层点击
@@ -181,6 +182,11 @@
        radioItem: e.detail.value
      })
      const value = e.detail.value == 'night' ? true : false
      wx.setNavigationBarColor({
        backgroundColor: '#222',
        frontColor: '#222',
      })
      this.triggerEvent('changeBGColor', { value })
    },
    // 重做按钮
@@ -285,6 +291,6 @@
        }
      })
      this.submitPaper()
    }
    },
  }
})
packageBookService/pages/bookServices/examination/questionOptions/index.wxml
@@ -129,7 +129,7 @@
          max="{{48}}"
          step="{{7}}"
          activeColor="#ff6c00"
          bind:changing="onChangeSlider"
          bind:change="onChangeSlider"
        />
      </view>
packageBookService/pages/bookServices/list/index.wxml
@@ -27,7 +27,6 @@
          options="{{stairList.options}}"
          value="{{stairList.value}}"
          bindchange="onChangeStair"
          style="background-color: #f6f6f6"
        />
        <t-dropdown-item
          label="二级"
packageBookService/pages/bookServices/list/index.wxss
@@ -11,6 +11,7 @@
}
.list-header {
  overflow: hidden;
  display: flex;
  height: 96rpx;
}
@@ -37,23 +38,35 @@
}
.header-sort {
  box-sizing: border-box;
  position: relative;
  background-color: #fff;
  line-height: 90rpx;
  height: 100%;
  line-height: 48px;
  height: 48px;
  width: 15vw;
  font-size: 28rpx;
  color: #999;
  display: flex;
  border-bottom: 1px solid #ededed;
}
.header-sort::after {
  content: '';
  height: 1rpx;
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  transform: scaleY(0.5);
  background-color: var(--td-component-border, var(--td-gray-color-4, #dcdcdc));
}
.sort-name {
  padding: 4rpx 0 0 10rpx;
  padding: 0 0 0 10rpx;
}
.header-scroll {
  height: 96rpx;
  height: 100%;
  width: 85vw;
}
pages/bookServices/assort/index.js
@@ -166,9 +166,6 @@
          field: 'state'
        }
      ],
      coverSize: {
        width: 76
      },
      queryType: '\\',
      searchList: [],
      size: '30',
static/images/bookService/detail/biji-click-icon.png
static/images/bookService/detail/biji-icon-g.png
static/images/bookService/detail/ebook-click.png
static/images/bookService/detail/ebook-g.png
static/images/bookService/detail/jiaoxueziyuan-click.png
static/images/bookService/detail/jiaoxueziyuan.png
static/images/bookService/detail/test-click-icon.png
static/images/bookService/detail/test-icon-g.png
static/images/bookService/detail/tushujianjie-click.png
static/images/bookService/detail/tushujianjie-g.png
static/images/bookService/detail/yunxuexi-click.png
static/images/bookService/detail/yunxuexi.png