(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/components/enterpriseSide"],{"2f72":function(e,a,o){"use strict";var n=o("c8f8"),t=o.n(n);t.a},"81c1":function(e,a,o){"use strict";o.r(a);var n=o("fb65"),t=o("b3f9");for(var c in t)["default"].indexOf(c)<0&&function(e){o.d(a,e,(function(){return t[e]}))}(c);o("2f72");var i=o("f0c5"),s=Object(i["a"])(t["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);a["default"]=s.exports},"9e7b":function(e,a,o){"use strict";(function(e){var n=o("4ea4");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var t=n(o("448a")),c=o("7982"),i={components:{Activity:function(){o.e("pages/index/components/activity").then(function(){return resolve(o("21e3"))}.bind(null,o)).catch(o.oe)},vanRate:function(){o.e("common/vendor").then(function(){return resolve(o("ae8c"))}.bind(null,o)).catch(o.oe)},dynamic:function(){o.e("pages/index/components/dynamic").then(function(){return resolve(o("d93b"))}.bind(null,o)).catch(o.oe)}},name:"enterpriseSide",data:function(){return{noticeList:[],faMsg:"home",locationIcon:"https://www.idea-co-sf.com/gardenProduct/image/locationIcon.png",dhIcon:"https://www.idea-co-sf.com/gardenProduct/image/dhIcon.png",vector:"https://www.idea-co-sf.com/gardenProduct/image/Vector.png",tongzhi:"https://www.idea-co-sf.com/gardenProduct/image/tongzhi.png",wyhead:"https://www.idea-co-sf.com/gardenProduct/image/wyHead.png",myIcon:"https://www.idea-co-sf.com/gardenProduct/image/icon.png",voidMyIcon:"https://www.idea-co-sf.com/gardenProduct/image/voidIcon.png",phoneCall:"https://www.idea-co-sf.com/gardenProduct/image/phoneCall.png",value:"5",searchArea:"当前园区名称",index:0,array:["中国","美国","巴西","日本"],envList:[{url:"https://www.idea-co-sf.com/gardenProduct/image/parkBg.png"},{url:"https://www.idea-co-sf.com/gardenProduct/image/parkBg.png"}],tabList:[{name:"活动"},{name:"周边"},{name:"房源"},{name:"动态"}],selectTab:"活动",mapList:[{label:"待办提醒",url:"https://www.idea-co-sf.com/gardenProduct/image/dbtxIcon.png"},{label:"企业账单",url:"https://www.idea-co-sf.com/gardenProduct/image/qyzdIcon.png",path:"/pages/subPackages/enterPriseBill/index",isMustCompany:!0},{label:"经发填报",url:"https://www.idea-co-sf.com/gardenProduct/image/jftbIcon.png",path:"/pages/subPackages/economicDevelopmentReport/economic",isMustCompany:!0},{label:"园区周边",url:"https://www.idea-co-sf.com/gardenProduct/image/yqzb.png",path:"/pages/subPackages/peripheralService/index"},{label:"报事报修",url:"https://www.idea-co-sf.com/gardenProduct/image/bsbxIcon.png",path:"/pages/subPackages/reportRepair/index",isMustCompany:!0},{label:"活动报名",url:"https://www.idea-co-sf.com/gardenProduct/image/hdbmIcon.png",path:"/pages/subPackages/parkActivity/index"},{label:"入驻申请",url:"https://www.idea-co-sf.com/gardenProduct/image/rzsqIcon.png",path:"/pages/subPackages/companyHouse/companyHouse"},{label:"退租申请",url:"https://www.idea-co-sf.com/gardenProduct/image/tzsqIcon.png",path:"/pages/subPackages/companyHouse/companyHouse",isMustCompany:!0},{label:"关于园区",url:"https://www.idea-co-sf.com/gardenProduct/image/gyyqIcon.png",path:"/pages/subPackages/aboutThePark/index"},{label:"产业政策",url:"https://www.idea-co-sf.com/gardenProduct/image/cyzcIcon.png",path:"/pages/subPackages/industrialPolicy/index"},{label:"资源预约",url:"https://www.idea-co-sf.com/gardenProduct/image/zyyyIcon.png",path:"/pages/subPackages/resourceReservation_manage/index"}]}},mounted:function(){this.getNotice(),this.getHouseKeeper()},methods:{changeImg:function(e){},getHouseKeeper:function(){var e=this,a={userId:(0,c.getUserLocalStorageInfo)().userId};(0,c.getUserMainHouseKeeper)(a).then((function(a){"200"==a.key&&(console.log("res.data:开始"),console.log(a.data),console.log("res.data:结束"),null!=a.data&&(e.houseKeeper=a.data))}))},toMap:function(){e.chooseLocation({success:function(e){console.log("选择的位置:",e.name),console.log("纬度:"+e.latitude+",经度:"+e.longitude)},fail:function(e){console.error("Choose location failed: "+JSON.stringify(e))},complete:function(){console.log("chooseLocation operation is complete")}})},getNotice:function(){var a=this;(0,c.newNotice)().then((function(o){if("409"==o.code&&(e.clearStorageSync(),e.reLaunch({url:"/pages/login/login"})),o.data){var n,c=o.data;c.forEach((function(e){e.time=a.showtime(e.releaseTime)})),(n=a.noticeList).push.apply(n,(0,t.default)(o.data))}}))},showtime:function(e){var a="number"===typeof e?new Date(e):new Date((e||"").replace(/-/g,"/")),o=((new Date).getTime()-a.getTime())/1e3,n=Math.floor(o/86400),t="[object Date]"===Object.prototype.toString.call(a)&&!isNaN(a.getTime());t||window.console.error("不是有效日期格式");return isNaN(n)||n<0?function(e){var a=new Date(e),o=a.getFullYear(),n=("0"+(a.getMonth()+1)).slice(-2),t=("0"+a.getDate()).slice(-2),c=a.getHours(),i=a.getMinutes(),s=a.getSeconds();return"".concat(o,"-").concat(n,"-").concat(t," ").concat(c,":").concat(i,":").concat(s)}(a):0===n&&((o<60?"刚刚":o<120&&"1分钟前")||o<3600&&Math.floor(o/60)+"分钟前"||o<7200&&"1小时前"||o<86400&&Math.floor(o/3600)+"小时前")||1===n&&"昨天"||n<7&&n+"天前"||n<31&&Math.ceil(n/7)+"周前"||n>=31&&Math.ceil((n-30)/31)+"月前"},toServiceEva:function(){e.navigateTo({url:"/pages/subPackages/serviceEvaluation/index"})},toNotice:function(a){e.navigateTo({url:"/pages/subPackages/propertyNotice/index?type="+a.type})},bindPickerChange:function(e){console.log(e),this.searchArea=this.array[e.detail.value]},jumpPage:function(a,o){console.log(a),o&&3==(0,c.getUserLocalStorageInfo)().userType?e.showModal({title:"提示",cancelText:"暂不",confirmText:"去切换",content:"您还不是企业用户,请切换登录身份后再进行相关操作。",success:function(a){a.confirm?e.navigateTo({url:"/pages/login2/login",success:function(e){}}):a.cancel&&console.log("用户点击取消")}}):e.navigateTo({url:a,fail:function(e){console.log(e)}})},clickTab:function(a){"周边"===a.name?e.navigateTo({url:"/pages/subPackages/peripheralService/index"}):"房源"===a.name&&e.navigateTo({url:"/pages/subPackages/housingResources/index"})}}};a.default=i}).call(this,o("543d")["default"])},b3f9:function(e,a,o){"use strict";o.r(a);var n=o("9e7b"),t=o.n(n);for(var c in n)["default"].indexOf(c)<0&&function(e){o.d(a,e,(function(){return n[e]}))}(c);a["default"]=t.a},c8f8:function(e,a,o){},fb65:function(e,a,o){"use strict";o.d(a,"b",(function(){return n})),o.d(a,"c",(function(){return t})),o.d(a,"a",(function(){}));var n=function(){var e=this.$createElement;this._self._c},t=[]}}]); ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ 'pages/index/components/enterpriseSide-create-component', { 'pages/index/components/enterpriseSide-create-component':(function(module, exports, __webpack_require__){ __webpack_require__('543d')['createComponent'](__webpack_require__("81c1")) }) }, [['pages/index/components/enterpriseSide-create-component']] ]);