guhongwei 4 rokov pred
rodič
commit
4410d8cc98

+ 5 - 0
src/store/live/dock.js

@@ -30,6 +30,11 @@ const actions = {
     const res = await this.$axios.$get(`${api.dockInfo}/${payload}`);
     return res;
   },
+  // 展会动态
+  async dockdongtai({ commit }, payload) {
+    const res = await this.$axios.$get(`${api.dockInfo}/dockfetch/${payload}`);
+    return res;
+  },
   async update({ commit }, { id, ...info } = {}) {
     const res = await this.$axios.$post(`${api.dockInfo}/${id}`, { ...info });
     return res;

+ 10 - 1
src/store/market/market.js

@@ -4,19 +4,28 @@ import _ from 'lodash';
 Vue.use(Vuex);
 const api = {
   userInfo: `/api/market/user`,
+  operaInfo: `/api/market/operationlog`,
 };
 const state = () => ({});
 const mutations = {};
 
 const actions = {
   async query({ commit }, { skip = 0, limit, ...info } = {}) {
-    const res = await this.$axios.$get(`${api.userInfo}`, { skip, limit, ...info });
+    const res = await this.$axios.$get(`${api.userInfo}`, {
+      skip,
+      limit,
+      ...info,
+    });
     return res;
   },
   async create({ commit }, payload) {
     const res = await this.$axios.$post(`${api.userInfo}`, payload);
     return res;
   },
+  async operaFetch({ commit }, payload) {
+    const res = await this.$axios.$get(`${api.operaInfo}/${payload}`);
+    return res;
+  },
   async fetch({ commit }, payload) {
     const res = await this.$axios.$get(`${api.userInfo}/${payload}`);
     return res;

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

@@ -600,8 +600,8 @@ export default {
   },
   methods: {
     ...mapProduct({ mapProductQuery: 'newquery' }),
-    ...market({ marketFetch: 'fetch' }),
-    ...dock({ dockQuery: 'query', dockFetch: 'fetch' }),
+    ...market({ marketFetch: 'fetch', operaFetch: 'operaFetch' }),
+    ...dock({ dockQuery: 'query', dockFetch: 'fetch', dockdongtai: 'dockdongtai' }),
     ...expertsuser({ expertQuery: 'query' }),
     ...transaction({ tquery: 'query' }),
     // 查询详情
@@ -663,6 +663,11 @@ export default {
         val.time = time;
       }
       this.$set(this, `directlist`, newjysk);
+      // 展会动态
+      let dongtai = await this.dockdongtai(this.dock_id);
+      console.log(dongtai);
+      let opera = await this.operaFetch(this.dock_id);
+      console.log(opera);
     },
     // 交易实况
     handleClicks(tab, event) {