{"version":3,"sources":["webpack:///res/project.cities.380a7f474ed9160a2d76.js","webpack:///./source/global/js/common.js","webpack:///./helpers/image.js","webpack:///./source/global/global.js","webpack:///./source/global/js/analysis.js","webpack:///./source/global/js/web-tracking.js","webpack:///./source/jquery.js","webpack:///./source/global/js/dialog.js","webpack:///./source/project/cities.page.js"],"names":["webpackJsonp","1","module","exports","__webpack_require__","$","require","getCookie","key","cookie","setCookie","value","expires","path","removeCookie","option","getQueryString","name","reg","RegExp","r","window","location","search","substr","match","unescape","getQuerySearchString","url","theRequest","indexOf","str","strs","split","i","length","decodeURI","getQueryHashString","hash","hashObj","replace","getZoom","level","getLevelType","zoom","passpportLogin","href","encodeURIComponent","trim","type","arguments","undefined","typeMapping","2","3","4","10","12","src","postfix","domain","15","_interopRequireDefault","obj","__esModule","default","_vue","_jquery","_common","_dialog","_image","_handlebars","handlebars","registerHelper","imageHelper","Vue","created","this","getCity","getUserInfo","bindEvent","cacheSearchKeyword","localStorage","getItem","addClass","val","methods","_this2","that","activeSearchItemIndex","document","on","refer","open","ajax","then","data","code","common","reload","e","getSecretPhone","formatPhone","middleType","projectId","userId","result","Dialog","className","content","compile","html","middlePhone","title","slogan","photoPath","img","show","resetPhone","countdown","seconds","invalidiPhone","time1","setTimeout","parents","find","removeClass","hide","clearTimeout","preventDefault","index","siblings","eq","searchText","cityCode","get","res","item","text","buildRegionItemText","concat","focus","chooseCompleteItem","console","log","JSON","stringify","msg","lenovo","_this","clock","setItem","keyCode","which","charCode","itemlength","trigger","Promise","all","Date","getTime","response","hotCityData","allCityData","cityName","hasOwnProperty","currentCityCode","currentCityName","closeIcon","test","pathname","userName","accountName","mobile","keyword","_this3","items","buildRegionItem","districtName","marketName","street","single","multiple","best","danger","tax","cold","storage","factory","area","maxArea","clinksToast","time","cb","$toast","parseInt","append","animate","opacity","remove","element","isObject","ga","districtCode","marketId","and","17","$this","category","label","attr","prop","18","clinksId","utmSource","utmTerm","utmMedium","utmContent","utmCampaign","check_project_link","url_pathname","substring","lastIndexOf","logger","Tracker","params","utm_source","utm_term","siteSource","actionType","umm","uct","ucn","cc","push","Agent","elementId","click","_typeof","Symbol","iterator","constructor","prototype","_ajax","options","headSrting","realUrl","jQuery","createMask","createDialog","$d","tplFn","cerateSubContent","$yohoDialog","subContent","after","opt","extend","defaultOptions","inherit","mask","$mask","$el","subContents","close","refreshOnClose","btns","id","done","Alert","btnClass","call","Confirm","Handlebars","padding","landed","pathArr","css","margin-top","outerHeight","margin-left","outerWidth","594","595"],"mappings":"AAAAA,cAAc,KAERC,EACA,SAAUC,EAAQC,EAASC,GAEjC,YAGAA,GAAoB,GAEpBA,EAAoB,GAEpBA,EAAoB,GAEpBA,EAAoB,GAEpBA,EAAoB,IAEpBA,EAAoB,GCVpB,IAAIC,GAAIC,EAAQ,EAChBA,GAAQ,GAER,IAAMC,GAAY,SAACC,GACf,MAAOH,GAAEI,OAAOD,IAGdE,EAAY,SAACF,EAAKG,EAAOC,GAC3B,GAAIA,GAAUA,GAAW,CACzBP,GAAEI,OAAOD,EAAKG,GAASE,KAAM,IAAKD,QAASA,KAGzCE,EAAe,SAACN,EAAKO,GACvBV,EAAES,aAAaN,EAAKO,IAGlBC,EAAiB,SAACC,GACpB,GAAIC,GAAM,GAAIC,QAAO,QAAUF,EAAO,gBAAiB,KACnDG,EAAIC,OAAOC,SAASC,OAAOC,OAAO,GAAGC,MAAMP,EAC/C,OAAY,OAALE,EAAYM,SAASN,EAAE,IAAM,MAGlCO,EAAuB,SAACnB,GAC1B,GAAIoB,GAAMN,SAASC,OACfM,IAEJ,KAA0B,IAAtBD,EAAIE,QAAQ,KAGZ,IAAK,GAFDC,GAAMH,EAAIJ,OAAO,GACjBQ,EAAOD,EAAIE,MAAM,KACZC,EAAI,EAAGA,EAAIF,EAAKG,OAAQD,IAC7BL,EAAWG,EAAKE,GAAGD,MAAM,KAAK,IAAMG,UAAUJ,EAAKE,GAAGD,MAAM,KAAK,GAGzE,OAAOzB,GAAMqB,EAAWrB,GAA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,UAAUsB,MAAQ,WACrB3L,KAAKwL,OAASxL,KAAKwL,MAAMjL,SAAS,QAClCP,KAAKyL,KAAOzL,KAAKyL,IAAI/D,UAGzB5F,EAAOuI,UAAU7H,KAAO,WAMpB,MALAxC,MAAKwL,OAASxL,KAAKwL,MAAMvI,YAAY,QACrCjD,KAAKyL,KAAOzL,KAAKyL,IAAIxI,YAAY,QAAQuJ,KACrCC,cAAezM,KAAKyL,IAAIiB,cAAgB,EACxCC,eAAgB3M,KAAKyL,IAAImB,aAAe,IAErC5M,MAGX1E,EAAQwG,OAASA,EAuBjBkK,EAAM3B,UAAY,GAAIvI,IAClBwJ,SAAS,IAEbU,EAAM3B,UAAUD,YAAc4B,EAC9B1Q,EAAQ0Q,MAAQA,EA8BhBG,EAAQ9B,UAAY,GAAIvI,IACpBwJ,SAAS,IAEba,EAAQ9B,UAAUD,YAAc+B,EAChC7Q,EAAQ6Q,QAAUA,GPo7BZU,IACA,SAAUxR,EAAQC,EAASC,GAEjC,YQroCAE,GAAQ,IACRA,EAAQ,KAERA,EAAQ,KR6oCFqR,IACA,SAAUzR,EAAQC,OAMrB","file":"res/project.cities.380a7f474ed9160a2d76.js","sourcesContent":["webpackJsonp([19],{\n\n/***/ 1:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n__webpack_require__(6);\n\n__webpack_require__(8);\n\n__webpack_require__(7);\n\n__webpack_require__(5);\n\n__webpack_require__(11);\n\n__webpack_require__(13);\n\n/*\n * 公共函数\n * @Author: baixiaoming\n * @Date: 2018-12-18 15:53:59\n * @Last Modified by: xiaoming.bai\n * @Last Modified time: 2019-01-24 13:45:49\n */\nvar $ = __webpack_require__(0);\n\n__webpack_require__(30);\n\nvar getCookie = function getCookie(key) {\n return $.cookie(key);\n};\n\nvar setCookie = function setCookie(key, value, expires) {\n var expires = expires || 7;\n $.cookie(key, value, {\n path: '/',\n expires: expires\n });\n};\n\nvar removeCookie = function removeCookie(key, option) {\n $.removeCookie(key, option);\n};\n\nvar getQueryString = function getQueryString(name) {\n var reg = new RegExp(\"(^|&)\" + name + \"=([^&]*)(&|$)\", \"i\");\n var r = window.location.search.substr(1).match(reg);\n return r != null ? unescape(r[2]) : null;\n};\n\nvar getQuerySearchString = function getQuerySearchString(key) {\n var url = location.search; //获取url中\"?\"符后的字串\n\n var theRequest = {};\n\n if (url.indexOf(\"?\") !== -1) {\n var str = url.substr(1);\n var strs = str.split(\"&\");\n\n for (var i = 0; i < strs.length; i++) {\n theRequest[strs[i].split(\"=\")[0]] = decodeURI(strs[i].split(\"=\")[1]);\n }\n }\n\n return key ? theRequest[key] : theRequest;\n};\n\nvar getQueryHashString = function getQueryHashString(key) {\n var hash = location.hash;\n var hashObj = {};\n\n if (hash.indexOf('#') > -1) {\n var str = hash.replace('#', '');\n var strs = str.split(\"&\");\n\n for (var i = 0; i < strs.length; i++) {\n hashObj[strs[i].split(\"=\")[0]] = decodeURI(strs[i].split(\"=\")[1]);\n }\n }\n\n if (key) {\n return hashObj[key];\n } else {\n return hashObj;\n }\n}; // 返回 下一级的 zoom\n\n\nvar getZoom = function getZoom(level) {\n var districtType = 3,\n markerType = 4;\n\n if (level == districtType) {\n return 10;\n }\n\n if (level == markerType) {\n return 12;\n }\n\n return 10;\n}; //根据 zoom 返回当前的 Type\n\n\nvar getLevelType = function getLevelType(zoom) {\n var districtType = 3,\n markerType = 4;\n\n if (zoom > 11) {\n return markerType;\n } else {\n return districtType;\n }\n}; // 返回登录 encode url\n\n\nvar passpportLogin = function passpportLogin(url) {\n window.location.href = '/passport/login?refer=' + encodeURIComponent(url);\n};\n/**\n * 去除字符串中的空格\n * @param {*} str 操作字符串\n * @param {*} type 1: 前后空格(默认) 2: 所有空格 3: 前空格 4: 后空格\n */\n\n\nvar trim = function trim(str) {\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n var typeMapping = {\n 1: /(^\\s*)|(\\s*$)/g,\n 2: /\\s+/g,\n 3: /(^\\s*)/g,\n 4: /(\\s*$)/g\n };\n return str.replace(typeMapping[type], '');\n};\n\nmodule.exports = {\n getCookie: getCookie,\n setCookie: setCookie,\n removeCookie: removeCookie,\n getQueryString: getQueryString,\n getQuerySearchString: getQuerySearchString,\n getQueryHashString: getQueryHashString,\n getZoom: getZoom,\n getLevelType: getLevelType,\n passpportLogin: passpportLogin,\n trim: trim\n};\n\n/***/ }),\n\n/***/ 10:\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ 12:\n/***/ (function(module, exports) {\n\nmodule.exports = function (src, postfix, domain) {\n domain = domain || '';\n postfix = postfix || '';\n\n if(src.indexOf(domain) >= 0){\n domain = '';\n }\n\n if (src) {\n src = domain + src + postfix;\n }\n\n return src || '//static.toodc.cn/res/imgs/global/default_img.png';\n};\n\n/***/ }),\n\n/***/ 15:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n__webpack_require__(5);\n\n__webpack_require__(11);\n\n__webpack_require__(13);\n\n__webpack_require__(26);\n\n__webpack_require__(16);\n\n__webpack_require__(19);\n\n__webpack_require__(27);\n\n__webpack_require__(23);\n\n__webpack_require__(3);\n\n__webpack_require__(20);\n\n__webpack_require__(6);\n\n__webpack_require__(7);\n\n__webpack_require__(17);\n\n__webpack_require__(18);\n\nvar _vue = _interopRequireDefault(__webpack_require__(14));\n\nvar _jquery = _interopRequireDefault(__webpack_require__(2));\n\nvar _common = _interopRequireDefault(__webpack_require__(1));\n\nvar _dialog = __webpack_require__(4);\n\nvar _image = _interopRequireDefault(__webpack_require__(12));\n\nvar _handlebars = _interopRequireDefault(__webpack_require__(9));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/*\n * 全局脚本\n * @Author: baixiaoming\n * @Date: 2018-11-27 12:01:20\n * @Last Modified by: xiaoming.bai\n * @Last Modified time: 2019-05-14 19:28:38\n */\n_handlebars.default.registerHelper(\"image\", _image.default);\n\nnew _vue.default({\n created: function created() {\n this.getCity();\n this.getUserInfo();\n this.bindEvent();\n var cacheSearchKeyword = localStorage.getItem(\"cacheSearchKeyword\");\n\n if (cacheSearchKeyword && cacheSearchKeyword.length > 14) {\n (0, _jquery.default)('#navSearchBtn').addClass('input-shadow');\n }\n\n cacheSearchKeyword && (0, _jquery.default)('#navSearchInput').val(cacheSearchKeyword);\n },\n methods: {\n /**\n * 事件绑定\n */\n bindEvent: function bindEvent() {\n var _this2 = this;\n\n var that = this;\n var activeSearchItemIndex = -1; // 联想搜索高亮 item\n\n (0, _jquery.default)(document) // 登录注册\n .on('click', '#login', function () {\n var refer = encodeURIComponent(window.location.href);\n window.open('/passport/login?refer=' + refer); // 新窗口打开\n }) // 注销登录\n .on('click', '.logout', function () {\n _jquery.default.ajax({\n type: 'POST',\n url: '/common/logout'\n }).then(function (data) {\n if (data.code === '0') {\n _common.default.setCookie('user_mobile', '', -1);\n\n _common.default.setCookie('auth_token', '', -1);\n\n window.location.reload();\n }\n });\n }) // 中间号弹窗\n .on('click', '.middlephone-contact', function (e) {\n e.preventDefault();\n var data = (0, _jquery.default)(this).data();\n var seconds = 300; // 获取中间号\n\n getSecretPhone(data);\n\n function getSecretPhone(data) {\n var formatPhone = /^([0-9]{3})([0-9]{4})([0-9]{4})$/g;\n var middleType = data.middleType;\n\n if (middleType.indexOf('detail-booth') !== -1) {\n middleType = 'detail-booth';\n }\n\n _jquery.default.ajax({\n url: '/common/getSecretPhone',\n data: {\n projectId: data.projectId,\n userId: data.userId,\n middleType: middleType\n }\n }).then(function (result) {\n if (result.code === '0') {\n var middlePhoneDialog = new _dialog.Dialog({\n className: 'middle-phone-dialog',\n content: _handlebars.default.compile((0, _jquery.default)('#middlePhoneTpl').html())({\n middlePhone: result.data.replace(formatPhone, '$1-$2-$3') || '',\n name: data.name || '经纪人',\n title: data.title || '官方经纪人',\n slogan: data.slogan || '“我熟悉此仓库,很高兴为您服务”',\n photoPath: data.img\n })\n });\n middlePhoneDialog.show();\n resetPhone();\n countdown();\n }\n });\n }\n\n function countdown() {\n if (seconds == 0) {\n invalidiPhone();\n } else {\n (0, _jquery.default)('.countdown').html(seconds);\n seconds--;\n window.time1 = window.setTimeout(countdown, 1000);\n }\n }\n\n function invalidiPhone() {\n var parents = (0, _jquery.default)(\".middle-phone-dialog\");\n parents.find(\"#middlePhoneTplInfo\").addClass(\"blur\");\n parents.find(\".nvalidi-phone\").show();\n (0, _jquery.default)(\".again-get-phone\").on(\"click\", function () {\n getSecretPhone(data);\n });\n }\n\n function resetPhone() {\n var parents = (0, _jquery.default)(\".middle-phone-dialog\");\n parents.find(\"#middlePhoneTplInfo\").removeClass(\"blur\");\n parents.find(\".nvalidi-phone\").hide();\n\n if (window.time1) {\n window.clearTimeout(time1);\n seconds = 300;\n }\n }\n }) // 页脚 tab 切换\n .on('mouseenter', '.footer .tab li', function () {\n var index = (0, _jquery.default)(this).index();\n (0, _jquery.default)(this).addClass('active').siblings('li').removeClass('active');\n (0, _jquery.default)(this).parents('.link-box').find('.link-list ul').eq(index).addClass('active').siblings('ul').removeClass('active');\n }); // 页眉事件\n\n (0, _jquery.default)('.top-nav') // 搜索\n .on('click', '#navSearchBtn', function () {\n (0, _jquery.default)('.map-loading-box').show();\n\n var searchText = _common.default.trim((0, _jquery.default)('#navSearchInput').val(), 2);\n\n var cityCode = _common.default.getCookie('user_region_code') || '310100';\n\n _jquery.default.get('/tools/searchRegion?keyword=' + (0, _jquery.default)('#navSearchInput').val().trim()).then(function (res) {\n if (res.code === '0' && res.data.length > 0) {\n var item = null;\n\n for (var i = 0; i < res.data.length; i++) {\n if (cityCode && (res.data[i].cityCode === cityCode || !res.data[i].cityCode)) {\n item = res.data[i];\n break;\n }\n }\n\n var text = that.buildRegionItemText(item);\n\n if (!text.trim()) {\n if (searchText) {\n (0, _jquery.default)('#navSearchInput').removeClass('focus');\n location.href = \"/map/c\".concat(cityCode, \"?slogan=\").concat(searchText);\n } else {\n (0, _jquery.default)('#navSearchInput').focus().addClass('focus');\n location.href = \"/map/c\".concat(cityCode);\n }\n }\n\n window.chooseCompleteItem(item, text, true);\n } else {\n console.log('error:' + JSON.stringify(res.data.msg));\n\n if (searchText) {\n (0, _jquery.default)('#navSearchInput').removeClass('focus');\n location.href = \"/map/c\".concat(cityCode, \"?slogan=\").concat(searchText);\n } else {\n (0, _jquery.default)('#navSearchInput').focus().addClass('focus');\n location.href = \"/map/c\".concat(cityCode);\n }\n }\n });\n }) // 联想搜索\n .on('focus', '#navSearchInput', function () {\n (0, _jquery.default)(this).addClass('focus');\n that.lenovo((0, _jquery.default)(this).val().trim());\n\n if ((0, _jquery.default)(this).val().trim()) {\n (0, _jquery.default)('#lenovo-container').show();\n } else {\n (0, _jquery.default)('#lenovo-container').hide();\n }\n }).on('blur', '#navSearchInput', function () {\n (0, _jquery.default)(this).removeClass('focus'); // fix 失焦隐藏面板导致无法点击 item\n\n setTimeout(function () {\n (0, _jquery.default)('#lenovo-container').hide();\n }, 200);\n }).on('input', '#navSearchInput', function () {\n var _this = _this2;\n clearTimeout(_this2.clock);\n activeSearchItemIndex = -1;\n\n if ((0, _jquery.default)('#navSearchInput').val().length > 14) {\n (0, _jquery.default)('#navSearchBtn').addClass('input-shadow');\n } else {\n (0, _jquery.default)('#navSearchBtn').removeClass('input-shadow');\n }\n\n if (!(0, _jquery.default)('#navSearchInput').val().trim()) {\n (0, _jquery.default)('#lenovo-container').html('');\n localStorage.setItem(\"cacheSearchKeyword\", \"\");\n return;\n }\n\n _this2.clock = setTimeout(function () {\n _this.lenovo((0, _jquery.default)('#navSearchInput').val().trim());\n }, 200);\n }) // 搜索 绑定键盘按键\n .on('keydown', '#navSearchInput', function (e) {\n var keyCode = e.keyCode ? e.keyCode : e.which ? e.which : e.charCode;\n var itemlength = (0, _jquery.default)('#lenovo-container .item').length; // 上键\n\n if (keyCode === 38) {\n if (activeSearchItemIndex <= 0) {\n activeSearchItemIndex = itemlength;\n }\n\n (0, _jquery.default)('#lenovo-container .item').eq(activeSearchItemIndex - 1).addClass('active').siblings('.item').removeClass('active');\n activeSearchItemIndex--;\n } // 下键\n\n\n if (keyCode === 40) {\n if (activeSearchItemIndex >= itemlength - 1) {\n activeSearchItemIndex = -1;\n }\n\n (0, _jquery.default)('#lenovo-container .item').eq(activeSearchItemIndex + 1).addClass('active').siblings('.item').removeClass('active');\n activeSearchItemIndex++;\n } // 回车键\n\n\n if (keyCode === 13) {\n if ((0, _jquery.default)('#lenovo-container .item.active').length) {\n (0, _jquery.default)('#lenovo-container .item.active').trigger('click');\n } else {\n (0, _jquery.default)('#navSearchBtn').trigger('click');\n }\n }\n });\n },\n\n /**\n * 获取所有城市、热门城市,用于页眉切换城市弹窗\n * 加 `?v=` 是为了防止 IE 缓存\n */\n getCity: function getCity() {\n Promise.all([_jquery.default.get(\"/project/hotCity?v=\" + new Date().getTime()), // 热门城市\n _jquery.default.get(\"/project/allCityList?v=\" + new Date().getTime())]).then(function (response) {\n var hotCityData = response[0] || {};\n var allCityData = response[1] || {};\n\n if (hotCityData.code === '0' && allCityData.code === '0') {\n var cityName = '';\n var cityCode = null;\n\n if (!allCityData.hasOwnProperty('currentCityCode')) {\n cityCode = '310100';\n cityName = '上海'; // common.setCookie('user_region_code', '', -1);\n } else {\n cityCode = allCityData.currentCityCode;\n cityName = allCityData.currentCityName;\n }\n\n localStorage.setItem(\"__LOCALSTORAGE__CURRENTCITYCODE\", cityCode);\n localStorage.setItem(\"__LOCALSTORAGE__CURRENTCITYNAME\", cityName); // 设置页眉位置文案\n\n (0, _jquery.default)('.location-name span').html(cityName);\n (0, _jquery.default)('.recommend-wrapper .section-subtitle i').html(cityName);\n (0, _jquery.default)(document) // 顶部切换城市 Dialog\n .on('click', '.change-location', function () {\n var locationChangeDialog = new _dialog.Dialog({\n className: 'change-location-dialog',\n content: _handlebars.default.compile((0, _jquery.default)('#changeLocationTpl').html())({\n hotCityData: hotCityData,\n allCityData: allCityData\n }),\n closeIcon: true\n });\n locationChangeDialog.show();\n }) // 顶部切换城市跳转逻辑\n // 如果当前在 map 页面,则切换城市刷新当前页面,否则回到首页\n .on('click', '.change-location-dialog .jump-url', function () {\n var data = (0, _jquery.default)(this).data();\n\n _common.default.setCookie('user_region_code', data.code);\n\n if (/\\/map\\/c([\\d]+)/.test(location.pathname)) {\n location.href = '/map/c' + data.code;\n } else {\n location.href = '/c' + data.code;\n }\n });\n }\n });\n },\n\n /**\n * 获取用户名\n */\n getUserInfo: function getUserInfo() {\n var isLogin = _common.default.getCookie('auth_token');\n\n if (isLogin) {\n _jquery.default.ajax({\n url: '/account/info'\n }).then(function (result) {\n if (result) {\n var userName = result.accountName || result.mobile;\n result.mobile && _common.default.setCookie('user_mobile', result.mobile);\n (0, _jquery.default)('.user-center').html(userName);\n }\n });\n }\n },\n\n /**\n * 搜索联想\n */\n lenovo: function lenovo(keyword) {\n var _this3 = this;\n\n if (!keyword) {\n return;\n }\n\n var cityCode = _common.default.getCookie('user_region_code');\n\n _jquery.default.get('/tools/searchRegion?keyword=' + keyword + '&cityCode=' + cityCode).then(function (res) {\n if (res.code === '0') {\n var items = '';\n\n for (var i = 0; i < res.data.length; i++) {\n var text = _this3.buildRegionItem(res.data[i]);\n\n if (text) {\n items += text;\n }\n }\n\n if (items) {\n (0, _jquery.default)('#lenovo-container').html(items);\n (0, _jquery.default)('#lenovo-container').show();\n } else {\n (0, _jquery.default)('#lenovo-container').html('');\n }\n } else {\n (0, _jquery.default)('#lenovo-container').html('');\n console.log('error:' + JSON.stringify(res.data.msg));\n }\n });\n },\n\n /**\n * 构造搜索联想 item\n * @param {*} item\n */\n buildRegionItem: function buildRegionItem(item) {\n var text = this.buildRegionItemText(item);\n var itemJson = JSON.stringify(item);\n var head = '
' + text + '
');\n time = parseInt(time, 10) || 3000;\n (0, _jquery.default)('body').append($toast);\n setTimeout(function () {\n $toast.animate({\n opacity: 0\n }, 300, function () {\n $toast.remove();\n cb && typeof cb === 'function' && cb();\n });\n }, time);\n};\n\nwindow.chooseCompleteItem = function (element, text, isObject) {\n var item;\n\n if (isObject) {\n item = element;\n } else {\n item = (0, _jquery.default)(element).data('text');\n }\n\n var cityCode = item.cityCode || _common.default.getCookie('user_region_code');\n\n _common.default.setCookie('user_region_code', cityCode, 180);\n\n window.ga(\"send\", \"event\", \"head\", \"search\", \"autocomplete\");\n var url = '/map/c' + cityCode;\n\n if (item.districtCode) {\n url += '/d' + item.districtCode;\n }\n\n if (item.marketId) {\n url += '/m' + item.marketId;\n }\n\n if (item.single) {\n url += '/single';\n }\n\n if (item.multiple) {\n url += '/multiple';\n }\n\n if (item.best) {\n url += '/t1';\n }\n\n if (item.danger) {\n url += '/danger';\n }\n\n if (item.tax) {\n url += '/bonded';\n }\n\n if (item.cold) {\n url += '/cold';\n }\n\n if (item.storage) {\n url += '/t1t2t3';\n }\n\n if (item.factory) {\n url += '/t2t3';\n }\n\n if (item.maxArea) {\n url += '/rx' + item.maxArea + '/rn' + item.area;\n } else {\n if (item.area) {\n if (item.area === 104) {\n url += '/104';\n } else {\n url += '/rx' + item.area;\n }\n }\n }\n\n var and = '?';\n\n if (item.street) {\n url += and + 'street=' + item.street;\n and = '&';\n }\n\n if (text) {\n url += and + 'text=' + text;\n }\n\n (0, _jquery.default)('.map-loading-box').show();\n location.href = url;\n};\n\n/***/ }),\n\n/***/ 17:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n/*\n * GA打点统计\n * @Author: baixiaoming\n * @Date: 2018-11-27 18:07:04\n * @Last Modified by: baixiaoming\n * @Last Modified time: 2018-11-27 18:07:30\n */\nvar $ = __webpack_require__(0);\n\n$(function () {\n $(document).on('click', '[data-ga]', function () {\n var $this = $(this);\n var category = $this.data('ga');\n var label = $this.data('label');\n var value = $this.data('value');\n\n if (value === '' || value === undefined) {\n if ($this.attr('type') === 'checkbox') {\n if ($this.prop('checked') === true) {\n window.ga('send', 'event', category, 'click', label + '', 1);\n } else {\n window.ga('send', 'event', category, 'click', label + '', 0);\n }\n } else {\n window.ga('send', 'event', category, 'click', label + '');\n }\n } else {\n window.ga('send', 'event', category, 'click', label + '', value);\n }\n });\n $(document).on('click', '.user-center', function () {\n window.ga('send', 'event', 'navgition', 'user-center', 'click');\n }).on('click', '.login-btn', function () {\n window.ga('send', 'event', 'navgition_login', 'click');\n }).on('click', '.logout', function () {\n window.ga('send', 'event', 'navgition_logout', 'click');\n }).on('click', '.rent-out', function () {\n window.ga('send', 'event', 'navgition_rentOut', 'click');\n }).on('click', '.find-store', function () {\n window.ga('send', 'event', 'navgition_findStore', 'click');\n });\n});\n\n/***/ }),\n\n/***/ 18:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n__webpack_require__(29);\n\n/**\n * 阿里云日志统计\n */\nvar $ = __webpack_require__(0);\n\nvar common = __webpack_require__(1);\n\n$(function () {\n var clinksId = common.getCookie('clinks_id');\n var projectId = common.getQuerySearchString('projectId');\n var userId = common.getQuerySearchString('userId');\n var utmSource = common.getQuerySearchString('utm_source');\n var utmTerm = common.getQuerySearchString('utm_term');\n var utmMedium = common.getQuerySearchString('utm_medium');\n var utmContent = common.getQuerySearchString('utm_content');\n var utmCampaign = common.getQuerySearchString('utm_campaign');\n var cityCode = common.getCookie(\"user_region_code\");\n var check_project_link = /\\/project\\/detail\\/([\\d]+)/;\n var url_pathname = window.location.pathname;\n\n if (!projectId && check_project_link.test(url_pathname)) {\n userId = common.getCookie('project_detail_userId');\n projectId = url_pathname.substring(url_pathname.lastIndexOf(\"\\/\") + 1, url_pathname.length);\n }\n\n clinksId = clinksId ? clinksId : '';\n projectId = projectId ? projectId : '';\n utmSource = utmSource ? utmSource : '';\n utmTerm = utmTerm ? utmTerm : '';\n utmMedium = utmMedium ? utmMedium : '';\n utmContent = utmContent ? utmContent : '';\n utmCampaign = utmCampaign ? utmCampaign : '';\n cityCode = cityCode ? cityCode : '';\n var logger = new window.Tracker('cn-shanghai.log.aliyuncs.com', 'toodc', 'site');\n var params = {\n 'clinksId': clinksId,\n 'projectId': projectId,\n 'userId': userId,\n 'utm_source': utmSource,\n 'utm_term': utmTerm,\n 'siteSource': 'pc',\n 'actionType': 'pv',\n 'umm': utmMedium,\n 'uct': utmContent,\n 'ucn': utmCampaign,\n 'cc': cityCode\n };\n\n for (var key in params) {\n logger.push(key, params[key]);\n } //调用系统提供的收集函数\n\n\n window.Agent(logger); //发送日志数据\n\n logger.logger();\n $(document).on('click', '[data-middle-type]', function () {\n var $this = $(this);\n var elementId = $this.data('middle-type');\n var projectId = $this.data('projectId');\n var click = $this.data('click');\n\n if (click && click !== '') {\n elementId = click;\n }\n\n var params = {\n 'clinksId': clinksId,\n 'projectId': projectId,\n 'siteSource': 'pc',\n 'actionType': 'click',\n 'elementId': elementId,\n 'umm': utmMedium,\n 'uct': utmContent,\n 'ucn': utmCampaign,\n 'cc': cityCode\n };\n\n for (var key in params) {\n logger.push(key, params[key]);\n } //调用系统提供的收集函数\n\n\n window.Agent(logger); //发送日志数据\n\n logger.logger();\n });\n});\n\n/***/ }),\n\n/***/ 2:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n__webpack_require__(24);\n\n__webpack_require__(25);\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/*\n * 对 jQuery 异步请求 url 处理添加 `/s`\n * @Author: baixiaoming\n * @Date: 2019-01-08 14:26:55\n * @Last Modified by: baixiaoming\n * @Last Modified time: 2019-01-08 14:28:01\n */\nvar $ = __webpack_require__(0);\n\n$._ajax = $.ajax;\n\n$.ajax = function (url, options) {\n var headSrting = '/s';\n\n if (_typeof(url) === 'object') {\n if (url.realUrl) {\n headSrting = '';\n }\n\n url.url = headSrting + url.url;\n } else if (url) {\n if (options.realUrl) {\n headSrting = '';\n }\n\n url = headSrting + url;\n }\n\n return $._ajax(url, options);\n};\n\nwindow.jQuery = $;\nwindow.$ = $;\nmodule.exports = $;\n\n/***/ }),\n\n/***/ 4:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n__webpack_require__(3);\n\n__webpack_require__(8);\n\n/**\n * 弹框公共组件\n * Usage: var Dialog = require('/path_to/js/dialog').Dialog;\n */\nvar $ = __webpack_require__(0);\n\nvar Handlebars = __webpack_require__(9);\n\nvar defaultOptions = {\n mask: true,\n closeIcon: true,\n padding: '20px',\n refreshOnClose: false,\n landed: 'qqqqq',\n projectId: getPathName()\n};\n\nfunction getPathName() {\n var pathArr = window.location.pathname.split('/');\n return pathArr[pathArr.length - 1];\n}\n\nHandlebars.registerHelper(\"include\", function (content, data) {\n var html = content;\n return Handlebars.compile(html)(data);\n});\nvar tpl = '' + text + '
';\n\n if ($yohoDialog && $yohoDialog.length > 0) {\n $yohoDialog.find('.content').after(subContent);\n }\n} // 原型链实现模态框(Dialog)类\n\n\nfunction Dialog(options) {\n var opt = $.extend({}, defaultOptions, options);\n var that = this;\n var i; // 实现继承时,只返回实例,不生成html\n\n if (opt.inherit) {\n return this;\n }\n\n if (opt.mask) {\n that.$mask = createMask();\n }\n\n that.$el = createDialog(opt);\n\n if (opt.subContent) {\n cerateSubContent(opt.subContent);\n }\n\n if (opt.subContents) {\n for (i = opt.subContents.length - 1; i >= 0; i--) {\n cerateSubContent(opt.subContents[i]);\n }\n } // 绑定x关闭事件\n\n\n that.$el.find('.close').click(function () {\n that.close();\n\n if (options.refreshOnClose) {\n window.location.reload();\n }\n }); // 绑定btn关闭事件\n\n that.$el.find('.btn-close').click(function () {\n that.close();\n });\n\n function bindBtnEvt(index) {\n that.$el.find('#dialog-' + opt.btns[index].id).on('click', function () {\n opt.btns[index].cb && opt.btns[index].cb();\n });\n } // 绑定按钮事件\n\n\n if (opt.btns) {\n for (i = 0; i < opt.btns.length; i++) {\n bindBtnEvt(i);\n }\n }\n\n opt.done && opt.done();\n}\n\nDialog.prototype.close = function () {\n this.$mask && this.$mask.addClass('none');\n this.$el && this.$el.remove();\n};\n\nDialog.prototype.show = function () {\n this.$mask && this.$mask.removeClass('none');\n this.$el && this.$el.removeClass('none').css({\n 'margin-top': -this.$el.outerHeight() / 2,\n 'margin-left': -this.$el.outerWidth() / 2\n });\n return this;\n};\n\nexports.Dialog = Dialog; // Alert\n\nfunction Alert(content) {\n var that = this;\n var option = {\n content: content,\n className: 'alert-dialog',\n btns: [{\n id: 'alert-sure',\n btnClass: ['alert-sure', 'btn-clinks-red-bg'],\n name: '确定',\n cb: function cb() {\n that.close();\n }\n }]\n };\n Dialog.call(this, option);\n}\n\nAlert.prototype = new Dialog({\n inherit: true\n});\nAlert.prototype.constructor = Alert;\nexports.Alert = Alert; // Confirm\n\nfunction Confirm(opt) {\n var that = this;\n var option = {\n content: opt.content,\n className: 'confirm-dialog',\n btns: [{\n id: 'confirm-sure',\n btnClass: ['confirm-sure', 'btn-clinks-red-bg'],\n name: '确定',\n cb: opt.cb\n }, {\n id: 'confirm-cancel',\n btnClass: ['confirm-cancel'],\n name: '取消',\n cb: function cb() {\n that.close();\n }\n }]\n };\n Dialog.call(this, option);\n}\n\nConfirm.prototype = new Dialog({\n inherit: true\n});\nConfirm.prototype.constructor = Confirm;\nexports.Confirm = Confirm;\n\n/***/ }),\n\n/***/ 594:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n__webpack_require__(10);\n\n__webpack_require__(595);\n\n__webpack_require__(15);\n\n/***/ }),\n\n/***/ 595:\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ })\n\n},[594]);\n\n\n// WEBPACK FOOTER //\n// res/project.cities.380a7f474ed9160a2d76.js","/*\n * 公共函数\n * @Author: baixiaoming\n * @Date: 2018-12-18 15:53:59\n * @Last Modified by: xiaoming.bai\n * @Last Modified time: 2019-01-24 13:45:49\n */\n\nvar $ = require('jquery')\nrequire('jquery.cookie')\n\nconst getCookie = (key) => {\n return $.cookie(key)\n}\n\nconst setCookie = (key, value, expires) => {\n var expires = expires || 7;\n $.cookie(key, value, { path: '/', expires: expires })\n}\n\nconst removeCookie = (key, option) => {\n $.removeCookie(key, option);\n}\n\nconst getQueryString = (name) => {\n var reg = new RegExp(\"(^|&)\" + name + \"=([^&]*)(&|$)\", \"i\")\n var r = window.location.search.substr(1).match(reg)\n return r != null ? unescape(r[2]) : null\n}\n\nconst getQuerySearchString = (key) => {\n var url = location.search //获取url中\"?\"符后的字串\n var theRequest = {}\n\n if (url.indexOf(\"?\") !== -1) {\n var str = url.substr(1)\n var strs = str.split(\"&\")\n for (var i = 0; i < strs.length; i++) {\n theRequest[strs[i].split(\"=\")[0]] = decodeURI(strs[i].split(\"=\")[1])\n }\n }\n return key ? theRequest[key] : theRequest\n}\n\nconst getQueryHashString = (key) => {\n var hash = location.hash;\n var hashObj = {};\n\n if (hash.indexOf('#') > -1) {\n var str = hash.replace('#', '');\n var strs = str.split(\"&\");\n for (var i = 0; i < strs.length; i++) {\n hashObj[strs[i].split(\"=\")[0]] = decodeURI(strs[i].split(\"=\")[1]);\n }\n }\n\n if (key) {\n return hashObj[key];\n } else {\n return hashObj;\n }\n}\n\n// 返回 下一级的 zoom\nconst getZoom = (level) => {\n var districtType = 3,\n markerType = 4;\n\n if (level == districtType) {\n return 10;\n }\n if (level == markerType) {\n return 12;\n }\n\n return 10;\n}\n\n//根据 zoom 返回当前的 Type\nconst getLevelType = (zoom) => {\n var districtType = 3,\n markerType = 4;\n\n if (zoom > 11) {\n return markerType;\n } else {\n return districtType\n }\n}\n\n// 返回登录 encode url\nconst passpportLogin = (url) => {\n window.location.href = '/passport/login?refer=' + encodeURIComponent(url);\n}\n\n/**\n * 去除字符串中的空格\n * @param {*} str 操作字符串\n * @param {*} type 1: 前后空格(默认) 2: 所有空格 3: 前空格 4: 后空格\n */\nconst trim = (str, type = 1) => {\n let typeMapping = {\n 1: /(^\\s*)|(\\s*$)/g,\n 2: /\\s+/g,\n 3: /(^\\s*)/g,\n 4: /(\\s*$)/g,\n }\n return str.replace(typeMapping[type], '')\n}\n\nmodule.exports = {\n getCookie,\n setCookie,\n removeCookie,\n getQueryString,\n getQuerySearchString,\n getQueryHashString,\n getZoom,\n getLevelType,\n passpportLogin,\n trim\n}\n\n\n\n// WEBPACK FOOTER //\n// ./source/global/js/common.js","module.exports = function (src, postfix, domain) {\n domain = domain || '';\n postfix = postfix || '';\n\n if(src.indexOf(domain) >= 0){\n domain = '';\n }\n\n if (src) {\n src = domain + src + postfix;\n }\n\n return src || '//static.toodc.cn/res/imgs/global/default_img.png';\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./helpers/image.js\n// module id = 12\n// module chunks = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23","/*\n * 全局脚本\n * @Author: baixiaoming\n * @Date: 2018-11-27 12:01:20\n * @Last Modified by: xiaoming.bai\n * @Last Modified time: 2019-05-14 19:28:38\n */\n\nimport './js/analysis'\nimport './js/web-tracking'\n\nimport Vue from 'vue'\nimport $ from '../jquery'\nimport common from './js/common'\nimport { Dialog } from './js/dialog'\nimport imageHelper from '../../helpers/image'\nimport handlebars from 'handlebars'\n\nhandlebars.registerHelper(\"image\", imageHelper)\n\nnew Vue({\n created() {\n this.getCity()\n this.getUserInfo()\n this.bindEvent()\n\n let cacheSearchKeyword = localStorage.getItem(\"cacheSearchKeyword\")\n if (cacheSearchKeyword && cacheSearchKeyword.length > 14) {\n $('#navSearchBtn').addClass('input-shadow')\n }\n cacheSearchKeyword && $('#navSearchInput').val(cacheSearchKeyword)\n },\n methods: {\n /**\n * 事件绑定\n */\n bindEvent() {\n let that = this;\n let activeSearchItemIndex = -1 // 联想搜索高亮 item\n\n $(document)\n // 登录注册\n .on('click', '#login', function () {\n var refer = encodeURIComponent(window.location.href);\n window.open('/passport/login?refer=' + refer); // 新窗口打开\n })\n // 注销登录\n .on('click', '.logout', function () {\n $.ajax({\n type: 'POST',\n url: '/common/logout'\n }).then(function (data) {\n if (data.code === '0') {\n common.setCookie('user_mobile', '', -1);\n common.setCookie('auth_token', '', -1);\n window.location.reload();\n }\n });\n })\n // 中间号弹窗\n .on('click', '.middlephone-contact', function (e) {\n e.preventDefault()\n var data = $(this).data()\n var seconds = 300\n\n // 获取中间号\n getSecretPhone(data)\n function getSecretPhone(data) {\n var formatPhone = /^([0-9]{3})([0-9]{4})([0-9]{4})$/g;\n var middleType = data.middleType;\n\n if (middleType.indexOf('detail-booth') !== -1) {\n middleType = 'detail-booth';\n }\n\n $.ajax({\n url: '/common/getSecretPhone',\n data: {\n projectId: data.projectId,\n userId: data.userId,\n middleType: middleType\n }\n }).then(function (result) {\n if (result.code === '0') {\n var middlePhoneDialog = new Dialog({\n className: 'middle-phone-dialog',\n content: handlebars.compile($('#middlePhoneTpl').html())({\n middlePhone: result.data.replace(formatPhone, '$1-$2-$3') || '',\n name: data.name || '经纪人',\n title: data.title || '官方经纪人',\n slogan: data.slogan || '“我熟悉此仓库,很高兴为您服务”',\n photoPath: data.img\n })\n });\n middlePhoneDialog.show();\n resetPhone();\n countdown();\n }\n });\n }\n\n function countdown() {\n if (seconds == 0) {\n invalidiPhone();\n } else {\n $('.countdown').html(seconds);\n seconds--;\n window.time1 = window.setTimeout(countdown, 1000);\n }\n }\n\n function invalidiPhone() {\n var parents = $(\".middle-phone-dialog\");\n parents.find(\"#middlePhoneTplInfo\").addClass(\"blur\");\n parents.find(\".nvalidi-phone\").show();\n\n $(\".again-get-phone\").on(\"click\", function () {\n getSecretPhone(data);\n })\n }\n\n function resetPhone() {\n var parents = $(\".middle-phone-dialog\");\n parents.find(\"#middlePhoneTplInfo\").removeClass(\"blur\");\n parents.find(\".nvalidi-phone\").hide();\n\n if (window.time1) {\n window.clearTimeout(time1);\n seconds = 300;\n }\n }\n })\n // 页脚 tab 切换\n .on('mouseenter', '.footer .tab li', function () {\n let index = $(this).index()\n\n $(this).addClass('active').siblings('li').removeClass('active')\n\n $(this)\n .parents('.link-box').find('.link-list ul').eq(index).addClass('active')\n .siblings('ul').removeClass('active')\n })\n\n // 页眉事件\n $('.top-nav')\n // 搜索\n .on('click', '#navSearchBtn', function () {\n $('.map-loading-box').show();\n let searchText = common.trim($('#navSearchInput').val(), 2)\n let cityCode = common.getCookie('user_region_code') || '310100'\n\n $.get('/tools/searchRegion?keyword=' + $('#navSearchInput').val().trim()).then(res => {\n if (res.code === '0' && res.data.length > 0) {\n let item = null;\n for (let i = 0; i< res.data.length; i++) {\n if (cityCode && (res.data[i].cityCode === cityCode || !res.data[i].cityCode)) {\n item = res.data[i]\n break\n }\n }\n\n let text = that.buildRegionItemText(item);\n if (!text.trim()) {\n if (searchText) {\n $('#navSearchInput').removeClass('focus')\n location.href = `/map/c${cityCode}?slogan=${searchText}`\n } else {\n $('#navSearchInput').focus().addClass('focus')\n location.href = `/map/c${cityCode}`\n }\n }\n window.chooseCompleteItem(item, text, true)\n } else {\n console.log('error:' + JSON.stringify(res.data.msg))\n if (searchText) {\n $('#navSearchInput').removeClass('focus')\n location.href = `/map/c${cityCode}?slogan=${searchText}`\n } else {\n $('#navSearchInput').focus().addClass('focus')\n location.href = `/map/c${cityCode}`\n }\n }\n })\n })\n // 联想搜索\n .on('focus', '#navSearchInput', function () {\n $(this).addClass('focus');\n\n that.lenovo($(this).val().trim())\n if ($(this).val().trim()) {\n $('#lenovo-container').show();\n } else {\n $('#lenovo-container').hide();\n }\n })\n .on('blur', '#navSearchInput', function () {\n $(this).removeClass('focus');\n\n // fix 失焦隐藏面板导致无法点击 item\n setTimeout(() => {\n $('#lenovo-container').hide();\n }, 200);\n })\n .on('input', '#navSearchInput', () => {\n let _this = this\n clearTimeout(this.clock)\n activeSearchItemIndex = -1\n if ($('#navSearchInput').val().length > 14) {\n $('#navSearchBtn').addClass('input-shadow')\n }\n else {\n $('#navSearchBtn').removeClass('input-shadow')\n }\n if (!$('#navSearchInput').val().trim()) {\n $('#lenovo-container').html('');\n localStorage.setItem(\"cacheSearchKeyword\", \"\")\n return\n }\n\n this.clock = setTimeout(function () {\n _this.lenovo($('#navSearchInput').val().trim())\n }, 200)\n })\n // 搜索 绑定键盘按键\n .on('keydown', '#navSearchInput', function (e) {\n let keyCode = e.keyCode ? e.keyCode : (e.which ? e.which : e.charCode)\n let itemlength = $('#lenovo-container .item').length\n\n // 上键\n if (keyCode === 38) {\n if (activeSearchItemIndex <= 0) {\n activeSearchItemIndex = itemlength\n }\n\n $('#lenovo-container .item')\n .eq(activeSearchItemIndex - 1).addClass('active')\n .siblings('.item').removeClass('active')\n\n activeSearchItemIndex--\n }\n\n // 下键\n if (keyCode === 40) {\n if (activeSearchItemIndex >= itemlength -1) {\n activeSearchItemIndex = -1\n }\n\n $('#lenovo-container .item')\n .eq(activeSearchItemIndex + 1).addClass('active')\n .siblings('.item').removeClass('active')\n\n activeSearchItemIndex++\n }\n\n // 回车键\n if (keyCode === 13) {\n if ($('#lenovo-container .item.active').length) {\n\n $('#lenovo-container .item.active').trigger('click')\n } else {\n $('#navSearchBtn').trigger('click')\n }\n }\n })\n },\n /**\n * 获取所有城市、热门城市,用于页眉切换城市弹窗\n * 加 `?v=` 是为了防止 IE 缓存\n */\n getCity() {\n Promise.all([\n $.get(\"/project/hotCity?v=\" + new Date().getTime()), // 热门城市\n $.get(\"/project/allCityList?v=\" + new Date().getTime()), // 所有城市\n ]).then(response => {\n let hotCityData = response[0] || {};\n let allCityData = response[1] || {};\n\n if (hotCityData.code === '0' && allCityData.code === '0') {\n let cityName = '';\n let cityCode = null;\n\n if (!allCityData.hasOwnProperty('currentCityCode')) {\n cityCode = '310100';\n cityName = '上海';\n // common.setCookie('user_region_code', '', -1);\n } else {\n cityCode = allCityData.currentCityCode;\n cityName = allCityData.currentCityName;\n }\n\n localStorage.setItem(\"__LOCALSTORAGE__CURRENTCITYCODE\", cityCode)\n localStorage.setItem(\"__LOCALSTORAGE__CURRENTCITYNAME\", cityName)\n\n // 设置页眉位置文案\n $('.location-name span').html(cityName);\n $('.recommend-wrapper .section-subtitle i').html(cityName);\n\n $(document)\n // 顶部切换城市 Dialog\n .on('click', '.change-location', function () {\n let locationChangeDialog = new Dialog({\n className: 'change-location-dialog',\n content: handlebars.compile($('#changeLocationTpl').html())({\n hotCityData,\n allCityData\n }),\n closeIcon: true\n });\n locationChangeDialog.show();\n })\n // 顶部切换城市跳转逻辑\n // 如果当前在 map 页面,则切换城市刷新当前页面,否则回到首页\n .on('click', '.change-location-dialog .jump-url', function () {\n var data = $(this).data();\n\n common.setCookie('user_region_code', data.code)\n\n if (/\\/map\\/c([\\d]+)/.test(location.pathname)) {\n location.href = '/map/c' + data.code\n } else {\n location.href = '/c' + data.code\n }\n })\n }\n })\n },\n /**\n * 获取用户名\n */\n getUserInfo() {\n let isLogin = common.getCookie('auth_token')\n if (isLogin) {\n $.ajax({\n url: '/account/info'\n }).then(function (result) {\n if (result) {\n let userName = result.accountName || result.mobile\n result.mobile && common.setCookie('user_mobile', result.mobile)\n $('.user-center').html(userName)\n }\n });\n }\n },\n /**\n * 搜索联想\n */\n lenovo(keyword) {\n if (!keyword) {\n return;\n }\n\n let cityCode = common.getCookie('user_region_code')\n\n $.get('/tools/searchRegion?keyword=' + keyword + '&cityCode=' + cityCode).then(res => {\n if (res.code === '0') {\n let items = ''\n\n for (let i = 0; i < res.data.length; i++) {\n let text = this.buildRegionItem(res.data[i])\n if (text) {\n items += text;\n }\n }\n\n if (items) {\n $('#lenovo-container').html(items);\n $('#lenovo-container').show();\n }\n else {\n $('#lenovo-container').html('');\n }\n } else {\n $('#lenovo-container').html('');\n console.log('error:' + JSON.stringify(res.data.msg))\n }\n })\n },\n /**\n * 构造搜索联想 item\n * @param {*} item\n */\n buildRegionItem(item) {\n let text = this.buildRegionItemText(item)\n let itemJson = JSON.stringify(item)\n let head = '' + text + '
');\n\n time = parseInt(time, 10) || 3000;\n $('body').append($toast);\n\n setTimeout(function () {\n $toast.animate({ opacity: 0 }, 300, function () {\n $toast.remove();\n cb && typeof cb === 'function' && cb();\n });\n }, time);\n}\n\nwindow.chooseCompleteItem = function (element, text, isObject) {\n let item\n if (isObject) {\n item = element\n }\n else {\n item = $(element).data('text')\n }\n let cityCode = item.cityCode || common.getCookie('user_region_code')\n\n common.setCookie('user_region_code', cityCode, 180);\n window.ga(\"send\", \"event\", \"head\", \"search\", \"autocomplete\");\n\n let url = '/map/c' + cityCode\n if (item.districtCode) {\n url += '/d' + item.districtCode\n }\n if (item.marketId) {\n url += '/m' + item.marketId\n }\n if (item.single) {\n url += '/single'\n }\n if (item.multiple) {\n url += '/multiple'\n }\n if (item.best) {\n url += '/t1'\n }\n if (item.danger) {\n url += '/danger'\n }\n if (item.tax) {\n url += '/bonded'\n }\n if (item.cold) {\n url += '/cold'\n }\n if (item.storage) {\n url += '/t1t2t3'\n }\n if (item.factory) {\n url += '/t2t3'\n }\n if (item.maxArea) {\n url += '/rx' + item.maxArea + '/rn' + item.area\n }\n else {\n if (item.area) {\n if (item.area === 104) {\n url += '/104'\n } else {\n url += '/rx' + item.area\n }\n }\n }\n\n let and = '?'\n if (item.street) {\n url += and + 'street=' + item.street\n and = '&'\n }\n if(text) {\n url += and + 'text=' + text\n }\n $('.map-loading-box').show();\n location.href = url\n}\n\n\n\n// WEBPACK FOOTER //\n// ./source/global/global.js","/*\n * GA打点统计\n * @Author: baixiaoming\n * @Date: 2018-11-27 18:07:04\n * @Last Modified by: baixiaoming\n * @Last Modified time: 2018-11-27 18:07:30\n */\n\nvar $ = require('jquery');\n\n$(function () {\n $(document).on('click', '[data-ga]', function () {\n var $this = $(this);\n var category = $this.data('ga');\n var label = $this.data('label');\n var value = $this.data('value');\n if (value === '' || value === undefined) {\n if ($this.attr('type') === 'checkbox') {\n if ($this.prop('checked') === true) {\n window.ga('send', 'event', category, 'click', label + '', 1);\n }\n else {\n window.ga('send', 'event', category, 'click', label + '', 0);\n }\n }\n else {\n window.ga('send', 'event', category, 'click', label + '');\n }\n }\n else {\n window.ga('send', 'event', category, 'click', label + '', value);\n }\n });\n\n $(document)\n .on('click', '.user-center', function () {\n window.ga('send', 'event', 'navgition', 'user-center', 'click');\n })\n .on('click', '.login-btn', function () {\n window.ga('send', 'event', 'navgition_login', 'click');\n })\n .on('click', '.logout', function () {\n window.ga('send', 'event', 'navgition_logout', 'click');\n })\n .on('click', '.rent-out', function () {\n window.ga('send', 'event', 'navgition_rentOut', 'click');\n })\n .on('click', '.find-store', function () {\n window.ga('send', 'event', 'navgition_findStore', 'click');\n });\n});\n\n\n\n// WEBPACK FOOTER //\n// ./source/global/js/analysis.js","/**\n * 阿里云日志统计\n */\n\nvar $ = require('jquery');\nvar common = require('./common');\n$(function() {\n var clinksId = common.getCookie('clinks_id');\n var projectId = common.getQuerySearchString('projectId');\n var userId = common.getQuerySearchString('userId');\n var utmSource = common.getQuerySearchString('utm_source');\n var utmTerm = common.getQuerySearchString('utm_term');\n var utmMedium = common.getQuerySearchString('utm_medium');\n var utmContent = common.getQuerySearchString('utm_content');\n var utmCampaign = common.getQuerySearchString('utm_campaign');\n var cityCode = common.getCookie(\"user_region_code\");\n var check_project_link = /\\/project\\/detail\\/([\\d]+)/;\n var url_pathname = window.location.pathname;\n\n if(!projectId && check_project_link.test(url_pathname)){\n userId = common.getCookie('project_detail_userId')\n projectId = url_pathname.substring(url_pathname.lastIndexOf(\"\\/\") + 1, url_pathname .length);\n }\n clinksId = clinksId ? clinksId : '';\n projectId = projectId ? projectId : '';\n utmSource = utmSource ? utmSource : '';\n utmTerm = utmTerm ? utmTerm : '';\n utmMedium = utmMedium ? utmMedium : '';\n utmContent = utmContent ? utmContent : '';\n utmCampaign = utmCampaign ? utmCampaign : '';\n cityCode = cityCode ? cityCode : '';\n\n var logger = new window.Tracker('cn-shanghai.log.aliyuncs.com','toodc','site');\n var params = {\n 'clinksId': clinksId,\n 'projectId': projectId,\n 'userId': userId,\n 'utm_source':utmSource,\n 'utm_term':utmTerm,\n 'siteSource': 'pc',\n 'actionType': 'pv',\n 'umm': utmMedium,\n 'uct': utmContent,\n 'ucn': utmCampaign,\n 'cc' : cityCode\n };\n\n for(var key in params){\n logger.push(key,params[key]);\n }\n\n //调用系统提供的收集函数\n window.Agent(logger);\n //发送日志数据\n logger.logger();\n\n $(document).on('click','[data-middle-type]',function() {\n var $this = $(this);\n var elementId = $this.data('middle-type');\n var projectId = $this.data('projectId');\n\n let click = $this.data('click');\n if (click && click !== '') {\n elementId = click;\n }\n\n var params = {\n 'clinksId': clinksId,\n 'projectId': projectId,\n 'siteSource': 'pc',\n 'actionType': 'click',\n 'elementId': elementId,\n 'umm': utmMedium,\n 'uct': utmContent,\n 'ucn': utmCampaign,\n 'cc' : cityCode\n };\n\n for(var key in params){\n logger.push(key,params[key]);\n }\n\n //调用系统提供的收集函数\n window.Agent(logger);\n //发送日志数据\n logger.logger();\n });\n});\n\n\n\n// WEBPACK FOOTER //\n// ./source/global/js/web-tracking.js","/*\n * 对 jQuery 异步请求 url 处理添加 `/s`\n * @Author: baixiaoming\n * @Date: 2019-01-08 14:26:55\n * @Last Modified by: baixiaoming\n * @Last Modified time: 2019-01-08 14:28:01\n */\n\nvar $ = require('jquery');\n\n$._ajax = $.ajax;\n\n$.ajax = function (url, options) {\n var headSrting = '/s';\n\n if (typeof url === 'object') {\n if (url.realUrl) {\n headSrting = '';\n }\n url.url = headSrting + url.url;\n } else if (url) {\n if (options.realUrl) {\n headSrting = '';\n }\n url = headSrting + url;\n }\n\n return $._ajax(url, options);\n};\nwindow.jQuery = $;\nwindow.$ = $;\nmodule.exports = $;\n\n\n\n// WEBPACK FOOTER //\n// ./source/jquery.js","/**\n * 弹框公共组件\n * Usage: var Dialog = require('/path_to/js/dialog').Dialog;\n */\n\nvar $ = require('jquery');\nvar Handlebars = require('handlebars');\n\nvar defaultOptions = {\n mask: true,\n closeIcon: true,\n padding: '20px',\n refreshOnClose: false,\n landed:'qqqqq',\n projectId: getPathName()\n};\n\nfunction getPathName(){\n var pathArr = window.location.pathname.split('/');\n return pathArr[pathArr.length - 1];\n}\n\nHandlebars.registerHelper(\"include\", function(content , data) {\n var html = content;\n return Handlebars.compile(html)(data);\n});\n\nvar tpl =\n '' + text + '
';\n\n if ($yohoDialog && $yohoDialog.length > 0) {\n $yohoDialog.find('.content').after(subContent);\n }\n}\n\n// 原型链实现模态框(Dialog)类\nfunction Dialog(options) {\n var opt = $.extend({}, defaultOptions, options);\n var that = this;\n var i;\n\n // 实现继承时,只返回实例,不生成html\n if (opt.inherit) {\n return this;\n }\n\n if (opt.mask) {\n that.$mask = createMask();\n }\n\n that.$el = createDialog(opt);\n\n if (opt.subContent) {\n cerateSubContent(opt.subContent);\n }\n\n if (opt.subContents) {\n for (i = opt.subContents.length - 1; i >= 0; i--) {\n cerateSubContent(opt.subContents[i]);\n }\n }\n\n // 绑定x关闭事件\n that.$el.find('.close').click(function() {\n that.close();\n if (options.refreshOnClose) {\n window.location.reload();\n }\n });\n\n // 绑定btn关闭事件\n that.$el.find('.btn-close').click(function() {\n that.close();\n });\n\n function bindBtnEvt(index) {\n that.$el.find('#dialog-' + opt.btns[index].id).on('click', function() {\n opt.btns[index].cb && opt.btns[index].cb();\n });\n }\n\n // 绑定按钮事件\n if (opt.btns) {\n for (i = 0; i < opt.btns.length; i++) {\n bindBtnEvt(i);\n }\n }\n\n opt.done && opt.done();\n}\n\nDialog.prototype.close = function() {\n this.$mask && this.$mask.addClass('none');\n this.$el && this.$el.remove();\n};\n\nDialog.prototype.show = function() {\n this.$mask && this.$mask.removeClass('none');\n this.$el && this.$el.removeClass('none').css({\n 'margin-top': -this.$el.outerHeight() / 2,\n 'margin-left': -this.$el.outerWidth() / 2\n });\n return this;\n};\n\nexports.Dialog = Dialog;\n\n// Alert\nfunction Alert(content) {\n var that = this;\n var option = {\n content: content,\n className: 'alert-dialog',\n btns: [\n {\n id: 'alert-sure',\n btnClass: ['alert-sure','btn-clinks-red-bg'],\n name: '确定',\n cb: function() {\n that.close();\n }\n }\n ]\n };\n\n Dialog.call(this, option);\n}\n\nAlert.prototype = new Dialog({\n inherit: true\n});\nAlert.prototype.constructor = Alert;\nexports.Alert = Alert;\n\n// Confirm\nfunction Confirm(opt) {\n var that = this;\n\n var option = {\n content: opt.content,\n className: 'confirm-dialog',\n btns: [\n {\n id: 'confirm-sure',\n btnClass: ['confirm-sure', 'btn-clinks-red-bg'],\n name: '确定',\n cb: opt.cb\n },\n {\n id: 'confirm-cancel',\n btnClass: ['confirm-cancel'],\n name: '取消',\n cb: function() {\n that.close();\n }\n }\n ]\n };\n\n Dialog.call(this, option);\n}\n\nConfirm.prototype = new Dialog({\n inherit: true\n});\nConfirm.prototype.constructor = Confirm;\nexports.Confirm = Confirm;\n\n\n\n// WEBPACK FOOTER //\n// ./source/global/js/dialog.js","require('../global/global.scss');\nrequire('./cities/index.scss');\n\nrequire('../global/global');\n\n\n\n\n// WEBPACK FOOTER //\n// ./source/project/cities.page.js"],"sourceRoot":""}