闫增涛
2024-06-03 4c651bf9ab9a67afc0aae5201d8bc3a318546c00
资源请求
2个文件已修改
35 ■■■■ 已修改文件
src/assets/methods/resources.js 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/books/childHealth/view/content/components/chapter001.vue 21 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/methods/resources.js
@@ -1,16 +1,16 @@
import fileApi from '@/assets/js/middleGround/api/file'
export const getResourcePath = (md5,appRefCode = "jingshieke") => {
  fileApi.getAliVod({
export const getResourcePath = async(md5,appRefCode = "jingshieke") => {
  let path = ''
  await fileApi.getAliVod({
    md5,appRefCode
  }).then(res => {
    console.log('path',res);
    if(res.data) {
      return res.data
    if(res.data.length) {
      path =  res.data
    } else {
      return  process.env.VUE_APP_API_URL + '/file/api/ApiDownload?md5=' + md5
      path =   process.env.VUE_APP_API_URL + '/file/api/ApiDownload?md5=' + md5
    }
  })
  return path
}
const MT = {
  getResourcePath
src/books/childHealth/view/content/components/chapter001.vue
@@ -4765,23 +4765,24 @@
        this.$data.learnTableNine = !this.$data.learnTableNine;
      }
    },
    getVideoPath() {
      this.$data.pathOne = getResourcePath("f6f6588a75086576b87bed2fb9ca1ec1");
      this.$data.pathTwo = getResourcePath("e5993b62684fe55d13190cfe52bf00ed");
    async getVideoPath() {
      console.log('pathOne',await getResourcePath("f6f6588a75086576b87bed2fb9ca1ec1"))
      this.$data.pathOne = await getResourcePath("f6f6588a75086576b87bed2fb9ca1ec1");
      this.$data.pathTwo = await getResourcePath("e5993b62684fe55d13190cfe52bf00ed");
      this.$data.pathThree = getResourcePath(
        "6b6d42213aa85aa5ff7724aaf96ffee6"
      );
      this.$data.pathFour = getResourcePath("17fb1555f98c8fceabce5ff75077af58");
      this.$data.pathFive = getResourcePath("163c06871b763954952d1cd74373c618");
      this.$data.pathSix = getResourcePath("1d57d897974b22f7f3191f4073ea0641");
      this.$data.pathSeven = getResourcePath(
      this.$data.pathFour = await getResourcePath("17fb1555f98c8fceabce5ff75077af58");
      this.$data.pathFive = await getResourcePath("163c06871b763954952d1cd74373c618");
      this.$data.pathSix = await getResourcePath("1d57d897974b22f7f3191f4073ea0641");
      this.$data.pathSeven = await  getResourcePath(
        "e67262b8e73ca5b05374b903defd874f"
      );
      this.$data.pathEight = getResourcePath(
      this.$data.pathEight = await getResourcePath(
        "6731ebf8ea78297eedcb56521726481d"
      );
      this.$data.pathNine = getResourcePath("5ef5496040abee4013a5f61e3c5b42b9");
      this.$data.pathTen = getResourcePath("4afe59338bb841a498593cbe458c7d7d");
      this.$data.pathNine = await getResourcePath("5ef5496040abee4013a5f61e3c5b42b9");
      this.$data.pathTen = await getResourcePath("4afe59338bb841a498593cbe458c7d7d");
    },
    saveChapterOneData() {
      // 记录第一张输入数据