You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

1 lines
4.2 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/demandHall/index"],{"0554":function(t,e,a){"use strict";(function(t){a("ef82");n(a("66fd"));var e=n(a("ebe2"));function n(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,a("543d")["createPage"])},"542b":function(t,e,a){"use strict";a.r(e);var n=a("f488"),s=a.n(n);for(var i in n)"default"!==i&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=s.a},"5e8c":function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return s})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return n}));var s=function(){var t=this,e=t.$createElement;t._self._c},i=[]},"7fad":function(t,e,a){"use strict";var n=a("856f"),s=a.n(n);s.a},"856f":function(t,e,a){},ebe2:function(t,e,a){"use strict";a.r(e);var n=a("5e8c"),s=a("542b");for(var i in s)"default"!==i&&function(t){a.d(e,t,(function(){return s[t]}))}(i);a("7fad");var r,o=a("f0c5"),c=Object(o["a"])(s["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],r);e["default"]=c.exports},f488:function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=getApp(),s=function(){a.e("tabbarComponent/tabbar").then(function(){return resolve(a("594c"))}.bind(null,a)).catch(a.oe)},i={data:function(){return{tabbar:{},active:"1",tabActive:"1",list:[],showScreenDialog:!1,companyList:[],pagesize:3,page:1,loading:!0,cagetoryList:[],enterpriseType:"",resourceCagetoryId:"",choseCagetory:"",choseBusiness:"",cagetoryActive:"",size:0,cName:"",currentTabIndex:1}},components:{tabbar:s},props:{},onLoad:function(t){this.getCagetoryList()},onReachBottom:function(){this.setData({page:this.page+1}),this.getPageData()},onShow:function(){this.getPageData()},onPullDownRefresh:function(){this.setData({loading:!0,page:1}),this.getPageData()},methods:{tabBarClick:function(t){console.log("返回tabBar索引:"+t),this.currentTabIndex=t},topTabClick:function(t){this.setData({active:t.currentTarget.dataset.i,loading:!0,page:1,list:[],enterpriseType:"",cagetoryActive:null,resourceCagetoryId:""}),this.getPageData()},tabClick:function(t){this.setData({tabActive:t.currentTarget.dataset.i,loading:!0,page:1,size:10,cagetoryActive:null}),2==t.currentTarget.dataset.i?this.getCompanyList():this.getPageData()},showDialog:function(){this.setData({showScreenDialog:!0})},toResourceDetail:function(e){var a=e.currentTarget.dataset.id;t.navigateTo({url:"/pages/demandHall/resourcesDetail/index?id="+a})},toCompanyDetail:function(e){var a=e.currentTarget.dataset.id;t.navigateTo({url:"/pages/demandHall/companyDetail/index?id="+a})},toNeedsDetail:function(e){var a=e.currentTarget.dataset.id;t.navigateTo({url:"/pages/demandHall/needsDetail/index?id="+a})},getCagetoryList:function(){var t=this;n.http("get","ResourcesCagetory/listResourcesCagetory").then((function(e){e.data.success&&t.setData({cagetoryList:e.data.data})}))},cagetoryClick:function(t){var e=t.currentTarget.dataset.item,a=t.currentTarget.dataset.i;console.log(e),this.setData({cagetoryActive:a,resourceCagetoryId:e.id,choseCagetory:e.cagetoryName})},businessChange:function(t){var e=t.currentTarget.dataset.type,a=t.currentTarget.dataset.name;this.setData({choseBusiness:a,enterpriseType:e})},finishClick:function(){this.setData({loading:!0,page:1,size:10}),1==this.tabActive?this.getPageData():this.getCompanyList(),this.setData({showScreenDialog:!1})},resetClick:function(){this.setData({cName:"",cagetoryActive:null,resourceCagetoryId:"",enterpriseType:"",choseBusiness:"",choseCagetory:""})},getPageData:function(){var e=this;this.loading?n.http("post","Resources/listResources",{resourceType:this.active,page:this.page,pagesize:this.pagesize,resourceCagetoryId:this.resourceCagetoryId,enterpriseType:this.enterpriseType}).then((function(a){a.data.success&&(t.stopPullDownRefresh(),a.data.data.content.length<e.pagesize&&e.setData({loading:!1}),e.page>1?e.setData({list:e.list.concat(a.data.data.content)}):e.setData({list:a.data.data.content}))})):t.stopPullDownRefresh()},getCompanyList:function(){var t=this;n.http("post","Enterprise/listEnterprise",{industryId:this.resourceCagetoryId,enterpriseType:this.enterpriseType}).then((function(e){e.data.success&&t.setData({companyList:e.data.data.content})}))}}};e.default=i}).call(this,a("543d")["default"])}},[["0554","common/runtime","common/vendor"]]]);