lrf402788946 5 years ago
parent
commit
ff59dc2699

+ 1 - 1
public/static/liveIndex.html

@@ -51,7 +51,7 @@
 <script language="javascript">
  function btnDirect() {
      var query = window.location.search.substring(1);
-     window.open('/platlive/direct?'+query)
+     window.open('/direct?'+query)
   }
 </script>
 </html>

+ 1 - 1
src/components/enterprise/enterprisejb.vue

@@ -81,7 +81,7 @@ export default {
 }
 .right {
   width: 79%;
-    height: 1140px;
+  height: 1140px;
   overflow: hidden;
   background-color: #fff;
 }

+ 4 - 4
src/components/parts/chat.vue

@@ -54,10 +54,10 @@ export default {
       if (this.$checkRes(res)) this.$set(this, `list`, _.reverse(res.data));
     },
     async send() {
-      // if (!this.user.uid) {
-      //   this.$message.error('游客不能发言,请先注册');
-      //   return;
-      // }
+      if (!this.user.uid) {
+        this.$message.error('游客不能发言,请先注册');
+        return;
+      }
       if (this.text != '') {
         let object = { sender_name: this.user.name, content: this.text };
         if (this.user.uid) object.sender_id = this.user.uid;

+ 2 - 11
src/views/direct.vue

@@ -44,8 +44,8 @@
       <div class="w_1200">
         <el-col :span="24" class="livemain">
           <el-col :span="24" class="livevideo">
-            <el-col :span="24" class="left">
-              <el-col :span="24" class="title" @click.native="btnDirectDetail">
+            <el-col :span="24" class="left" @click.native="btnDirectDetail">
+              <el-col :span="24" class="title">
                 <span style="color: rgb(255, 132, 0);">现场</span>
                 <span>直播</span>
               </el-col>
@@ -484,18 +484,13 @@ export default {
     ...talentExperts({ expertQuery: 'query' }),
     async searchInfo() {
       let res = await this.mapProductQuery({ skip: 0, limit: 4, totaltype: '0' });
-      console.log(res);
       if (this.$checkRes(res)) this.$set(this, `jishulist`, res.data);
       res = await this.mapProductQuery({ skip: 0, limit: 4, totaltype: '1' });
-      console.log(res);
       if (this.$checkRes(res)) this.$set(this, `demandList`, res.data);
       res = await this.mapProductQuery({ skip: 0, limit: 4, totaltype: '2' });
-      console.log(res);
 
       if (this.$checkRes(res)) this.$set(this, `serviceList`, res.data);
-      console.log(res);
       res = await this.expertQuery({ skip: 0, limit: 4 });
-      console.log(res);
       if (this.$checkRes(res)) this.$set(this, `expertList`, res.data);
     },
     onclickjs(item) {
@@ -505,18 +500,15 @@ export default {
     //划过展示
     hover: function(item) {
       this.$set(this, `policyInfo`, item);
-      console.log(item);
     },
 
     zhuanjia(item) {
-      console.log(item);
       this.dialogVisible = true;
       this.$set(this, `policyInfo`, item);
     },
 
     //对接
     technologyBtn(id) {
-      console.log(id);
       this.$router.push({ path: '/live/hall/dock/dockDetail', query: { id: id } });
     },
     technology(id) {
@@ -539,7 +531,6 @@ export default {
     },
     // 直播详情
     btnDirectDetail() {
-      console.log('你好');
       this.$router.push({ path: '/live/hallDetail', query: { id: this.$route.query.id } });
     },
   },

+ 4 - 4
src/views/hall/hallDetail.vue

@@ -141,11 +141,11 @@ export default {
       }
     },
     async sendMessage() {
+      if (!this.user.uid) {
+        this.$message.error('游客不能发言,请先注册');
+        return;
+      }
       this.$set(this, `sending`, false);
-      // if (!this.user.uid) {
-      //   this.$message.error('游客不能发言,请先注册');
-      //   return;
-      // }
       if (this.content != '') {
         let object = { number: this.id, sender_name: this.user.name, content: this.content };
         if (this.user.uid) object.sender_id = this.user.uid;

+ 1 - 2
src/views/login.vue

@@ -27,9 +27,8 @@ export default {
     ...login({ toLogin: 'login' }),
     async submitLogin(form) {
       const res = await this.toLogin({ user: form });
-      console.log(res);
       if (res.uid) {
-        if (res.role == 1 || res.role == 4) window.location.href = 'http://free.liaoningdoupo.com/platadmin';
+        if (res.role == 1 || res.role == 4) this.$router.push('/');
         // else window.location.href = 'http://free.liaoningdoupo.com/platlive/home.html';
       }
     },