chunk-7c3dd29e.dc130ba0.js 11 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7c3dd29e"],{"0652":function(e,t,n){},"109a":function(e,t,n){},"7db0":function(e,t,n){"use strict";var a=n("23e7"),r=n("b727").find,s=n("44d2"),i=n("ae40"),o="find",c=!0,l=i(o);o in[]&&Array(1)[o]((function(){c=!1})),a({target:"Array",proto:!0,forced:c||!l},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),s(o)},"811e":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"chats"}},[n("el-row",[n("el-col",{staticClass:"info chat_frame",attrs:{span:24,id:"chat"}},[e._l(e.talk,(function(t,a){return[e.isSender(t,a)?[n("el-col",{key:"div"+t.id+a,staticClass:"senderTime",attrs:{span:24}},[n("span",{key:"senderTime"+t.id+a},[e._v("["+e._s(t.send_time)+"] "+e._s(t.sender_name))]),n("span",{key:"senderContent"+t.id+a,domProps:{innerHTML:e._s(t.content)}})])]:[n("el-col",{key:"div"+t.id+a,staticClass:"receverTime",attrs:{span:24}},[n("span",{key:"receverTime"+t.id+a},[e._v(" "+e._s(t.sender_name)+" ["+e._s(t.send_time)+"]")]),n("span",{key:"receverContent"+t.id+a,domProps:{innerHTML:e._s(t.content)}})])]]}))],2),n("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[n("el-button",{staticStyle:{"margin-bottom":"10px"},attrs:{type:"primary",size:"mini"},on:{click:e.sendMessage}},[e._v("发送")]),n("wang-editor",{ref:"editor",model:{value:e.content,callback:function(t){e.content=t},expression:"content"}})],1)],1)],1)},r=[],s=(n("99af"),n("7db0"),n("b0c0"),n("b64b"),n("ac1f"),n("841c"),n("ade3")),i=(n("96cf"),n("1da1")),o=n("5530"),c=n("38d2"),l=n("2f62"),u=Object(l["a"])("personalchat"),d=u.mapActions,p={name:"chats",props:{room:{type:Object}},components:{wangEditor:c["a"]},data:function(){return{content:"",talk:[]}},created:function(){},mounted:function(){this.channel()},methods:Object(o["a"])({},d(["create","query"]),{search:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.query({personroom_id:e.room.id});case 2:n=t.sent,e.$checkRes(n)&&(e.$set(e,"talk",n.data),e.turnBottom());case 4:case"end":return t.stop()}}),t)})))()},sendMessage:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var n,a,r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(""==e.content){t.next=15;break}return n={personroom_id:e.room.id,content:e.content,sender_id:e.user.uid,sender_name:e.user.name,send_time:"13:00"},a=Object.keys(e.room),r=a.find((function(t){return e.room[t]==e.user.uid})),n.receiver_id="buyer_id"===r?e.room["seller_id"]:e.room["buyer_id"],n.receiver_name="buyer_id"===r?e.room["seller_name"]:e.room["buyer_name"],t.next=8,e.create(n);case 8:s=t.sent,e.$refs.editor.setContent(),e.$set(e,"content",""),e.$forceUpdate(),e.$checkRes(s,null,s.errmsg||"发言失败")&&(e.talk.push(s.data),e.turnBottom()),t.next=16;break;case 15:e.$message.error("请输入信息后发送");case 16:case"end":return t.stop()}}),t)})))()},channel:function(){this.room.id?this.$stomp(Object(s["a"])({},"/exchange/person_chat/".concat(this.room.id,"_").concat(this.user.uid),this.onMessage)):console.warn("未获取到房间id,无法进行订阅")},onMessage:function(e){var t=_.get(e,"body");t&&(t=JSON.parse(t),this.talk.push(t),this.turnBottom())},turnBottom:function(){this.$nextTick((function(){document.getElementById("chat").scrollTop=document.getElementById("chat").scrollHeight}))},isSender:function(e){return this.user.uid==e.sender_id}}),watch:{room:{handler:function(e){e.id&&this.search()},immediate:!0,deep:!0}},computed:Object(o["a"])({},Object(l["c"])(["user"]),{pageTitle:function(){return"".concat(this.$route.meta.title)}}),metaInfo:function(){return{title:this.$route.meta.title}}},m=p,f=(n("aa01"),n("2877")),b=Object(f["a"])(m,a,r,!1,null,"85b44030",null);t["a"]=b.exports},9051:function(e,t,n){e.exports=n.p+"img/top_3.70284524.png"},aa01:function(e,t,n){"use strict";var a=n("109a"),r=n.n(a);r.a},b0c0:function(e,t,n){var a=n("83ab"),r=n("9bf2").f,s=Function.prototype,i=s.toString,o=/^\s*function ([^ (]*)/,c="name";a&&!(c in s)&&r(s,c,{configurable:!0,get:function(){try{return i.call(this).match(o)[1]}catch(e){return""}}})},b5dd:function(e,t,n){"use strict";var a=n("0652"),r=n.n(a);r.a},ffc1:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"dockDetail"}},[n("el-row",[n("el-col",{staticClass:"style",attrs:{span:24}},[n("el-image",{attrs:{src:e.beijingPic}}),n("el-col",{staticClass:"info",attrs:{span:24}},[n("div",{staticClass:"w_1200"},[n("el-col",{staticClass:"top",attrs:{span:24}},[n("p",[e._v("吉林省计算中心对接直播大厅")]),n("p",[e._v("主办方:吉林省计算中心")])]),n("el-col",{staticClass:"main",attrs:{span:24}},[n("el-col",{staticClass:"mainTop",attrs:{span:24}},["1"===e.display?n("span",[n("el-col",{staticClass:"one",attrs:{span:24}},[n("el-col",{staticClass:"oneLeft",attrs:{span:7}},[n("el-image",{staticStyle:{width:"100%",height:"210px"},attrs:{src:e.detailInfo.img_path}})],1),n("el-col",{staticClass:"oneRight",attrs:{span:17}},[n("p",{staticClass:"textOver"},[e._v(" "+e._s(e.detailInfo.name)+" ")]),n("p",[n("span",[e._v("性别:"+e._s(e.detailInfo.gender||"暂无"))]),n("span",[e._v("出生年月:"+e._s(e.detailInfo.birthday||"暂无"))])]),n("p",[n("span",[e._v(" 毕业院校:"+e._s(e.detailInfo.school)+" ")]),n("span",[e._v("专业:"+e._s(e.detailInfo.major||"暂无"))])]),n("p",[n("span",[e._v("学历:"+e._s(e.detailInfo.xl||"暂无"))]),n("span",[e._v("学位:"+e._s(e.detailInfo.xw||"暂无"))])]),n("p",[n("span",[e._v("电话号码:"+e._s(e.detailInfo.phone||"暂无"))]),n("span",[e._v("邮箱:"+e._s(e.detailInfo.email||"暂无"))])])]),n("el-col",{staticClass:"oneDown",attrs:{span:24}},[n("div",[n("p",[e._v("身份证号:"+e._s(e.detailInfo.cardnumber||"暂无"))]),n("p",[e._v("地址:"+e._s(e.detailInfo.addr||"暂无"))]),n("p",[e._v("职称级别:"+e._s(e.detailInfo.level||"暂无"))]),n("p",[e._v("职称名称:"+e._s(e.detailInfo.levelname||"暂无"))]),n("p",[e._v("职务:"+e._s(e.detailInfo.position||"暂无"))]),n("p",[e._v("项目:"+e._s(e.detailInfo.project||"暂无"))]),n("p",[e._v("学术成就:"+e._s(e.detailInfo.academic||"暂无"))]),n("p",[e._v("论文:"+e._s(e.detailInfo.paper||"暂无"))]),n("p",[e._v("备注:"+e._s(e.detailInfo.remark||"暂无"))]),n("p",[e._v("从事专业:"+e._s(e.detailInfo.professional||"暂无"))])]),n("div",[n("p",[e._v("工作简介:")]),""!=e.resume?n("p",{staticClass:"resume"},[e._v(e._s(e.detailInfo.resume||"暂无"))]):n("p",{staticClass:"resume1"},[e._v(e._s(e.detailInfo.resume||"暂无"))]),null!=e.detailInfo.resume&&e.detailInfo.resume.length>288?n("el-button",{attrs:{size:"mini"}},[""!=e.resume?n("span",{on:{click:function(t){return e.resumeMore()}}},[e._v("更多")]):n("span",{on:{click:function(t){return e.resumeMore1()}}},[e._v("收起")])]):e._e()],1)])],1)],1):e._e()]),n("el-col",{staticClass:"mainDown"},[n("el-button",{staticStyle:{float:"left"},attrs:{type:"warning"},nativeOn:{click:function(t){return e.back()}}},[e._v("返回")]),this.user.uid!=e.detailInfo.userid?n("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.btnPhone()}}},[e._v("对接聊天")]):e._e(),this.user.uid!=e.detailInfo.userid?n("el-button",{attrs:{type:"success"},on:{click:function(t){return e.btnTrade()}}},[e._v("洽谈交易")]):e._e(),n("el-dialog",{attrs:{title:"对接聊天",visible:e.dialogTableVisible},on:{"update:visible":function(t){e.dialogTableVisible=t}}},[n("el-col",{staticClass:"two",attrs:{span:24}},[n("chat",{attrs:{room:e.room}})],1)],1)],1)],1)],1)])],1)],1),n("el-dialog",{attrs:{title:"产品参数",visible:e.dialogVisible,width:"50%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,border:""}},[n("el-table-column",{attrs:{prop:"arg_name",label:"参数名称",align:"center"}}),n("el-table-column",{attrs:{prop:"memo",label:"参数内容",align:"center"}})],1)],1)],1)},r=[],s=(n("b0c0"),n("96cf"),n("1da1")),i=n("5530"),o=(n("2ef0"),n("2f62")),c=n("811e"),l=Object(o["a"])("expertsuser"),u=l.mapActions,d=Object(o["a"])("personalroom"),p=d.mapActions,m=Object(o["a"])("transaction"),f=m.mapActions,_={name:"dockDetail",props:{},components:{chat:c["a"]},data:function(){return{beijingPic:n("9051"),display:"1",detailInfo:{},scope:"123",resume:"123",dialogVisible:!1,tableData:[],dialogTableVisible:!1,room:{}}},created:function(){this.$route.query.id&&this.searchInfo()},methods:Object(i["a"])({},u(["fetch"]),{},p(["create","countDelete"]),{},f({buyProduct:"create"}),{searchInfo:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.fetch(e.$route.query.id);case 2:n=t.sent,0===n.errcode&&e.$set(e,"detailInfo",n.data);case 4:case"end":return t.stop()}}),t)})))()},argsBtn:function(e){this.dialogVisible=!0,this.$set(this,"tableData",e)},scopeMore:function(){this.scope=""},scopeMore1:function(){this.scope="123"},resumeMore:function(){this.resume=""},resumeMore1:function(){this.resume="123"},btnInfo:function(){this.display="1"},btnPhone:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.room.id){t.next=20;break}if(n={},e.user.uid){t.next=7;break}return e.$message({dangerouslyUseHTMLString:!0,message:'<strong><a href="http://free.liaoningdoupo.com/platlive/newlogin" style="color:red;text-decoration:none;">游客身份无法与卖家对话,请先注册</a></strong>',type:"error"}),t.abrupt("return");case 7:n.buyer_id=e.user.uid,n.buyer_name=e.user.name;case 9:if(e.detailInfo.id){t.next=14;break}return e.$message.error("缺少卖家信息,请联系卖家或管理员"),t.abrupt("return");case 14:n.seller_id=e.detailInfo.userid,n.seller_name=e.detailInfo.name;case 16:return t.next=18,e.create(n);case 18:a=t.sent,e.$checkRes(a)&&e.$set(e,"room",a.data);case 20:e.dialogTableVisible=!0;case 21:case"end":return t.stop()}}),t)})))()},btnTrade:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n={},n.userid=e.user.uid,n.username=e.user.name,n.product_id=e.detailInfo.id,n.product_name=e.detailInfo.name,n.market_userid=e.detailInfo.id,n.market_username=e.detailInfo.name,n.status="0",n.type="1",e.user.uid){t.next=14;break}return e.$message({dangerouslyUseHTMLString:!0,message:'<strong><a href="http://free.liaoningdoupo.com/platlive/newlogin" style="color:red;text-decoration:none;">游客身份无法与卖家对话,请先注册</a></strong>',type:"error"}),t.abrupt("return");case 14:return t.next=16,e.buyProduct(n);case 16:a=t.sent,e.$checkRes(a,"购买申请成功",a.errmsg||"购买申请失败");case 18:case"end":return t.stop()}}),t)})))()},back:function(){history.back()}}),computed:Object(i["a"])({},Object(o["c"])(["user"]),{pageTitle:function(){return"".concat(this.$route.meta.title)}}),metaInfo:function(){return{title:this.$route.meta.title}},beforeRouteLeave:function(e,t,n){n()}},b=_,h=(n("b5dd"),n("2877")),v=Object(h["a"])(b,a,r,!1,null,"399100b8",null);t["default"]=v.exports}}]);
  2. //# sourceMappingURL=chunk-7c3dd29e.dc130ba0.js.map