12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2ab07972"],{"109a":function(e,t,n){},"6a2e":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-carousel",{attrs:{trigger:"click",height:"210px"}},[e.detailInfo.image&&e.detailInfo.image.length>0?e._l(e.detailInfo.image,(function(e,t){return n("el-carousel-item",{key:t},[n("el-image",{staticStyle:{width:"100%",height:"210px"},attrs:{src:e.url}})],1)})):e._e()],2)],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.product_type_name||"暂无"))]),n("span",[e._v("收费标准:"+e._s(e.detailInfo.price||"暂无")+"/"+e._s(e.detailInfo.priceunit||"暂无"))])]),n("p",[n("span",[e._v(" 交易方式:"+e._s("0"===e.detailInfo.business?"公用":"1"===e.detailInfo.business?"转让":"2"===e.detailInfo.business?"竞价":"暂无")+" ")]),n("span",[e._v("研发阶段:"+e._s(1==e.detailInfo.phase?"阶段成果":2==e.detailInfo.phase?"最终成果":"暂无"))])]),n("p",[n("span",[e._v("联系人:"+e._s(e.detailInfo.contact_user||"暂无"))]),n("span",[e._v("联系电话:"+e._s(e.detailInfo.contact_tel||"暂无"))])])]),n("el-col",{staticClass:"oneDown",attrs:{span:24}},[n("div",[n("p",[e._v("应用领域:")]),n("p",[e._v(e._s(e.detailInfo.field||"暂无"))])]),n("div",[n("p",[n("span",[e._v("产品参数:")]),n("span",{on:{click:function(t){return e.argsBtn(e.detailInfo.product_args)}}},[e._v("查看详情")])])]),n("div",[n("p",[e._v("服务范围:")]),""!=e.scope?n("p",{staticClass:"moreScope"},[e._v(e._s(e.detailInfo.scope||"暂无"))]):n("p",{staticClass:"moreScope1"},[e._v(e._s(e.detailInfo.scope||"暂无"))]),null!=e.detailInfo.scope&&e.detailInfo.scope.length>300?n("el-button",{attrs:{size:"mini"}},[""!=e.scope?n("span",{on:{click:function(t){return e.scopeMore()}}},[e._v("更多")]):n("span",{on:{click:function(t){return e.scopeMore1()}}},[e._v("收起")])]):e._e()],1),n("div",[n("p",[e._v("产品简介:")]),""!=e.introduction?n("p",{staticClass:"introduction"},[e._v(e._s(e.detailInfo.introduction||"暂无"))]):n("p",{staticClass:"introduction1"},[e._v(e._s(e.detailInfo.introduction||"暂无"))]),null!=e.detailInfo.introduction&&e.detailInfo.introduction.length>300?n("el-button",{attrs:{size:"mini"}},[""!=e.introduction?n("span",{on:{click:function(t){return e.introductionMore()}}},[e._v("更多")]):n("span",{on:{click:function(t){return e.introductionMore1()}}},[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=[],i=(n("b0c0"),n("96cf"),n("1da1")),s=n("5530"),o=(n("2ef0"),n("2f62")),c=n("811e"),u=Object(o["a"])("marketproduct"),l=u.mapActions,d=Object(o["a"])("personalroom"),p=d.mapActions,f=Object(o["a"])("transaction"),m=f.mapActions,h={name:"dockDetail",props:{},components:{chat:c["a"]},data:function(){return{beijingPic:n("9051"),display:"1",detailInfo:{},scope:"123",introduction:"123",dialogVisible:!1,tableData:[],dialogTableVisible:!1,room:{}}},created:function(){this.$route.query.id&&this.searchInfo()},methods:Object(s["a"])({},l(["fetch"]),{},p(["create","countDelete"]),{},m({buyProduct:"create"}),{searchInfo: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.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"},introductionMore:function(){this.introduction=""},introductionMore1:function(){this.introduction="123"},btnInfo:function(){this.display="1"},btnPhone:function(){var e=this;return Object(i["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;">游客身份无法与卖家对话,请先注册</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.userid){t.next=14;break}return e.$message.error("缺少卖家信息,请联系卖家或管理员"),t.abrupt("return");case 14:n.seller_id=e.detailInfo.userid,n.seller_name=e.detailInfo.contact_user;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(i["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.userid,n.market_username=e.detailInfo.contact_user,n.dockid=e.$route.query.dockid,n.status="0",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;">游客身份无法与卖家对话,请先注册</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(s["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("e8c9"),n("2877")),g=Object(_["a"])(b,a,r,!1,null,"203ad65e",null);t["default"]=g.exports},"7db0":function(e,t,n){"use strict";var a=n("23e7"),r=n("b727").find,i=n("44d2"),s=n("ae40"),o="find",c=!0,u=s(o);o in[]&&Array(1)[o]((function(){c=!1})),a({target:"Array",proto:!0,forced:c||!u},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),i(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=[],i=(n("99af"),n("7db0"),n("b0c0"),n("b64b"),n("ac1f"),n("841c"),n("ade3")),s=(n("96cf"),n("1da1")),o=n("5530"),c=n("38d2"),u=n("2f62"),l=Object(u["a"])("personalchat"),d=l.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(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.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(s["a"])(regeneratorRuntime.mark((function t(){var n,a,r,i;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:i=t.sent,e.$refs.editor.setContent(),e.$set(e,"content",""),e.$forceUpdate(),e.$checkRes(i,null,i.errmsg||"发言失败")&&(e.talk.push(i.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(i["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(u["c"])(["user"]),{pageTitle:function(){return"".concat(this.$route.meta.title)}}),metaInfo:function(){return{title:this.$route.meta.title}}},f=p,m=(n("aa01"),n("2877")),h=Object(m["a"])(f,a,r,!1,null,"85b44030",null);t["a"]=h.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,i=Function.prototype,s=i.toString,o=/^\s*function ([^ (]*)/,c="name";a&&!(c in i)&&r(i,c,{configurable:!0,get:function(){try{return s.call(this).match(o)[1]}catch(e){return""}}})},e8c9:function(e,t,n){"use strict";var a=n("ee29"),r=n.n(a);r.a},ee29:function(e,t,n){}}]);
- //# sourceMappingURL=chunk-2ab07972.1b8f65ee.js.map
|