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.4 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"),i=a.n(n);for(var s in n)"default"!==s&&function(t){a.d(e,t,(function(){return n[t]}))}(s);e["default"]=i.a},"7fad":function(t,e,a){"use strict";var n=a("856f"),i=a.n(n);i.a},"856f":function(t,e,a){},d2f6:function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){return n}));var i=function(){var t=this,e=t.$createElement;t._self._c},s=[]},ebe2:function(t,e,a){"use strict";a.r(e);var n=a("d2f6"),i=a("542b");for(var s in i)"default"!==s&&function(t){a.d(e,t,(function(){return i[t]}))}(s);a("7fad");var r,o=a("f0c5"),c=Object(o["a"])(i["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(),i=function(){a.e("tabbarComponent/tabbar").then(function(){return resolve(a("594c"))}.bind(null,a)).catch(a.oe)},s={data:function(){return{tabbar:{},active:"1",tabActive:"1",list:[],showScreenDialog:!1,companyList:[],pageSize:5,pageNumber:0,loading:!0,cagetoryList:[],enterpriseType:"",resourceCagetoryId:"",choseCagetory:"",choseBusiness:"",cagetoryActive:"",size:0,cName:"",currentTabIndex:1}},components:{tabbar:i},props:{},onLoad:function(t){this.getCagetoryList()},onReachBottom:function(){this.setData({pageNumber:this.pageNumber+1}),this.getPageData()},onShow:function(){this.getPageData()},onPullDownRefresh:function(){this.setData({loading:!0,pageNumber:0}),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,pageNumber:1,list:[],enterpriseType:"",cagetoryActive:null,resourceCagetoryId:""}),this.getPageData()},tabClick:function(t){this.setData({tabActive:t.currentTarget.dataset.i,loading:!0,pageNumber:0,pageSize:5,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,pageNumber:0,pageSize:5}),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?page=".concat(this.pageNumber,"&size=").concat(this.pageSize),{resourceType:this.active,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.pageNumber>0?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?page=".concat(this.pageNumber,"&size=").concat(this.pageSize),{industryId:this.resourceCagetoryId,enterpriseType:this.enterpriseType}).then((function(e){e.data.success&&t.setData({companyList:e.data.data.content})}))}}};e.default=s}).call(this,a("543d")["default"])}},[["0554","common/runtime","common/vendor"]]]);