1 line
7.5 KiB
JavaScript
1 line
7.5 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{585:function(e,t,o){var content=o(656);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(18).default)("22387f82",content,!0,{sourceMap:!1})},655:function(e,t,o){"use strict";o(585)},656:function(e,t,o){var n=o(17)((function(i){return i[1]}));n.push([e.i,".news-details-container .nav-container[data-v-af3068ba]{padding:15px 16px}.news-details-container .content-box[data-v-af3068ba]{display:flex;flex-direction:row}.news-details-container .content-box .news-detail-box[data-v-af3068ba]{background-color:#fff;width:100%}.news-details-container .content-box .news-detail-box .content-header[data-v-af3068ba]{border-bottom:1px solid #e5e5e5;margin:0 20px;padding:20px 0;position:relative}.news-details-container .content-box .news-detail-box .content-header .news-detail-title[data-v-af3068ba]{color:#222;font-size:24px;font-weight:500;margin-bottom:30px;max-width:860px}.news-details-container .content-box .news-detail-box .content-html-box[data-v-af3068ba]{padding:24px 20px}.news-details-container .content-box .news-detail-box .content-html-box>div[data-v-af3068ba]{overflow:hidden;width:100%}.news-details-container .content-box .news-detail-box .content-html-box>div[data-v-af3068ba] img{width:100%}.news-details-container .content-box .recommend-box[data-v-af3068ba]{width:264px}.news-details-container .content-box .recommend-box .recommend-box-header[data-v-af3068ba]{border-bottom:1px solid #e5e5e5;padding:15px 10px}.news-details-container .content-box .recommend-box .recommend-box-header .primary-line[data-v-af3068ba]{background-color:#ff2c3c;height:20px;margin-right:10px;width:4px}.news-details-container .content-box .recommend-box .recommend-box-content .recommend-list-container .recommend-list-item[data-v-af3068ba]{cursor:pointer;padding:10px}.news-details-container .content-box .recommend-box .recommend-box-content .recommend-list-container .recommend-list-item .goods-info[data-v-af3068ba]{margin-top:8px}.demand-title[data-v-af3068ba]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;line-height:30px;max-width:900px;overflow:hidden;text-overflow:ellipsis}.sign[data-v-af3068ba]{position:absolute;right:0;top:30px}",""]),n.locals={},e.exports=n},726:function(e,t,o){"use strict";o.r(t);o(30);var n=o(8),r=(o(56),{head:function(){return{title:this.$store.getters.headTitle,link:[{rel:"icon",type:"image/x-icon",href:this.$store.getters.favicon}]}},asyncData:function(e){return Object(n.a)(regeneratorRuntime.mark((function t(){var o,n,r,l,d;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=e.$get,e.$post,n=e.query,r={},l="",[],l=n.id,t.next=7,o("demand/detail",{params:{id:n.id}});case 7:return 1==(d=t.sent).code&&(r=d.data),t.abrupt("return",{detailsObj:r,demand_id:l});case 10:case"end":return t.stop()}}),t)})))()},watchQuery:["id"],data:function(){return{demand_id:"",dialogFormVisible:!1,form:{name:"",phone:"",company:"",price:"",remarks:""},formLabelWidth:"120px",rules:{name:[{required:!0,message:"请输入姓名",trigger:"blur"}],phone:[{required:!0,message:"请输入电话",trigger:"blur"}],company:[{required:!0,message:"请输入公司名称",trigger:"blur"}],price:[{required:!0,message:"请输入报价",trigger:"blur"}]}}},mounted:function(){console.log("route",this.$route)},methods:{getNewsDetails:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function o(){var n;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,t.$get("help/detail",{params:{id:e,client:2}});case 2:1==(n=o.sent).code&&(t.detailsObj=n.data);case 4:case"end":return o.stop()}}),o)})))()},toOther:function(e){this.$router.push("/help_center/help_center_detail?id="+e)},submitForm:function(form){var e=this;console.log(this.demand_id),this.$refs[form].validate((function(t){if(!t)return!1;console.log(e.form);var o=e.form;o.demand_id=e.demand_id,e.$post("demand/report",o).then((function(t){1==t.code&&(e.dialogFormVisible=!1,e.$message({message:"报名成功",type:"success"}))}))}))}}}),l=(o(655),o(9)),component=Object(l.a)(r,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"news-details-container mt16"},[t("div",{staticClass:"nav-container flex"},[t("div",{staticClass:"nr",staticStyle:{width:"70px"}},[e._v("当前位置:")]),e._v(" "),t("el-breadcrumb",{staticClass:"flex",staticStyle:{flex:"1"},attrs:{separator:"/"}},[t("el-breadcrumb-item",{attrs:{to:{path:"/"}}},[e._v("首页")]),e._v(" "),t("el-breadcrumb-item",[t("nuxt-link",{attrs:{to:"/demand_list"}},[e._v("我的需求")])],1),e._v(" "),t("el-breadcrumb-item",{staticClass:"line1 demand-title"},[e._v(e._s(e.detailsObj.name))])],1)],1),e._v(" "),t("div",{staticClass:"content-box"},[t("div",{staticClass:"news-detail-box m-r-16"},[t("div",{staticClass:"content-header bg-white"},[t("div",{staticClass:"news-detail-title"},[e._v("\n "+e._s(e.detailsObj.name)+"\n ")]),e._v(" "),t("div",{staticClass:"sign"},[t("el-button",{attrs:{type:"primary",icon:"el-icon-s-promotion"},on:{click:function(t){e.dialogFormVisible=!0}}},[e._v("立即报名")])],1),e._v(" "),t("div",{staticClass:"flex"},[t("div",{staticClass:"sm muted"},[e._v("\n 发布时间:"+e._s(e.detailsObj.create_time)+"\n ")]),e._v(" "),t("div",{staticClass:"flex",staticStyle:{"margin-left":"40px"}},[t("i",{staticClass:"el-icon-s-promotion muted"}),e._v(" "),t("div",{staticClass:"muted",staticStyle:{"margin-left":"3px"}},[e._v("已报名"),t("span",{staticStyle:{margin:"0 5px",color:"#f00"}},[e._v(e._s(e.detailsObj.reports_count))]),e._v("人")])])])]),e._v(" "),t("div",{staticClass:"content-html-box bg-white"},[t("div",{domProps:{innerHTML:e._s(e.detailsObj.content)}})])])]),e._v(" "),t("el-dialog",{attrs:{title:"立即报名",visible:e.dialogFormVisible},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[t("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[t("el-form-item",{attrs:{label:"姓名",prop:"name","label-width":e.formLabelWidth}},[t("el-input",{attrs:{autocomplete:"off"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"电话",prop:"phone","label-width":e.formLabelWidth}},[t("el-input",{attrs:{autocomplete:"off"},model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone",t)},expression:"form.phone"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"公司名称",prop:"company","label-width":e.formLabelWidth}},[t("el-input",{attrs:{autocomplete:"off"},model:{value:e.form.company,callback:function(t){e.$set(e.form,"company",t)},expression:"form.company"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"报价",prop:"price","label-width":e.formLabelWidth}},[t("el-input",{attrs:{autocomplete:"off"},model:{value:e.form.price,callback:function(t){e.$set(e.form,"price",t)},expression:"form.price"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"其他","label-width":e.formLabelWidth}},[t("el-input",{attrs:{type:"textarea",autocomplete:"off"},model:{value:e.form.remarks,callback:function(t){e.$set(e.form,"remarks",t)},expression:"form.remarks"}})],1)],1),e._v(" "),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("取 消")]),e._v(" "),t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("form")}}},[e._v("确 定")])],1)],1)],1)}),[],!1,null,"af3068ba",null);t.default=component.exports}}]); |