chunk-9299a92e.409a1486.js 4.1 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9299a92e"],{"129f":function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},"28b1":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{background:"#f0f0f0","padding-bottom":"50px"}},[t._m(0),t._m(1),n("div",{staticClass:"smart-device"},[t._m(2),n("div",{staticClass:"smart-device-content"},[n("div",{staticClass:"nav-company"},[n("div",[n("ul",t._l(t.companyTypeList,(function(e){return n("li",{class:t.active==e.value?"active":"",on:{click:function(n){return t.changeType(e.value)}}},[n("span",[t._v(t._s(e.label))])])})),0)])]),n("ul",{staticClass:"company-list"},t._l(t.zsList,(function(e,a){return n("li",{key:a,on:{click:function(n){return t.detail(e)}}},[n("div",{staticClass:"wrap-device-detail"},[n("div",{staticClass:"c-logo"},[n("img",{attrs:{src:e.img,alt:""}})]),n("div",{staticClass:"c-content"},[n("h3",[t._v(t._s(e.name))]),n("p",{staticStyle:{height:"5rem"}},[t._v(t._s(e.detail))])]),t._m(3,!0)])])})),0),n("div",{staticClass:"paginationo-box"},[n("van-pagination",{attrs:{"total-items":t.total,"show-page-size":10},on:{change:t.handleCurrentChange},scopedSlots:t._u([{key:"prev-text",fn:function(){return[n("van-icon",{attrs:{name:"arrow-left"}})]},proxy:!0},{key:"next-text",fn:function(){return[n("van-icon",{attrs:{name:"arrow"}})]},proxy:!0},{key:"page",fn:function(e){var n=e.text;return[t._v(t._s(n))]}}]),model:{value:t.search.pageNum,callback:function(e){t.$set(t.search,"pageNum",e)},expression:"search.pageNum"}})],1)])])])},i=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"banner"},[a("img",{attrs:{src:n("ec5c"),alt:""}})])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"bread"},[n("div",[n("span",[t._v("当前位置:首页-知名企业")])])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"smart-title"},[n("span",[n("span",[t._v("知名企业")]),t._v("ENTERPRISE")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"detail-btn"},[n("span",[t._v("查看详情")])])}],s=(n("841c"),n("ac1f"),n("159b"),n("4dff")),c=n("acdc"),o=n("763b"),r={mixins:[c["a"],o["a"]],data:function(){return{dc_key:["COMPANY_INDUSTRY"],active:0,currentPage:1,total:0,zsList:[],search:{pageNum:1,pageSize:8,status:"published"},companyTypeList:[]}},mounted:function(){var t=this;document.documentElement.scrollTop=document.body.scrollTop=0,this.initDict(this.dc_key,!0).then((function(e){t.companyTypeList=t.dc_data.COMPANY_INDUSTRY,t.getData()})),window.history&&window.history.pushState&&(history.pushState(null,null,document.URL),window.addEventListener("popstate",this.goBack,!1))},destroyed:function(){window.removeEventListener("popstate",this.goBack,!1)},methods:{goBack:function(){this.$router.push({path:"/"})},changeType:function(t){this.search.pageNum=1,this.search.companyType=t,this.active=t,this.getData()},handleCurrentChange:function(t){this.search.pageNum=t,this.getData()},getData:function(){var t=this;Object(s["i"])(this.search).then((function(e){console.log(e),e.rows&&(t.total=e.total,t.zsList=[],e.rows.forEach((function(e){var n="";if(e.logo&&e.logo.length>2){var a=t.$common.castEval(e.logo);n=a[0].url}var i={img:t.$common.replaceWxDownload(n),name:e.companyName,content:e.content,detail:e.introduction};t.zsList.push(i)})))}))},detail:function(t){this.$router.push({name:"companyDetail",query:t})}}},l=r,u=(n("b447"),n("2877")),d=Object(u["a"])(l,a,i,!1,null,"7a9407f1",null);e["default"]=d.exports},"841c":function(t,e,n){"use strict";var a=n("d784"),i=n("825a"),s=n("1d80"),c=n("129f"),o=n("14c3");a("search",1,(function(t,e,n){return[function(e){var n=s(this),a=void 0==e?void 0:e[t];return void 0!==a?a.call(e,n):new RegExp(e)[t](String(n))},function(t){var a=n(e,t,this);if(a.done)return a.value;var s=i(t),r=String(this),l=s.lastIndex;c(l,0)||(s.lastIndex=0);var u=o(s,r);return c(s.lastIndex,l)||(s.lastIndex=l),null===u?-1:u.index}]}))},b447:function(t,e,n){"use strict";n("d020")},d020:function(t,e,n){}}]);
  2. //# sourceMappingURL=chunk-9299a92e.409a1486.js.map