bug
litian
2024-09-08 ac4e010be3eda5da61d9a3e31748b3395ecfe822
bug
9个文件已修改
1个文件已添加
453 ■■■■■ 已修改文件
packageBookService/pages/bookServices/detail/components/learnResource/learnResource.wxml 33 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/components/teachResource/index.wxml 58 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/index.js 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageDomain/pages/resourceDetails/myVideo/index.js 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageDomain/pages/resourceDetails/myVideo/index.wxml 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/digitalCourses/digitalCoursesDetails/index.js 83 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/digitalCourses/digitalCoursesDetails/index.wxml 44 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/digitalTextbooks/digitalTextbooksDetails/index.wxml 206 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/digitalTextbooks/digitalTextbooksDetails/index.wxss 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/images/lecturer.png 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/components/learnResource/learnResource.wxml
@@ -1,44 +1,21 @@
<!--pages/bookServices/detail/components/learnResource/learnResource.wxml-->
<view
  class="learnResource"
  theme="primary"
  style="justify-content: {{!isshowDrawBtn ? 'flex-end' : ''}};"
>
  <t-button
    wx:if="{{isshowDrawBtn}}"
    loading="{{receive}}"
    class="btn"
    theme="primary"
    style="height: 72rpx; font-size: 28rpx"
    t-class="external-class"
    bind:tap="getFreeResource"
  >
<view class="learnResource" theme="primary" style="justify-content: {{!isshowDrawBtn ? 'flex-end' : ''}};">
  <t-button wx:if="{{isshowDrawBtn}}" loading="{{receive}}" class="btn" theme="primary" style="height: 72rpx; font-size: 28rpx" t-class="external-class" bind:tap="getFreeResource">
    <view slot="content" class="btn-content">
      <image src=" /static/images/bookService/detail/yijianlingqu.png" />
      <text>领取查看</text>
    </view>
  </t-button>
  <t-button
    loading="{{buy}}"
    class="btn"
    theme="primary"
    bind:tap="goBuyResource"
    style="height: 72rpx; font-size: 28rpx;margin: {{!isshowDrawBtn ? '0 20rpx' : ''}}"
  >
  <t-button loading="{{buy}}" class="btn" theme="primary" bind:tap="goBuyResource" style="height: 72rpx; font-size: 28rpx;margin: {{!isshowDrawBtn ? '0 20rpx' : ''}}">
    <view slot="content" class="btn-content">
      <image src="/static/images/bookService/detail/yijiangoumai.png" />
      <text>资源购买</text>
    </view>
  </t-button>
  <t-button
    class="btn"
    theme="primary"
    style="height: 72rpx; font-size: 28rpx; margin: 0 20rpx"
    bind:tap="goLearnTask"
  >
  <t-button class="btn" theme="primary" style="height: 72rpx; font-size: 28rpx; margin: 0 20rpx" bind:tap="goLearnTask">
    <view slot="content" class="btn-content">
      <image src="/static/images/bookService/detail/renwudan/icon.png" />
      <text>学习任务单</text>
    </view>
  </t-button>
</view>
</view>
packageBookService/pages/bookServices/detail/components/teachResource/index.wxml
@@ -1,74 +1,38 @@
<view class="teach-btn">
  <t-button
    theme="primary"
    style="width: 120px; height: 36px"
    class="btn"
    bind:tap="uploadBtn"
  >
  <t-button theme="primary" style="width: 120px; height: 36px" class="btn" bind:tap="uploadBtn">
    <view slot="content" class="btn-content">
      <t-image src="/static/images/bookService/detail/upload.png"></t-image>
      <text>上传资源</text>
    </view>
  </t-button>
<!-- <t-button theme="primary" style="width: 120px; height: 36px">
  <!-- <t-button theme="primary" style="width: 120px; height: 36px">
    <t-image src="/static/images/bookService/detail/download.png"></t-image>
    批量下载
  </t-button> -->
</view>
<view
  class="applyResult  {{applyState == 'none' ? 'applyNone' : applyState == 'Normal' ? 'applyPass' : applyState == 'WaitAudit' ? 'applying' :applyState == 'Reject' ? 'applyReject' :'' }}"
>
  <view wx:if="{{applyState == 'WaitAudit'}}"
    >资源下载申请正在审核中,请耐心等待!</view
  >
