guhongwei 5 年 前
コミット
d953129602

+ 1 - 0
public/static/css/style.css

@@ -2147,6 +2147,7 @@ th {
     font-weight: bold;
     font-family: monospace;
     padding: 0 0 20px 0;
+    height: 100px;
 }
 
 .liveIndex .info .infoThree .childpage {

+ 26 - 7
public/static/liveIndex.html

@@ -5,7 +5,7 @@
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 
-  <title>吉林省计算中心</title>
+  <title>中科在线(长春)技术交易平台</title>
   <link rel="stylesheet" type="text/css" href="css/style.css">
   <link rel="stylesheet" type="text/css" href="css/mubu2017.css">
   <link rel="stylesheet" type="text/css" href="css/iconfont.css">
@@ -19,16 +19,26 @@
     top: 97px;
     left: -105px;
   }
+  .mubu_title{
+    position: fixed;
+    top: 4%;
+    z-index: 999;
+    color: #fffa93;
+    width: 100%;
+    text-align: center;
+    font-size: 40px;
+    text-shadow: 2px 2px 5px #000;
+  }
 </styLe>
 
-<body>
+<body onload="getTitle()">
   <div class="mubu">
     <div class="mubu_main liveIndex">
       <div class="info">
         <div class="infoTwo">
           <div class="infoThree">
               <img src="./images/logo.png">
-            <p class="title">吉林省计算中心科技直播大厅</p>
+            <p class="title" id="title"></p>
             <p>主办方:吉林省计算中心</p>
             <p>承办方:吉林省计算中心</p>
             <p>技术支持:长春市福瑞科技有限公司</p>
@@ -45,15 +55,24 @@
   <div class="mubu_left"></div>
   <div class="mubu_right"></div>
   <div class="mubu_top"></div>
-
+  <div class='mubu_title'>中科在线(长春)技术交易平台</div>
 
 </body>
 <script language="javascript">
  function btnDirect() {
      var query = window.location.search.substring(1);
-     console.log(query);
-    //  window.open('../direct?'+query)
-   window.location.href = "../direct?"+query
+     window.location.href = "../direct?"+query
+  }
+  function GetQueryString(name) {
+    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
+    var r = window.location.search.substr(1).match(reg);
+    if (r != null)
+    return decodeURI(r[2]);   //对参数进行decodeURI解码
+    return null;
   }
+function getTitle() {
+  document.getElementById('title').innerText= GetQueryString('title')+'直播大厅';
+}
+    
 </script>
 </html>

+ 25 - 1
src/views/hallList/parts/list.vue

@@ -4,7 +4,7 @@
       <p>
         <span class="textOver" @click="turnTo(item)">{{ item.title }}</span>
         <span class="textOver">
-          <el-link :underline="false" :href="`${liveIndex}?id=${item.id}`" target="_blank" class="duijie" v-if="status == '1'">
+          <el-link :underline="false" @click="linkBtn(item.id)" target="_blank" class="duijie" v-if="status == '1'">
             <!--  v-if="canIn(item)" -->
             进入对接会
           </el-link>
@@ -23,6 +23,8 @@
 <script>
 import page from '@/components/pagination.vue';
 import { mapState, createNamespacedHelpers } from 'vuex';
+const { mapActions: dock } = createNamespacedHelpers('dock');
+const { mapActions: place } = createNamespacedHelpers('place');
 export default {
   name: 'list',
   props: { list: { type: Array, default: () => [] }, status: { type: String, default: '0' } },
@@ -36,6 +38,8 @@ export default {
     this.setIndex();
   },
   methods: {
+    ...place({ palcequery: 'query', transactiondtetle: 'delete' }),
+    ...dock({ livefetch: 'fetch', livelist: 'query', livecreate: 'create', liveupdate: 'update' }),
     toQuery(options) {
       this.$emit('query', { ...options, status: this.status });
     },
@@ -43,6 +47,26 @@ export default {
       let index = (process.env.NODE_ENV === 'development' ? '' : process.env.VUE_APP_ROUTER) + '/static/liveIndex.html';
       this.$set(this, `liveIndex`, index);
     },
+    // 跳转
+    async linkBtn(id) {
+      let res = await this.livefetch(id);
+      let sheng = '';
+      let shi = '';
+      let parent = res.data.province;
+      let places = res.data.place;
+      let reslte = await this.palcequery({ level: 1, parent });
+      let resltes = await this.palcequery({ level: 2, parent });
+      var arr = reslte.data.filter(item => item.code === parent);
+      var cre = resltes.data.filter(item => item.code === places);
+      for (const val of arr) {
+        sheng = val.name;
+      }
+      for (const val of cre) {
+        shi = val.name;
+      }
+      let newTitle = sheng + shi + res.data.title;
+      window.location.href = encodeURI(`${this.liveIndex}?id=${id}&title=${newTitle}`);
+    },
     canIn(data) {
       let nowTime = new Date().getTime();
       let start_time = new Date(data.start_time).getTime();