1
YM
2024-05-22 7459b4778cd9d592ea8f6dfe5e6fe3688f537365
1
3个文件已修改
7 ■■■■ 已修改文件
src/App.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/js/config.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/books/childHealth/view/content/index.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/App.vue
@@ -31,6 +31,8 @@
      this.setGlobalState({
        initTestBook: async (bookId) => {
          this.activeBook = await this.config.getBookConfig(bookId);
          this.config.activeBook = this.activeBook;
          this.config.goodsStore = this.activeBook.storeRefcode;
          console.log("图书", this.activeBook);
          if (
            (this.$store.state.qiankun, this.$store.state.qiankun.getBookConfig)
@@ -43,6 +45,8 @@
      });
    } else {
      this.activeBook = await this.config.getBookConfig();
      this.config.activeBook = this.activeBook;
      this.config.goodsStore = this.activeBook.storeRefcode;
    }
  }
};
src/assets/js/config.js
@@ -7,8 +7,6 @@
  const response = await axios.get(
    resourceCtx + (bookId ? bookId : "1") + "/bookConfig.json"
  );
  activeBook = response.data;
  goodsStore = response.data.storeRefcode;
  return response.data;
};
export const appId = 3;
src/books/childHealth/view/content/index.vue
@@ -294,6 +294,7 @@
      const borderColorDom = (
        this.container ? this.container : document
      ).querySelectorAll(".theme-border");
      console.log(this.config,'this.configthis.config');
      // 获取配置的主题色
      const bookThemeColor =
        this.config.activeBook && this.config.activeBook.bookThemeColor