2 lines
12 KiB
JavaScript
2 lines
12 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/directory"],{111:function(t,e,n){"use strict";n.r(e);var i=n(112),o=n(114);for(var s in o)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(s);n(116);var r,a=n(42),c=Object(a["default"])(o["default"],i["render"],i["staticRenderFns"],!1,null,"671ec3f2",null,!1,i["components"],r);c.options.__file="pages/index/directory.vue",e["default"]=c.exports},112:function(t,e,n){"use strict";n.r(e);var i=n(113);n.d(e,"render",(function(){return i["render"]})),n.d(e,"staticRenderFns",(function(){return i["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return i["recyclableRender"]})),n.d(e,"components",(function(){return i["components"]}))},113:function(t,e,n){"use strict";var i;n.r(e),n.d(e,"render",(function(){return o})),n.d(e,"staticRenderFns",(function(){return r})),n.d(e,"recyclableRender",(function(){return s})),n.d(e,"components",(function(){return i}));try{i={tnNavBar:function(){return Promise.all([n.e("common/vendor"),n.e("tuniao-ui/components/tn-nav-bar/tn-nav-bar")]).then(n.bind(null,406))},tnTabs:function(){return Promise.all([n.e("common/vendor"),n.e("tuniao-ui/components/tn-tabs/tn-tabs")]).then(n.bind(null,428))},tnButton:function(){return Promise.all([n.e("common/vendor"),n.e("tuniao-ui/components/tn-button/tn-button")]).then(n.bind(null,420))},tnPopup:function(){return Promise.all([n.e("common/vendor"),n.e("tuniao-ui/components/tn-popup/tn-popup")]).then(n.bind(null,391))},tnPicker:function(){return Promise.all([n.e("common/vendor"),n.e("tuniao-ui/components/tn-picker/tn-picker")]).then(n.bind(null,484))},tnSelect:function(){return n.e("tuniao-ui/components/tn-select/tn-select").then(n.bind(null,494))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var t=this,e=t.$createElement,n=(t._self._c,2==t.pickerIndex?t.covers.length:null),i=2==t.pickerIndex?t.__map(t.covers,(function(e,n){var i=t.__get_orig(e),o=t.covers.length;return{$orig:i,g1:o}})):null,o=2==t.pickerIndex||t.serach_do?null:t.__map(t.industry_list,(function(e,n){var i=t.__get_orig(e),o=1==t.pickerIndex?t.tabbarItemClass(n):null;return{$orig:i,m0:o}})),s=2==t.pickerIndex||t.serach_do?null:t.__map(t.zz_list,(function(e,n){var i=t.__get_orig(e),o=0==t.pickerIndex?t.tabbarItemClass(n):null;return{$orig:i,m1:o}})),r=2!=t.pickerIndex?t.__map(t.list,(function(e,n){var i=t.__get_orig(e),o=e.neirong?e.neirong.length:null;return{$orig:i,g2:o}})):null,a=2!=t.pickerIndex?t.member_list.length:null,c=2!=t.pickerIndex&&a>0?t.__map(t.member_list,(function(e,n){var i=t.__get_orig(e),o=t.member_list.length;return{$orig:i,g4:o}})):null,l=2!=t.pickerIndex?t.list.length:null;t._isMounted||(t.e0=function(e){t.pickerShow=!0},t.e1=function(e){t.region_show=!0},t.e2=function(e){t.coversShow=!0},t.e3=function(e){t.pickerShow=!0}),t.$mp.data=Object.assign({},{$root:{g0:n,l0:i,l1:o,l2:s,l3:r,g3:a,l4:c,g5:l}})},s=!1,r=[];o._withStripped=!0},114:function(t,e,n){"use strict";n.r(e);var i=n(115),o=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=o.a},115:function(t,e,n){"use strict";(function(t){var i=n(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n(18)),s=n(33),r=i(n(30)),a={data:function(){return{serach_content:"",list:[],topCurrent:0,tabbarIndex:0,tabbarItemInfo:[],scrollViewBasicTop:0,scrollViewHeight:0,leftScrollViewTop:0,rightScrollViewTop:0,currentTabbarIndex:0,apiImgUrl:this.$store.state.imgUrl,industry_list:[],leftId:0,selectShow:!1,HomeTitle:"",selectList:[],member_list:[],zz_list:[],page:1,gid:r.default.state.Gid,gname:"",top:0,my_page:0,pickerShow:!1,pickerIndex:0,pickerList:[{name:"按职位",id:1},{name:"按行业",id:2},{name:"按区域",id:3}],serach_do:!1,covers:[],coversShow:!1,region_show:!1,region_name:"全部",region_list:[],region_id:0,scale:5,latitude:34.776787,longitude:113.733079}},computed:{tabbarItemClass:function(){var t=this;return function(e){if(e===t.currentTabbarIndex)return"tn-classify__tabbar__item--active tn-bg-my-ccc";var n="";return t.currentTabbarIndex>0&&e===t.currentTabbarIndex-1&&(n+=" tn-classify__tabbar__item--active--prev"),t.currentTabbarIndex<t.industry_list.length&&e===t.currentTabbarIndex+1&&(n+=" tn-classify__tabbar__item--active--next"),n}}},methods:{getDqId:function(t){var e=t[0],n=t[1];0==e.value?this.region_name="全部":this.region_name=e.label+"/"+n.label,this.region_id=n.value,this.scale=5,this.latitude=34.776787,this.longitude=113.733079,this.coversShow=!1,this.getLatitudeAndLongitude()},openMark:function(t){console.log(t),this.scale=15,this.latitude=t.latitude,this.longitude=t.longitude,this.coversShow=!1},openLock:function(e){console.log(e);var n=e.detail.markerId,i=this.covers.find((function(t){return t.id==n}));t.showModal({title:"导航提醒",content:"确定要开启导航吗?",success:function(e){e.confirm&&t.openLocation({latitude:i.latitude,longitude:i.longitude,name:i.title,success:function(){console.log("导航成功")},fail:function(t){console.error("导航失败",t)}})}})},getLatitudeAndLongitude:function(){var e=this;(0,s.latitudeAndLongitude)({region_id:this.region_id,enterprise_name:this.serach_content,nikename:this.serach_content}).then((function(t){console.log(t);var n=t.data,i=n.map((function(t){return{latitude:parseFloat(t.dimension),longitude:parseFloat(t.longitude),id:t.id,iconPath:"/static/make.png",width:30,height:30,company_image:t.company_image,nikename:t.nikename,title:t.enterprise_name,photo_image:t.photo_image,callout:{content:t.enterprise_name,textAlign:"center",fontSize:16,borderRadius:5,color:"#3056D3"}}}));console.log(i),e.covers=i})).catch((function(e){t.showToast({title:e,icon:"none",duration:2e3})}))},inPickerList:function(t){this.top=0,this.currentTabbarIndex=0,this.pickerIndex=t[0],this.leftHyId=0,this.member_list=[],this.list=[],this.page=1,this.getAddressList(),this.getMemberList(),this.scale=5,this.latitude=34.776787,this.longitude=113.733079,this.getLatitudeAndLongitude()},preventTouchMove:function(){},rightBottom:function(){15!=this.leftZzId&&1!=this.pickerIndex||(t.showLoading({title:"加载中..."}),console.log(1),this.page=this.page+1,this.getMemberList())},getScroll:function(t){this.top=t.scrollTop},onload:function(){if(console.log(this.list.length),console.log(this.member_list.length),this.serach_content="",this.coversShow=!1,this.serach_do=!1,!(this.list.length>0||this.member_list.length>0)){this.currentTabbarIndex=0,this.gid=r.default.state.Gid,this.gname=r.default.state.Gname,this.getIndustryList(),this.getAssociationIndex(),this.getPositionListIndex(),this.getLatitudeAndLongitude(),this.getRegionList();var e=t.getSystemInfoSync(),n=t.getWindowInfo();console.log(n);var i=this.sizeDeal(120),o=this.sizeDeal(140);this.my_page=parseInt(e.windowHeight)-parseInt(r.default.state.vuex_custom_bar_height)-parseInt(o)-parseInt(i)-parseInt(e.safeAreaInsets.bottom)}},getPositionListIndex:function(){var e=this;(0,s.positionList)({association_id:1}).then((function(t){console.log(t),1==t.code&&(e.zz_list=t.data,e.zz_list.unshift({id:0,position_name:"全部"}))})).catch((function(e){t.showToast({title:e,icon:"none",duration:2e3})}))},getRegionList:function(){var e=this;(0,s.getRegion)({association_id:1}).then((function(t){if(1==t.code){var n=t.data;n.unshift({value:0,label:"全部",children:[{value:0,label:"全部"}]}),e.region_list=n}})).catch((function(e){t.showToast({title:e,icon:"none",duration:2e3})}))},getAssociationIndex:function(){var e=this;(0,s.associationIndex)().then((function(t){if(console.log(t),1==t.code){var n=t.data,i=n.map((function(t){return{value:t.id,label:t.association_name}})),o=i.find((function(t){return t.value==e.gid}));e.HomeTitle=o.label,e.selectList=i}})).catch((function(e){t.showToast({title:e,icon:"none",duration:2e3})}))},getIndustryList:function(){var e=this;(0,s.newIndustryIndex)({association_id:this.gid}).then((function(n){console.log(n),1==n.code&&(e.industry_list=n.data,e.industry_list.push({id:-1,industry_name:"其他行业"}),e.industry_list.unshift({id:0,industry_name:"全部"}),e.leftHyId=0,t.showLoading({title:"加载中..."}),e.getAddressList(),e.getMemberList())})).catch((function(e){t.showToast({title:e,icon:"none",duration:2e3})}))},reset:function(){this.serach_content="",this.coversShow=!0,this.serach_do=!1,this.member_list=[],this.list=[],this.page=1,this.getAddressList(),this.getMemberList(),this.getLatitudeAndLongitude()},serach:function(){""==this.serach_content?this.serach_do=!1:this.serach_do=!0,this.coversShow=!0,this.member_list=[],this.list=[],this.page=1,this.leftHyId=0,this.leftDqId=0,this.getAddressList(),this.getMemberList(),this.getLatitudeAndLongitude()},getMemberList:function(){var e=this;(0,s.huiYuanList)({region_id:this.leftDqId,association_id:this.gid,industry_id:this.leftHyId,nikename:this.serach_content,page:this.page,size:15}).then((function(n){var i;(console.log(n),1==n.code)&&(i=e.member_list).push.apply(i,(0,o.default)(n.data[0].neirong));setTimeout((function(){t.hideLoading()}),2e3)})).catch((function(e){t.showToast({title:e,icon:"none",duration:2e3})}))},getAddressList:function(){var e=this;(0,s.addressList)({number_of_sessions:this.leftJsId,position_id:this.leftZzId,region_id:this.leftDqId,association_id:this.gid,industry_id:this.leftHyId,nikename:this.serach_content}).then((function(n){var i;(console.log(n),1==n.code)?(i=e.list).push.apply(i,(0,o.default)(n.data)):e.showNo=!0;setTimeout((function(){t.hideLoading()}),2e3)})).catch((function(e){t.showToast({title:e,icon:"none",duration:2e3})}))},clickClassifyNavZZ:function(e){this.top=0,t.showLoading({title:"加载中..."}),this.currentTabbarIndex=e,this.leftZzId=this.zz_list[e].id,this.member_list=[],this.list=[],this.top=this.randomBetween(),this.page=1,this.getAddressList(),15==this.leftZzId&&this.getMemberList()},clickClassifyNav:function(e){this.top=0,console.log(e),console.log(this.industry_list[e].id),t.showLoading({title:"加载中..."}),this.currentTabbarIndex=e,this.leftHyId=this.industry_list[e].id,this.member_list=[],this.list=[],this.top=this.randomBetween(),this.page=1,this.getAddressList(),this.getMemberList()},randomBetween:function(){var t=Math.random()*(.99999-1e-5)+1e-5;return t.toFixed(5)},handleLeftScrollView:function(t){var e=this.tabbarItemInfo[t].top-this.scrollViewBasicTop;e>this.scrollViewHeight/2?this.leftScrollViewTop=e-this.scrollViewHeight/2+this.tabbarItemInfo[t].height:this.leftScrollViewTop=0},switchClassifyContent:function(){var t=this;this.rightScrollViewTop=1,this.$nextTick((function(){t.rightScrollViewTop=0}))},tn:function(e){t.navigateTo({url:e})},sizeDeal:function(e){var n=t.upx2px(e);return n},goBack:function(){getCurrentPages().length>1?t.navigateBack():t.redirectTo({url:"/pages/index/index"})}}};e.default=a}).call(this,n(2)["default"])},116:function(t,e,n){"use strict";n.r(e);var i=n(117),o=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=o.a},117:function(t,e,n){},130:function(t,e,n){"use strict";(function(t,e){var i=n(4);n(26);i(n(25));var o=i(n(111));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n(1)["default"],n(2)["createPage"])}},[[130,"common/runtime","common/vendor"]]]);
|
||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/directory.js.map
|