12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6e65585e"],{"10d9":function(t,a,s){},1195:function(t,a,s){t.exports=s.p+"img/avatar.0166dac5.png"},"2b35":function(t,a,s){"use strict";s.r(a);var n=function(){var t=this,a=t._self._c;return a("div",{staticClass:"wrap"},[a("div",{staticClass:"header"},[a("img",{staticClass:"return-img",attrs:{src:s("f5a4")},on:{click:function(a){return t.$router.back()}}}),a("p",{staticClass:"header-title"},[t._v("需求详情")])]),a("div",{staticClass:"top-box"},[a("div",{staticClass:"top-msg-box"},[t.info.company?[t.info.company_logo?a("img",{staticClass:"top-msg-avatar",attrs:{src:t.info.company_logo}}):a("img",{staticClass:"top-msg-avatar",attrs:{src:s("1195")}}),a("div",{staticClass:"top-msg-sidebar"},[a("p",{staticClass:"top-msg-name"},[t._v(t._s(t.info.company||"匿名用户"))]),a("p",{staticClass:"top-msg-time"},[t._v(t._s(t.info.create_at))])])]:[t.info.app_logo?a("img",{staticClass:"top-msg-avatar",attrs:{src:t.info.app_logo}}):a("img",{staticClass:"top-msg-avatar",attrs:{src:s("1195")}}),a("div",{staticClass:"top-msg-sidebar"},[a("p",{staticClass:"top-msg-name"},[t._v(t._s(t.info.app_name||"匿名用户"))]),a("p",{staticClass:"top-msg-time"},[t._v(t._s(t.info.create_at))])])],0===t.info.is_over?a("span",{staticClass:"item-tag"},[t._v("待解决")]):t._e(),1===t.info.is_over?a("span",{staticClass:"item-tag blue"},[t._v("已解决")]):t._e(),2===t.info.is_over?a("span",{staticClass:"item-tag green"},[t._v("已解决")]):t._e()],2),t.info.label_name&&t.info.label_name.length>0?a("p",{staticClass:"tag-list"},t._l(t.info.label_name||[],(function(s,n){return a("span",{key:n},[t._v(t._s(s))])})),0):t._e(),a("p",{staticClass:"top-price"},[a("span",{staticStyle:{color:"#333333"}},[t._v("出价:")]),t._v("¥"),a("span",[t._v(t._s(t.info.money))])]),a("p",{staticClass:"top-msg",domProps:{innerHTML:t._s(t.info.content)}}),a("p",{staticClass:"business"},[a("img",{attrs:{src:t.info.company_logo}}),a("span",[t._v(t._s(t.info.company))])])])])},i=[],e=s("2909"),o=(s("6d67"),s("f523")),r=s("d399"),c={components:{},data:function(){return{is_like:1,demand_id:0,info:{},userInfo:{},params:{id:0,sort_type:1,page:1,page_num:10},list:[],loading:!1,finished:!1,sendParams:{id:0,content:""}}},mounted:function(){var t=this.$route.query;this.sendParams.id=this.params.id=this.demand_id=parseInt(t.demand_id||0),this.demand_id>0&&this.getInfo()},methods:{getUserInfo:function(){var t=this;o["v"].getUserInfo().then((function(a){var s=a.data;t.userInfo=s.detail,localStorage.setItem("user_info",JSON.stringify(s.detail)),localStorage.setItem("user_level",JSON.stringify(s.user_level))}))},getInfo:function(){var t=this;return o["h"].getMyDemandDetail({id:this.demand_id}).then((function(a){var s=a.data;t.info=s.detail}))},demandComment:function(){var t=this,a=this.sendParams;if(0===a.content.length)return Object(r["a"])("请输入评论内容");o["h"].demandComment(a).then((function(s){var n=s.msg,i=s.data;a.content="",Object(r["a"])(n),i.detail["like_num"]=0,i.detail.contentShort=i.detail.content.substring(0,50),t.list.unshift(i.detail)}))},commentTags:function(t){var a=this;return o["h"].commentTags({comment_id:t.id}).then((function(s){var n=s.msg,i=s.data;Object(r["a"])(n),a.$set(t,"is_like",i.tags),/[+.wW]/.test(t.like_num)||a.$set(t,"like_num",t.like_num+(1===t.is_like?1:-1))}))},getList:function(){var t=this;this.loading=!0,o["h"].getDemandCommentList(this.params).then((function(a){var s=a.data,n=s.list.map((function(t){return t.contentShort=t.content.substring(0,50),t.parent&&t.parent.id>0&&(t.parent.contentShort=t.parent.content.substring(0,50)),t}));t.list=1===t.params.page?n:[].concat(Object(e["a"])(t.list),Object(e["a"])(n)),n.length<t.params.page_num?t.finished=!0:t.params.page++})).catch((function(){t.finished=!0})).finally((function(){t.loading=!1}))}}},m=c,l=(s("7e49"),s("2877")),f=Object(l["a"])(m,n,i,!1,null,"308d1882",null);a["default"]=f.exports},"7e49":function(t,a,s){"use strict";s("10d9")},f5a4:function(t,a){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAm5JREFUWEft2MnLTlEYAPDfZx4yK8WCWLBgwQIbSobIkMiwYiMbJX+JWLFRSmJBUoYyLCjDQoREQgghikQiQ4/OW8eXvPfe976fV31ne8+9z+8+59xzn3O6dHjr6nCfXmCrI9RTGeyH2XiEl2XQPQEci5MJ+AlLcKkost3AcTiH6RloN3Z0AnACzmNqhvmBFTj1r4ETE25KBvmObdhbFBf92jHEgYrMBbLRvmEL9pfBtQM4LeHGZ5Cv2ITDZXF1A2fgLOLDaLQv2IhjVXB1AmfhDMZkkM9YW+aD+NNL1DEH5+I0RmYBPmJ1WmKqJu/Xfa0C5+MEhmWKD2kpudiSLN3cCnARjmNIBnmHZbhaB66VDC7HEQzKIG/Tb+x6XbiqwDU4hAEZ5BUW43aduCrA9TiIqE4a7TliuO/VjSsLjA8hSqV8zj3BQjxsB64scDRiKPPs3UzZe9MJwDBEmbSz2/J0JyFLFaJFX6jKMrMdu7oh76ehflY0cNF+VYDx7K3Ygz5ZoCjnYz4+Lhq8SL+qwHj2ZuxD3yzQ04R8UCR4kT6tAOP5G3AA/bNgL9KcvFsE0KxPq8B4fhQFUesNzIK9Tgv3rWaAZtfrAEaM+P8exeAsYPz6luJaM8TfrtcFjBjxgUTxMDQL+D7hr1RF1gkMw7xUfg3PQFF+rcSFKsi6gWGYkwrYURkoNuwxV2NLUKq1AxiAmWkLEKcKjRZbgHUpw4WR7QIGIE4T4lSh+yZqAS4XFbYTGIY4VYg9cpwyNFrHHH00QJMTchLidGFVOkwqlMR2Z7CBGIHYJsTf5UYhWerUU8Aypt/69gIrp+5/GeKfiUBcKeCBb1YAAAAASUVORK5CYII="}}]);
- //# sourceMappingURL=chunk-6e65585e.6c3485c9.js.map
|