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U9Qz0jiACDyCqoZ2VwBt/wLhXWfqoYlXEwAAAABJRU5ErkJggg=="},"66XA":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("SQ4B"),r=a("b9vf"),n=a("ggl6"),c=a("ANKw"),i=a("/grZ"),o=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,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:c.a,PopularProject:i.a,PopularTask:o.a},computed:{},methods:{loadData:function(){this.showLoading(),null!=Object(p.J)("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:[]};s.a.post(r.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:[]};s.a.post(r.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&&s.a.get(r.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.J)("user")&&Object(p.J)("user").userVO}},mounted:function(){this.setUserInfo(),this.loadData()}},v={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"nav",attrs:{stype:"height:500px"}},[s("el-row",{staticClass:"search-nav",staticStyle:{padding:"30px 0 20px 0"}},[s("el-col",{attrs:{span:6}},[s("div",{staticClass:"pull-left",staticStyle:{cursor:"pointer"},on:{click:t.gotoHome}},[s("img",{staticClass:"logo-img",attrs:{src:a("mIp/")}}),t._v(" "),s("span",{staticClass:"logo-title"},[t._v(t._s(t.logoTitle))])])]),t._v(" "),s("el-col",{attrs:{span:12}},[s("div",{staticClass:"search-nav"},[s("div",{attrs:{id:"search-block "}},[s("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 s("el-tab-pane",{key:t.label,attrs:{label:t.label,name:t.name}})}),1),t._v(" "),s("div",{staticClass:"search-input"},[s("el-input",{staticClass:"input-with-select",attrs:{placeholder:"请输入内容"},model:{value:t.searchVal,callback:function(e){t.searchVal=e},expression:"searchVal"}},[s("el-button",{staticClass:"search-button",attrs:{slot:"append",type:"primary"},on:{click:t.handleSearchData},slot:"append"},[t._v("搜索")])],1)],1)],1)])]),t._v(" "),s("el-col",{attrs:{span:6}},[s("el-button",{staticClass:"releaseBtn",attrs:{type:"primary pull-right"},on:{click:function(e){return t.checkLogin()}}},[t._v("免费发布众测需求")])],1)],1),t._v(" "),s("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 s("el-tab-pane",{key:e.name,attrs:{name:e.name}},[s("span",{staticStyle:{"font-size":"18px"},attrs:{slot:"label"},slot:"label"},[t._v(t._s(e.label))])])}),1),t._v(" "),s("div")],1),t._v(" "),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"mine-body container",staticStyle:{"text-align":"center"}},[s("el-tabs",{attrs:{value:"myProject"},on:{"tab-click":t.handleTabClick}},["project"==t.currTab?s("el-tab-pane",{attrs:{name:"myProject"}},[null==t.projectAndTaskArr||0==t.projectAndTaskArr.length?s("span",[t._v(" 暂无项目 ")]):t._e(),t._v(" "),null!=t.projectAndTaskArr&&0!=t.projectAndTaskArr.length?s("el-row",{staticStyle:{"font-size":"14px"},attrs:{type:"flex",align:"middle",justify:"center"}},[s("el-col",{attrs:{span:6,type:"flex",align:"middle",justify:"center"}},[t._v("项目图片")]),t._v(" "),s("el-col",{attrs:{span:6,type:"flex",align:"middle",justify:"center"}},[t._v("项目名称")]),t._v(" "),s("el-col",{attrs:{span:3,type:"flex",align:"middle",justify:"center"}},[t._v("应用类型")]),t._v(" "),s("el-col",{attrs:{span:3,type:"flex",align:"middle",justify:"center"}},[t._v("项目预算")]),t._v(" "),s("el-col",{attrs:{span:3,type:"flex",align:"middle",justify:"center"}},[t._v("参与人数")]),t._v(" "),s("el-col",{attrs:{span:4,type:"flex",align:"middle",justify:"center"}},[t._v("操作")])],1):t._e(),t._v(" "),t._l(t.projectAndTaskArr,function(e,a){return null!=t.projectAndTaskArr||t.projectAndTaskArr.length>0?s("project-item",{key:e.id,attrs:{projectItem:e}}):t._e()})],2):t._e(),t._v(" "),"task"==t.currTab?s("el-tab-pane",{attrs:{name:"myProject"}},[null==t.projectAndTaskArr||0==t.projectAndTaskArr.length?s("span",[t._v(" 暂无项目 ")]):t._e(),t._v(" "),null!=t.projectAndTaskArr&&0!=t.projectAndTaskArr.length?s("el-row",{staticStyle:{"font-size":"14px"},attrs:{type:"flex",align:"middle",justify:"center"}},[s("el-col",{attrs:{span:5}},[t._v("任务封面")]),t._v(" "),s("el-col",{attrs:{span:4}},[t._v("任务名称")]),t._v(" "),s("el-col",{attrs:{span:4}},[t._v("测试类型")]),t._v(" "),s("el-col",{attrs:{span:4}},[t._v("任务预算")]),t._v(" "),s("el-col",{attrs:{span:4}},[t._v("领取人数")]),t._v(" "),s("el-col",{attrs:{span:3}},[t._v("操作")])],1):t._e(),t._v(" "),t._l(t.projectAndTaskArr,function(e,a){return null!=t.projectAndTaskArr||t.projectAndTaskArr.length>0?s("task-item",{key:a,attrs:{task:e}}):t._e()})],2):t._e()],1)],1),t._v(" "),s("div",{staticClass:"container"},[s("el-row",["squareHome"!==t.currTab&&t.projectAndTaskArr&&t.projectAndTaskArr.length?s("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("ODu4")},null,null);e.default=f.exports},ANKw:function(t,e,a){"use strict";var s=a("qI5z"),r=a("SQ4B"),n=a("vGYV"),c=a("b9vf"),i={name:"SquareCard",props:["card"],data:function(){return{isLogin:!1,user:{}}},methods:{onload:function(){null!=Object(n.J)("user")&&(this.isLogin=!0)},checkCreateProjectAuth:function(){var t=this;this.isLogin?this.isLogin&&r.a.get(c.a.USER.IS_PART.replace("{userId}",this.user.id)).then(function(e){t.$router.push("/project/create")}).catch(function(t){Object(s.a)("error",t.data)}):(console.log("请登录后访问"),Object(s.a)("warning","请登录后访问"))},goToProjectDetail:function(t){this.isLogin||Object(s.a)("warning","请登录后访问"),this.$router.push({name:"Project",params:{projectId:t}})},goToTaskDetail:function(t,e){var a=this;this.isLogin?this.isLogin&&r.a.get(c.a.USER.IS_AGENCY.replace("{userId}",this.user.id)).then(function(s){a.$router.push({name:"Task",params:{projectId:t,taskId:e}})}).catch(function(t){Object(s.a)("error",t.data)}):(console.log("请登录后访问"),Object(s.a)("warning","请登录后访问"))},setUserInfo:function(){this.user=Object(n.J)("user")&&Object(n.J)("user").userVO}},mounted:function(){this.onload(),this.setUserInfo()}},o={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")(i,o,!1,function(t){a("xXfc")},null,null);e.a=l.exports},ODu4:function(t,e){},SXif:function(t,e,a){"use strict";var s=a("2uFj"),r={name:"PopularTask",props:["hotCrowdTaskVOs"],data:function(){return{logo_transparent:s.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,s=t._self._c||e;return s("el-card",{staticClass:"popular-card"},[s("div",{staticClass:"popular-header",attrs:{slot:"header"},slot:"header"},[s("img",{staticClass:"popular-header-img",attrs:{src:a("1KnL"),alt:"popular-project"}}),t._v(" "),s("span",{staticClass:"popular-header-title"},[t._v("热门任务")]),t._v(" "),s("el-button",{staticClass:"pull-right",staticStyle:{float:"right",padding:"3px 0"},attrs:{type:"text"},on:{click:function(e){return t.goToMore()}}},[t._v("more>>")])],1),t._v(" "),t.hotCrowdTaskVOs.length?s("div",{staticClass:"popular-list"},t._l(t.hotCrowdTaskVOs,function(e){return s("el-row",{key:e.id,staticClass:"popular-list-item"},[s("el-col",{attrs:{span:19}},[s("img",{staticClass:"pull-left project-logo-img",attrs:{src:t.logo_transparent,alt:"logo-project"}}),t._v(" "),s("div",{staticStyle:{"margin-left":"55px",cursor:"pointer"},on:{click:function(a){return t.goToTaskDetail(e.projectId,e.code)}}},[s("div",{staticClass:"list-item-title"},[t._v("\n "+t._s(e.title)+"\n ")]),t._v(" "),s("div",{staticClass:"list-item-info"},[t._v("\n "+t._s(e.description)+"\n ")])])]),t._v(" "),s("el-col",{attrs:{span:5}},[s("div",{staticClass:"project-people-number"},[t._v("\n "+t._s(e.acceptedCount)+"人\n ")])])],1)}),1):s("div",{staticStyle:{"text-align":"center",padding:"5px 0"}},[s("span",[t._v("暂无任务")])])])},staticRenderFns:[]};var c=a("VU/8")(r,n,!1,function(t){a("ic2N")},null,null);e.a=c.exports},ic2N:function(t,e){},xXfc:function(t,e){}});
|