chunk-06523322.8e599332.js 15 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-06523322"],{"0ba7":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAwtJREFUWEfNmM9PE1EQx7/T7QKBlEC7e+Biol408QASIVHCyejBs0biXSVR459iIok/zhKNdw4aTwRNgFS4GDhoTLxAsq+F0EAs23bMLF2zlHb37bZN2uO+eTOfvpl582YIMX/7+/vnXde9TUQzAC4z8zkAmbqaEhH9AbDFzCumaX4aGRn5HccE6Qgzc0opdQ/AEwDXAWjtA8AAvgFYsCzrIxHVouxFKlZK3WTmlwAuRSkLWyeiLQDPLMv6EirXapGZB4rF4gtmfsjMkeA6sETERPQ2m80+J6K/zfY0NbSzs2On0+klANd0DCWQWa9UKnfGxsacxr1ngATGNM1lZm7LRVGQRLTtuu5sI9QpIHFToVAQmG6dTCPnumVZs0H3nQIqFAqva7Xao6h/18n1VCr1JpfLPfZ1/geSbALwuVMBrAstgQ7glp99HlD9nvnRbmrrQpwJZKKtXC53Re4pD6hYLN6vVqvvkyrsxD7DMOay2ewHD8hxnBUAN6IU5/N5uK6LiYkJ9Pf3h4qXy2VsbGzANE1MTk5GqZb1r7Ztz9Du7u4FwzB+6pSDtbU1HBwcYHBw0DPSCkpgBP7o6AjDw8OYmprSAWLTNC+S4zgS4a90dhwfH3uGDg8PW0IFYYaGhjzwvr4+HfUiM09KqXfM/EB3RxhUmzAgokUByjPzVV0gkWsGJd99NyU4Gc88EX0Xl0k9seIANYOSbxIzSWHq9pUASdUNT5kWtMGTEpE2YURFuS2gYMyItqjs0/CCB5TIZUEYAfFd1iaUShTUjTD+xecHdVIoL6jjpn0zGP+CDFvTcNdJ2se5GHUM6siEwM1Tva35pVM6VldXUSqVIoM3CJXJZDA9Pa1zQCelI25xrVQqGB8f1yqum5ubSKfT8YqrAPXC8wPAnG3bJ8+PnnugCVRPPWH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jVwgwjktuw5W8ABKi7VxiqQ2dY5mdoBySYTokufW38wf4nbrFEdnNcmwEwLYVVGNGo9LXvrpO4YIBJHbFAW8pKrb0K4zTlPlCEwWoUxL1j/JqwmxZVlu5XCeEukDYz8RtYJgYkAk0BVKdkVyaZ3mN4QpKvMRkcRsuhCrD6Zty0WzVU5AbSGbrNQf4BeV/AjBKTwNnAAAAAElFTkSuQmCC"},"431f":function(t,e,n){"use strict";n("6c0b")},4661:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wrap"},[e("DetailHeader",{on:{shareClick:t.showShareFn}}),e("div",{staticClass:"type",style:{background:t.typeList[t.info.is_over||0].color}},[t._v("\n "+t._s(t.typeList[t.info.is_over||0].label)+"\n ")]),e("div",{ref:"basePage",staticClass:"basePage"},[e("div",{staticClass:"top"},[e("div",{staticClass:"top-title"},[e("span",{class:t.title_hide?"hide":"",domProps:{innerHTML:t._s(t.info.title)},on:{click:function(e){t.title_hide=!t.title_hide}}})]),e("div",{staticClass:"item-top"},[e("div",{staticClass:"item-top-left"},[t.info.app_logo?e("img",{attrs:{src:t.info.app_logo}}):e("img",{attrs:{src:n("1195")}}),e("div",[t._v(t._s(t.info.app_name||"匿名用户"))])]),t.info.money?e("div",{staticClass:"item-top-right"},[e("span",{staticClass:"label"},[t._v("预算:")]),e("span",{staticClass:"money"},[t._v(t._s(t.info.money))])]):t._e()]),e("Related",{attrs:{info:t.info}}),e("div",{staticClass:"top-content",domProps:{innerHTML:t._s(t.info.content)}}),e("div",{staticClass:"top-footer"},[e("span",[t._v("发布于"+t._s(t.info.create_at))]),e("span",[t._v(t._s(t.info.read_num)+"浏览")])])],1)]),e("div",{staticClass:"comment"},[e("comments",{ref:"comments",staticClass:"comment",attrs:{type:"demand","get-header-height":function(){return t.$refs.basePage.offsetTop},"switch-val":t.info.switch_open},on:{switchChange:function(e){return t.switchSet(10)}}})],1),e("div",{staticClass:"footer"},[e("div",{staticClass:"footer-wrap"},[e("ul",{staticClass:"footer-list"},[e("li",{on:{click:function(e){return t.$refs.commentsPopup.showFn(t.commentsOption)}}},[e("img",{staticClass:"footer-icon",attrs:{src:n("7209"),alt:""}}),t._v("\n "+t._s(t.$refs.comments?t.$refs.comments.totalNum:0)+"\n ")]),e("li",{on:{click:t.demandTags}},[1===t.info.is_praise?e("img",{staticClass:"footer-icon",attrs:{src:n("837b"),alt:""}}):e("img",{staticClass:"footer-icon",attrs:{src:n("7304"),alt:""}}),t._v("\n "+t._s(t.info.praise_num||0)+"\n ")]),e("li",{on:{click:t.demandCollect}},[1===t.info.is_collect?e("img",{staticClass:"footer-icon",attrs:{src:n("8f56"),alt:""}}):e("img",{staticClass:"footer-icon",attrs:{src:n("c506"),alt:""}}),t._v("\n "+t._s(t.info.collect_num||0)+"\n ")])]),e("ul",{staticClass:"footer-btn"},[e("li",{staticClass:"btn1",on:{click:function(e){t.contact_show=!0}}},[t._v("\n 联系发布方\n ")]),e("li",{staticClass:"btn2",style:{width:""},on:{click:function(e){return t.$router.push("/contact-online")}}},[t._v("\n 联系客服\n ")])])])]),e("share-popup",{ref:"sharePopup",attrs:{followSwitch:t.info.switch_open},on:{share:t.share,report:t.report,follow:function(e){return t.switchSet(1)}}}),e("comments-popup",{ref:"commentsPopup",attrs:{"switch-val":t.info.switch_open},on:{switchChange:function(e){return t.switchSet(7)},append:function(e){return t.$refs.comments.commentAppendToList(e)},delComment:function(e){return t.$refs.comments.resetList()},likeComment:function(e){return t.$refs.comments.updateLikeStatus(e.index,e.tags)}}}),e("to-top",{attrs:{"display-height":"0",bottom:100,toTop:t.toTop}}),e("ContactCard",{attrs:{show:t.contact_show,info:t.info,option:{email:"solve_email",phone:"solve_phone",qrcode:"solve_qrcode"}},on:{handleClose:function(e){t.contact_show=!1}}}),e("is-login-vip",{ref:"isLoginVip",attrs:{type:"none","style-type":"s2","no-status":!0}})],1)},s=[],o=(n("1c01"),n("58b2"),n("8e6e"),n("f3e2"),n("d25f"),n("ac6a"),n("456d"),n("c5f6"),n("ade3")),a=n("f523"),c=n("d399"),r=n("325c"),l=n("7361"),u=n("961b"),p=n("d771"),f=n("f4f9"),d=n("207e"),m=n("c251"),h=n("db78"),A=n("bbe1");function w(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function C(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?w(Object(n),!0).forEach((function(e){Object(o["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var g={components:{SharePopup:l["a"],Comments:u["a"],CommentsPopup:p["a"],ToTop:f["a"],Related:d["a"],DetailHeader:m["a"],ContactCard:h["a"],IsLoginVip:A["a"]},data:function(){return{isWeChat:Object(r["l"])(),title_hide:!0,info:{},typeList:[{label:"待解决",color:"#ffaf18"},{label:"已解决",color:"#46d169"},{label:"开源项目",color:"#2A63F3"}],contact_show:!1}},computed:{commentsOption:function(){var t=this;return{listApi:function(e){return a["h"].getDemandCommentList(C({id:t.info.id},e))},likeApi:function(t){return a["h"].commentTags({comment_id:t.id})},postApi:function(e){return a["h"].demandComment(C(C({},e),{},{id:t.info.id}))},postReplyApi:function(t,e){return a["h"].demandSecondComment(C(C({},t),{},{id:e.id}))},reportType:2,delApi:function(t){return a["h"].delComment({id:t.id})}}}},mounted:function(){var t=this.$route.query,e=parseInt(t.id||0);e>0&&(this.info.id=e,this.getDemandDetail())},methods:{toTop:function(){window.scrollTo(0,0)},getDemandDetail:function(){var t=this;a["h"].getDemandInfo({id:this.info.id}).then((function(e){var n=e.data;t.info=n.detail,t.$refs.comments.init(t.commentsOption)}))},showShareFn:function(){var t=this.info;this.$refs.sharePopup.showFn({title:t.title,desc:t.desc||""})},share:function(){var t=this;a["h"].demandTransmit({id:this.info.id}).then((function(){/[+.wW]/.test(t.info.transmit_num)||(t.info.transmit_num=Number(t.info.transmit_num)+1)}))},report:function(){if(this.isLogin){var t=12,e=this.info.id;this.$router.push("/report?type=".concat(t,"&id=").concat(e))}else this.showOpenLogin=!0},switchSet:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:12;if(!this.isLogin)return this.$refs.isLoginVip.show("请先登录","login","s2");GeneralService.switchSet({id:this.info.id,type:e}).then((function(e){var n=e.data;e.msg;t.$set(t.info,"switch_open",n.status),Object(c["a"])(n.status?"开启通知":"关闭通知")}))},demandTags:function(){var t=this,e=this.info;return a["h"].demandTags({demand_id:e.id}).then((function(n){var i=n.msg,s=n.data;Object(c["a"])(i),t.$set(e,"is_praise",s.tags),/[+.wW]/.test(e.praise_num)||t.$set(e,"praise_num",parseInt(e.praise_num)+(1===e.is_praise?1:-1))}))},demandCollect:function(){var t=this,e=this.info;return a["h"].demandCollect({id:e.id}).then((function(n){var i=n.msg,s=n.data;Object(c["a"])(i),t.$set(e,"is_collect",s.status),/[+.wW]/.test(e.collect_num)||t.$set(e,"collect_num",parseInt(e.collect_num)+(1===e.is_collect?1:-1))}))}}},b=g,v=(n("cfd4"),n("2877")),O=Object(v["a"])(b,i,s,!1,null,"46c86660",null);e["default"]=O.exports},"6c0b":function(t,e,n){},7209:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAABYNJREFUWEflmW2IVFUYx//n3FGDSne+lCEL+QaivYAJQWKNc8+9uoomgW1aZkQREaShFSSUBQZhVgYZ0XtoahKSgZv3nDutlUkRRGlomVmIZftlbVvJtZnzxKNnaJyd2bk7O01J59Mw99zz/M5zntdzBc6zIc4zXvx/gRcuXOj19PSMzefzrVLKi/nkrLW/p1KpoyNHjjyybdu2QiNOc0gaDsNwLBEtIqIQwLUALqgCdQrAZ0KISA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O0zLGYBbGWF8VxzMV8v5HJZC5PpVIcBpPa+j4iWhDHMV8F9BtKqcVu02eahkTlpbNjLuA/4d9CiB97e3sn7927949KQtra2kacPn16hRBiWdkVQOn0LiJaP3z48HUdHR18EpVg6y/gnZa3A1jgoFdqrddVszv+n8ELhcJ0a+11QojR7nSOSyk/9TxvTzVQnjfkFskB3wTgXQe51hjz0EDAQ3nWqCaUcznndL6FnJPL5TqGAlXp3Ya2+a5VmczeP2zYsNa+vr5pUsqZALpOnjz5QjWbTrqphl6kZLPZMVLKo+xzRPSnEILDWjEsMdNPAB5Np9Ob6mj9G39V5fv+UiHEGwm0dZCIXpZSbtFa/zzQ/H/0MjAIgjuI6HUHwL3dAQARAL6r4FjJDlla/PMJfAvgC9Y+EXW7U2nOdatzhiXWWq4nTHk9EQTBNCLibmS2y4gJDuPslKZeaJdThWHYaq3lK6W5RDRVCHHm20aF8e9+MqgCxc40nrOdtTYtpZT/uY8yie2ggRNrXmg3UFZDljrvgP8CChLRS2UFdkUAAAAASUVORK5CYII="},9101:function(t,e,n){},b962:function(t,e,n){"use strict";n("9101")},cfd4:function(t,e,n){"use strict";n("f4de")},d771:function(t,e,n){"use strict";var i=function(){var t=this,e=t._self._c;return e("van-popup",{attrs:{round:"",position:"bottom","z-index":"999999999"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[e("div",{staticClass:"allComments-window"},[e("div",{staticClass:"allComments-window-top"},[t._v("\n 全部评论\n "),e("button",{staticClass:"allComments-window-close",attrs:{type:"button"},on:{click:function(e){t.show=!1}}},[e("img",{attrs:{src:n("0ba7"),alt:""}})])])]),e("div",{staticClass:"comment-list-fixed-height"},[t.show?e("comments",{ref:"comments",attrs:{switchShow:!0,type:t.type,"switch-val":t.switchVal,"fixed-list-height":!0},on:{switchChange:t.switchChange,append:function(e){return t.$emit("append",e)},delComment:function(e){return t.$emit("delComment",e)},likeComment:function(e){return t.$emit("likeComment",e)}}}):t._e()],1),e("div",{staticClass:"allComments-window-bottom",on:{click:function(e){return t.$refs.comments.commentPostShow()}}},[e("div",{staticClass:"allComments-window-input-box"},[e("input",{staticClass:"allComments-window-input",attrs:{placeholder:"发布一条友善的评论",disabled:""}})]),e("button",{staticClass:"allComments-window-bottom-btn",attrs:{type:"button"}},[t._v("发布")])])])},s=[],o=(n("1c01"),n("58b2"),n("8e6e"),n("f3e2"),n("d25f"),n("ac6a"),n("456d"),n("ade3")),a=n("961b");function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){Object(o["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l={name:"comments-popup",components:{Comments:a["a"]},props:{switchVal:{default:0},switchShow:{default:!0},type:{default:""}},watch:{switchVal:function(){this.checked=this.switchVal}},data:function(){return{checked:0,show:!1}},methods:{switchChange:function(){this.$emit("switchChange",1)},showFn:function(t){var e=this;this.show=!0,this.$nextTick((function(){e.$refs.comments.init(r(r({},t),{},{fixedListHeight:!0}))}))}}},u=l,p=(n("b962"),n("2877")),f=Object(p["a"])(u,i,s,!1,null,"66f46990",null);e["a"]=f.exports},db78:function(t,e,n){"use strict";var i=function(){var t=this,e=t._self._c;return e("van-overlay",{attrs:{show:t.show},on:{click:function(t){t.stopPropagation()}}},[e("div",{staticClass:"wrapper"},[e("div",{staticClass:"content"},[e("img",{staticClass:"qrcode",attrs:{src:t.info[t.option.qrcode],alt:""}}),e("div",{staticClass:"phone"},[e("div",{staticClass:"label"},[e("img",{staticClass:"icon",attrs:{src:n("3547"),alt:""}}),e("span",[t._v("电话: ")])]),e("div",{staticClass:"value"},[t._v(t._s(t.info[t.option.phone]))])]),e("div",{staticClass:"email"},[e("div",{staticClass:"label"},[t._v("邮箱:")]),e("div",{staticClass:"value"},[t._v(t._s(t.info[t.option.email]))])])]),e("img",{staticClass:"close",attrs:{src:n("083e"),alt:""},on:{click:function(e){return t.$emit("handleClose")}}})])])},s=[],o={props:{show:{type:Boolean,default:!1},info:{type:Object},option:{type:Object,default:function(){return{email:"email",phone:"phone",qrcode:"qrcode"}}}}},a=o,c=(n("431f"),n("2877")),r=Object(c["a"])(a,i,s,!1,null,"22669146",null);e["a"]=r.exports},f4de:function(t,e,n){}}]);
  2. //# sourceMappingURL=chunk-06523322.8e599332.js.map