litian
2024-05-15 2e70ec6f43a5b652ddcbc19d44b2bab471410766
Merge branch 'master' of http://182.92.203.7:2001/r/TextbookReader
2个文件已修改
16 ■■■■■ 已修改文件
src/assets/js/config.ts 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/home.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/js/config.ts
@@ -1,7 +1,7 @@
// 测试
export const ctx = "http://182.92.203.7:3001";
export const downloaderFileCtx = "http://182.92.203.7:3007/DigitalTextbookReader";
export const ctxUrl = "http://182.92.203.7:3007/books/book/1"; //服务器地址
export const resourceUrl = "http://182.92.203.7:3007/books/resource/1"; //资源地址
export const ctxUrl = "http://182.92.203.7:3007/books/book"; //服务器地址
export const resourceUrl = "http://182.92.203.7:3007/books/resource"; //资源地址
export const requestCtx = "https://jsek.bnuic.com"; //jsek
src/views/home.vue
@@ -1032,11 +1032,12 @@
const catalogueData = ref([])
const getCatalogueData = () => {
  axios
    .get(ctxUrl + '/catalog.json')
    .get(resourceUrl + '/1/information.json?t=123')
    .then(function (response) {
      console.log(response.data);
      var json = response.data
      // 处理获取到的json数据
      catalogueData.value = json
      catalogueData.value = json.data
    })
    .catch(function (error) {
      console.log(error)
@@ -1088,7 +1089,7 @@
const testWord = ref('') //word链接
const getResourceData = () => {
  axios
    .get(ctxUrl + '/resource.json')
    .get(resourceUrl + '/1/resource.json')
    .then(function (response) {
      var json = response.data
      // 处理获取到的json数据
@@ -2080,6 +2081,11 @@
  deleteTxt: ''
})
// 划线、笔记、高亮点击回调
window.signClick = (type, id)=>{
  console.log("signClick点击事件回调的实例", type, id);
}
window.notesVisbleShow = function (txt) {
  addNoteVisble.value = true
  let notes = dialogToolData.notesList.find((item) => item.selectText == txt)