6.3007f103154fad7a6f44.js 14 KB

1
  1. webpackJsonp([6],{"1KnL":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAcCAYAAAB75n/uAAAGK0lEQVRIS5WWe1BUVRzHv/e1u+wCIqi4AgqIbw3ECwKyiA/MR/5RVmNjNTlNmf3RXz3+dayxnMxCc6xULDUbR3NKiyui4gufrM+0QUQ0EeSxyD7YZdlz723OPbuAaTqe2bN7du/Z3+d7f7/f+f0uh6eMXbt3bR87dvQiQkjvTo6uOK7n/FnnJ8uWLfv+SSaMvV8tRkqMyTIGYt9WalCXYsUJS7atSUhMnhAIBMBxxnbouob4gYNwunLnwe7qFatDkoXv91doms7parB5+XZc41YshDXruXE7srKyZwMaldZLUdUQOu2vWgen5wok1AO994oOszkK147+FBpvutKt9ldmWNC5u433HjgvHJ9PAYPmzl+g5KTbZC3oQVCjADp1/BNKBTd2KewpGdA0Co8gOPA8j8tnKzHMcwB26X6vMJHXYZIE1HvjiVL+i8MAzJk7T5maystX3cPgS1oESeCh6Ro6vUEk2pMhCDzTrtNXGKID/kAAnR0tiI+1Ge7TwaG78RQcUUdR320nB5Td/QBpvHzel4WcRSsNdXT4fF50ut39nNYXIwOj60hISEBUlDUcG8B5aCsy/TtwOzj0cYBMTHlxJURReFpyPXJd19m9XagsQ1ZgJxr6A0qen6dMHcHJNf5MTHnp02cGGMZ1naYunAe3ILPrZ9zusZOKP/YwF5XMmavkJqlyTXAK5Jc/MwD0DyywTx6G4fCgrq2hAM823CbJ5GD5rwwwa1aJkmNXZWdIRu7iVRAFAV6vF01NTf9rnRmmInQjZsnJybBEWeGs2IxJHVtxRx9BDlXsDQNmlijZg4PyJX0qcl/73ACoqopgMPhYQMQl9MCxNWA2SxBFE2oqyjChdRMa+TRyqPI3BpgxY7aSHR+QLyEPea+vNgD05LpcrocAfYbpz5qhnkKsVhvi4gaAF0Q4D2zBuOYf0CSOJIeP/B4GFM9SMmO75CtiPvLf+NIAUPXUTSwb+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Ouj6kxyQYk2GwYomqw6PjPU9Qz0jiACDyCqoZ2VwBt/wLhXWfqoYlXEwAAAABJRU5ErkJggg=="},"66XA":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("SQ4B"),s=a("b9vf"),n=a("ggl6"),o=a("ANKw"),c=a("/grZ"),i=a("SXif"),l=a("qI5z"),u=a("9od8"),d=a("3Kss"),p=a("vGYV"),h=(a("NYxO"),a("2uFj")),g={name:"PopularProjectAndTaskList",comments:{TaskItem:u.a,ProjectItem:d.a},data:function(){return{logoTitle:h.a.logoTitle,logo_transparent:h.a.logo_transparent,loading:!1,isLogin:!1,searchType:"project",searchVal:"",currTab:"project",tabArr:[{label:"热门项目",name:"project"},{label:"热门任务",name:"task"}],menuArr:[{label:"热门测试项目",name:"project"},{label:"热门测试任务",name:"task"}],projectAndTaskArr:[],activePage:1,totalElements:0,type:""}},components:{TaskItem:u.a,ProjectItem:d.a,SearchBar:n.a,SquareCard:o.a,PopularProject:c.a,PopularTask:i.a},computed:{},methods:{loadData:function(){this.showLoading(),null!=Object(p.K)("user")&&(this.isLogin=!0),this.type=this.$route.params.type,"project"===this.type?(this.currTab="project",this.getHotProject()):(this.currTab="task",this.getHotTask()),this.hideLoading()},getHotProject:function(){var t=this;this.showLoading();var e={keyword:this.searchVal,activePage:this.activePage,columnFilters:[]};r.a.post(s.a.PROJECT.MORE_HOT_PROJECT,e).then(function(e){console.log(e.data),t.projectAndTaskArr=e.data.content,t.totalElements=e.data.totalElements}),this.hideLoading()},getHotTask:function(){var t=this;this.showLoading();var e={keyword:this.searchVal,activePage:this.activePage,columnFilters:[]};r.a.post(s.a.TASK.MORE_HOT_TASK,e).then(function(e){t.projectAndTaskArr=e.data.content,t.totalElements=e.data.totalElements}),this.hideLoading()},gotoHome:function(){this.$router.push("/home")},handleTabClick:function(t){this.currTab=t.name,this.searchType=this.currTab,this.activePage=1,this.searchVal="",this.searchData()},handleTabClickSearch:function(){this.activePage=1,this.searchData()},searchData:function(t){"project"===this.currTab?this.getHotProject():(this.searchType=this.currTab,this.getHotTask())},handleTypeClick:function(t){this.searchType=t.name,this.activePage=1},checkLogin:function(){this.checkCreateProjectAuth()},checkCreateProjectAuth:function(){var t=this;this.isLogin?this.isLogin&&r.a.get(s.a.USER.IS_PART.replace("{userId}",this.user.id)).then(function(e){t.$router.push("/project/create")}).catch(function(t){Object(l.a)("error",t.data)}):(console.log("请登录后访问"),Object(l.a)("warning","请登录后访问"))},handleSearchData:function(){this.activePage=1,console.log("this.searchType "+this.searchType),"project"===this.searchType?(this.currTab="project",this.getHotProject(),console.log("currTab "+this.currTab)):(this.currTab="task",this.getHotTask(),console.log("currTab "+this.currTab))},handlePageChange:function(t){this.activePage=t,this.searchData()},showLoading:function(){this.loading=!0},hideLoading:function(){this.loading=!1},setUserInfo:function(){this.user=Object(p.K)("user")&&Object(p.K)("user").userVO}},mounted:function(){this.setUserInfo(),this.loadData()}},v={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"nav",attrs:{stype:"height:500px"}},[a("el-row",{staticClass:"search-nav",staticStyle:{padding:"30px 0 20px 0"}},[a("el-col",{attrs:{span:6}},[a("div",{staticClass:"pull-left",staticStyle:{cursor:"pointer"},on:{click:t.gotoHome}},[a("img",{staticClass:"logo-img",attrs:{src:t.logo_transparent}}),t._v(" "),a("span",{staticClass:"logo-title"},[t._v(t._s(t.logoTitle))])])]),t._v(" "),a("el-col",{attrs:{span:12}},[a("div",{staticClass:"search-nav"},[a("div",{attrs:{id:"search-block "}},[a("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleTypeClick},model:{value:t.searchType,callback:function(e){t.searchType=e},expression:"searchType"}},t._l(t.tabArr,function(t){return a("el-tab-pane",{key:t.label,attrs:{label:t.label,name:t.name}})}),1),t._v(" "),a("div",{staticClass:"search-input"},[a("el-input",{staticClass:"input-with-select",attrs:{placeholder:"请输入内容"},model:{value:t.searchVal,callback:function(e){t.searchVal=e},expression:"searchVal"}},[a("el-button",{staticClass:"search-button",attrs:{slot:"append",type:"primary"},on:{click:t.handleSearchData},slot:"append"},[t._v("搜索")])],1)],1)],1)])]),t._v(" "),a("el-col",{attrs:{span:6}},[a("el-button",{staticClass:"releaseBtn",attrs:{type:"primary pull-right"},on:{click:function(e){return t.checkLogin()}}},[t._v("免费发布众测需求")])],1)],1),t._v(" "),a("el-tabs",{staticClass:"square-tab",on:{"tab-click":t.handleTabClick},model:{value:t.currTab,callback:function(e){t.currTab=e},expression:"currTab"}},t._l(t.menuArr,function(e){return a("el-tab-pane",{key:e.name,attrs:{name:e.name}},[a("span",{staticStyle:{"font-size":"18px"},attrs:{slot:"label"},slot:"label"},[t._v(t._s(e.label))])])}),1),t._v(" "),a("div")],1),t._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"mine-body container",staticStyle:{"text-align":"center"}},[a("el-tabs",{attrs:{value:"myProject"},on:{"tab-click":t.handleTabClick}},["project"==t.currTab?a("el-tab-pane",{attrs:{name:"myProject"}},[null==t.projectAndTaskArr||0==t.projectAndTaskArr.length?a("span",[t._v(" 暂无项目 ")]):t._e(),t._v(" "),null!=t.projectAndTaskArr&&0!=t.projectAndTaskArr.length?a("el-row",{staticStyle:{"font-size":"14px"},attrs:{type:"flex",align:"middle",justify:"center"}},[a("el-col",{attrs:{span:6,type:"flex",align:"middle",justify:"center"}},[t._v("项目名称")]),t._v(" "),a("el-col",{attrs:{span:6,type:"flex",align:"middle",justify:"center"}},[t._v("项目状态")]),t._v(" "),a("el-col",{attrs:{span:3,type:"flex",align:"middle",justify:"center"}},[t._v("应用类型")]),t._v(" "),a("el-col",{attrs:{span:3,type:"flex",align:"middle",justify:"center"}},[t._v("项目预算")]),t._v(" "),a("el-col",{attrs:{span:3,type:"flex",align:"middle",justify:"center"}},[t._v("参与人数")]),t._v(" "),a("el-col",{attrs:{span:4,type:"flex",align:"middle",justify:"center"}},[t._v("操作")])],1):t._e(),t._v(" "),t._l(t.projectAndTaskArr,function(e,r){return null!=t.projectAndTaskArr||t.projectAndTaskArr.length>0?a("project-item",{key:e.id,attrs:{projectItem:e}}):t._e()})],2):t._e(),t._v(" "),"task"==t.currTab?a("el-tab-pane",{attrs:{name:"myProject"}},[null==t.projectAndTaskArr||0==t.projectAndTaskArr.length?a("span",[t._v(" 暂无项目 ")]):t._e(),t._v(" "),null!=t.projectAndTaskArr&&0!=t.projectAndTaskArr.length?a("el-row",{staticStyle:{"font-size":"14px"},attrs:{type:"flex",align:"middle",justify:"center"}},[a("el-col",{attrs:{span:5}},[t._v("任务名称")]),t._v(" "),a("el-col",{attrs:{span:4}},[t._v("任务状态")]),t._v(" "),a("el-col",{attrs:{span:4}},[t._v("测试类型")]),t._v(" "),a("el-col",{attrs:{span:4}},[t._v("任务预算")]),t._v(" "),a("el-col",{attrs:{span:4}},[t._v("领取人数")]),t._v(" "),a("el-col",{attrs:{span:3}},[t._v("操作")])],1):t._e(),t._v(" "),t._l(t.projectAndTaskArr,function(e,r){return null!=t.projectAndTaskArr||t.projectAndTaskArr.length>0?a("task-item",{key:r,attrs:{task:e}}):t._e()})],2):t._e()],1)],1),t._v(" "),a("div",{staticClass:"container"},[a("el-row",["squareHome"!==t.currTab&&t.projectAndTaskArr&&t.projectAndTaskArr.length?a("el-pagination",{staticClass:"pull-right",attrs:{"page-size":12,layout:"prev, pager, next",total:t.totalElements,"current-page":t.activePage},on:{"current-change":t.handlePageChange}}):t._e()],1)],1)])},staticRenderFns:[]};var f=a("VU/8")(g,v,!1,function(t){a("B+M0")},null,null);e.default=f.exports},ANKw:function(t,e,a){"use strict";var r=a("qI5z"),s=a("SQ4B"),n=a("vGYV"),o=a("b9vf"),c={name:"SquareCard",props:["card"],data:function(){return{isLogin:!1,user:{}}},methods:{onload:function(){null!=Object(n.K)("user")&&(this.isLogin=!0)},checkCreateProjectAuth:function(){var t=this;this.isLogin?this.isLogin&&s.a.get(o.a.USER.IS_PART.replace("{userId}",this.user.id)).then(function(e){t.$router.push("/project/create")}).catch(function(t){Object(r.a)("error",t.data)}):(console.log("请登录后访问"),Object(r.a)("warning","请登录后访问"))},goToProjectDetail:function(t){this.isLogin||Object(r.a)("warning","请登录后访问"),this.$router.push({name:"Project",params:{projectId:t}})},goToTaskDetail:function(t,e){var a=this;this.isLogin?this.isLogin&&s.a.get(o.a.USER.IS_AGENCY.replace("{userId}",this.user.id)).then(function(r){a.$router.push({name:"Task",params:{projectId:t,taskId:e}})}).catch(function(t){Object(r.a)("error",t.data)}):(console.log("请登录后访问"),Object(r.a)("warning","请登录后访问"))},setUserInfo:function(){this.user=Object(n.K)("user")&&Object(n.K)("user").userVO}},mounted:function(){this.onload(),this.setUserInfo()}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-card",{staticClass:"square-card"},[a("div",{staticClass:"card-title"},[t._v("\n "+t._s(t.card.name?t.card.name:t.card.title)+"\n ")]),t._v(" "),a("div",{staticClass:"card-content"},[t._v("\n "+t._s(t.card.description)+"\n ")]),t._v(" "),a("div",{staticClass:"card-detail"},[a("el-row",[a("el-col",{attrs:{lg:6,md:24}},[t.card.quotedPrice||0===t.card.quotedPrice?a("span",{staticClass:"card-detail-money"},[t._v("¥"+t._s(t.card.quotedPrice>1e4?Math.floor(t.card.quotedPrice/1e4)+"w+":t.card.quotedPrice))]):a("span",{staticClass:"card-detail-money"},[t._v("¥"+t._s(t.card.quotePrice>1e4?Math.floor(t.card.quotePrice/1e4)+"w+":t.card.quotePrice))])]),t._v(" "),a("el-col",{attrs:{lg:18,md:24}},[a("span",{staticClass:"card-detail-info pull-right"},[t._v(t._s(t.card.time_interval)+"/"+t._s(t.card.joinCount>1e4?Math.floor(t.card.joinCount/1e4)+"w+":t.card.joinCount)+"人参与")])])],1)],1),t._v(" "),a("div",{staticClass:"card-footer"},[a("el-row",{staticClass:"card-footer-row"},[a("el-col",{staticClass:"pull-left",attrs:{span:12}},[t._v("\n "+t._s(t.card.applicationType||t.card.serviceType)+"\n ")]),t._v(" "),a("el-col",{staticClass:" test-btn",attrs:{span:12}},[t.card.applicationType?a("el-button",{staticClass:"pull-right",attrs:{type:"primary",round:"",size:"mini"},on:{click:function(e){return t.goToProjectDetail(t.card.code)}}},[t._v("查看详情\n ")]):a("el-button",{staticClass:"pull-right",attrs:{type:"primary",round:"",size:"mini"},on:{click:function(e){return t.goToTaskDetail(t.card.projectId,t.card.code)}}},[t._v("我要众测\n ")])],1)],1)],1)])},staticRenderFns:[]};var l=a("VU/8")(c,i,!1,function(t){a("Gx97")},null,null);e.a=l.exports},"B+M0":function(t,e){},Gx97:function(t,e){},SXif:function(t,e,a){"use strict";var r=a("2uFj"),s={name:"PopularTask",props:["hotCrowdTaskVOs"],data:function(){return{logo_transparent:r.a.logo_transparent}},methods:{goToMore:function(){console.log("goToMoreTask"),this.$router.push({name:"PopularProjectAndTaskList",params:{type:"task"}})},goToTaskDetail:function(t,e){this.$router.push({name:"Task",params:{projectId:t,taskId:e}})}}},n={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("el-card",{staticClass:"popular-card"},[r("div",{staticClass:"popular-header",attrs:{slot:"header"},slot:"header"},[r("img",{staticClass:"popular-header-img",attrs:{src:a("1KnL"),alt:"popular-project"}}),t._v(" "),r("span",{staticClass:"popular-header-title"},[t._v("热门任务")]),t._v(" "),r("el-button",{staticClass:"pull-right",staticStyle:{float:"right",padding:"3px 0"},attrs:{type:"text"},on:{click:function(e){return t.goToMore()}}},[t._v(">>")])],1),t._v(" "),t.hotCrowdTaskVOs.length?r("div",{staticClass:"popular-list"},t._l(t.hotCrowdTaskVOs,function(e){return r("el-row",{key:e.id,staticClass:"popular-list-item"},[r("el-col",{attrs:{span:19}},[r("img",{staticClass:"pull-left project-logo-img",attrs:{src:t.logo_transparent,alt:"logo-project"}}),t._v(" "),r("div",{staticStyle:{"margin-left":"55px",cursor:"pointer"},on:{click:function(a){return t.goToTaskDetail(e.projectId,e.code)}}},[r("div",{staticClass:"list-item-title"},[t._v("\n "+t._s(e.title)+"\n ")]),t._v(" "),r("div",{staticClass:"list-item-info"},[t._v("\n "+t._s(e.description)+"\n ")])])]),t._v(" "),r("el-col",{attrs:{span:5}},[r("div",{staticClass:"project-Tester-number"},[t._v("\n "+t._s(e.acceptedCount)+"人\n ")])])],1)}),1):r("div",{staticStyle:{"text-align":"center",padding:"5px 0"}},[r("span",[t._v("暂无任务")])])])},staticRenderFns:[]};var o=a("VU/8")(s,n,!1,function(t){a("oUy+")},null,null);e.a=o.exports},"oUy+":function(t,e){}});