guhongwei 4 years ago
parent
commit
239461bdc6
2 changed files with 9 additions and 9 deletions
  1. 2 3
      src/views/adminCenter/basicInfo/index.vue
  2. 7 6
      src/views/hall/direct.vue

+ 2 - 3
src/views/adminCenter/basicInfo/index.vue

@@ -31,6 +31,7 @@ export default {
     async search() {
       let res = await this.fetch(this.user.uid);
       this.$set(this, `dockid`, res.data.id);
+      this.creatQrCode();
     },
     async creatQrCode() {
       let url = `http://free.liaoningdoupo.com/api/auth/wxchat?redirect_uri=http://free.liaoningdoupo.com/platmobile/dockbind/&type=2&qrcode=${this.dockid}`; // 需要转换为二维码的内容
@@ -44,9 +45,7 @@ export default {
       return `${this.$route.meta.title}`;
     },
   },
-  mounted() {
-    this.creatQrCode();
-  },
+  mounted() {},
   metaInfo() {
     return { title: this.$route.meta.title };
   },

+ 7 - 6
src/views/hall/direct.vue

@@ -611,7 +611,7 @@ export default {
   methods: {
     ...mapProduct({ mapProductQuery: 'newquery' }),
     ...market({ marketFetch: 'fetch', operaFetch: 'operaFetch' }),
-    ...dock({ dockQuery: 'query', dockFetch: 'fetch', dockdongtai: 'dockdongtai' }),
+    ...dock({ dockQuery: 'query', dockFetch: 'fetch' }),
     ...expertsuser({ expertQuery: 'query' }),
     ...transaction({ tquery: 'query' }),
     // 查询详情
@@ -674,11 +674,12 @@ export default {
       }
       this.$set(this, `directlist`, newjysk);
       // 展会动态
-      // 交易情况
-      let jioayi = await this.dockdongtai(this.dock_id);
-      let jioayiData = jioayi.apply.map(item => item.transdata);
-      jioayiData = _.flattenDeep(jioayiData);
-      this.$set(this, `lunboList`, jioayiData);
+      // 登录情况+交易情况
+      let jioayi = await this.operaFetch(this.dock_id);
+      console.log(jioayi);
+      // let jioayiData = jioayi.apply.map(item => item.transdata);
+      // jioayiData = _.flattenDeep(jioayiData);
+      // this.$set(this, `lunboList`, jioayiData);
     },
     // 交易实况
     handleClicks(tab, event) {