<view class="applyResult  {{applyState == 'none' ? 'applyNone' : applyState == 'Normal' ? 'applyPass' : applyState == 'WaitAudit' ? 'applying' :applyState == 'Reject' ? 'applyReject' :'' }}">
  <view wx:if="{{applyState == 'WaitAudit'}}">资源下载申请正在审核中,请耐心等待!</view>
  <view wx:if="{{applyState == 'Normal'}}">
    <view>
      资源下载申请已通过<text wx:if="{{deadline}}"
        >,有效日期截至:{{ deadline }}</text
      ></view
    >
      资源下载申请已通过<text wx:if="{{deadline}}">,有效日期截至:{{ deadline }}</text></view>
    <view style="display: flex; align-items: center; margin-top: 10rpx">
      <text>下载资源请到PC端京师智教</text>
      <text bind:tap="copy" class="copy-text">复制</text>
    </view>
  </view>
  <view wx:if="{{applyState == 'Reject'}}"
    >资源下载需要申请,请先申请并等待审核通过后方可下载</view
  >
  <view wx:if="{{applyState == 'Reject'}}">资源下载需要申请,请先申请并等待审核通过后方可下载</view>
  <view wx:if="{{applyState == 'none'}}">
    资源下载需要申请,请先申请并等待审核通过后方可下载
  </view>
  <view class="btn-box">
    <t-button
      wx:if="{{applyState == 'Reject'}}"
      bind:tap="checkCause"
      style="height: 50rpx"
      class="rejectBtn"
      bind:tap="showDialog"
      >查看原因</t-button
    >
    <t-button
      wx:if="{{applyState == 'none' || applyState == 'Reject'}}"
      theme="primary"
      bind:tap="applyResource"
      class="applyBtn"
      style="height: 50rpx"
      >申请</t-button
    >
    <t-button wx:if="{{applyState == 'Reject'}}" bind:tap="checkCause" style="height: 50rpx" class="rejectBtn" bind:tap="showDialog">查看原因</t-button>
    <t-button wx:if="{{applyState == 'none' || applyState == 'Reject'}}" theme="primary" bind:tap="applyResource" class="applyBtn" style="height: 50rpx">申请</t-button>
  </view>
</view>
<!-- 未通过原因 -->
<t-dialog
  visible="{{showRejectDialog}}"
  title="提示"
  confirm-btn="{{ confirmBtn }}"
  bind:confirm="closeDialog"
  class="notPassed"
>
<t-dialog visible="{{showRejectDialog}}" title="提示" confirm-btn="{{ confirmBtn }}" bind:confirm="closeDialog" class="notPassed">
  <view slot="content">
    <text class="cause-title"
      >资源下载申请未通过,解决问题后可点击“申请”按钮重新提交申请</text
    >
    <text class="cause-title">资源下载申请未通过,解决问题后可点击“申请”按钮重新提交申请</text>
    <view class="cause-content">原因:{{ rejectCause || '-'}}</view>
  </view>
</t-dialog>
</t-dialog>
packageBookService/pages/bookServices/detail/index.js
@@ -232,7 +232,12 @@
      const checkData = this.data.cmsDatas.find(
        (item) => item.refCode == options.tabValue
      );
      this.getResourceDataList(checkData)
      if (this.data.tabValue == "questionBank") {
        this.getResourceData(checkData)
      } else {
        this.getResourceDataList(checkData)
      }
    }
  },
