wuhongyu 4 năm trước cách đây
mục cha
commit
bd88cce783

+ 1 - 1
public/home.html

@@ -44,7 +44,7 @@
       <p>创新服务</p>
     </a>
     <a class="list fn_5 moveUpDownFla2" target="_blank" href="technical/index">
-      <p>技术培训</p>
+      <p>技术交流</p>
     </a>
   </div>
   <!--流星-->

+ 1 - 1
public/static/home.html

@@ -57,7 +57,7 @@
 									<li class="technocal">
 										<a href="/live/technical" target="_blank" data-item="4">
 											<i class="iconfont icon-peixun"></i>
-											<p>技术培训</p>
+											<p>技术交流</p>
 										</a>
 									</li>
 								</ul>

+ 1 - 1
src/layout/live/head.vue

@@ -56,7 +56,7 @@
                 <span></span>
               </li>
               <li :class="isTab('technical') ? 'active' : ''">
-                <a @click="turnTo('technical')" target="">技术培训</a>
+                <a @click="turnTo('technical')" target="">技术交流</a>
               </li>
             </ul>
           </div>

+ 47 - 19
src/views/technical/index.vue

@@ -1,7 +1,7 @@
 <template>
   <div id="technical">
     <el-col :span="24" class="main">
-      <el-col :span="12" class="left">
+      <!-- <el-col :span="12" class="left">
         <el-col :span="24" class="downLeftTop">
           <el-image :src="downLeftTopImage"></el-image>
           <span class="topText">
@@ -24,20 +24,20 @@
             </p>
           </el-col>
         </el-col>
-      </el-col>
-      <el-col :span="12" class="right">
+      </el-col> -->
+      <el-col :span="12" class="left">
         <el-col :span="24" class="downLeftTop">
           <el-image :src="downLeftTopImage"></el-image>
           <span class="topText">
             <span>专家问诊</span>
             <span
-              ><p>I</p>
-              <p>nquiry</p></span
+              ><p>E</p>
+              <p>xpert</p></span
             >
             <span @click="turnToList('专家问诊')">更多</span>
           </span>
         </el-col>
