litian
2024-09-06 50bdb66e0539abd94880f331549c0cef81065caa
login
9个文件已修改
73 ■■■■■ 已修改文件
packageBookService/pages/bookServices/detail/components/learnResource/learnResource.wxml 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/examination/examination.js 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageDomain/pages/resourceDetails/document/index.js 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageDomain/pages/resourceDetails/myAudio/index.js 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageDomain/pages/resourceDetails/myVideo/index.js 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/digitalCourses/digitalCoursesDetails/index.js 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/digitalCourses/digitalCoursesDetails/index.wxml 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/digitalCourses/digitalCoursesDetails/index.wxss 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/study/index.js 40 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/components/learnResource/learnResource.wxml
@@ -12,10 +12,10 @@
      <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> -->
  </t-button>
</view>
packageBookService/pages/bookServices/examination/examination.js
@@ -1,6 +1,9 @@
import {
  getPublicImage
} from "../../../../assets/js/middleGround/tool";
import {
  loginInfo
} from '../../../../assets/js/login';
const app = getApp();
Page({
  /**
packageDomain/pages/resourceDetails/document/index.js
@@ -1,6 +1,9 @@
// pages/resourceDetails/document/index.js
import Toast from 'tdesign-miniprogram/toast/index';
const app = getApp()
import {
  loginInfo
} from '../../../../assets/js/login';
Page({
  /**
packageDomain/pages/resourceDetails/myAudio/index.js
@@ -1,6 +1,9 @@
// pages/resourceDetails/index.js
const app = getApp()
const myAudio = wx.createInnerAudioContext();
import {
  loginInfo
} from '../../../../assets/js/login';
// innerAudioContext.onPlay(function callback),
// InnerAudioContext.onTimeUpdate(function callback)
Page({
packageDomain/pages/resourceDetails/myVideo/index.js
@@ -1,6 +1,8 @@
// pages/resourceDetails/index.js
const app = getApp()
import {
  loginInfo
} from '../../../../assets/js/login';
Page({
  /**
pages/digitalCourses/digitalCoursesDetails/index.js
@@ -317,7 +317,7 @@
      }
      this.getAboutBook(res.datas.productLinkInfo[res.datas.productLinkInfo.length - 1].LinkPath)
      this.getCertificateList()
      res.datas.content = res.datas.content.replace('../', app.config.requestCtx + '/')
      res.datas.content = res.datas.content && res.datas.content.replace('../', app.config.requestCtx + '/')
      this.setData({
        lecturerList: lecturer,
        digitalsData: res.datas,
@@ -625,6 +625,7 @@
        }
      })
      .then((res) => {
        if (res.datas.length > 0) {
        this.setData({
          relationTextBook: res.datas[0]
        })
@@ -637,6 +638,7 @@
            isTextBookBuy: false
          })
        }
        }
      })
  },
pages/digitalCourses/digitalCoursesDetails/index.wxml
@@ -134,8 +134,13 @@
                    <view>{{isTextBookBuy ? '阅读' : '试看'}}</view>
                  </view>
                </view>
                <view wx:if="{{learnList.length > 0}}">
                <tree id="test-tree" openIds="{{openTeachids}}" bookInfo="{{digitalsData}}" treeList="{{learnList}}">
                </tree>
                </view>
                <view wx:if="{{learnList.length == 0}}" class="noData">
                  <empty />
                </view>
              </view>
              <view wx:if="{{selectActive == 'test'}}">
                <view class="testBtnBox">
@@ -157,6 +162,9 @@
                  </view>
                </view>
                <testTree id="tree" openIds="{{openTeachids}}" bookInfo="{{digitalsData}}" tab="{{tab}}" treeList="{{testList}}"></testTree>
                <view wx:if="{{testList.length == 0}}" class="noData">
                  <empty />
                </view>
              </view>
            </view>
          </view>
@@ -222,7 +230,7 @@
          <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 class="correlationImage">
                <image src="{{item.icon}}" mode="" />
                <image src="{{item.icon}}" mode="" mode="aspectFit" />
                <img wx:if="{{item.icon == ''}}" src="/static/images/default-book-img.png" alt="" />
              </view>
              <view class="correlationName">{{item.name}}</view>
pages/digitalCourses/digitalCoursesDetails/index.wxss
@@ -508,6 +508,8 @@
.correlationImage {
  width: 300rpx;
  height: 180rpx;
  /* background: #D9D9D9; */
  border: 2rpx solid #ddd;
}
.correlation {
pages/study/index.js
@@ -132,23 +132,23 @@
        titleBook: "图书(" + res.totalSize + "本)",
      })
    })
    // let data1 = {
    //   Size: 9999,
    //   Start: 0,
    //   sort: {
    //     type: "Desc",
    //     field: "CreateDate",
    //   },
    //   searchList: [{
    //     keywords: 'jsek_digitalCourses',
    //     field: "ProductType",
    //   }],
    // }
    // app.MG.store.getPurchasedProductList(data1).then((res) => {
    //   that.setData({
    //     titleCourse: "课程(" + res.totalSize + "门)",
    //   })
    // })
    let data1 = {
      Size: 9999,
      Start: 0,
      sort: {
        type: "Desc",
        field: "CreateDate",
      },
      searchList: [{
        keywords: 'jsek_digitalCourses',
        field: "ProductType",
      }],
    }
    app.MG.store.getPurchasedProductList(data1).then((res) => {
      that.setData({
        titleCourse: "课程(" + res.totalSize + "门)",
      })
    })
    let data2 = {
      Size: 9999,
      Start: 0,
@@ -246,11 +246,11 @@
        url: `/packageBookService/pages/bookServices/detail/index?id=${book.product.id}&name=${book.product.name}`,
      });
    }
    if (this.data.active == 1) {
    // if (this.data.active == 1) {
      // wx.navigateTo({
      //   url: `/packageBookService/pages/bookServices/detail/index?id=${book.product.id}&name=${book.product.name}`,
    //     url: `/pages/digitalCourses/digitalCoursesDetails/index?id=${book.product.id}`,
      // });
    }
    // }
    if (this.data.active == 2) {
      wx.navigateTo({
        url: `/pages/digitalTextbooks/digitalTextbooksDetails/index?id=${book.product.id}`,