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U9Qz0jiACDyCqoZ2VwBt/wLhXWfqoYlXEwAAAABJRU5ErkJggg=="},ANKw:function(t,a,e){"use strict";var s=e("qI5z"),r=e("SQ4B"),c=e("vGYV"),o=e("b9vf"),n={name:"SquareCard",props:["card"],data:function(){return{isLogin:!1,user:{}}},methods:{onload:function(){null!=Object(c.J)("user")&&(this.isLogin=!0)},checkCreateProjectAuth:function(){var t=this;this.isLogin?this.isLogin&&r.a.get(o.a.USER.IS_PART.replace("{userId}",this.user.id)).then(function(a){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,a){var e=this;this.isLogin?this.isLogin&&r.a.get(o.a.USER.IS_AGENCY.replace("{userId}",this.user.id)).then(function(s){e.$router.push({name:"Task",params:{projectId:t,taskId:a}})}).catch(function(t){Object(s.a)("error",t.data)}):(console.log("请登录后访问"),Object(s.a)("warning","请登录后访问"))},setUserInfo:function(){this.user=Object(c.J)("user")&&Object(c.J)("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("xXfc")},null,null);a.a=l.exports},SXif:function(t,a,e){"use strict";var s=e("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,a){this.$router.push({name:"Task",params:{projectId:t,taskId:a}})}}},c={render:function(){var t=this,a=t.$createElement,s=t._self._c||a;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:e("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(a){return t.goToMore()}}},[t._v("more>>")])],1),t._v(" "),t.hotCrowdTaskVOs.length?s("div",{staticClass:"popular-list"},t._l(t.hotCrowdTaskVOs,function(a){return s("el-row",{key:a.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(e){return t.goToTaskDetail(a.projectId,a.code)}}},[s("div",{staticClass:"list-item-title"},[t._v("\n "+t._s(a.title)+"\n ")]),t._v(" "),s("div",{staticClass:"list-item-info"},[t._v("\n "+t._s(a.description)+"\n ")])])]),t._v(" "),s("el-col",{attrs:{span:5}},[s("div",{staticClass:"project-Tester-number"},[t._v("\n "+t._s(a.acceptedCount)+"人\n ")])])],1)}),1):s("div",{staticStyle:{"text-align":"center",padding:"5px 0"}},[s("span",[t._v("暂无任务")])])])},staticRenderFns:[]};var o=e("VU/8")(r,c,!1,function(t){e("ic2N")},null,null);a.a=o.exports},VrKt:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=e("SQ4B"),r=e("b9vf"),c=e("ggl6"),o=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,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:c.a,SquareCard:o.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.J)("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;s.a.get("/api/square/list").then(function(a){var e=a.data.crowdTestProjectVOs,s=a.data.crowdTestTaskVOS,r=e.concat(s);t.hotCrowdTestProjectVOs=a.data.hotCrowdTestProjectVOs,t.hotCrowdTaskVOs=a.data.hotCrowdTaskVOs,t.projectAndTaskArr=r})},getHotData:function(){var t=this;s.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&&s.a.get(r.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}]};s.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.J)("user")&&Object(l.J)("user").userVO}},mounted:function(){this.setUserInfo(),this.loadData()}},p={render:function(){var t=this,a=t.$createElement,s=t._self._c||a;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:e("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(a){t.searchType=a},expression:"searchType"}},t._l(t.searchTabArr,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",{ref:"searchInput",staticClass:"input-with-select",attrs:{placeholder:"请输入内容"},model:{value:t.searchVal,callback:function(a){t.searchVal=a},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(a){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(a){t.currTab=a},expression:"currTab"}},t._l(t.menuArr,function(a){return s("el-tab-pane",{key:a.name,attrs:{name:a.name}},[s("span",{staticStyle:{"font-size":"18px"},attrs:{slot:"label"},slot:"label"},[t._v(t._s(a.label))])])}),1),t._v(" "),s("div")],1),t._v(" "),s("div",{staticClass:"container"},[s("el-row",[s("el-col",{staticClass:"project-task",attrs:{span:18}},[s("el-row",{staticStyle:{"margin-bottom":"10px"},attrs:{gutter:15}},[t.projectAndTaskArr.length?t._e():s("el-col",{staticStyle:{"text-align":"center",padding:"5px 0"}},[s("span",[t._v("暂无数据")])]),t._v(" "),t._l(t.projectAndTaskArr,function(t,a){return s("el-col",{key:a,staticStyle:{"margin-bottom":"15px"},attrs:{span:8}},[s("SquareCard",{attrs:{card:t}})],1)})],2),t._v(" "),"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),t._v(" "),s("el-col",{staticClass:"popular-modules",staticStyle:{"padding-left":"15px"},attrs:{span:6}},[t.SQUARE_DISPLAY.popular_project?s("PopularProject",{staticStyle:{"margin-bottom":"15px"},attrs:{hotCrowdTestProjectVOs:t.hotCrowdTestProjectVOs}}):t._e(),t._v(" "),t.SQUARE_DISPLAY.popular_task?s("PopularTask",{attrs:{hotCrowdTaskVOs:t.hotCrowdTaskVOs}}):t._e()],1)],1)],1)])},staticRenderFns:[]};var g=e("VU/8")(h,p,!1,function(t){e("td4Z")},null,null);a.default=g.exports},ic2N:function(t,a){},td4Z:function(t,a){},xXfc:function(t,a){}});
|