-        <el-col :span="23" class="infoRight">
+        <el-col :span="24" class="infoLeft">
           <el-col class="infoRightList" :span="24" v-for="(item, index) in jishuList" :key="index">
             <p>
               <span class="textOver" @click="$router.push({ path: '/technical/list', query: { id: item.id, display: 3, column_name: '专家问诊' } })">{{
@@ -48,10 +48,7 @@
           </el-col>
         </el-col>
       </el-col>
-      <el-col :span="24">
-        <el-image :src="jishuImage" class="jishuImage"></el-image>
-      </el-col>
-      <el-col :span="12" class="left">
+      <el-col :span="12" class="right">
         <el-col :span="24" class="downLeftTop">
           <el-image :src="downLeftTopImage"></el-image>
           <span class="topText">
@@ -63,7 +60,7 @@
             <span @click="turnToList('行业研究')">更多</span>
           </span>
         </el-col>
-        <el-col :span="24" class="infoLeft">
+        <el-col :span="23" class="infoRight">
           <el-col class="infoRightList" :span="24" v-for="(item, index) in hangyeList" :key="index">
             <p>
               <span class="textOver" @click="$router.push({ path: '/technical/list', query: { id: item.id, display: 3, column_name: '行业研究' } })">{{
@@ -74,23 +71,49 @@
           </el-col>
         </el-col>
       </el-col>
+      <el-col :span="24">
+        <el-image :src="jishuImage" class="jishuImage"></el-image>
+      </el-col>
+      <el-col :span="12" class="left">
+        <el-col :span="24" class="downLeftTop">
+          <el-image :src="downLeftTopImage"></el-image>
+          <span class="topText">
+            <span>在线指导</span>
+            <span
+              ><p>G</p>
+              <p>uidance</p></span
+            >
+            <span @click="turnToList('在线指导')">更多</span>
+          </span>
+        </el-col>
+        <el-col :span="24" class="infoLeft">
+          <el-col class="infoRightList" :span="24" v-for="(item, index) in zhidaolist" :key="index">
+            <p>
+              <span class="textOver" @click="$router.push({ path: '/technical/list', query: { id: item.id, display: 4, column_name: '在线指导' } })">{{
+                item.title
+              }}</span
+              ><span class="textOver">{{ item.publish_time }}</span>
+            </p>
+          </el-col>
+        </el-col>
+      </el-col>
       <el-col :span="12" class="right">
         <el-col :span="24" class="downLeftTop">
           <el-image :src="downLeftTopImage"></el-image>
           <span class="topText">
-            <span>教育培训</span>
+            <span>项目路演</span>
             <span
-              ><p>T</p>
-              <p>raining</p></span
+              ><p>R</p>
+              <p>oadshow</p></span
             >
-            <span @click="turnToList('教育培训')">更多</span>
+            <span @click="turnToList('项目路演')">更多</span>
           </span>
         </el-col>
         <el-col :span="23" class="infoRight">
-          <el-col class="infoLeftList" :span="24" v-for="(item, index) in jiaoyuList" :key="index">
+          <el-col class="infoLeftList" :span="24" v-for="(item, index) in luyanlist" :key="index">
             <p>{{ item.publish_time }}</p>
             <p>
-              <span class="textOver" @click="$router.push({ path: '/technical/list', query: { id: item.id, display: 4, column_name: '教育培训' } })">{{
+              <span class="textOver" @click="$router.push({ path: '/technical/list', query: { id: item.id, display: 3, column_name: '项目路演' } })">{{
                 item.title
               }}</span>
               <span>{{ item.titlejj }}</span>
@@ -118,6 +141,8 @@ export default {
     jishuList: [],
     hangyeList: [],
     jiaoyuList: [],
+    zhidaolist: [],
+    luyanlist: [],
   }),
   created() {
     this.searchInfo();
@@ -150,9 +175,12 @@ export default {
       } else if (column_name == '行业研究') {
         const res = await this.newsList({ skip: 0, limit: 8, column_id: column_id });
         if (this.$checkRes(res)) this.$set(this, `hangyeList`, res.data);
-      } else if (column_name == '教育培训') {
+      } else if (column_name == '在线指导') {
+        const res = await this.newsList({ skip: 0, limit: 8, column_id: column_id });
+        if (this.$checkRes(res)) this.$set(this, `zhidaolist`, res.data);
+      } else if (column_name == '项目路演') {
         const res = await this.newsList({ skip: 0, limit: 5, column_id: column_id });
-        if (this.$checkRes(res)) this.$set(this, `jiaoyuList`, res.data);
+        if (this.$checkRes(res)) this.$set(this, `luyanlist`, res.data);
       }
     },
     turnToList(column_name) {

+ 16 - 16
src/views/technical/list.vue

@@ -99,7 +99,7 @@ export default {
     newsid: '',
     display: '1',
     squareImage: require('@/assets/live/square_big.png'),
-    menuList: [{ name: '专题研讨' }, { name: '专家问诊' }, { name: '行业研究' }, { name: '教育培训' }],
+    menuList: [{ name: '专家问诊' }, { name: '行业研究' }, { name: '在线指导' }, { name: '项目路演' }],
     menuIndex: '0',
     menuName: '专题研讨',
     menuColor: 'rgb(254, 149, 14)',
@@ -135,13 +135,13 @@ export default {
   methods: {
     ...news(['query']),
     async searchList({ skip = 0, limit = 10, ...info } = {}) {
-      if (this.$route.query.column_name == '专题研讨') {
+      if (this.$route.query.column_name == '专家问诊') {
         this.changeMenu(this.$route.query.column_name, 0);
-      } else if (this.$route.query.column_name == '专家问诊') {
-        this.changeMenu(this.$route.query.column_name, 1);
       } else if (this.$route.query.column_name == '行业研究') {
+        this.changeMenu(this.$route.query.column_name, 1);
+      } else if (this.$route.query.column_name == '在线指导') {
         this.changeMenu(this.$route.query.column_name, 2);
-      } else if (this.$route.query.column_name == '教育培训') {
+      } else if (this.$route.query.column_name == '项目路演') {
         this.changeMenu(this.$route.query.column_name, 3);
       }
     },
@@ -154,21 +154,21 @@ export default {
     async initList({ name, skip = 0, limit = 10, ...info } = {}) {
       this.display = 1;
       let res = [];
-      if (name == '专题研讨') {
+      if (name == '专家问诊') {
         this.pageSize = 5;
-        res = await this.query({ skip, limit, column_name: '专题研讨', ...info });
-        this.$set(this, `zhuantiList`, res.data);
-      } else if (name == '专家问诊') {
-        this.pageSize = 10;
         res = await this.query({ skip, limit, column_name: '专家问诊', ...info });
-        this.$set(this, `exportList`, res.data);
+        this.$set(this, `zhuantiList`, res.data);
       } else if (name == '行业研究') {
         this.pageSize = 10;
         res = await this.query({ skip, limit, column_name: '行业研究', ...info });
+        this.$set(this, `exportList`, res.data);
+      } else if (name == '在线指导') {
+        this.pageSize = 10;
+        res = await this.query({ skip, limit, column_name: '在线指导', ...info });
         this.$set(this, `hangyeList`, res.data);
-      } else if (name == '教育培训') {
+      } else if (name == '项目路演') {
         this.pageSize = 5;
-        res = await this.query({ skip, limit, column_name: '教育培训', ...info });
+        res = await this.query({ skip, limit, column_name: '项目路演', ...info });
         this.$set(this, `jiaoyuList`, res.data);
       }
       this.$set(this, `pageTotal`, res.total);
@@ -188,7 +188,7 @@ export default {
     },
     clickzhuanti(id) {
       // this.$router.push({ path: '/live/semDetail', query: { id: id } });
-      this.display = '2';
+      this.display = '3';
       this.newsid = id;
       console.log(this.display);
     },
@@ -197,12 +197,12 @@ export default {
       this.newsid = id;
     },
     clickhangye(id) {
-      this.display = '3';
+      this.display = '4';
       this.newsid = id;
     },
 
     clickjiaoyu(id) {
-      this.display = '4';
+      this.display = '3';
       this.newsid = id;
     },
   },