Browse Source

auto commit

gcz 3 years ago
parent
commit
807ef6848e
2 changed files with 42 additions and 5 deletions
  1. 41 4
      src/components/applys.vue
  2. 1 1
      src/views/applicant.vue

+ 41 - 4
src/components/applys.vue

@@ -156,6 +156,16 @@
         <el-button type="primary" @click="submit">确 定</el-button>
       </div>
     </el-dialog>
+    <div class="chat" v-if="showChat">
+      <div class="tool">
+       <i class="close el-icon-close" @click="showChat=false"></i>
+      </div>
+      <iframe        
+        :src='iframeScr'
+        class="mapFrame"
+        ref="mapFrame"
+      ></iframe>
+    </div>
   </div>
 </template>
 
@@ -201,6 +211,8 @@ export default {
       ],
       deliveryStatus: [],
       filterIndex: "-1",
+      iframeScr:'https://veterhchat.hw.hongweisoft.com/',
+      showChat:false
     };
   },
   filters: {
@@ -378,10 +390,13 @@ export default {
       }
     },
     sendvideo(item) {
-      let url = `http://172.16.90.25:8081/#/?veteMemberId=${item.veteMemberId}&inviterId=${this.$store.state.vuex_company_id}`;
-      console.log("url", url);
-      window.open(url, "_blank");
-      console.log("sendvideo", item);
+      this.iframeScr = `https://veterhchat.hw.hongweisoft.com/?veteMemberId=${item.veteMemberId}&inviterId=${this.$store.state.vuex_company_id}`
+      this.showChat = true;
+      return;
+      // let url = `http://172.16.90.25:8081/#/?veteMemberId=${item.veteMemberId}&inviterId=${this.$store.state.vuex_company_id}`;
+      // console.log("url", url);
+      // window.open(url, "_blank");
+      // console.log("sendvideo", item);
     },
   },
 };
@@ -473,6 +488,28 @@ export default {
     }
   }
 }
+.chat{
+  // overflow-y: auto;
+  box-sizing: border-box;
+  width:400px;
+  height:500px;
+  position: fixed;
+  right:24px;
+  bottom:50px;
+  .tool{
+    text-align: right;
+    .close{
+      cursor: pointer;
+      font-size: 50px;
+    }
+  }
+  .mapFrame{
+    box-sizing: border-box;
+    border: 1px solid #ddd;
+    width:100%;
+    min-height:100%;
+  }
+}
 ::v-deep {
   .el-cascader {
     width: 100%;

+ 1 - 1
src/views/applicant.vue

@@ -354,7 +354,7 @@ export default {
             type: "success",
             duration: 1000,
             onClose: function () {
-              this.dialogVisible = false;
+              that.dialogVisible = false;
             },
           });
           // console.log("updateStatus", res);