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U9Qz0jiACDyCqoZ2VwBt/wLhXWfqoYlXEwAAAABJRU5ErkJggg=="},ANKw:function(t,a,e){"use strict";var r=e("qI5z"),s=e("SQ4B"),o=e("vGYV"),c=e("b9vf"),n={name:"SquareCard",props:["card"],data:function(){return{isLogin:!1,user:{}}},methods:{onload:function(){null!=Object(o.K)("user")&&(this.isLogin=!0)},checkCreateProjectAuth:function(){var t=this;this.isLogin?this.isLogin&&s.a.get(c.a.USER.IS_PART.replace("{userId}",this.user.id)).then(function(a){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,a){var e=this;this.isLogin?this.isLogin&&s.a.get(c.a.USER.IS_AGENCY.replace("{userId}",this.user.id)).then(function(r){e.$router.push({name:"Task",params:{projectId:t,taskId:a}})}).catch(function(t){Object(r.a)("error",t.data)}):(console.log("请登录后访问"),Object(r.a)("warning","请登录后访问"))},setUserInfo:function(){this.user=Object(o.K)("user")&&Object(o.K)("user").userVO}},mounted:function(){this.onload(),this.setUserInfo()}},i={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("el-card",{staticClass:"square-card"},[e("div",{staticClass:"card-title"},[t._v("\n "+t._s(t.card.name?t.card.name:t.card.title)+"\n ")]),t._v(" "),e("div",{staticClass:"card-content"},[t._v("\n "+t._s(t.card.description)+"\n ")]),t._v(" "),e("div",{staticClass:"card-detail"},[e("el-row",[e("el-col",{attrs:{lg:6,md:24}},[t.card.quotedPrice||0===t.card.quotedPrice?e("span",{staticClass:"card-detail-money"},[t._v("¥"+t._s(t.card.quotedPrice>1e4?Math.floor(t.card.quotedPrice/1e4)+"w+":t.card.quotedPrice))]):e("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(" "),e("el-col",{attrs:{lg:18,md:24}},[e("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(" "),e("div",{staticClass:"card-footer"},[e("el-row",{staticClass:"card-footer-row"},[e("el-col",{staticClass:"pull-left",attrs:{span:12}},[t._v("\n "+t._s(t.card.applicationType||t.card.serviceType)+"\n ")]),t._v(" "),e("el-col",{staticClass:" test-btn",attrs:{span:12}},[t.card.applicationType?e("el-button",{staticClass:"pull-right",attrs:{type:"primary",round:"",size:"mini"},on:{click:function(a){return t.goToProjectDetail(t.card.code)}}},[t._v("查看详情\n ")]):e("el-button",{staticClass:"pull-right",attrs:{type:"primary",round:"",size:"mini"},on:{click:function(a){return t.goToTaskDetail(t.card.projectId,t.card.code)}}},[t._v("我要众测\n ")])],1)],1)],1)])},staticRenderFns:[]};var l=e("VU/8")(n,i,!1,function(t){e("Gx97")},null,null);a.a=l.exports},Gx97:function(t,a){},SXif:function(t,a,e){"use strict";var r=e("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,a){this.$router.push({name:"Task",params:{projectId:t,taskId:a}})}}},o={render:function(){var t=this,a=t.$createElement,r=t._self._c||a;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:e("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(a){return t.goToMore()}}},[t._v(">>")])],1),t._v(" "),t.hotCrowdTaskVOs.length?r("div",{staticClass:"popular-list"},t._l(t.hotCrowdTaskVOs,function(a){return r("el-row",{key:a.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(e){return t.goToTaskDetail(a.projectId,a.code)}}},[r("div",{staticClass:"list-item-title"},[t._v("\n "+t._s(a.title)+"\n ")]),t._v(" "),r("div",{staticClass:"list-item-info"},[t._v("\n "+t._s(a.description)+"\n ")])])]),t._v(" "),r("el-col",{attrs:{span:5}},[r("div",{staticClass:"project-Tester-number"},[t._v("\n "+t._s(a.acceptedCount)+"人\n ")])])],1)}),1):r("div",{staticStyle:{"text-align":"center",padding:"5px 0"}},[r("span",[t._v("暂无任务")])])])},staticRenderFns:[]};var c=e("VU/8")(s,o,!1,function(t){e("oUy+")},null,null);a.a=c.exports},VrKt:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r=e("SQ4B"),s=e("b9vf"),o=e("ggl6"),c=e("ANKw"),n=e("/grZ"),i=e("SXif"),l=e("vGYV"),u=e("qI5z"),d=e("2uFj"),h={name:"Square2.0",data:function(){return{logoTitle:d.a.logoTitle,SQUARE_DISPLAY:d.a.SQUARE_DISPLAY,logo_transparent:d.a.logo_transparent,user:{},isLogin:!1,searchType:d.a.square_searchType,searchVal:"",currTab:d.a.square_currTab,searchTabArr:d.a.square_searchTabArr,menuArr:d.a.square_menuArr,projectAndTaskArr:[],type:0,hotCrowdTestProjectVOs:[],hotCrowdTaskVOs:[],activePage:1,totalElements:0}},components:{SearchBar:o.a,SquareCard:c.a,PopularProject:n.a,PopularTask:i.a},computed:{},methods:{gotoHome:function(){this.$router.push("/home")},handleTabClick:function(t){this.currTab=t.name,this.activePage=1,this.searchVal="",this.searchData()},handleTabClickSearch:function(){this.activePage=1,this.searchData()},searchData:function(t){"squareHome"===this.currTab?this.getData():(this.searchType=this.currTab,this.handleSearchData())},handleTypeClick:function(t){this.searchType=t.name,this.currTab=t.name,this.activePage=1,this.$refs.searchInput.focus(),this.searchData()},loadData:function(){null!=Object(l.K)("user")&&(this.isLogin=!0),this.currTab=this.$route.params.currTab,"project"===this.currTab?(this.searchVal=this.$route.params.searchVal,this.searchType=this.$route.params.searchType,this.getHotData(),this.handleTabClickSearch()):(this.searchVal=this.$route.params.searchVal,this.searchType="project",this.currTab="squareHome",this.getData())},getData:function(){var t=this;r.a.get("/api/square/list").then(function(a){var e=a.data.crowdTestProjectVOs,r=a.data.crowdTestTaskVOS,s=e.concat(r);t.hotCrowdTestProjectVOs=a.data.hotCrowdTestProjectVOs,t.hotCrowdTaskVOs=a.data.hotCrowdTaskVOs,t.projectAndTaskArr=s})},getHotData:function(){var t=this;r.a.get("/api/square/list").then(function(a){t.hotCrowdTestProjectVOs=a.data.hotCrowdTestProjectVOs,t.hotCrowdTaskVOs=a.data.hotCrowdTaskVOs})},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(a){t.$router.push("/project/create")}).catch(function(t){Object(u.a)("error",t.data)}):(console.log("请登录后访问"),Object(u.a)("warning","请登录后访问"))},handleSearchData:function(){var t=this,a={keyword:this.searchVal,activePage:this.activePage,columnFilters:[{type:this.searchType}]};r.a.post("/api/square/search/list",a).then(function(a){t.currTab=t.searchType,t.projectAndTaskArr=a.data.content,t.totalElements=a.data.totalElements})},handlePageChange:function(t){this.activePage=t,this.searchData()},setUserInfo:function(){this.user=Object(l.K)("user")&&Object(l.K)("user").userVO}},mounted:function(){this.setUserInfo(),this.loadData()}},p={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("div",{staticClass:"nav",attrs:{stype:"height:500px"}},[e("el-row",{staticClass:"search-nav",staticStyle:{padding:"30px 0 20px 0"}},[e("el-col",{attrs:{span:6}},[e("div",{staticClass:"pull-left",staticStyle:{cursor:"pointer"},on:{click:t.gotoHome}},[e("img",{staticClass:"logo-img",attrs:{src:t.logo_transparent}}),t._v(" "),e("span",{staticClass:"logo-title"},[t._v(t._s(t.logoTitle))])])]),t._v(" "),e("el-col",{attrs:{span:12}},[e("div",{staticClass:"search-nav"},[e("div",{attrs:{id:"search-block "}},[e("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleTypeClick},model:{value:t.searchType,callback:function(a){t.searchType=a},expression:"searchType"}},t._l(t.searchTabArr,function(t){return e("el-tab-pane",{key:t.label,attrs:{label:t.label,name:t.name}})}),1),t._v(" "),e("div",{staticClass:"search-input"},[e("el-input",{ref:"searchInput",staticClass:"input-with-select",attrs:{placeholder:"请输入内容"},model:{value:t.searchVal,callback:function(a){t.searchVal=a},expression:"searchVal"}},[e("el-button",{staticClass:"search-button",attrs:{slot:"append",type:"primary"},on:{click:t.handleSearchData},slot:"append"},[t._v("搜索")])],1)],1)],1)])]),t._v(" "),e("el-col",{attrs:{span:6}},[e("el-button",{staticClass:"releaseBtn",attrs:{type:"primary pull-right"},on:{click:function(a){return t.checkLogin()}}},[t._v("免费发布众测需求")])],1)],1),t._v(" "),e("el-tabs",{staticClass:"square-tab",on:{"tab-click":t.handleTabClick},model:{value:t.currTab,callback:function(a){t.currTab=a},expression:"currTab"}},t._l(t.menuArr,function(a){return e("el-tab-pane",{key:a.name,attrs:{name:a.name}},[e("span",{staticStyle:{"font-size":"18px"},attrs:{slot:"label"},slot:"label"},[t._v(t._s(a.label))])])}),1),t._v(" "),e("div")],1),t._v(" "),e("div",{staticClass:"container"},[e("el-row",[e("el-col",{staticClass:"project-task",attrs:{span:18}},[e("el-row",{staticStyle:{"margin-bottom":"10px"},attrs:{gutter:15}},[t.projectAndTaskArr.length?t._e():e("el-col",{staticStyle:{"text-align":"center",padding:"5px 0"}},[e("span",[t._v("暂无数据")])]),t._v(" "),t._l(t.projectAndTaskArr,function(t,a){return e("el-col",{key:a,staticStyle:{"margin-bottom":"15px"},attrs:{span:8}},[e("SquareCard",{attrs:{card:t}})],1)})],2),t._v(" "),"squareHome"!==t.currTab&&t.projectAndTaskArr&&t.projectAndTaskArr.length?e("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),t._v(" "),e("el-col",{staticClass:"popular-modules",staticStyle:{"padding-left":"15px"},attrs:{span:6}},[t.SQUARE_DISPLAY.popular_project?e("PopularProject",{staticStyle:{"margin-bottom":"15px"},attrs:{hotCrowdTestProjectVOs:t.hotCrowdTestProjectVOs}}):t._e(),t._v(" "),t.SQUARE_DISPLAY.popular_task?e("PopularTask",{attrs:{hotCrowdTaskVOs:t.hotCrowdTaskVOs}}):t._e()],1)],1)],1)])},staticRenderFns:[]};var g=e("VU/8")(h,p,!1,function(t){e("nlOO")},null,null);a.default=g.exports},nlOO:function(t,a){},"oUy+":function(t,a){}});
|