(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-93660e20"],{"14ae":function(t,e,r){"use strict";var n=r("8c1b"),a=r.n(n);a.a},"276d":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{attrs:{id:"liveApply"}},[r("div",{staticClass:"w_0100"},[r("div",{staticClass:"w_1200"},[r("div",{staticClass:"liveApply"},[r("el-col",{staticClass:"liveApplyTop",attrs:{span:24}},[r("el-col",{attrs:{span:3}},[r("el-image",{staticStyle:{width:"105px",height:"105px"},attrs:{src:t.logo}})],1),r("el-col",{attrs:{span:20}},[r("p",[t._v("温馨提示:")]),r("p",[t._v("1、为了保证您的信息能顺利通过我们的审核,请将信息的真实情况尽可能全面的发布出来!")]),r("p",[t._v(" 2、根据我们的长期跟踪统计,信息完整度越高,越容易获得目标客户的关注!3、信息完整度越高,将在我们的平台搜索结果排序靠前、获得推荐机会,以及享受增值服务试用机会! ")])])],1),r("el-col",{staticClass:"liveApplyInfo",attrs:{span:24}},[r("el-form",{ref:"form",attrs:{model:t.form,"label-width":"120px"}},[r("el-form-item",{attrs:{label:"申请人身份"}},[r("el-radio-group",{on:{change:t.changeuser},model:{value:t.form.buyer,callback:function(e){t.$set(t.form,"buyer",e)},expression:"form.buyer"}},[r("el-radio",{attrs:{label:"0"}},[t._v("买家")]),r("el-radio",{attrs:{label:"1"}},[t._v("卖家")])],1)],1),"1"==this.resource||""==this.resource?r("span",[r("el-form-item",{attrs:{label:"选择产品"}},[r("el-select",{attrs:{placeholder:"请选择选择产品"},model:{value:t.form.goodsList,callback:function(e){t.$set(t.form,"goodsList",e)},expression:"form.goodsList"}},t._l(t.goodsLists,(function(t,e){return r("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1)],1):t._e(),r("el-form-item",{attrs:{label:"联系人"}},[r("el-input",{model:{value:t.form.contact,callback:function(e){t.$set(t.form,"contact",e)},expression:"form.contact"}})],1),r("el-form-item",{attrs:{label:"联系电话"}},[r("el-input",{model:{value:t.form.contact_tel,callback:function(e){t.$set(t.form,"contact_tel",e)},expression:"form.contact_tel"}})],1),r("el-form-item",{attrs:{label:"电子邮箱"}},[r("el-input",{model:{value:t.form.email,callback:function(e){t.$set(t.form,"email",e)},expression:"form.email"}})],1),r("el-form-item",{attrs:{label:"单位名称"}},[r("el-input",{model:{value:t.form.company,callback:function(e){t.$set(t.form,"company",e)},expression:"form.company"}})],1),r("el-row",{staticStyle:{"text-align":"center"}},[r("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("立即申请")]),r("el-button",{on:{click:t.restBtn}},[t._v("取消")])],1)],1)],1)],1)])])])},a=[],i=(r("7db0"),r("b0c0"),r("96cf"),r("1da1")),o=r("5530"),s=r("2f62"),c=(r("9dac"),Object(s["a"])("marketproduct")),l=c.mapActions,u=Object(s["a"])("apply"),f=u.mapActions,p={name:"liveApply",props:{},components:{},data:function(){return{form:{},logo:r("faf3"),resource:"",goodsLists:[]}},created:function(){this.searchInfo()},methods:Object(o["a"])({},l({mapProductQuery:"query",mapProductFetch:"fetch"}),{},f({applyCreate:"create"}),{onSubmit:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var r,n,a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=JSON.parse(JSON.stringify(t.form)),n=Object(o["a"])({},r),n.user_id=t.user.uid,!n.user_id){e.next=13;break}return n.user_name=t.user.name,a=t.$route.query.id,n.goodsList=[t.productInfo(t.form.goodsList)],e.next=9,t.applyCreate(Object(o["a"])({id:a},n));case 9:i=e.sent,0===i.errcode&&(t.$message({message:"申请参加对接会成功",type:"success"}),t.restBtn()),e.next=14;break;case 13:t.$message({dangerouslyUseHTMLString:!0,message:'游客身份无法与卖家对话,请先注册',type:"error"});case 14:case"end":return e.stop()}}),e)})))()},restBtn:function(){$router.go(-1)},productInfo:function(t){var e=this.goodsLists.find((function(e){return e.id==t}));return e},searchInfo:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.mapProductQuery({userid:t.user.uid});case 2:r=e.sent,0===r.errcode&&t.$set(t,"goodsLists",r.data);case 4:case"end":return e.stop()}}),e)})))()},changeuser:function(t){this.$set(this,"resource",t)},uploadSuccess:function(t){var e=t.type,r=t.data;this.$set(this.form,"".concat(e),r.uri)}}),computed:Object(o["a"])({},Object(s["c"])(["user"]),{pageTitle:function(){return"".concat(this.$route.meta.title)}}),metaInfo:function(){return{title:this.$route.meta.title}}},d=p,m=(r("14ae"),r("2877")),h=Object(m["a"])(d,n,a,!1,null,"52fc9afd",null);e["default"]=h.exports},5899:function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(t,e,r){var n=r("1d80"),a=r("5899"),i="["+a+"]",o=RegExp("^"+i+i+"*"),s=RegExp(i+i+"*$"),c=function(t){return function(e){var r=String(n(e));return 1&t&&(r=r.replace(o,"")),2&t&&(r=r.replace(s,"")),r}};t.exports={start:c(1),end:c(2),trim:c(3)}},7156:function(t,e,r){var n=r("861d"),a=r("d2bb");t.exports=function(t,e,r){var i,o;return a&&"function"==typeof(i=e.constructor)&&i!==r&&n(o=i.prototype)&&o!==r.prototype&&a(t,o),t}},"7db0":function(t,e,r){"use strict";var n=r("23e7"),a=r("b727").find,i=r("44d2"),o=r("ae40"),s="find",c=!0,l=o(s);s in[]&&Array(1)[s]((function(){c=!1})),n({target:"Array",proto:!0,forced:c||!l},{find:function(t){return a(this,t,arguments.length>1?arguments[1]:void 0)}}),i(s)},"8c1b":function(t,e,r){},"9dac":function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{attrs:{id:"upload"}},[t.url?r("el-upload",{ref:"upload",attrs:{action:t.url,"list-type":t.listType,"file-list":t.fileList,limit:t.limit,"on-exceed":t.outLimit,"on-preview":t.handlePictureCardPreview,"before-remove":t.handleRemove,"on-success":t.onSuccess,"before-upload":t.beforeUpload,"show-file-list":t.showList,accept:t.accept},scopedSlots:t._u([t.tip?{key:"tip",fn:function(){return[t._v(" "+t._s(t.tip)+" ")]},proxy:!0}:null],null,!0)},[t.isBtn?r("el-button",{attrs:{size:"small",type:"primary"}},[t._v("点击上传")]):t.uploadBtn?[r("el-button",{attrs:{type:"danger"}},[t._v("选择文件")])]:[r("i",{staticClass:"el-icon-plus"})]],2):t._e(),r("el-dialog",{attrs:{visible:t.dialogVisible},on:{"update:visible":function(e){t.dialogVisible=e}}},[r("img",{attrs:{width:"100%",src:t.dialogImageUrl,alt:""}})])],1)},a=[],i=(r("c740"),r("d81d"),r("b0c0"),r("a9e3"),r("5530")),o=r("2ef0"),s=r.n(o),c={name:"upload",props:{url:{type:null},limit:{type:Number},data:{type:null},type:{type:String},isBtn:{type:Boolean,default:!1},uploadBtn:{type:Boolean,default:!1},showList:{type:Boolean,default:!0},accept:{type:String,default:""},tip:{type:String,default:void 0},listType:{type:String,default:"picture-card"}},components:{},data:function(){return{dialogVisible:!1,dialogImageUrl:"",fileList:[]}},created:function(){this.data&&this.defalutProcess(this.data)},watch:{data:{handler:function(t){this.defalutProcess(t)}}},computed:{},methods:{handlePictureCardPreview:function(t){this.dialogImageUrl=t.url,this.dialogVisible=!1},handleRemove:function(t,e){var r=e.findIndex((function(e){return s.a.isEqual(e,t)}));return this.$emit("delete",r),!1},outLimit:function(){this.$message.error("只允许上传".concat(this.limit,"个文件"))},onSuccess:function(t,e,r){this.$emit("upload",{type:this.type,data:Object(i["a"])({},t,{name:e.name})})},beforeUpload:function(t){var e=t.size/1024/1024<10;return!!e||(this.$message.error("文件超出10M!"),!1)},defalutProcess:function(t){if(s.a.isArray(t)){var e=t.map((function(t){var e={};return e.name=t.name,e.url=t.url,e}));this.$set(this,"fileList",e)}else if(s.a.isObject(t)){var r={};s.a.get(t,"url")&&(r.name=t.name,r.url=t.url,this.$set(this,"fileList",[r]))}else"string"===typeof t&&this.$set(this,"fileList",[{name:"附件",url:t}])}}},l=c,u=r("2877"),f=Object(u["a"])(l,n,a,!1,null,"37943574",null);e["a"]=f.exports},a9e3:function(t,e,r){"use strict";var n=r("83ab"),a=r("da84"),i=r("94ca"),o=r("6eeb"),s=r("5135"),c=r("c6b6"),l=r("7156"),u=r("c04e"),f=r("d039"),p=r("7c73"),d=r("241c").f,m=r("06cf").f,h=r("9bf2").f,b=r("58a8").trim,g="Number",v=a[g],y=v.prototype,_=c(p(y))==g,I=function(t){var e,r,n,a,i,o,s,c,l=u(t,!1);if("string"==typeof l&&l.length>2)if(l=b(l),e=l.charCodeAt(0),43===e||45===e){if(r=l.charCodeAt(2),88===r||120===r)return NaN}else if(48===e){switch(l.charCodeAt(1)){case 66:case 98:n=2,a=49;break;case 79:case 111:n=8,a=55;break;default:return+l}for(i=l.slice(2),o=i.length,s=0;sa)return NaN;return parseInt(i,n)}return+l};if(i(g,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var x,w=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof w&&(_?f((function(){y.valueOf.call(r)})):c(r)!=g)?l(new v(I(e)),r,w):I(e)},$=n?d(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),A=0;$.length>A;A++)s(v,x=$[A])&&!s(w,x)&&h(w,x,m(v,x));w.prototype=y,y.constructor=w,o(a,g,w)}},b0c0:function(t,e,r){var n=r("83ab"),a=r("9bf2").f,i=Function.prototype,o=i.toString,s=/^\s*function ([^ (]*)/,c="name";n&&!(c in i)&&a(i,c,{configurable:!0,get:function(){try{return o.call(this).match(s)[1]}catch(t){return""}}})},c740:function(t,e,r){"use strict";var n=r("23e7"),a=r("b727").findIndex,i=r("44d2"),o=r("ae40"),s="findIndex",c=!0,l=o(s);s in[]&&Array(1)[s]((function(){c=!1})),n({target:"Array",proto:!0,forced:c||!l},{findIndex:function(t){return a(this,t,arguments.length>1?arguments[1]:void 0)}}),i(s)},faf3:function(t,e,r){t.exports=r.p+"img/d10_fbb1.92059364.png"}}]); //# sourceMappingURL=chunk-93660e20.dd3893f3.js.map