1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/tasksquare/tasksquare"],{"1f4c":function(t,o,e){},"29cc":function(t,o,e){"use strict";e.r(o);var a=e("4b23"),n=e.n(a);for(var i in a)"default"!==i&&function(t){e.d(o,t,(function(){return a[t]}))}(i);o["default"]=n.a},3486:function(t,o,e){"use strict";(function(t){e("a87f");a(e("66fd"));var o=a(e("3e85"));function a(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=e,t(o.default)}).call(this,e("543d")["createPage"])},"3e85":function(t,o,e){"use strict";e.r(o);var a=e("e499"),n=e("29cc");for(var i in n)"default"!==i&&function(t){e.d(o,t,(function(){return n[t]}))}(i);e("cabd"),e("5292");var r,c=e("f0c5"),s=Object(c["a"])(n["default"],a["b"],a["c"],!1,null,"c0b62568",null,!1,a["a"],r);o["default"]=s.exports},"4b23":function(t,o,e){"use strict";(function(t){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;a(e("f603"));function a(t){return t&&t.__esModule?t:{default:t}}function n(t,o,e){return o in t?Object.defineProperty(t,o,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[o]=e,t}var i="/static/img/png4.png",r="/static/img/png2.png",c={props:{mysNavConfig:{type:Object,default:function(){return{navFixed:!0,isHome:!0,navPadding:!0,bgColor:"#f8f8f8",opacity:1,isOpacity:!1,opacityTime:100,btnType:"type1",leftText:{text:"",color:"",fontSize:"16px",fontWeight:""},navTitle:{text:"首页",color:"",fontSize:"32rpx",fontWeight:"normal"},type2Config:{leftPath:"https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/png3.png",rightPath:"https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/png1.png",radius:"40rpx"}}}},scrollTop:{type:Number,default:function(){return 0}}},filters:{ellipsis:function(t){return t?t.length>20?t.slice(0,20)+"...":t:""}},components:{},data:function(){var t;return t={per:0,type4:"center",img:"https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home1.png",background:["color1","color2","color3"],indicatorDots:!0,autoplay:!0,interval:3e3,duration:1e3,list1:[{img:"https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home1.png",name:"/pages/pupu/guide"},{img:"https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home7.png",name:"/pages/pupu/cooperation"}],type:"center",formData:{hobby:[],hobby1:[],hobby2:[]},hobby:[{text:"小红书",value:1},{text:"抖音",value:2},{text:"微博",value:3},{text:"快手",value:4},{text:"B站",value:5},{text:"大众点评",value:6},{text:"知乎",value:7}],hobby1:[{text:"产品置换",value:1},{text:"固定稿费",value:2},{text:"自报价",value:3}],hobby2:[{text:"线下探店",value:1},{text:"实体商品",value:2},{text:"虚拟商品",value:3},{text:"素材微原创",value:4}],iconW:void 0,iconH:void 0,btnWidth:void 0,btnHeight:void 0,navBarTop:void 0,navBarHeight:void 0,navBarLeft:void 0,navBarRight:void 0,inputHeight:void 0,opacity:0,isHome:!1,homeIconPath:i,backIconPath:r},n(t,"img","../../static/home/home.png"),n(t,"max_page",""),n(t,"tupian",{wen:"原创图片",lin:1}),n(t,"projectList",[]),n(t,"img456","../../static/home/home.png"),n(t,"listsrc",[]),n(t,"filtCondition",""),t},computed:{isSharePage:function(){}},watch:{scrollTop:function(t){this.mysNavConfig.isOpacity&&this.setOpacity(t,this.mysNavConfig.opacityTime)}},onShow:function(){this.isLogin()},onLoad:function(){this.getInfoList(),this.getProjectList()},onPullDownRefresh:function(){this.getProjectList(),console.log(123),t.stopPullDownRefresh()},onReachBottom:function(){var o=this;++this.per,new Promise((function(e,a){t.showLoading({title:"加载中"}),o.requestTimeout=setTimeout((function(){var t={};e(t)}),1e3)})).then((function(e){t.hideLoading(),o.per>=o.max_page?t.showToast({title:"已加载全部"}):o.$http.get("/youngee/c/g/get-project-list?idx="+o.per+"&cnt=20"+o.filtCondition).then((function(t){console.log("project"),console.log(t);for(var e=0;e<t.data.data.ProjectInfos.length;e++){for(var a=0;a<o.listsrc.length;a++)t.data.data.ProjectInfos[e].project_platform==o.listsrc[a].id&&(t.data.data.ProjectInfos[e].project_imgper=o.listsrc[a].platformIcon,console.log("111111111111"),console.log(t.data.data.ProjectInfos[e].project_imgper));t.data.data.ProjectInfos[e].ProductInfo.product_price=.01*Number(t.data.data.ProjectInfos[e].ProductInfo.product_price),t.data.data.ProjectInfos[e].content_form=o.contentFormToString(t.data.data.ProjectInfos[e].content_form),null==t.data.data.ProjectInfos[e].projectSignUpInfo?t.data.data.ProjectInfos[e].signUpNum=0:t.data.data.ProjectInfos[e].signUpNum=t.data.data.ProjectInfos[e].projectSignUpInfo.length,t.data.data.ProjectInfos[e].taskNum=0;for(a=0;a<t.data.data.ProjectInfos[e].NeedTalentCount.length;a++)t.data.data.ProjectInfos[e].taskNum=Number(t.data.data.ProjectInfos[e].taskNum)+Number(t.data.data.ProjectInfos[e].NeedTalentCount[a].need_talent_count);var n=new Date,i=new Date(t.data.data.ProjectInfos[e].deadline_time.replace(/-/g,"/"));t.data.data.ProjectInfos[e].deadlinetype=i-n<0?0:1,t.data.data.ProjectInfos[e].deadline_time=o.thistime(t.data.data.ProjectInfos[e].deadline_time)}var r=t.data.data.ProjectInfos;o.projectList=o.projectList.concat(r),console.log(o.projectList)}))}))},methods:{isLogin:function(){""!==this.token?this.$https.get("/youngee/c/t/g/is-login").then((function(o){console.log(o),403==o.data.code&&t.clearStorage()})):console.log(this.token)},getInfoList:function(){var t=this;this.$http.get("/youngee/c/g/get-info-tables").then((function(o){t.hobby=[],console.log(o),t.listsrc=o.data.data.ThirdPlatform;for(var e=0;e<t.listsrc.length;e++){var a={};a.text=t.listsrc[e].platformName,a.value=t.listsrc[e].id,t.hobby.push(a)}}))},guid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var o=16*Math.random()|0,e="x"==t?o:3&o|8;return e.toString(16)}))},getProjectList:function(){var t=this;this.per=0,this.$http.get("/youngee/c/g/get-project-list?idx="+this.per+"&cnt=20"+this.filtCondition).then((function(o){t.max_page=o.data.data.max_page;for(var e=0;e<o.data.data.ProjectInfos.length;e++){o.data.data.ProjectInfos[e].coverphoto=o.data.data.ProjectInfos[e].ProductInfo.ProductCovers[e].photo_url;for(var a=0;a<t.listsrc.length;a++)o.data.data.ProjectInfos[e].project_platform==t.listsrc[a].id&&(o.data.data.ProjectInfos[e].project_imgper=t.listsrc[a].platform_icon);t.listsrc,o.data.data.ProjectInfos[e].taskNum=0;for(a=0;a<o.data.data.ProjectInfos[e].RecruitStrategys.length;a++)o.data.data.ProjectInfos[e].taskNum=Number(o.data.data.ProjectInfos[e].taskNum)+Number(o.data.data.ProjectInfos[e].RecruitStrategys[a].recruit_number),o.data.data.ProjectInfos[e].isfixedfee=0,2===o.data.data.ProjectInfos[e].RecruitStrategys[a].fee_form&&(o.data.data.ProjectInfos[e].isfixedfee=1),o.data.data.ProjectInfos[e].isself=0,3===o.data.data.ProjectInfos[e].RecruitStrategys[a].fee_form&&(o.data.data.ProjectInfos[e].isself=1);var n=new Date,i=new Date(o.data.data.ProjectInfos[e].recruit_ddl.replace(/-/g,"/"));o.data.data.ProjectInfos[e].deadlinetype=i-n<0?0:1,o.data.data.ProjectInfos[e].recruit_ddl=t.thistime(o.data.data.ProjectInfos[e].recruit_ddl)}t.projectList=o.data.data.ProjectInfos,console.log(t.projectList)}))},thistime:function(t){var o=new Date(t.replace(/-/g,"/")),e=new Date,a=o.getTime()-e.getTime(),n=Math.floor(a/864e5),i=a%864e5,r=Math.floor(i/36e5),c="";c=n+"天"+r+"时结束";return c},contentFormToString:function(t){var o="",e=128,a=t&e;if(a>0)o+="直播";else{var n=15,i=48,r=1,c=2,s=4,u=8,f=16,d=32,l=t&n;l==r?o+="原创图片":l==c?o+="指定图片":l==s?o+="原创视频":l==u&&(o+="指定视频");var h=t&i;h==f?o+="+ 原创文案":h==d&&(o+="+ 指定文案")}return o},deng:function(){t.navigateTo({url:"../index/login"})},pick:function(o){t.navigateTo({url:o.name})},change:function(t){console.log("当前模式:"+t.type+",状态:"+t.show)},determine:function(){this.$refs.popup.close(),t.showLoading({title:"加载中"}),console.log(this.formData.hobby),console.log(this.formData.hobby1);for(var o="",e=0;e<this.formData.hobby.length;e++)o+="&platform[]="+this.formData.hobby[e];for(var a=0;a<this.formData.hobby1.length;a++)o+="&feeform[]="+this.formData.hobby1[a];for(a=0;a<this.formData.hobby2.length;a++)o+="&projectform[]="+this.formData.hobby2[a];console.log(o),this.filtCondition=o,this.getProjectList(),t.hideLoading()},Reset:function(){this.$refs.popup.close(),t.showLoading({title:"加载中"}),console.log("重置"),this.formData.hobby=[],this.formData.hobby1=[],this.filtCondition="",this.getProjectList(),t.hideLoading()},toggle4:function(t){this.type4=t,this.$refs.popup4.open(t)},xieyi:function(){console.log("进入联系我们")},go:function(o){t.navigateTo({url:o})},init:function(){if(this.mysNavConfig.isHome){var o=getCurrentPages().length;this.isHome=1==o}this.navBarTop=t.getSystemInfoSync().statusBarHeight+"px",this.mysNavConfig.opacity?(this.opacity=this.mysNavConfig.opacity,this.mysNavConfig.isOpacity&&(this.mysNavConfig.navFixed=!0,this.opacity=0)):(this.opacity=1,this.mysNavConfig.isOpacity?(this.mysNavConfig.navFixed=!0,this.opacity=0):this.opacity=1),this.initMP()},initMP:function(){var o=t.getSystemInfoSync(),e=t.getMenuButtonBoundingClientRect(),a=e.height;this.btnWidth=e.width+"px",this.btnHeight=a+"px",this.iconW=Math.floor(e.width/4-5)+"px",this.iconH=a/2+"px",this.inputHeight=a-3+"px",this.navBarTop=e.top+"px",this.navBarLeft=o.screenWidth-e.right+"px",this.navBarRight=o.screenWidth-e.right+e.width+"px",this.navBarHeight=o.statusBarHeight+a+2*(e.top-o.statusBarHeight)+"px"},onLeftClick:function(){t.navigateTo({url:"/pages/pupu/search"})},project:function(o){console.log(o.project_id),0==o.deadlinetype?t.showToast({title:"此任务已结束",icon:"none",duration:2e3}):t.navigateTo({url:"/pages/tasksquare/taskdetail?id="+o.project_id})},onLeftHome:function(t){this.type=t,this.$refs.popup.open(t)},onRightClick:function(){console.log("onRightClick"),t.showToast({title:"onRightClick",duration:1e3}),this.$emit("onRightClick")},setOpacity:function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60;t>0?(t<o&&(this.opacity=t/o),t>o&&(this.opacity=1)):this.opacity=0},changeInput:function(t){this.$emit("changeInput",t)},submitInput:function(t){this.$emit("submitInput",t)},clearInput:function(){this.$emit("clearInput")},clickInput:function(){this.$emit("clickInput")}},created:function(){this.init()},onReady:function(){}};o.default=c}).call(this,e("543d")["default"])},5292:function(t,o,e){"use strict";var a=e("1f4c"),n=e.n(a);n.a},bda0:function(t,o,e){},cabd:function(t,o,e){"use strict";var a=e("bda0"),n=e.n(a);n.a},e499:function(t,o,e){"use strict";e.d(o,"b",(function(){return n})),e.d(o,"c",(function(){return i})),e.d(o,"a",(function(){return a}));var a={uniPopup:function(){return e.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(e.bind(null,"7ae8"))},uniDataCheckbox:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox")]).then(e.bind(null,"c24e"))}},n=function(){var t=this,o=t.$createElement,e=(t._self._c,t.__map(t.projectList,(function(o,e){var a=t.__get_orig(o),n=t._f("ellipsis")(o.project_name);return{$orig:a,f0:n}})));t.$mp.data=Object.assign({},{$root:{l0:e}})},i=[]}},[["3486","common/runtime","common/vendor"]]]);
|