谢杰标 před 2 roky
rodič
revize
42d6840396
3 změnil soubory, kde provedl 6 přidání a 8 odebrání
  1. 0 3
      pages/index/index.vue
  2. 3 2
      pages/webview/index.vue
  3. 3 3
      pages5/scan/recommen.vue

+ 0 - 3
pages/index/index.vue

@@ -562,9 +562,6 @@ export default {
           : 0;
       return value;
     },
-    tenantInfo() {
-      return config;
-    },
   },
   methods: {
     ...mapActions(["getUserInfo", "appCommonConfig"]),

+ 3 - 2
pages/webview/index.vue

@@ -15,6 +15,7 @@
 
 <script>
 import { mapGetters } from "vuex";
+import { tenantId } from '@/common/request.js'
 export default {
   components: {},
   data() {
@@ -77,7 +78,7 @@ export default {
       this.paramObj = paramObj;
       this.sectionType = this.paramObj.sectionType || 2; // 默认直播,回放的加了sectionType=3
       this.vid = this.paramObj.vid || "";
-      this.url = this.url + "&tid=" + this.config.tenantId;
+      this.url = this.url + "&tid=" + tenantId;
       this.studyLog(paramObj);
     }
   },
@@ -153,7 +154,7 @@ export default {
               "&vid=" +
               this.vid +
               "&tid=" +
-              this.config.tenantId;
+              tenantId;
             this.studyLog(item);
           } else {
             // 没有权限

+ 3 - 3
pages5/scan/recommen.vue

@@ -35,7 +35,7 @@
 </template>
 
 <script>
-import config from "@/common/config";
+import { tenantId, BASE_URL } from "@/common/request.js";
 export default {
   data() {
     return {
@@ -87,14 +87,14 @@ export default {
       let token = uni.getStorageSync("token");
       token &&
         uni.request({
-          url: config.BASE_URL + "/app/user/edit/shareActivityCode",
+          url: BASE_URL + "/app/user/edit/shareActivityCode",
           method: "POST",
           data: {
             shareActivityCode: sac,
           },
           header: {
             AuthorizationToken: "WX " + token,
-            TenantId: config.tenantId,
+            TenantId: tenantId,
           },
           success: (res) => {},
           fail: (err) => {},