packageDomain/pages/resourceDetails/myVideo/index.js
@@ -48,7 +48,7 @@
    videoLoading: false,
    progress: 0,
    playerList: [],
    videoLoaidng: true
    videoLoading: true
  },
  // 格式化笔记时间
  convertTimestamp(timestamp) {
@@ -223,7 +223,7 @@
  },
  resourceDetailsData() {
    this.setData({
      videoLoaidng: true,
      videoLoading: true,
      loading: true
    })
    let query = {
@@ -293,7 +293,7 @@
    this.setPlayerList()
    const item = e.currentTarget.dataset.item
    this.setData({
      videoLoaidng: true,
      videoLoading: true,
      selectedId: e.currentTarget.dataset.index,
      activeId: item.id,
      // showData: '',
@@ -326,16 +326,19 @@
        if (res && res.data == '') {
          this.setData({
            showDataVod: currentVideo,
            videoLoading: false,
          })
        } else {
          this.setData({
            showDataVod: res,
            videoLoading: false,
          })
        }
        this.setData({})
      } else if (currentVideo) {
        this.setData({
          showDataVod: currentVideo,
          videoLoading: false,
        })
      } else {
        return ElMessage.error('无法获取视频资源')
@@ -646,7 +649,7 @@
  loadedmetadata(e) {
    console.log(1);
    this.setData({
      videoLoaidng: false
      videoLoading: false
    })
  }
})
packageDomain/pages/resourceDetails/myVideo/index.wxml
@@ -10,11 +10,11 @@
  <view class="videoBox" wx:if="{{videoChange}}">
    <!-- autoplay='false' 是否自动播放 -->
    <!-- <video binderror="videoErrorCallback" src="{{showData}}" play-btn-position='center' object-fit='fill' controls enable-play-gesture enable-auto-rotation></video> -->
    <view wx:if="{{videoLoaidng}}" class="video-loading">
      <t-loading theme="circular" size="60rpx" class="wrapper" loading="{{videoLoaidng}}" />
    <view wx:if="{{videoLoading}}" class="video-loading">
      <t-loading theme="circular" size="60rpx" class="wrapper" loading="{{videoLoading}}" />
    </view>
    <!-- <video show-center-play-btn="{{false}}" src="{{showData}}" bindloadedmetadata="loadedmetadata" bindtimeupdate="timeUpdate"></video> -->
    <t-video id="tvd" src="{{showDataVod}}" style="width:100%;" bindvideoloaded="loadedmetadata" bindtimeupdate="timeUpdate" wx:if="{{!videoLoaidng}}">
    <t-video id="tvd" src="{{showDataVod}}" style="width:100%;" bindvideoloaded="loadedmetadata" bindtimeupdate="timeUpdate" wx:if="{{!videoLoading}}">
    </t-video>
  </view>
pages/digitalCourses/digitalCoursesDetails/index.js
@@ -174,6 +174,9 @@
    this.digitalCoursesDetailsGet(options.id)
    this.getPlayerList()
    this.getType()
    this.setData({
      userName: JSON.parse(wx.getStorageSync(app.config.userInfoKey)).name,
    })
  },
  /**
@@ -878,14 +881,31 @@
        },
      )
      .exec()
    this.drawImage()
    query
      .select('#textCertificate')
      .fields({
          // 选择需要生成canvas的范围
          size: true,
          node: true,
          scrollOffset: true,
        },
        (data) => {
          let width = data.width
          let height = data.height
          console.log(width, height)
          that.setData({
            imageWidth: width,
            imageHeight: height,
          })
        },
      )
      .exec()
    this.drawImage1()
  },
  drawImage1() {
  drawImage() {
    let that = this;
    let drawMyImage = new Wxml2Canvas({
      // width: 230,
      // height: 325,
      width: that.data.imageWidth,
      height: that.data.imageHeight,
      element: 'myCanvas',
@@ -919,6 +939,43 @@
      }]
    }
    drawMyImage.draw(data, that);
  },
  drawImage1() {
    let that = this;
    let drawMyImage1 = new Wxml2Canvas({
      width: that.data.imageWidth,
      height: that.data.imageHeight,
      element: 'myCanvas1',
      progress(percent) {},
      finish(url) {
        console.log("生成的图片地址", url)
        wx.getFileSystemManager().readFile({
          filePath: url,
          encoding: 'base64',
          success: (res) => {
            let MyImageBase641 = 'data:image/jpg;base64,' + res.data
            console.log('MyImageBase64', MyImageBase641)
            that.setData({
              rzzsImg: MyImageBase641,
              pubCertificateHide: false,
            })
          },
        })
      },
      error(res) {
        console.log("生成的图片失败", res)
      }
    }, this);
    let data = {
      list: [{
        type: 'wxml',
        class: '.my_canvas1 .my_draw_canvas1', //.my_draw_canvas每个要绘制元素的类名
        limit: '.my_canvas1', //my_canvas根元素类名
        x: 0,
        y: 0
      }]
    }
    drawMyImage1.draw(data, that);
  },
  //获取字段
  getType() {
@@ -958,14 +1015,14 @@
  onCertificate() {
    if (!this.data.isBuy) {
      wx.showToast({
        title: "请先购买,体验完整服务",
        icon: "none",
        duration: 1000,
      });
      return false
    }
    // if (!this.data.isBuy) {
    //   wx.showToast({
    //     title: "请先购买,体验完整服务",
    //     icon: "none",
    //     duration: 1000,
    //   });
    //   return false
    // }
    // if (!this.data.isLearn) {
    //   wx.showToast({
    //     title: "您的学习任务还未完成,暂不能申请证书,加油哦!",
@@ -1196,7 +1253,7 @@
  },
  onClick2() {
    this.setData({
      images: ['https://jsek.bnuic.com/home/certificate/kczs.jpg'],
      images: [this.data.rzzsImg],
      showIndex: true,
      visible: true,
    })
pages/digitalCourses/digitalCoursesDetails/index.wxml
@@ -75,10 +75,11 @@
            </view>
            <view class="basic"> 主讲老师</view>
          </view>
          <view class="course-content">
          <view class="course-content" wx:if="{{lecturerList.length> 0}}">
            <view class="lecturer" wx:for="{{lecturerList}}" wx:key="index" wx:for-item="item">
              <view class="lecturerImangBox">
                <image src="{{item.icon}}" mode="aspectFit" />
                <image src="{{item.icon}}" mode="aspectFit" wx:if="{{item.icon}}" />
                <image src="/static/images/lecturer.png" mode="aspectFit" wx:else />
              </view>
              <view class="lecturerInformation">
                <view class="lecturerName">
@@ -88,6 +89,9 @@
                <view class="lecturerContent">{{item.description}}</view>
              </view>
            </view>
          </view>
          <view wx:if="{{lecturerList.length == 0}}" class="noDataBox">
            <empty />
          </view>
        </t-tab-panel>
        <t-tab-panel icon="{{ tabValue == '1' ?  learnResourceClickIcon : learnResourceIcon}}" label="证书信息" value="1">
@@ -103,13 +107,13 @@
                <image src="{{cbzsImg}}" mode="" />
              </view>
              <view class="chart" bind:tap="onClick2">
                <image src="https://jsek.bnuic.com/home/certificate/kczs.jpg" mode="" />
                <image src="{{rzzsImg}}" mode="" />
              </view>
            </view>
          </view>
          <canvas canvas-id="myCanvas" style="height: 845px; width: 595px" wx:if="{{pubCertificateHide}}"></canvas>
          <view id="pubCertificate" class="my_canvas" wx:if="{{pubCertificateHide}}">
            <image data-type="image" data-url="https://jsek.bnuic.com/home/certificate/szkc.jpg" src="https://jsek.bnuic.com/home/certificate/szkc.jpg" mode="" class="bgImg" />
            <image data-type="image" data-url="https://jsek.bnuic.com/home/certificate/szkc.jpg" src="https://jsek.bnuic.com/home/certificate/szkc.jpg" mode="" class="bgImg my_draw_canvas" />
            <view class="certificateInfo my_draw_canvas">
              <view class="bookName my_draw_canvas" data-type="text" data-text="{{digitalsData.name}}">{{digitalsData.name}}</view>
              <view class="author my_draw_canvas" data-type="text" data-text="{{digitalsData.courseLeader}}">{{digitalsData.courseLeader || '-' }}</view>
@@ -123,24 +127,24 @@
              <view class="codeBox"></view>
            </view>
          </view>
          <canvas canvas-id="myCanvas1" style="height:845px;width:595px"></canvas>
          <view id="textCertificate" class="my_canvas">
            <!-- <image data-type="image" data-url="https://jsek.bnuic.com/home/certificate/kczs.jpg" src="https://jsek.bnuic.com/home/certificate/kczs.jpg" mode="" class="bgImg" /> -->
            <view class="certificateInfo my_draw_canvas">
              <view class="userIcon my_draw_canvas">
                <view class="hexagon">
                  <image src="{{userPicture}}" class="img" />
          <canvas canvas-id="myCanvas1" style="height:845px;width:595px" wx:if="{{pubCertificateHide}}"></canvas>
          <view id="textCertificate" class="my_canvas1" wx:if="{{pubCertificateHide}}">
            <image data-type="image" data-url="https://jsek.bnuic.com/home/certificate/kczs.jpg" src="https://jsek.bnuic.com/home/certificate/kczs.jpg" mode="" class="bgImg my_draw_canvas1" />
            <view class="certificateInfo my_draw_canvas1">
              <view class="userIcon my_draw_canvas1">
                <view class="hexagon my_draw_canvas1">
                  <image src="{{userPicture}}" class="img my_draw_canvas1" />
                </view>
              </view>
              <view class="userName my_draw_canvas" data-type="text" data-text="{{userName}}">{{userName}}</view>
              <view class="bookName my_draw_canvas" data-type="text" data-text="{{digitalsData.name}}">{{digitalsData.name}}</view>
              <view class="author my_draw_canvas" data-type="text" data-text="{{digitalsData.courseLeader}}">{{digitalsData.courseLeader || '-' }}</view>
              <view class="classHours my_draw_canvas" data-type="text" data-text="{{digitalsData.classHours}}">{{digitalsData.classHours || '-' }}</view>
              <view class="affiliatedUnit my_draw_canvas" data-type="text" data-text="{{publishingUnit}}">{{publishingUnit || '-'}}</view>
              <view class="studyTime my_draw_canvas" data-type="text" data-text="{{digitalsData.classHours}}">{{digitalsData.classHours}}</view>
              <view class="website my_draw_canvas" data-type="text" data-text="{{website}}">{{website}}</view>
              <view class="codeBox"></view>
              <view class="updateDate" wx-if="{{isCertificate}}">
              <view class="userName my_draw_canvas1" data-type="text" data-text="{{userName}}">{{userName}}</view>
              <view class="bookName my_draw_canvas1" data-type="text" data-text="{{digitalsData.name}}">{{digitalsData.name}}</view>
              <view class="author my_draw_canvas1" data-type="text" data-text="{{digitalsData.courseLeader}}">{{digitalsData.courseLeader || '-' }}</view>
              <view class="classHours my_draw_canvas1" data-type="text" data-text="{{digitalsData.classHours}}">{{digitalsData.classHours || '-' }}</view>
              <view class="affiliatedUnit my_draw_canvas1" data-type="text" data-text="{{publishingUnit}}">{{publishingUnit || '-'}}</view>
              <view class="studyTime my_draw_canvas1" data-type="text" data-text="{{digitalsData.classHours}}">{{digitalsData.classHours}}</view>
              <view class="website my_draw_canvas1" data-type="text" data-text="{{website}}">{{website}}</view>
              <view class="codeBox my_draw_canvas1"></view>
              <view class="updateDate my_draw_canvas1" wx-if="{{isCertificate}}">
                {{ moment(isCertificate.updateDate).format('YYYY年MM月') }}
              </view>
            </view>
pages/digitalTextbooks/digitalTextbooksDetails/index.wxml
@@ -3,17 +3,13 @@
<template is="skeleton" wx:if="{{loading}}" />
<view wx:if="{{!loading}}">
  <view class="page-bookService">
    <scroll-view
      scroll-y="{{true}}"
      class="book"
      bindscrolltolower="onReachBottom"
    >
    <scroll-view scroll-y="{{true}}" class="book" bindscrolltolower="onReachBottom">
      <view class="digital">
        <view class="book-box">
          <view class="textbookDetails">
            <view class="book-img">
              <view class="imageBox">
                <image src="{{digitalsData.icon}}" mode="" />
                <image src="{{digitalsData.icon}}" mode="" class="img" />
              </view>
              <!-- <view class="setCoolect">
              <image src="/static/images/bookService/detail/collect.png" style="width: 50rpx;" bind:tap="setCoolect" wx:if="{{isFavourite}}" />
@@ -29,9 +25,7 @@
                </view>
                <view class="styleCssBox">
                  <view style="width: 150rpx"> 编者单位: </view>
                  <view class="authorBox"
                    >{{ digitalsData.editorUnit || '-'}}</view
                  >
                  <view class="authorBox">{{ digitalsData.editorUnit || '-'}}</view>
                </view>
                <view class="styleCssBox">
                  <view style="width: 150rpx">ISBN:</view>
@@ -46,19 +40,13 @@
                  <view>{{ publishingUnit || '-'}}</view>
                </view>
              </view>
              <image
                src="/static/images/bookService/detail/square.png"
                class="right-background"
              />
              <image src="/static/images/bookService/detail/square.png" class="right-background" />
            </view>
          </view>
          <view class="certificate">
            <view class="proposal" bind:tap="suggestBtn">
              <view class="suggestion">
                <image
                  src="/static/images/digitalTextbooks/Suggestion@2x.png"
                  mode=""
                />
                <image src="/static/images/digitalTextbooks/Suggestion@2x.png" mode="" class="img" />
              </view>
              <view class="proposalText">我要建议</view>
            </view>
@@ -66,10 +54,7 @@
            <view class="information">
              <view class="proposal" bind:tap="onCertificate">
                <view class="suggestion">
                  <image
                    src="/static/images/digitalTextbooks/shengshu-t@2x.png"
                    mode=""
                  />
                  <image src="/static/images/digitalTextbooks/shengshu-t@2x.png" mode="" class="img" />
                </view>
                <view class="proposalText">证书申请</view>
              </view>
@@ -85,25 +70,11 @@
        </view>
      </view>
      <view class="book-resource">
        <t-tabs
          defaultValue="{{tabValue}}"
          bind:change="onTabsChange"
          bind:click="onTabsClick"
          t-class="custom-tabs"
          t-class-content="custom-panel"
          class="tab-class"
        >
          <t-tab-panel
            icon="{{ tabValue == 'brief' ? briefIconClick : briefIcon}}"
            value="brief"
            label="基本信息"
          >
        <t-tabs defaultValue="{{tabValue}}" bind:change="onTabsChange" bind:click="onTabsClick" t-class="custom-tabs" t-class-content="custom-panel" class="tab-class">
          <t-tab-panel icon="{{ tabValue == 'brief' ? briefIconClick : briefIcon}}" value="brief" label="基本信息">
            <view class="rubricBox">
              <view class="rubricimgBox">
                <image
                  src="/static/images/bookService/detail/label.png"
                  mode=""
                />
                <image src="/static/images/bookService/detail/label.png" mode="" class="img" />
              </view>
              <view class="basic"> 基本信息</view>
            </view>
@@ -114,73 +85,41 @@
              <empty />
            </view>
          </t-tab-panel>
          <t-tab-panel
            icon="{{tabValue == 'jsek_cloudLearning' ? learnResourceClickIcon : learnResourceIcon}}"
            value="jsek_cloudLearning"
            label="证书信息"
          >
          <t-tab-panel icon="{{tabValue == 'jsek_cloudLearning' ? learnResourceClickIcon : learnResourceIcon}}" value="jsek_cloudLearning" label="证书信息">
            <view class="rubricBox">
              <view class="rubricimgBox">
                <image
                  src="/static/images/digitalTextbooks/zhengshu@2x.png"
                  mode=""
                />
                <image src="/static/images/digitalTextbooks/zhengshu@2x.png" mode="" class="img" />
              </view>
              <view class="basic"> 证书信息</view>
            </view>
            <view class="certificateChart">
              <view class="chart" bind:tap="onClick1">
                <image
                  src="https://jsek.bnuic.com/home/certificate/szjc.jpg"
                  mode=""
                />
                <image src="https://jsek.bnuic.com/home/certificate/szjc.jpg" mode="" class="img" />
              </view>
              <view class="chart" bind:tap="onClick2">
                <image
                  src="https://jsek.bnuic.com/home/certificate/jczs.jpg"
                  mode=""
                />
                <image src="https://jsek.bnuic.com/home/certificate/jczs.jpg" mode="" class="img" />
              </view>
            </view>
          </t-tab-panel>
          <t-tab-panel
            icon="{{tabValue == 'jsek_teachingResources' ? teachResourcesClickIcon : teachResourcesIcon}}"
            value="jsek_teachingResources"
            label="作者信息"
          >
          <t-tab-panel icon="{{tabValue == 'jsek_teachingResources' ? teachResourcesClickIcon : teachResourcesIcon}}" value="jsek_teachingResources" label="作者信息">
            <view class="rubricBox">
              <view class="rubricimgBox">
                <image
                  src="/static/images/bookService/detail/author.png"
                  mode=""
                />
                <image src="/static/images/bookService/detail/author.png" mode="" class="img" />
              </view>
              <view class="basic"> 作者信息</view>
            </view>
            <view
              class="basic-content"
              wx:if="{{digitalsData.authorIntroduction}}"
            >
              <rich-text
                nodes="{{digitalsData.authorIntroduction}}"
              ></rich-text>
            <view class="basic-content" wx:if="{{digitalsData.authorIntroduction}}">
              <rich-text nodes="{{digitalsData.authorIntroduction}}"></rich-text>
            </view>
            <view class="noDataBox" wx:else>
              <!-- <t-empty icon="folder-open" description="暂无数据" font-size="80" /> -->
              <empty />
            </view>
          </t-tab-panel>
          <t-tab-panel
            icon="{{tabValue == 'catalogue' ? catalogueClickIcon : catalogue}}"
            value="catalogue"
            label="目录"
          >
          <t-tab-panel icon="{{tabValue == 'catalogue' ? catalogueClickIcon : catalogue}}" value="catalogue" label="目录">
            <view class="rubricBox">
              <view class="rubricimgBox">
                <image
                  src="/static/images/digitalTextbooks/mulu@3x.png"
                  mode=""
                />
                <image src="/static/images/digitalTextbooks/mulu@3x.png" mode="" class="img" />
              </view>
              <view class="basic"> 目录</view>
            </view>
@@ -192,17 +131,10 @@
              <empty />
            </view>
          </t-tab-panel>
          <t-tab-panel
            icon="{{tabValue == 'questionBank' ? testResourceClickIocn : testResourceIocn}}"
            value="questionBank"
            label="相关教材"
          >
          <t-tab-panel icon="{{tabValue == 'questionBank' ? testResourceClickIocn : testResourceIocn}}" value="questionBank" label="相关教材">
            <view class="rubricBox">
              <view class="rubricimgBox">
                <image
                  src="/static/images/digitalTextbooks/Link@3x.png"
                  mode=""
                />
                <image src="/static/images/digitalTextbooks/Link@3x.png" mode="" class="img" />
              </view>
              <view class="basic"> 相关教材</view>
            </view>
@@ -210,22 +142,10 @@
              <empty />
            </view>
            <view class="correlation" wx:else>
              <view
                style="margin-bottom: 30rpx"
                wx:for="{{relatedBookData}}"
                wx:key="index"
                wx:for-item="item"
                wx:for-index="index"
                data-item="{{item}}"
                bind:tap="onCorrelationBook"
              >
              <view style="margin-bottom: 30rpx" wx:for="{{relatedBookData}}" wx:key="index" wx:for-item="item" wx:for-index="index" data-item="{{item}}" bind:tap="onCorrelationBook">
                <view class="correlationImage">
                  <image src="{{item.icon}}" mode="" />
                  <img
                    wx:if="{{item.icon == ''}}"
                    src="/static/images/default-book-img.png"
                    alt=""
                  />
                  <image src="{{item.icon}}" mode="" class="img" />
                  <img wx:if="{{item.icon == ''}}" src="/static/images/default-book-img.png" alt="" class="img" />
                </view>
                <view class="correlationName">{{item.name}}</view>
                <view class="correlationAuthor">{{digitalsData.author}}</view>
@@ -239,60 +159,27 @@
    <view class="box-bottom">
      <view class="collection" bind:tap="setCoolect">
        <view class="collectionImage">
          <image
            wx:if="{{!digitalsData.isFavourite}}"
            src="/static/images/digitalTextbooks/wodeshoucang@2x.png"
            mode=""
          />
          <image
            wx:else
            src="/static/images/bookService/detail/collecting.png"
            mode=""
          />
          <image wx:if="{{!digitalsData.isFavourite}}" src="/static/images/digitalTextbooks/wodeshoucang@2x.png" mode="" class="img" />
          <image wx:else src="/static/images/bookService/detail/collecting.png" mode="" class="img" />
        </view>
        <view class="btn-text"> 收藏 </view>
      </view>
      <view class="trialReading" bind:tap="goRead" wx:if="{{!isBuy}}">
        <view class="collectionImage">
          <image src="/static/images/digitalTextbooks/shidu@2x.png"></image>
          <image src="/static/images/digitalTextbooks/shidu@2x.png" class="img"></image>
        </view>
        <view class="btn-text">试读</view>
      </view>
      <view
        class="shopCarColor"
        bind:tap="addBookShopcCar"
        wx:if="{{!isBuy &&digitalsData.price != 0 }}"
        >加入购物车</view
      >
      <view
        class="buyColor"
        bind:tap="buyBtn"
        wx:if="{{!isBuy && digitalsData.price != 0}}"
        >立即购买</view
      >
      <view
        class="buyColor receive"
        bind:tap="buyBtn"
        wx:if="{{!isBuy && digitalsData.price == 0.00}}"
        >免费领取</view
      >
      <view
        class="{{!isBuy ? 'buyColor' :'reading'}}"
        bind:tap="goRead"
        wx:if="{{isBuy}}"
      >
      <view class="shopCarColor" bind:tap="addBookShopcCar" wx:if="{{!isBuy &&digitalsData.price != 0 }}">加入购物车</view>
      <view class="buyColor" bind:tap="buyBtn" wx:if="{{!isBuy && digitalsData.price != 0}}">立即购买</view>
      <view class="buyColor receive" bind:tap="buyBtn" wx:if="{{!isBuy && digitalsData.price == 0.00}}">免费领取</view>
      <view class="{{!isBuy ? 'buyColor' :'reading'}}" bind:tap="goRead" wx:if="{{isBuy}}">
        立即阅读
      </view>
    </view>
  </view>
</view>
<suggest
  class="suggest-component"
  id="suggest-component1"
  showIndex="{{showIndex1}}"
  bookIcon="{{digitalsData.icon}}"
  bookName="{{digitalsData.name}}"
></suggest>
<!-- <suggest class="suggest-component" id="suggest-component1" showIndex="{{showIndex1}}" bookIcon="{{digitalsData.icon}}" bookName="{{digitalsData.name}}"></suggest> -->
<!-- 弹窗 -->
<view wx:if="{{dialogBox}}">
  <view class="popup-box" bindtap="closeDialog"></view>
@@ -301,25 +188,15 @@
      <view class="row-info">
        <view class="body">
          <view class="dialog-title">学习证书申请</view>
          <view
            style="width: 100%; height: 2rpx; background-color: #f4f4f4"
          ></view>
          <view style="width: 100%; height: 2rpx; background-color: #f4f4f4"></view>
          <view class="input-box">
            <t-input
              class="input"
              borderless
              placeholder="请输入真实姓名"
              value="{{userInfo.fullName}}"
              bind:change="onFullNameInput"
            ></t-input>
            <t-input class="input" borderless placeholder="请输入真实姓名" value="{{userInfo.fullName}}" bind:change="onFullNameInput"></t-input>
          </view>
          <view class="contentImg">
            <image src="{{userInfo.userPicture}}" mode="aspectFill" />
            <image src="{{userInfo.userPicture}}" mode="aspectFill" class="img" />
          </view>
          <view class="buttonBox">
            <t-button size="small" class="right-btn" bind:tap="uploadPicture"
              >上传照片</t-button
            >
            <t-button size="small" class="right-btn" bind:tap="uploadPicture">上传照片</t-button>
          </view>
        </view>
        <view class="row-btn">
@@ -330,13 +207,6 @@
    </view>
  </view>
</view>
<t-image-viewer
  deleteBtn="{{deleteBtn}}"
  closeBtn="{{closeBtn}}"
  showIndex="{{showIndex}}"
  visible="{{visible}}"
  images="{{images}}"
  bind:close="onClose"
></t-image-viewer>
<t-image-viewer deleteBtn="{{deleteBtn}}" closeBtn="{{closeBtn}}" showIndex="{{showIndex}}" visible="{{visible}}" images="{{images}}" bind:close="onClose"></t-image-viewer>
<t-toast id="t-toast" />
<t-toast id="t-toast" />
pages/digitalTextbooks/digitalTextbooksDetails/index.wxss
@@ -2,7 +2,7 @@
@import "./index.skeleton.wxss";
image {
.img {
  width: 100%;
  height: 100%;
}
@@ -492,7 +492,8 @@
  border-top: 1rpx solid #f1f1f1;
}
.row-btn view {
.row-btn .left-btn,
.row-btn .right-btn {
  flex: 1;
  text-align: center;
  margin: 20rpx 10%;
static/images/lecturer.png