■ 拨打咨询电话:13511906270
手机站 - 贵州宏一彩钢活动房有限公司

曲靖围挡选择宏一|玉溪|六盘水

     曲靖围挡选择宏一,在云南曲靖的朋友都知道我们宏一公司,比如曲靖彩钢围挡、曲靖施工围挡、曲靖pvc围挡、玉溪围挡等等

   曲靖围挡
      做好昆明围挡的规划也非常的重要   当我们做围挡的时候,我们已经认真的来规划了我们要做的围挡的每一个细节,我们剩下的就是来更好的做好我们的围挡,但是如果我们对围挡的规划并不是很仔细,我们就更加的不容易来做好我们的围挡,对于我们现在做的这些围挡的细节,我们肯定是需要很好的来把握我们做的围挡的每一个细节,根据我们的围挡的每一个特征,我们对围挡做的一些详细的计划,我们都是需要充分的来考虑进来的,只要我们能够更加详细的来做我们的围挡的规划,我们也就一定能够更好的来做我们的围挡,而且让我们的围挡做的更加的成功一些。
曲靖彩钢围挡
    在我们的围挡公司,我们对我们的围挡做的规划是非常的重要的,只要是我们能够很好的来规划我们的围挡,我们也就能够更好的来做好我们的围挡的每一个细节,在做围挡的每一个细节中,让我们做的围挡有更多的亮点,这样我们也就能够更好的来做好我们的围挡,在做好围挡的这些细节方面,我们只要是能够更好的来把握我们做的围挡的每一个细节,我们也就能够更好的来做好我们的围挡,让我们做的围挡有更好的规划,从而我们就可以在 围挡的规划中,按照我们的围挡的计划来做我们的围挡,只要我们是能够完全的按照我们的围挡的计划来做我们的围挡,我们就一定能够很好的来做好我们的围挡。
曲靖围挡
    让我们做的围挡有更多的突出之处,从而在我们做围挡的这个过程中,我们也就能够更好的来做好我们的围挡,让我们做的这些围挡有更加重要的东西,在这样的做围挡的过程中,我们也能够更好的来做完我们的围挡的规划,让我们的围挡做的规划也更加的完善一些。
曲靖围挡

 
window.jz_conv_global_config = { "global": { "layout": "show", "color": "#0066cb", "sitetype": "siteapp" }, "comp": [{ "t": "tel", "type": "direct", "label": "\u7535\u8bdd\u54a8\u8be2", "number": "13511906270", "pos": { "b": true, "rb": false, "rt": false, "in_pg": true } }, { "t": "sms", "label": "\u77ed\u4fe1\u54a8\u8be2", "number": "", "pos": { "b": true } }, { "t": "map", "label": "\u67e5\u770b\u5730\u56fe", "pos": { "b": true }, "a": [{ "prov": "\u8d35\u5dde\u7701", "city": "\u8d35\u9633\u5e02", "county": "\u767d\u4e91\u533a", "street": "\u91d1\u9633\u65b0\u533a\u5c0f\u83c1\u5341\u4e09\u516c\u91cc", "locName": "\u8d35\u9633\u660e\u5f3a\u8f7b\u94a2\u6d3b\u52a8\u677f\u623f", "loc": "106.686743,26.719737" }] }], "share": false, "popup": { "type": "tel", "delay": "5" } }; window.jz_conv_global_info = { "uid": 2365324, "sid": 3775257, "hmCode": "902d51de44a42fae217a4ea960e0f033" };; (function(win, doc, undefined) { var userConfig = win.jz_conv_global_config; if (!userConfig) return; var userInfo = win.jz_conv_global_info || {}; var userCookie = win.jz_conv_global_cookie || {}; var SELF_CONFIG = {}; SELF_CONFIG.zIndex = 99990; SELF_CONFIG.prefix = 'jz_conv_8888_'; SELF_CONFIG.bottom = { h: 55 }; SELF_CONFIG.hide = { bottom: 55 }; SELF_CONFIG.popup = { w: 240, h: 160 }; SELF_CONFIG.map = { w: 300, apiUrl: '', iscroll: '' }; SELF_CONFIG.share = { apiUrl: '' }; SELF_CONFIG.bkcall = { w: 296, h: 160, apiUrl: 'http://lxbjs.baidu.com/' }; SELF_CONFIG.contact = { w: 280, hasAdd: false, url: '', moplusJsonNull: '1', packageMinVersion: 50302, moplusVersion: '0' }; var IMG_URL = {}; IMG_URL.close = '/mobcard-upload-image-to-bcs/%2Fmobi528c6cf6b9526.png'; IMG_URL.bottom = { 'tel': 'images/home.png', 'chat': '/mobcard-upload-image-to-bcs/%2Fmobi5296d52454346.png', 'sms': 'images/tel2.png', 'map': 'images/map2.png', 'share': '/mobcard-upload-image-to-bcs/%2Fmobi5296d53b40249.png', 'contact': '/mobcard-upload-image-to-bcs/mobipic535a280a5b5091353445.png', 'btn': '/mobcard-upload-image-to-bcs/%2Fmobi5296d557edcb5.png', 'tri_u': '/mobcard-upload-image-to-bcs/%2Fmobi5296dcaf11bc1.png', 'tri_d': '/mobcard-upload-image-to-bcs/%2Fmobi5296dcbbd1550.png' }; IMG_URL.side = { 'tel': '/mobcard-upload-image-to-bcs/%2Fmobi5296d81d65fcc.png', 'chat': '/mobcard-upload-image-to-bcs/%2Fmobi5296d82ca1ef2.png' }; IMG_URL.hide = { 'btn': '/mobcard-upload-image-to-bcs/%2Fmobi529728cac772d.png', 'tel': '/mobcard-upload-image-to-bcs/%2Fmobi52972e85f308d.png', 'chat': '/mobcard-upload-image-to-bcs/%2Fmobi52972ea68a68e.png', 'sms': '/mobcard-upload-image-to-bcs/%2Fmobi52972eb4a1841.png', 'map': '/mobcard-upload-image-to-bcs/%2Fmobi52972ed351376.png', 'share': '/mobcard-upload-image-to-bcs/%2Fmobi52b3d2db1ced0.png', 'contact': '/mobcard-upload-image-to-bcs/mobipic535a2849572ce868823.png', 'tri': '/mobcard-upload-image-to-bcs/%2Fmobi52a04735ed724.png' }; IMG_URL.popup = { 'tel': 'images/dianhua1.png', 'chat': '/mobcard-upload-image-to-bcs/%2Fmobi52972f17995d9.png', 'close': 'images/chahao.png' }; IMG_URL.map = { 'f': '/mobcard-upload-image-to-bcs/%2Fmobi529c6f9f0ee15.png', 'close': '/mobcard-upload-image-to-bcs/%2Fmobi529c6f8ddd15e.png', 'icon': '/mobcard-upload-image-to-bcs/%2Fmobi512497a1b3c56' }; IMG_URL.bkcall = { 'tel': '/mobcard-upload-image-to-bcs/%2Fmobi529d52aaaaffa.png', 'del': '/mobcard-upload-image-to-bcs/%2Fmobi529d5f1fa0ea6.png' }; IMG_URL.contact = { 'info': '/mobcard-upload-image-to-bcs/mobipic535a2872cccad1253798.png' }; var dom = {}; dom.head = doc.getElementsByTagName('head')[0]; dom.docElem = doc.documentElement; dom.scrollTop = function() { return dom.docElem.scrollTop || doc.body.scrollTop }; dom.scrollLeft = function() { return dom.docElem.scrollleft || doc.body.scrollLeft }; dom.show = function($) { if ($) { $.style.display = '' } }; dom.hide = function($) { if ($) { $.style.display = 'none' } }; dom.v = function($, b) { if ($) { $.style.visibility = (b === false) ? 'hidden' : 'visible' } }; var w = function(a, b, c) { if (!a) { return '' } var s = w(b, c); lib.each(a.split(' '), function(v, i) { if (!v) { return } if (s != '') { s += ' ' } if (v == ',') { s += ',' } else if (v.charAt(0) == '#' || v.charAt(0) == '.') { s += v.charAt(0) + SELF_CONFIG.prefix + v.substr(1) } else { s += SELF_CONFIG.prefix + v } }); return s }; var lib = {}; lib.log = function(s) { win.console && win.console.log && win.console.log(s) }; lib.trim = function(s) { return s.replace(/(^\s+)|(\s+$)/g, '') }; lib.rnd = function() { return Math.floor(Math.random() * 0x80000000) }; lib.nowtime = function() { return (new Date()).getTime() }; lib.delayJump = function(url, t) { t = t || 100; var f = function() { window.location.href = url }; return setTimeout(f, t) }; lib.touchUrl = function(url) { var now = (new Date()).getTime(); var img = new Image(); var key = '_log_' + now + Math.floor(Math.random() * 0x80000000); window[key] = img; img.onload = img.onerror = img.onabort = function() { img.onload = img.onerror = img.onabort = null; window[key] = img = null }; img.src = url }; lib.uniqid = (function() { var ii = 1; return function() { return ii++ } })(); lib.param = function(o) { var p = ''; lib.eacho(o, function(v, k) { if (k === undefined) return; if (v === undefined) v = ''; p += k + '=' + encodeURIComponent(v) + '&' }); if (p.charAt(p.length - 1) == '&') { p = p.substr(0, p.length - 1) } return p }; lib.each = function(a, f) { if (!a || !f) return; var i = 0; var l = a.length; for (; i < l; i++) { f(a[i], i) } }; lib.eacho = function(o, f) { if (!o || !f) return; for (var i in o) { if (!o.hasOwnProperty(i)) continue; f(o[i], i) } }; lib.htmlspecialchars = function(str) { if (!str) return ''; str = str.replace(/&/g, '&'); str = str.replace(//g, '>'); str = str.replace(/"/g, '"'); str = str.replace(/'/g, '''); return str }; lib.substr = function(str, len) { if (!str) return ''; if (str.length > len) { return str.substr(0, len) + '...' } return str }; lib.bind = (function() { var f1 = function(node, eventName, func, scope) { node = typeof(node) == 'string' ? doc.getElementById(node) : node; scope = scope || node; return node.attachEvent('on' + eventName, function() { func.apply(scope, arguments) }) }; var f2 = function(node, eventName, func, scope) { node = typeof(node) == 'string' ? doc.getElementById(node) : node; scope = scope || node; return node.addEventListener(eventName, function() { func.apply(scope, arguments) }, false) }; return (doc.all) ? f1 : f2 })(); lib.unbind = (function() { var f1 = function(node, eventName, func) { node = typeof(node) == 'string' ? doc.getElementById(node) : node; return node.detachEvent('on' + eventName, func) }; var f2 = function(node, eventName, func) { node = typeof(node) == 'string' ? doc.getElementById(node) : node; return node.removeEventListener(eventName, func) }; return (doc.all) ? f1 : f2 })(); lib.getWH = function() { var r = {}; r.h = win.innerHeight; r.w = win.innerWidth; return r }; lib.getTL = function(w, h) { if (isNaN(w) || isNaN(h)) { return { t: 30, l: 30 } } var r = {}; var o = lib.getWH(); r.t = parseInt((o.h - h) / 2); r.l = parseInt((o.w - w) / 2); r.t = Math.max(0, r.t); r.l = Math.max(0, r.l); return r }; lib.q = function(k, n) { n = n || document; if (n.getElementsByClassName) { return n.getElementsByClassName(k) } var l = n.getElementsByTagName("*"); var h = []; for (var j = 0; j < l.length; j++) { var className = new RegExp("(^|\\s)" + k + "(\\s|\x24)"); if (className.test(l[j].className)) { h[h.length] = l[j] } } return h }; lib.qq = function(k, n) { var r = lib.q(k, n); return r && r[0] }; lib.loadJs = function(url, callback) { callback = callback || function() {}; if (doc.readyState != "complete") { return setTimeout(function() { lib.loadJs(url, callback) }, 300) } var script = doc.createElement("script"); script.type = "text/javascript"; if (script.readyState) { script.onreadystatechange = function() { if (script.readyState == 'loaded' || script.readyState == 'complete') { callback() } } } else { script.onload = function() { callback() } } script.src = url; doc.body.appendChild(script) }; lib.jsonp = function(url, callback) { var f_name = lib.func_name(); win[f_name] = function(data) { win[f_name] = undefined; callback && callback(data) }; lib.loadJs(url + '&callback=' + f_name) }; lib.colorObj = function(color) { var r = {}; if (typeof(color) != 'string') { return color } else { color = color.toUpperCase() } if (color.charAt(0) == '#') { r.r = parseInt(color.substr(1, 2), 16); r.g = parseInt(color.substr(3, 2), 16); r.b = parseInt(color.substr(5, 2), 16) } else if (color.substr(0, 4) == 'RGB(') { color = color.substr(4, color.length - 1); color = color.split(','); r.r = parseInt(color[0]); r.g = parseInt(color[1]); r.b = parseInt(color[2]) } return r }; lib.numHex = function(n) { var s = n.toString(16); if (s.length == 1) { s = '0' + s } return s }; lib.colorHex = function(o) { return '#' + lib.numHex(o.r) + lib.numHex(o.g) + lib.numHex(o.b) }; lib.colorLight = function(color, d) { color = lib.colorObj(color); if (!d || d < 0) d = 0.1; d += 1; var r = parseInt(color.r * d); var g = parseInt(color.g * d); var b = parseInt(color.b * d); r = Math.min(r, 255); g = Math.min(g, 255); b = Math.min(b, 255); return lib.colorHex({ r: r, g: g, b: b }) }; lib.colorDark = function(color, d) { color = lib.colorObj(color); if (!d || d < 0) d = 0.1; d += 1; var r = parseInt(color.r / d); var g = parseInt(color.g / d); var b = parseInt(color.b / d); r = Math.max(r, 0); g = Math.max(g, 0); b = Math.max(b, 0); return lib.colorHex({ r: r, g: g, b: b }) }; lib.css = (function() { if (win.getComputedStyle) { return function(elem, name) { var computed = win.getComputedStyle(elem, null); var ret = computed.getPropertyValue(name) || computed[name]; return ret || elem.style[name] } } else if (dom.docElem.currentStyle) { return function(elem, name) { var ret = elem.currentStyle && elem.currentStyle[name]; if (ret == 'auto' && name == 'height') { ret = elem.clientHeight || elem.scrollHeight || elem.offsetHeight } else if (ret == 'auto' && name == 'width') { ret = elem.clientWidth || elem.scrollWidth || elem.offsetWidth } return ret || elem.style[name] } } else { return function(elem, name) { return elem.style[name] } } })(); lib.ls = (function() { var _ls = window.localStorage; var _f = function(k, v) { if (v === undefined) { return _ls.getItem(k) } return _ls.setItem(k, v) }; if (_ls) { return _f } else { return function(k, v) { if (v) return false; return null } } })(); lib.func_name = function() { return SELF_CONFIG.prefix + 'jsonp' + lib.uniqid() }; lib.tel = (function() { var ua = window.navigator.userAgent; if (ua.indexOf('Android') > 0 && ua.indexOf('QQBrowser') > 0) { return 'wtai://wp/mc;' } return 'tel:' })(); lib.ua = (function() { function cal() { r = {}; if (o.indexOf('Windows NT') > 0) { r.win = true } if (o.indexOf('Android') > 0 || o.indexOf(' Adr ') > 0) { r.android = true } if (o.indexOf('iPhone') > 0 || o.indexOf('iPod') || o.indexOf('iPad')) { r.ios = true } if (o.indexOf('MQQBrowser') > 0) { r.qq = true } if (o.indexOf('Firefox') > 0) { r.ff = true } if (o.indexOf('Chrome') > 0) { r.g = true } if (o.indexOf('Safari') > 0) { r.sfr = true } if (o.indexOf('UCBrowser') > 0 || o.indexOf('UCWEB') >= 0) { r.uc = true } if (o.indexOf('MSIE') > 0) { r.ie = true } if (o.indexOf('MI-ONE') > 0) { r.mi_1 = true } } var r; var o = window.navigator.userAgent; var f = function() { if (!r) cal(); return r }; return f })(); lib.parseURL = function(str) { var ret = null; if (null !== (ret = lib.parseURL.RE.exec(str))) { var specObj = {}; for (var i = 0, j = lib.parseURL.SPEC.length; i < j; i++) { var curSpec = lib.parseURL.SPEC[i]; specObj[curSpec] = ret[i + 1] } ret = specObj; specObj = null } return ret }; lib.parseURL.SPEC = ['scheme', 'user', 'pass', 'host', 'port', 'path', 'query', 'fragment']; lib.parseURL.RE = /^([^:]+):\/\/(?:([^:@]+):?([^@]*)@)?(?:([^/?#:]+):?(\d*))([^?#]*)(?:\?([^#]+))?(?:#(.+))?$/; lib.parseQuery = function(q) { if (!q) return {}; if (q.charAt(0) == '?') { q = q.substr(1) } var a = q.split('&'); var r = {}; lib.each(a, function(v) { var o = v.split('='); if (!o[0]) return; r[o[0]] = o[1] }); return r }; lib.isQuirky = function() { return doc.compatMode == 'BackCompat' }; lib.removeElem = function(elem) { if (!elem) { return } var p = elem.parentNode || elem.parentElement; if (p) { p.removeChild(elem) } }; lib.getIntVersion = function(version) { var intVersion = ''; var strArr = version.split("."); var length = strArr.length; while (length < 3) { strArr[length] = 0; length++ } lib.each(strArr, function(num, i) { strArr[i] = lib.padPrefixZero(num) }); intVersion = strArr.join(''); return parseInt(intVersion, 10) }; lib.padPrefixZero = function(num) { var PAD_TO_LENGTH = 2; var len = num.toString().length; while (len < PAD_TO_LENGTH) { num = "0" + num; len++ } return num }; lib.encodeJson = (function() { var win = window; if (win.JSON && JSON.stringify) { return function(str) { return JSON.stringify(str) } }; var escapeMap = { "\b": '\\b', "\t": '\\t', "\n": '\\n', "\f": '\\f', "\r": '\\r', '"': '\\"', "\\": '\\\\' }; function encodeString(source) { if (/["\\\x00-\x1f]/.test(source)) { source = source.replace(/["\\\x00-\x1f]/g, function(match) { var c = escapeMap[match]; if (c) { return c } c = match.charCodeAt(); return "\\u00" + Math.floor(c / 16).toString(16) + (c % 16).toString(16) }) } return '"' + source + '"' } function encodeArray(source) { var result = ["["], l = source.length, preComma, i, item; for (i = 0; i < l; i++) { item = source[i]; switch (typeof item) { case "undefined": case "function": case "unknown": break; default: if (preComma) { result.push(',') } result.push(lib.encodeJson(item)); preComma = 1 } } result.push("]"); return result.join("") } function pad(source) { return source < 10 ? '0' + source : source } function encodeDate(source) { return '"' + source.getFullYear() + "-" + pad(source.getMonth() + 1) + "-" + pad(source.getDate()) + "T" + pad(source.getHours()) + ":" + pad(source.getMinutes()) + ":" + pad(source.getSeconds()) + '"' } return function(value) { switch (typeof value) { case 'undefined': return 'undefined'; case 'number': return isFinite(value) ? String(value) : "null"; case 'string': return encodeString(value); case 'boolean': return String(value); default: if (value === null) { return 'null' } else if (value instanceof Array) { return encodeArray(value) } else if (value instanceof Date) { return encodeDate(value) } else { var result = ['{'], encode = lib.encodeJson, preComma, item; for (var key in value) { if (Object.prototype.hasOwnProperty.call(value, key)) { item = value[key]; switch (typeof item) { case 'undefined': case 'unknown': case 'function': break; default: if (preComma) { result.push(',') } preComma = 1; result.push(encode(key) + ':' + encode(item)) } } } result.push('}'); return result.join('') } } } })(); var css = { 'z': function(n) { return 'z-index:' + (SELF_CONFIG.zIndex + (n || 0)) + ';' }, 'wh': function(n) { return 'width:' + n + 'px;height:' + n + 'px;' }, 'posr': 'position:relative;', 'posa': 'position:absolute;', 'posf': 'position:fixed;', 'dn': 'display:none;', 'tac': 'text-align:center;', 'ptr': 'cursor:pointer;', 'bgc': 'background-color:' + userConfig.global.color + ';', 'opa': '-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";' + 'filter:alpha(opacity=40);' + 'opacity: 0.4;', 'fl': 'float:left;', 'fr': 'float:right;', 'br5': 'border-radius:5px;', 'br12': 'border-radius:12px;', 'bd': 'border:1px solid #6C6E6E;', 'w100': 'width:100%;', 'h100': 'height:100%;', 'yahei': 'font-family:"Microsoft Yahei";', 'bold': 'font-weight:bold;', 'fs12': 'font-size:12px;', 'fs13': 'font-size:13px;', 'fs14': 'font-size:14px;', 'fs15': 'font-size:15px;', 'fs16': 'font-size:16px;', 'cb': 'clear:both; height:1px;', 'red': 'color:red;', 'green': 'color:green;', 'nowrap': 'word-wrap:normal;white-space:nowrap;', 'dark_c': lib.colorDark(userConfig.global.color, 0.6), 'dark_c2': lib.colorDark(userConfig.global.color, 0.1), 'light_c': lib.colorLight(userConfig.global.color, 0.5) }; var style = [w('.innerWrapper') + '{', css.w100, css.h100, css.posr, '}', w('.innerWrapper') + ' div{', '-webkit-box-sizing: content-box;', '-moz-box-sizing: content-box;', 'box-sizing: content-box;', '}', w('.innerWrapper') + ' input{', '-webkit-box-sizing: content-box;', '-moz-box-sizing: content-box;', 'box-sizing: content-box;', '}', w('.bottom-box') + '{', css.posf, css.w100, css.z(), 'height:' + SELF_CONFIG.bottom.h + 'px;', 'left:0; bottom:0;', '}', w('.bottom-item') + '{', css.h100, 'float:left; overflow:hidden; text-align: center;', '}', w('.bottom-item .bottomWrapper') + '{', 'height:' + (SELF_CONFIG.bottom.h - 2 * 7) + 'px; margin-top:7px; border-right:1px solid ' + css.dark_c + '; border-left:1px solid ' + css.light_c + ';', css.posr, '}', w('.bottom-low-box') + ',' + w('.bottom-high-box') + '{', 'bottom:0;', css.w100, 'height:' + SELF_CONFIG.bottom.h + 'px;', css.posa, css.bgc, '}', w('.bottom-low-box') + '{', 'z-index:6;border-top:1px solid ' + css.dark_c + ';', '}', w('.bottom-high-box') + '{', 'z-index:5;border-bottom:1px solid ' + css.light_c + ';', '}', w('.bottom-item-text') + '{', 'line-height:18px; margin-top:1px;', '}', w('.bottom-item-text') + ' span{', 'color:#FFFFFF; font-size:14px;', css.yahei, '}', w('.bottom-item-icon') + '{', 'height:25px;margin-top:1px;', '}', w('.bottom-item-icon') + ' img{', 'height:25px;', '}', w('.bottom-t1 .bottom-item') + '{ width:100%; }', w('.bottom-t2 .bottom-item') + '{ width:50%; }', w('.bottom-t3 .bottom-item') + '{ width:33%; }', w('.bottom-t4 .bottom-item') + '{ width:25%; }', w('.bottom-t3 .bottom-item-0') + '{ width:34%; }', w('.bottom-item-0 .bottomWrapper') + '{ border-left:none;}', w('.bottom-t1 .bottom-item-0 .bottomWrapper') + '{ border-right:none; }', w('.bottom-t2 .bottom-item-1 .bottomWrapper') + '{ border-right:none; }', w('.bottom-t3 .bottom-item-2 .bottomWrapper') + '{ border-right:none; }', w('.bottom-t4 .bottom-item-3 .bottomWrapper') + '{ border-right:none; }', w('.bottom-btn') + '{', css.posa, css.w100, 'left:0; bottom:' + (SELF_CONFIG.bottom.h + 30) + 'px; height:1px;', '}', w('.bottom-btn-wrapper') + '{', 'width:77px; margin:0 auto;text-align:center;height:31px;', css.posr, css.ptr, css.tac, '}', w('.bottom-btn-wrapper') + ' ' + w('.bottom-btn-bg') + '{', 'border:none; left:0; bottom:0; ', css.h100, 'z-index:-1;', css.posa, '}', w('.bottom-btn-wrapper') + ' ' + w('.bottom-btn-tri') + '{', 'height:11px; margin-top:15px;', '}', w('.side-box') + '{', css.posf, css.z(), 'pointer-events:none;', 'right:10px; bottom:0px; height:100%; width:22px;padding:1px;', '}', w('.side-box-tel') + ',' + w('.side-box-chat') + '{', css.bgc, css.posa, css.ptr, '}', w('.side-box-t') + ',' + w('.side-box-b') + '{ pointer-events:auto;}', w('.side-box-t') + '{', 'top:70px;', '}', w('.side-box-b') + '{', 'bottom:70px;', '}', w('.side-icon') + '{', 'padding-top:10px; text-align:center; ', '}', w('.side-icon') + ' img{', 'width:16px;', '}', w('.side-text') + '{', 'width:19px; white-space:normal; word-break:break-all;word-wrap:break-word; color:#FFFFFF;', 'font-size:13px;', css.yahei, 'line-height:14px;margin-top:1px; margin-left:5px;', '}', w('.hide-box') + '{', css.posf, css.z(), 'left:10px;bottom:' + SELF_CONFIG.hide.bottom + 'px; width:55px; height:50px;', '}', w('.hide-btn') + '{', css.wh(40), 'border:4px solid #CFD0D2; padding:1px; position:absolute;', 'border-radius:25px; left:0px; bottom:0; cursor:pointer;', css.bgc, '}', w('.hide-btn-icon') + ' img{', 'width:23px; margin:8px 0 0 7px;', '}', w('.hide-list') + '{', css.posa, 'left:1px; bottom:61px; width:120px;', '}', w('.hide-wrapper') + '{', 'border:4px solid #CFD0D2; border-radius:4px;background-color:#FFFFFF;width:110px; padding:1px 1px;', css.posr, '}', w('.hide-tri') + '{', 'position:absolute;left:15px;bottom:-14px;', '}', w('.hide-tri') + ' img{', 'height:5px;', '}', w('.hide-item') + '{', 'color:#2A2A2A; height:28px;padding:5px 0 1px 0; border-top:1px solid #E2E3E5;', 'margin-left:8px; margin-right:8px;', css.ptr, '}', w('.hide-item-0') + '{', 'border-top:none;', '}', w('.hide-item-icon') + '{', 'float:left; margin-left:1px;', '}', w('.hide-item-icon-sms') + '{', 'margin-top:4px;', '}', w('.hide-item-icon-sms') + ' img{', 'height:16px;', '}', w('.hide-item-icon') + ' img{', 'width:23px;', '}', w('.hide-item-text') + '{', 'float:left; margin-left:8px;font-size:14px; line-height:23px;', css.yahei, '}', w('.popup-bg') + '{', 'background-color:#000000; ', css.opa, css.posa, 'width:100%; height:100%; left:0;top:0;z-index:-1;', css.br5, '}', w('.popup-box') + '{', 'width:' + SELF_CONFIG.popup.w + 'px; height:' + SELF_CONFIG.popup.h + 'px;', css.posf, css.z(1), '}', w('.popup-box .innerWrapper') + '{', 'padding:1px;*padding-top:4px;', '}', w('.popup-inner') + '{', 'width:' + (SELF_CONFIG.popup.w - 12) + 'px; height:' + (SELF_CONFIG.popup.h - 12) + 'px;', 'background-color:#FFFFFF;', css.bd, css.br5, 'padding:1px; margin:4px 0px 0px 4px;', '}', w('.popup-close-btn') + '{', css.posa, 'top:13px; right:14px;', css.ptr, '}', w('.popup-close-btn') + ' img{', css.wh(15), '}', w('.popup-icon') + '{', css.tac, 'margin-top:15px;', '}', w('.popup-icon') + ' img{', 'width:50px; height:58px;', '}', w('.popup-text') + '{', css.tac, 'margin-top:1px;', '}', w('.popup-text') + ' span{', 'font-size:15px;', css.yahei, '}', w('.popup-tel-btn') + '{', 'width:173px; margin:5px auto 0 auto; height:28px;', css.bgc, 'padding:1px;', css.br12, css.ptr, '}', w('.popup-tel-btn-inner') + '{', css.tac, 'width:100%;margin-top:5px;', '}', w('.popup-tel-btn-inner') + ' span{', 'color:#FFFFFF;', '}', w('.popup-conv-btn-box') + '{', 'height:32px; width:198px; margin:5px 0 0 18px;', '}', w('.popup-chat-btn') + ',' + w('.popup-cancel-btn') + '{', 'width:88px; height:32px; padding:1px; border-radius:25px;float:left;', css.ptr, '}', w('.popup-chat-btn') + '{', css.bgc, '}', w('.popup-chat-btn-inner , .popup-cancel-btn-inner') + '{', css.tac, 'width:100%;margin-top:5px;', '}', w('.popup-cancel-btn') + '{', 'margin-left:12px;background-color:#C4C4C4;', '}', w('.popup-chat-btn-inner') + ' span , ' + w('.popup-cancel-btn-inner') + ' span{', 'font-size:16px;color:#FFFFFF;', css.yahei, '}', w('.map-box') + '{', 'width:' + (SELF_CONFIG.map.w) + 'px;', css.posf, css.z(2), 'left:20px; top:50px;', '}', w('.map-box') + ' ' + w('.innerWrapper') + '{', 'padding:1px 0;*padding-top:5px;', '}', w('.map-box-bg') + '{', 'background-color:#000000; ', css.opa, css.posa, 'width:100%; height:100%; left:0;top:0;z-index:-1;', css.br5, '}', w('.map-close-btn') + '{', 'top:-12px; right:-12px;z-index:101;', css.posa, css.ptr, '}', w('.map-close-btn') + ' img{', 'width:33px;', '}', w('.map-box-inner') + '{', 'padding:1px; margin:4px 5px;min-height:240px;background-color:#FFFFFF;', css.bd, css.br5, '}', w('.map-box-list') + '{', 'max-height:182px; overflow-x:hidden; overflow-y:auto;', css.posr, '}', w('.map-box-list-wrapper') + '{', '', '}', w('.map-box-item') + '{', 'height:50px; margin:0 10px 0 10px; border-top:1px solid #D4D4D4;padding-top:10px;', css.posr, '}', w('.map-box-item-0') + '{', 'border-top:none;', '}', w('.map-box-f') + '{', css.fl, '}', w('.map-box-f') + ' img{', 'width:15px;', '}', w('.map-box-text') + '{', 'color:#555555;margin-left:11px; width:177px;', css.yahei, css.fl, '}', w('.map-box-locname') + '{', '', css.bold, css.fs15, css.nowrap, '}', w('.map-box-region') + '{', '', css.fs12, css.nowrap, '}', w('.map-box-route') + '{', 'color:#555555; background-color:#EDEDED; border:1px solid #D4D4D4;', 'width:60px; height:24px; line-height:24px; border-radius:3px;', 'right:0px; top:15px;', css.tac, css.fs13, css.ptr, css.posa, '}', w('.map-box-cont') + '{', 'height:180px; margin:5px;', css.br5, 'border:1px solid #D4D4D4;', '}', w('.bkcall-box') + '{', 'width:' + SELF_CONFIG.bkcall.w + 'px;', css.br5, css.z(2), css.posf, '}', w('.bkcall-box') + ' ' + w('.innerWrapper') + '{', 'padding:1px 0;*padding-top:5px;', '}', w('.bkcall-bg') + '{', 'background-color:#000000; ', css.opa, css.posa, 'width:100%; height:100%; left:0;top:0;z-index:-1;', css.br5, '}', w('.bkcall-inner') + '{', 'background-color:#FFFFFF;margin:5px; width:' + (SELF_CONFIG.bkcall.w - 12) + 'px;', css.bd, css.br5, '}', w('.bkcall-close') + '{', 'top:15px;right:15px;', css.posa, css.ptr, '}', w('.bkcall-close') + ' img{', 'width:15px;height:15px;', '}', w('.bkcall-title') + '{', 'padding-top:15px;', css.tac, '}', w('.bkcall-title') + ' img{', 'width:19px; vertical-align:-2px;', '}', w('.bkcall-title') + ' span{', 'margin-left:12px;', css.yahei, '}', w('.bkcall-input-box') + '{', 'margin:12px 0 0 10px; height:30px;', css.posr, '}', w('.bkcall-input') + '{', 'border:1px solid #CCCCCC; line-height:20px; border-radius:0;', lib.isQuirky() ? 'height:28px; padding:0 10px; width:177px;' : 'height:16px; padding:5px 10px;width:154px;', css.fl, css.fs15, css.yahei, '}', w('.bkcall-del') + '{', 'top:6px; right:104px;', css.posa, css.ptr, '}', w('.bkcall-del') + ' img{', css.wh(17), '}', w('.bkcall-cache') + '{', 'width:172px; padding:1px; border:1px solid #CCCCCC; border-top:none;', 'height:26px; line-height:28px; background-color:#FFFFFF;', 'left:0;top:28px;', css.posa, css.yahei, css.fs15, css.ptr, '}', w('.bkcall-cache-span') + '{', 'margin-left:10px; color:#969696;', '}', w('.bkcall-btn') + '{', 'width:73px; height:26px; line-height:26px; border:1px solid #9BBF3C;background-color:#B4DA50;', 'margin-left:10px;', css.tac, css.fl, css.ptr, '}', w('.bkcall-btn') + ' span{', 'color:#FFFFFF;', css.fs14, '}', w('.bkcall-msg') + '{', 'margin:8px 0 10px 10px; line-height:20px;', css.yahei, css.fs12, '}', w('.contact-box') + '{', 'width:' + SELF_CONFIG.contact.w + 'px;', css.br5, css.z(2), css.posf, '}', w('.contact-box') + ' ' + w('.innerWrapper') + '{', 'padding:1px 0;*padding-top:5px;', '}', w('.contact-bg') + '{', 'background-color:#000000; ', css.opa, css.posa, 'width:100%; height:100%; left:0;top:0;z-index:-1;', css.br5, '}', w('.contact-inner') + '{', 'background-color:#FFFFFF;margin:5px; width:' + (SELF_CONFIG.contact.w - 12) + 'px;', css.bd, css.br5, '}', w('.contact-close') + '{', 'top:15px;right:15px;', css.posa, css.ptr, '}', w('.contact-close') + ' img{', 'width:15px;height:15px;', '}', w('.contact-title') + '{', 'padding-top:15px; font-size:14px;', css.tac, '}', w('.contact-title') + ' img{', 'width:19px; vertical-align:-2px;', '}', w('.contact-title') + ' span{', 'margin-left:12px;', css.yahei, '}', w('.contact-cont-box') + '{', 'margin:0 atuo; margin-top:16px; margin-bottom:20px; height:auto;', '}', w('.contact-content') + ' span{', 'margin-right:8px; height:20px;color:#48515c;', '}', w('.contact-content') + '{', 'margin:0 14px 10px 0; height:20px;color:#777; margin-left:40px; font-size:14px;', '}', w('.contact-btn') + '{', 'width:73px; height:26px; line-height:26px; background-color:#8aa9ea;border-bottom:1px solid #5650d8; border-radius:12px;margin:0 auto;', css.tac, css.ptr, '}', w('.contact-btn') + ' span{', 'color:#FFFFFF;', css.fs14, '}', (userConfig.global.sitetype == 'mobcard') ? '#backCall { visibility: hidden; } ' : '', ''].join(''); var comp = {}; comp.filter = function(p) { var r = []; lib.each(userConfig.comp, function(v, i) { if (v && v.pos && v.pos[p]) { if (v.t == "contact") { comp.getMoplusVer(r, v, i) } else { v._i = i; r.push(v) } } }); return r }; comp.getMoplusVer = function(r, v, i) { var url = SELF_CONFIG.contact.url; var getpackageinfo = url + 'getsearchboxinfo?callback=getinfo&mcmdf=inapp_searchbox'; var getVesion = function(json) { var errno = json ? json.error : SELF_CONFIG.contact.moplusJsonNull; if (errno == '0') { var packageVersion = '0.0.0'; if (json.package_infos[0]) { packageVersion = json.package_infos[0].version_name } var version = lib.getIntVersion(packageVersion); if (version >= SELF_CONFIG.contact.packageMinVersion) { SELF_CONFIG.contact.moplusVersion = version; v._i = i; r.splice(i, 0, v); self.reRender() } } }; lib.jsonp(getpackageinfo, getVesion) }; var data = {}; data.bottom = (function() { var a = comp.filter('b'); if (userConfig.share) { a.push({ t: 'share', label: '分享', pos: { b: true } }) } return a })(); data.side_t = comp.filter('rt')[0]; data.side_b = comp.filter('rb')[0]; data.popup = (function() { if (!userConfig.popup || !userConfig.popup.type) { return false } var l = userConfig.comp.length; var i; for (i = 0; i < l; i++) { if (userConfig.comp[i].t == userConfig.popup.type) return userConfig.comp[i] } return false })(); var html = {}; html.chat = {}; html.chat.brgUrl = function() { var appId = 10021; if (userConfig.global.sitetype == 'siteapp') { appId = 10019 } else if (userConfig.global.sitetype == 'mobcard') { appId = 10020 } var url = window.location.href.toLowerCase(); var pos; if (url.substr(0, 7) == 'http://') { url = url.substr(7) } pos = url.lastIndexOf('?'); if (pos > 0) { url = url.substr(0, pos) } pos = url.lastIndexOf('#'); if (pos > 0) { url = url.substr(0, pos) } return '/im/mapi/?unq_id=' + (userInfo.uid || '') + '&app_id=' + appId + '&url=' + encodeURIComponent(url) }; html.bkcall = { 'bg': '
', 'del': ['
', '', '
'].join(''), 'btn': '回电给我', 'msg': ['
我们将立即回电。该通话对您免费,请放心接听!
', '
手机请直接输入,座机前加区号:如0105992xxxx
'].join(''), 'succ': ['
', '
您稍后将接到我们的电话,该通话完全免费
', '
'].join(''), 'input_err': ['
', '
提示:您输入的电话号码有误,请检查重新输入
', '
手机请直接输入:如13800138000
', '
座机前请加区号:如01088888888
', '
'].join(''), 'cache': ['
', '', '
'].join(''), 'err': function(t) { return ['
', '
' + (t || '非常抱歉!暂时无法建立通话,请稍后再试') + '
', '
'].join('') }, 'close': function() { return ['
', '', '
'].join('') }, 'inner': function(data) { return ['
', '
', '', '免费电话咨询', '
', '
', '', '
回电给我
', html.bkcall.del, html.bkcall.cache, '
', '
', html.bkcall.msg, '
', '
'].join('') }, 'box': function(data) { return ['
', html.bkcall.bg, html.bkcall.close(), html.bkcall.inner(data), '
'].join('') } }; html.contact = { 'bg': '
', 'close': function() { return ['
', '', '
'].join('') }, 'inner': function(data) { var contact_email_html = ''; var contact_qq_html = ''; var contact_loc_html = ''; if (data.email) { contact_email_html = ['
', '邮箱:', '' + data.email + '', '
'].join('') } if (data.qq && data.qq !== "") { contact_qq_html = ['
', '  QQ:', '' + data.qq + '', '
'].join('') } if (data.a && data.a[0].loc) { var locate = data.a[0]; var address = locate.prov + locate.city + locate.county + locate.street; if (address.length > 10) { address = address.substr(0, 10); address = lib.htmlspecialchars(address); address += ".." } contact_loc_html = ['
', '地址:', '' + address + '', '
'].join('') } return ['
', '
', '', '已保存至手机通讯录', '
', '
', '
', '名称:', '' + data.name + '', '
', '
', '电话:', '' + data.number + '', '
', contact_email_html, contact_qq_html, contact_loc_html, '
', '确定', '
', '
', '
'].join('') }, 'box': function(data) { return ['
', html.contact.bg, html.contact.close(), html.contact.inner(data), '
'].join('') } }; html.map = {}; html.map.bg = '
'; html.map.close = ['
', '', '
'].join(''); html.map.item = function(v, i) { var region_text = (v.prov || '') + (v.city || '') + (v.county || '') + (v.street || ''); var region_long = lib.htmlspecialchars(region_text); var region_short = lib.htmlspecialchars(lib.substr(region_text, 13)); var locname_long = lib.htmlspecialchars(v.locName); var locname_short = lib.htmlspecialchars(lib.substr(v.locName, 10)); return ['
', '
', '', '
', '
', '
', '' + locname_short + '', '
', '
', '' + region_short + '', '
', '
', '
', '查看路线', '
', '
'].join('') }; html.map.list = function(a) { var str = '
'; str += '
'; lib.each(a, function(v, i) { str += html.map.item(v, i) }); str += '
'; str += '
'; return str }; html.map.cont = function() { return '
' }; html.map.inner = function(a) { return ['
', html.map.list(a), html.map.cont(), '
'].join('') }; html.map.box = function(a) { return ['
', html.map.bg, html.map.close, html.map.inner(a), '
'].join('') }; html.bottom = {}; html.bottom.box = function() { var a = data.bottom; if (!a || a.length == 0) { return '' } var l_cls = 'bottom-low-box'; var h_cls = 'bottom-high-box'; var b_str = ''; var l_str = ''; var h_str = ''; var l_count = Math.min(4, a.length); var h_count = Math.max(0, a.length - 4); var i; for (i = 0; i < l_count; i++) { l_str += html.bottom.item(a[i], i) } for (i = 4; i < a.length; i++) { h_str += html.bottom.item(a[i], i - 4) } l_cls += ' bottom-t' + l_count; h_cls += ' bottom-t' + h_count; if (h_count > 0) { b_str = html.bottom.btn() } return ['
', '
' + l_str + '
', '
' + h_str + '
', b_str, '
'].join('') }; html.bottom.item = function(o, i) { var I_cls = 'bottom-item bottom-item-' + o.t + ' bottom-item-' + i; var icon = ''; return ['
', '
', '
' + icon + '
', '
' + lib.htmlspecialchars(o.label) + '
', '
', '
'].join('') }; html.bottom.btn = function() { return ['
', '
', '', '', '
', '
'].join('') }; html.side = {}; html.side.x = function(v, f) { if (!v) return ''; var cls = 'side-box-' + v.t + ' side-box-' + f; var d = 97; var h = (v.t == 'tel') ? d : (d + 11); return ['
', '
', '', '
', '
' + lib.htmlspecialchars(v.label) + '
', '
'].join('') }; html.side.box = function() { var t = data.side_t; var b = data.side_b; if (!t && !b) return ''; return ['
', html.side.x(t, 't'), html.side.x(b, 'b'), '
'].join('') }; html.hide = {}; html.hide.tri = ['
', '', '
'].join(''); html.hide.item = function(o, i) { return ['
', '
', '', , '
', '
' + lib.htmlspecialchars(o.label) + '
', '
'].join('') }; html.hide.list = function() { if (data.bottom.length == 0) { return '' } var str = '
'; str += '
', lib.each(data.bottom, function(v, i) { str += html.hide.item(v, i) }); str += html.hide.tri; str += '
'; str += '
'; return str }; html.hide.btn = function() { return ['
', '
', '', '
', '
'].join('') }; html.hide.box = function() { var list_str = html.hide.list(); if (!list_str) { return '' } return ['
', html.hide.btn(), list_str, '
'].join('') }; html.popup = {}; html.popup.bg = function() { return ['
'].join('') }; html.popup.close = function() { return ['
', '', '
'].join('') }; html.popup.icon = function(t) { return ['
', '', '
'].join('') }; html.popup.text = function(t) { var text = { 'tel': '官方热线 点击拨打', 'chat': '客服人员在线,点击免费咨询' }; return ['
', '' + text[t] + '', '
'].join('') }; html.popup.tel = function(o) { var t = (o.type == 'backcall') ? '离线宝回呼' : lib.htmlspecialchars(o.number); return ['
', html.popup.close(), html.popup.icon('tel'), html.popup.text('tel'), '', '
'].join('') }; html.popup.chat = function(o) { return ['
', html.popup.close(), html.popup.icon('chat'), html.popup.text('chat'), '
', '', '
', '
', '取消', '
', '
', '
', '
'].join('') }; html.popup.box = function() { var o = data.popup; if (!o) return ''; return ['
', html.popup.bg(), html.popup[o.t](o), '
'].join('') }; var E = { noop: function() {}, e: function(data, i, obj) { return E[data.t] ? E[data.t](data, i, obj) : E.noop }, reWin: function() { E.popup.repos(); lib.each(R._map, function(v) { v && v.repos && v.repos() }); lib.each(R._bkcall, function(v) { v && v.repos && v.repos() }); if (lib.ua().uc) { R.$hide.box.style.bottom = SELF_CONFIG.hide.bottom + 'px'; setTimeout(function() { R.$hide.box.style.bottom = (SELF_CONFIG.hide.bottom - 1) + 'px' }, 300); setTimeout(function() { R.$hide.box.style.bottom = (SELF_CONFIG.hide.bottom - 1) + 'px' }, 500) } if (R.$side_t && R.$side_b) { var wh = lib.getWH(); if (wh.h <= 350) { dom.hide(R.$side_b) } else { dom.show(R.$side_b) } } lib.each(R._contact, function(v) { v && v.repos && v.repos() }) }, bindReWin: function() { lib.bind(win, 'resize', E.reWin); lib.bind(win, 'scroll', E.reWin); lib.bind(win, 'orientationchange', E.reWin) }, unbindReWin: function() { lib.unbind(win, 'resize', E.reWin); lib.unbind(win, 'scroll', E.reWin); lib.unbind(win, 'orientationchange', E.reWin) } }; E.hide = {}; E.hide['switch'] = function() { return function() { var $list = R.$hide.list; if ($list.style.display == 'none') { R.hideAll(); E.pop = true; dom.show($list) } else { R.showAll(); E.pop = false; dom.hide($list) } } }; E.bottom = { 'highOn': function() { var $h = R.$b.high; var $b = R.$b.btn; $h.style.bottom = (SELF_CONFIG.bottom.h + 1) + 'px'; $b.style.bottom = (SELF_CONFIG.bottom.h * 2 + 30) + 'px'; R.$b.tri.setAttribute('src', IMG_URL.bottom.tri_d) }, 'highOff': function() { var $h = R.$b.high; var $b = R.$b.btn; $h.style.bottom = '0'; $b.style.bottom = (SELF_CONFIG.bottom.h + 30) + 'px'; R.$b.tri.setAttribute('src', IMG_URL.bottom.tri_u) }, 'switch': function(e) { var b = parseFloat(lib.css(R.$b.high, 'bottom')); if (b + 31 < SELF_CONFIG.bottom.h) { E.bottom.highOn() } else { E.bottom.highOff() } } }; E.tel = function(data, i, obj) { function _bkcall(e) { R.bkcall(data, i) } function _direct(e) { if (obj && obj.popup) { log._('tel', { coord: 'alertbox', phone: data.number }) } else { log._('tel', { phone: data.number }) } lib.delayJump(lib.tel + data.number) } if (data.type == 'backcall') { return _bkcall } else { return data.number ? _direct : E.noop } }; E.contact = function(data, i, obj) { var url = SELF_CONFIG.contact.url; var saveContact = function(e) { var version = SELF_CONFIG.contact.moplusVersion; if (version >= SELF_CONFIG.contact.packageMinVersion) { addContact() } }; var addContact = function() { if (SELF_CONFIG.contact.hasAdd) { R.contact(data, i); return } var contactlist = []; var contactParamObj = {}; contactParamObj.name = data.name; contactParamObj.starred = 1; contactParamObj.fields = []; contactParamObj.fields[contactParamObj.fields.length] = { 'type': 'phone', 'type_code': '2', 'type_ext': '', 'value': data.number }; if (data.email && data.email !== '') { contactParamObj.fields[contactParamObj.fields.length] = { 'type': 'email', 'type_code': '2', 'type_ext': '', 'value': data.email } } if (data.qq && data.qq !== '') { contactParamObj.fields[contactParamObj.fields.length] = { 'type': 'IM', 'type_code': '4', 'type_ext': '', 'value': data.qq } } if (data.a && data.a[0].loc) { var locate = data.a[0]; contactParamObj.fields[contactParamObj.fields.length] = { 'type': 'address', 'type_code': '2', 'type_ext': '', 'value': lib.htmlspecialchars(locate.prov + locate.city + locate.county + locate.street) } } contactlist[0] = contactParamObj; var contalistdata = lib.encodeJson(contactlist); post(contalistdata) }; var post = function(data) { var xmlhttp; if (window.ActiveXObject) { xmlhttp = new ActiveObject("Microsoft.XMLHTTP") } else if (window.XMLHttpRequest) { xmlhttp = new XMLHttpRequest() } var posturl = url + "addcontactinfo?callback=addcontactinfo&mcmdf=inapp_addinfo"; var post = "postdata=" + data; if (xmlhttp) { xmlhttp.open("POST", posturl, true); xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xmlhttp.onreadystatechange = callback; xmlhttp.send(post) } }; var callback = function(data) { var currentTarget = data.currentTarget; if (currentTarget.readyState == 4 && currentTarget.status == 200) { eval(currentTarget.responseText) } }; var addcontactinfo = function(json) { if (json.error == 0) { SELF_CONFIG.contact.hasAdd = true; R.contact(data, i); log._('contact') } }; return saveContact }; E.chat = function(data, i, obj) { if (data.type == 'brg') { var prefix = 'http://qiao.baidu.com'; if (!data.href || (data.href.substr(0, prefix.length) !== prefix)) { data.href = html.chat.brgUrl() } } return (!data.href) ? E.noop : function(e) { if (obj && obj.popup) { data.coord = 'alterbox' } log._('chat', data); lib.delayJump(data.href) } }; E.sms = function(data) { if (!data.number) { return E.noop } return function(e) { log._('sms'); lib.delayJump('sms:' + data.number) } }; E.map = function(data, i) { if (!data.a || data.a.length == 0) { return E.noop } return function(e) { self.loadMap(); R.hideAll(); R.map(data.a, i); log._('map') } }; E.share = function(data, i, obj) { if (!self.__loadShare) { lib.loadJs(SELF_CONFIG.share.apiUrl, self.loadShare); self.__loadShare = true } if (!win.baidu || !baidu.socShare) { self.loadShareFn = function() { E.share(data, i, obj) }; return E.noop } lib.bind(obj, 'click', function() { log._('share') }); baidu.socShare.init({ 'afterRender': function() {}, 'client_id': 'ZVEpDSsmZ0qxa1gmgDAh1Fje', 'dom_id': obj, 'url': encodeURIComponent(win.location.href) }); return E.noop }; E.popup = { pos: function() { var d = lib.getTL(SELF_CONFIG.popup.w, SELF_CONFIG.popup.h); var $box = R.$popup; if (isNaN(d.t) || isNaN(d.l)) { return false } $box.style.top = d.t + 'px'; $box.style.left = d.l + 'px' }, show: function() { if (E.pop) { return E.popup.tick() } R.hideAll(); E.popup.pos(); R.$popup.style.display = '' }, close: function() { dom.hide(R.$popup); R.showAll(); E.popup.tick() }, tick: function() { if (!R.$popup) return false; clearTimeout(E.popup.f); E.popup.f = setTimeout(E.popup.show, userConfig.popup.delay * 1000) }, repos: function() { if (R.$popup && R.$popup.style.display !== 'none') { E.popup.pos() } } }; var R = {}; R.$bkcall = []; R._bkcall = []; R._map = []; R.$map = []; R.$contact = []; R._contact = []; R.$hide = {}; R.$b = {}; R.bkcall = function(data, i) { if (i === undefined) { i = data._i } var _F = {}; _F.param = function(o) { o.uid = userInfo.uid || 0; o.t = lib.nowtime(); return lib.param(o) }; _F.sendUrl = function() { return SELF_CONFIG.bkcall.apiUrl + 'cb/user/check?' + _F.param({ f: 10, r: doc.referrer }) }; _F.callUrl = function(tk) { return SELF_CONFIG.bkcall.apiUrl + 'cb/call?' + _F.param({ vtel: _F.val, tk: tk }) }; var _R = {}; _R.clean = function() { _F.locked = false; _B.set(html.bkcall.btn) }; _R.fail = function(t) { _M.err(t); _R.clean() }; var _A = {}; _A.send_back = function(r) { if (!r) return _R.fail(); if (r.status) return _R.fail(r.msg); _A.call(r.data) }; _A.call_back = function(r) { if (!r) return _R.fail(); if (r.status) return _R.fail(r.msg); _C.save(); _R.clean(); _M.msg(html.bkcall.succ); log._('backcall') }; _A.send = function() { if (_F.locked) return; _F.locked = true; _B.set('提交中'); lib.jsonp(_F.sendUrl(), _A.send_back) }; _A.call = function(data) { lib.jsonp(_F.callUrl(data.tk), _A.call_back) }; var _Box = {}; _Box.delayFix = function() { setTimeout(_Box.pos, 500); setTimeout(_Box.pos, 1000) }; _Box.close = function(e) { R.showAll(); dom.hide(_Box.$); E.pop = false }; _Box.pos = function() { var h = parseInt(lib.css(_Box.$, 'height')); var p = lib.getTL(SELF_CONFIG.bkcall.w, h); if (isNaN(p.t) || isNaN(p.l)) { return false } _Box.$.style.top = p.t + 'px'; _Box.$.style.left = p.l + 'px' }; _Box.bind = function() { this.$close.onclick = this.close }; _Box.init = function() { R.hideAll(); dom.show(this.$); this.pos(); E.pop = true }; var _C = {}; _C.key = SELF_CONFIG.prefix + 'phone-number'; _C.val = ''; _C.save = function() { _C.val = _F.val; lib.ls(this.key, this.val) }; _C.get = function() { this.val = lib.ls(this.key) }; _C.click = function() { _Inp.normal(); _Inp.$.value = _C.val; _F.val = _C.val; _D.check(); dom.hide(_C.$) }; _C.delayHide = function() { setTimeout(function() { dom.hide(_C.$) }, 100) }; _C.bind = function() { this.$.onclick = this.click }; _C.color = function() { if (!this.$ || this.$.style.display == 'none') { return } var v = _Inp.val(); var black = ''; var white; var i; for (i = 0; i < v.length; i++) { if (v.charAt(i) != _C.val.charAt(i)) { return dom.hide(this.$) } black += v.charAt(i) } if (i == _C.val.length) { return dom.hide(this.$) } white = _C.val.substr(i); black = '' + black + ''; this.$span.innerHTML = black + white }; _C.check = function() { if (!_C.val) _C.get(); if (!_C.$ || !_C.val) return; dom.show(_C.$); _C.color() }; var _Inp = { 'reg': /^[\+]?(?:[0-9]|[-](?![-]))+$/, 'dtext': '请输入您的电话号码', 'dcolor': '#8D8D8D' }; _Inp.val = function() { return lib.trim(this.$.value) }; _Inp.is_d = function() { return this.$.value === this.dtext }; _Inp.gray = function() { this.$.style.color = this.dcolor; this.$.value = this.dtext }; _Inp.normal = function() { this.$.style.color = '#000000'; this.$.value = '' }; _Inp.focus = function(e) { if (_Inp.is_d()) { _Inp.normal() } _D.check(); _C.check(); _Box.delayFix() }; _Inp.ktype = function(e) { _D.check(); _C.check() }; _Inp.blur = function(e) { if (_Inp.val() === '') { _Inp.gray() } _D.check(); _C.delayHide(); _Box.delayFix() }; _Inp.bind = function() { this.$.onfocus = this.focus; this.$.onblur = this.blur; this.$.onkeydown = this.ktype; this.$.onkeyup = this.ktype }; _Inp.init = function() { this.gray() }; var _D = {}; _D.check = function() { var v = _Inp.val(); if (v === '' || v === _Inp.dtext) { dom.hide(_D.$) } else { dom.show(_D.$) } }; _D.click = function(e) { _Inp.gray(); dom.hide(_D.$); dom.hide(_C.$) }; _D.bind = function() { this.$.onclick = this.click }; _D.init = function() { dom.hide(this.$) }; var _M = {}; _M.err = function(str) { _M.msg(html.bkcall.err(str)) }; _M.msg = function(str) { this.$.innerHTML = str }; _M.init = function() { this.msg(html.bkcall.msg) }; var _B = {}; _B.set = function(str) { this.$.innerHTML = '' + str + '' }; _B.click = function(e) { var v = _Inp.val(); if (_Inp.reg.test(v)) { _F.val = v; _M.msg(html.bkcall.msg); _A.send() } else { _M.msg(html.bkcall.input_err) } }; _B.bind = function() { this.$.onclick = this.click }; _B.init = function() { this.set(html.bkcall.btn) }; var bind = function() { _B.bind(); _D.bind(); _C.bind(); _Inp.bind(); _Box.bind() }; var init = function() { _Box.$ = R.$bkcall[i]; _Box.$close = lib.qq(w('bkcall-close'), _Box.$); _Inp.$ = lib.qq(w('bkcall-input'), _Box.$); _D.$ = lib.qq(w('bkcall-del'), _Box.$); _B.$ = lib.qq(w('bkcall-btn'), _Box.$); _M.$ = lib.qq(w('bkcall-msg'), _Box.$); _C.$ = lib.qq(w('bkcall-cache'), _Box.$); _C.$span = lib.qq(w('bkcall-cache-span'), _C.$); _B.init(); _M.init(); _D.init(); _Inp.init(); _Box.init(); bind() }; if (!R.$bkcall[i]) { R.$bkcall[i] = doc.createElement('div'); R.$bkcall[i].className = w('bkcall-box bkcall-box-' + i); R.$bkcall[i].innerHTML = html.bkcall.box(data); doc.body.appendChild(R.$bkcall[i]) } init(); R._bkcall[i] = { repos: function() { if (_Box.$.style.display !== 'none') _Box.pos() } } }; R.contact = function(data, i) { if (i === undefined) { i = data._i } var _Box = {}; _Box.delayFix = function() { setTimeout(_Box.pos, 500); setTimeout(_Box.pos, 1000) }; _Box.close = function(e) { R.showAll(); dom.hide(_Box.$); E.pop = false }; _Box.pos = function() { var h = parseInt(lib.css(_Box.$, 'height')); var p = lib.getTL(SELF_CONFIG.contact.w, h); if (isNaN(p.t) || isNaN(p.l)) { return false } _Box.$.style.top = p.t + 'px'; _Box.$.style.left = p.l + 'px' }; _Box.bind = function() { this.$close.onclick = this.close; this.$close_btn.onclick = this.close; setTimeout(_Box.close, 5000) }; _Box.init = function() { R.hideAll(); dom.show(this.$); this.pos(); E.pop = true }; var bind = function() { _Box.bind() }; var init = function() { _Box.$ = R.$contact[i]; _Box.$close = lib.qq(w('contact-close'), _Box.$); _Box.$close_btn = lib.qq(w('contact-btn'), _Box.$); _Box.init(); bind() }; if (!R.$contact[i]) { R.$contact[i] = doc.createElement('div'); R.$contact[i].className = w('contact-box contact-box-' + i); R.$contact[i].innerHTML = html.contact.box(data); doc.body.appendChild(R.$contact[i]) }; init(); R._contact[i] = { repos: function() { if (_Box.$.style.display !== 'none') _Box.pos() } } }; R.map = function(a, i) { var scroll = {}; scroll.isNeeded = function() { if (a.length <= 3) { return false } if (!$list) { return false } if (!win.addEventListener) { return false } return true }; scroll.load = function() { if (self.__loadIScroll) { return } lib.loadJs(SELF_CONFIG.map.iscroll); self.__loadIScroll = true }; scroll.bind = function() { if (!win.iScroll) { scroll.load(); return setTimeout(scroll.bind, 200) } scroll.instance = new iScroll($list) }; scroll.remove = function() { if (scroll.instance) { scroll.instance.destroy(); scroll.instance = null } }; var f_pos = function() { var pos = lib.getTL(SELF_CONFIG.map.w, parseInt(lib.css($box, 'height'))); if (isNaN(pos.t) || isNaN(pos.l)) { return false } $box.style.top = pos.t + 'px'; $box.style.left = pos.l + 'px' }; var f_close = function() { dom.hide($box); scroll.remove(); R.showAll(); E.pop = false }; var f_bind = function() { var $btn = lib.qq(w('map-close-btn'), $box); if ($btn) { $btn.onclick = f_close } }; var $box = R.$map[i]; if (!$box) { $box = doc.createElement('div'); $box.style.display = 'none'; $box.className = w('map-box map-box-' + i); $box.innerHTML = html.map.box(a); doc.body.appendChild($box); R.$map[i] = $box; dom.show($box); f_bind() } else { dom.show($box) } var $list = lib.qq(w('map-box-list'), $box); f_pos(); scroll.isNeeded() && scroll.bind(); var $cont = lib.qq(w('map-box-cont'), $box); var _a = a[0] || {}; var _m; var _p; var _r; var rEvent = function(o) { var to_loc = o.loc.split(','); var to_p = new BMap.Point(parseFloat(to_loc[0]), parseFloat(to_loc[1])); function succ() { var driving = new BMap.DrivingRoute(_m, { renderOptions: { map: _m, autoViewport: true } }); driving.search(_r.point, to_p); var gc = new BMap.Geocoder(); gc.getLocation(to_p, locCallback) } function locCallback(rs) { var comp = rs.addressComponents; var href = 'https://api.map.baidu.com/direction?origin=latlng:' + _r.point.lat + "," + _r.point.lng + "|name:起点&destination=latlng:" + to_loc[1] + "," + to_loc[0] + "|name:终点&mode=transit®ion=" + comp.city + "&output=html"; win.location.href = href } function posCallback(r) { _r = r; if (this.getStatus() == BMAP_STATUS_SUCCESS) { succ() } else { alert('获取当前位置失败') } } return function(e) { var g = new BMap.Geolocation(); g.getCurrentPosition(posCallback, { enableHighAccuracy: true }) } }; var bind = function() { lib.each(lib.q(w('map-box-route'), $box), function(v, i) { v.onclick = rEvent(a[i]) }) }; var init = function() { var aa = _a.loc.split(','); _m = new BMap.Map($cont); _p = new BMap.Point(parseFloat(aa[0]), parseFloat(aa[1])); _m.centerAndZoom(_p, 15); addComp(); addMark() }; var addComp = function() { var opt = { anchor: BMAP_ANCHOR_BOTTOM_RIGHT, type: BMAP_NAVIGATION_CONTROL_ZOOM }; _m.addControl(new BMap.NavigationControl(opt)); _m.addControl(new BMap.GeolocationControl()) }; var addMark = function() { var myIcon = new BMap.Icon(IMG_URL.map.icon, new BMap.Size(22, 29)); myIcon.setImageOffset(new BMap.Size(0, 0)); var marker = new BMap.Marker(_p, { icon: myIcon }); var infoWin = new BMap.InfoWindow('' + lib.htmlspecialchars(_a.locName) + ''); infoWin.disableAutoPan(); try { marker.addEventListener("click", function() { this.openInfoWindow(infoWin) }, false); _m.addOverlay(marker); _m.openInfoWindow(infoWin, _p) } catch (e) {} }; var wait = function() { if (!_a.loc) return false; if (!win.BMap) { setTimeout(wait, 300); return false } bind(); init() }; wait(); E.pop = true; R._map[i] = { repos: function() { if ($box.style.display !== 'none') f_pos() }, close: function() { dom.hide($box); scroll.remove() } } }; R.bottom = function() { var _str = html.bottom.box(); if (_str == '') { return false } var $box = doc.createElement('div'); $box.className = w('bottom-box'); $box.innerHTML = _str; doc.body.appendChild($box); R.$b.box = $box; R.$b.high = lib.qq(w('bottom-high-box'), $box); var $btn = lib.qq(w('bottom-btn'), $box); if ($btn && $btn.children[0]) { $btn.children[0].onclick = E.bottom['switch'] } R.$b.btn = $btn; R.$b.tri = lib.qq(w('bottom-btn-tri'), $box); lib.each(lib.q(w('bottom-item'), $box), function(v, i) { v.onclick = E.e(data.bottom[i], i, v) }); var sitetype = userConfig.global.sitetype; if (sitetype == 'siteapp' || sitetype == 'lightapp' || sitetype == 'youhui') { if (userConfig.global.layout == 'show') { doc.body.style.paddingBottom = SELF_CONFIG.bottom.h + 'px' } } else if (userConfig.global.sitetype == 'mobcard') { R.hideMobcardToolBar(); R.hideMobcardBackcall() } }; R.hide = function() { var _str = html.hide.box(); if (_str == '') { return false } var $box = doc.createElement('div'); $box.className = w('hide-box'); $box.innerHTML = _str; doc.body.appendChild($box); R.$hide.box = $box; var $list = lib.qq(w('hide-list'), $box); lib.each($list.children[0].children, function(v, i) { if (v.className.indexOf('hide-item-' + i) > 0) { v.onclick = E.e(data.bottom[i], i, v) } }); R.$hide.list = $list; var $btn = lib.qq(w('hide-btn'), $box); $btn.onclick = E.hide['switch'](); var $tri = lib.qq(w('hide-tri'), $box); var _ua = lib.ua(); if (_ua.win) { if (_ua.g) { $tri.style.bottom = '-12px' } else if (_ua.ff) { $tri.style.bottom = '-13px' } else if (_ua.ie) { $tri.style.bottom = '-13px' } } else if (_ua.android) { if (_ua.uc && _ua.mi_1) { $tri.style.bottom = '-12px' } } if (lib.isQuirky()) { $tri.style.bottom = '-9px' } if (userConfig.global.sitetype == 'mobcard') { R.hideMobcardToolBar(); R.hideMobcardBackcall() } }; R.side = function() { var _str = html.side.box(); if (!_str) return false; var $box = doc.createElement('div'); $box.className = w('side-box'); $box.innerHTML = _str; doc.body.appendChild($box); R.$side = $box; if (data.side_t) { var $t = lib.qq(w('side-box-t')); if ($t) { $t.style.border = '1px solid ' + css.dark_c2; $t.onclick = E.e(data.side_t); R.$side_t = $t } } if (data.side_b) { var $b = lib.qq(w('side-box-b')); if ($b) { $b.style.border = '1px solid ' + css.dark_c2; $b.onclick = E.e(data.side_b); R.$side_b = $b } } }; R.popup = function() { if (!data.popup) return; var $box = doc.createElement('div'); $box.style.display = 'none'; $box.className = w('popup-box'); $box.innerHTML = html.popup.box(); doc.body.appendChild($box); R.$popup = $box; E.popup.tick(); var $conv = lib.qq(w('popup-conv-btn'), $box); if ($conv) { $conv.onclick = E.e(data.popup, undefined, { popup: true }) } var $close = lib.qq(w('popup-close-btn'), $box); if ($close) { $close.onclick = E.popup.close } var $cancel = lib.qq(w('popup-cancel-btn'), $box); if ($cancel) { $cancel.onclick = E.popup.close } }; R.hideAll = function() { lib.each(R._map, function(v) { v && v.close && v.close() }); lib.each(R.$bkcall, function(v) { dom.hide(v) }); lib.each(R.$contact, function(v) { dom.hide(v) }); dom.hide(R.$hide.list); dom.hide(R.$popup); dom.hide(R.$side) }; R.showAll = function() { dom.show(R.$side); E.popup.tick() }; R.hideMobcardToolBar = function() { var $toolBar = document.getElementById('toolBar'); if ($toolBar) { $toolBar.style.display = 'none' } }; R.hideMobcardBackcall = function() { var $backcall = document.getElementById('backCall') }; var log = {}; log._ = function(t, data) { log.mb.touch(t, data); log.hm.touch(t, data); if (userConfig.global.sitetype == 'siteapp') { log.siteapp.touch(t, data) } else if (userConfig.global.sitetype == 'mobcard') { log.mobcard.touch(t, data) } else {} }; log.referer = (function() { var r = doc.referrer; if (!r) return ''; return decodeURIComponent(doc.referrer) })(); log.rf = (function() { var r = doc.referrer; if (!r) return null; return lib.parseURL(r) })(); log.wd = (function() { var o = log.rf || {}; if (o.host != 'www.baidu.com' && o.host != 'm.baidu.com') { return '' } var p = lib.parseQuery(o.query || ''); return decodeURIComponent(p.word || p.wd || '') })(); log.query = (function() { var u = lib.parseURL(win.location.href) || {}; return lib.parseQuery(u.query || '') })(); log.first = (function() { var r = log.rf; if (!r) return '1'; var u = lib.parseURL(win.location.href); if (u && u.host && u.host == r.host) { return '0' } return '1' })(); log.share = function(k) { if (!win.ConversionShareData) { return false } return win.ConversionShareData[k] || false }; log.mb = { base: '', touch: function(t, data) { data = data || {}; var fst = (t == 'pv') ? log.first : 0; var p = lib.param({ uid: userInfo.uid || 0, sid: userInfo.sid || 0, f: 'conversion', t: t || '', wd: log.wd, clickid: userCookie.clickid, first: fst }); if (data.phone) { p += '&phone=' + encodeURIComponent(data.phone) } lib.touchUrl(log.mb.base + p) } }; log.hm = { base: 'http://hm.baidu.com/', ep: { chat: 1, tel: 2, map: 3, sms: 4, backcall: 5, share: 6, contact: 7, formCollect: 8 }, touch: function(t, data) { if (t == 'pv') { return false } var p1 = lib.param({ si: log.share('hmSign') || userInfo.hmCode, et: 93, ep: log.hm.ep[t], nv: 0, st: 4, v: 'transplat-1.0', rnd: lib.rnd() }); var p2 = lib.param({ si: log.share('hmSign') || userInfo.hmCode, et: 97, ep: log.hm.ep[t], nv: 0, st: 4, v: 'siteapp-1.0', rnd: lib.rnd() }); lib.touchUrl(log.hm.base + 'hm.gif?' + p1); if (userConfig.global.sitetype == 'siteapp') {} } }; log.siteapp = { base: 'http://img.siteapp.baidu.com/static/appui/tj.gif?', acMap: { 'tong': 'st', 'brg': 'sq', '53kf': 'kf', 'backcall': 'lxb' }, touch: function(t, data) { if (t == 'pv') { return false } data = data || {}; var coord = data.coord || 'bottom'; var p = lib.param({ r: lib.rnd(), tj: 'yiliao', ac: log.siteapp.acMap[data.type] || t, coord: coord, referer: log.referer, pcHost: encodeURIComponent(log.query.host || ''), appid: log.share('appid') || 0, userId: userInfo.uid || 0, pcUrl: encodeURIComponent(log.query.src || '') }); if (data.phone) { p += '&phone=' + encodeURIComponent(data.phone) } lib.touchUrl(log.siteapp.base + p) } }; log.mobcard = (function() { var base = 'http://mobi.baidu.com/mobcardbgstat/img.php?'; var adParam = ''; var getQuery = function() { var url = window.location.search; var ret = {}; if (url.indexOf('?') < 0) { return ret } url = url.substr(1); var arr = url.split('&'); for (var i = 0; i < arr.length; i++) { var kv = arr[i].split('='); if (kv[0]) { ret[kv[0]] = kv[1] || '' } } return ret }; var initAdParam = function() { var query = getQuery(); if (query.ecom_ad !== '') { return } var key = ['srchid', 'uid', 'shwrk', 'cmatch', 'w']; var p = ''; for (var i = 0; i < key.length; i++) { var k = key[i]; if (query[k]) { p += k + '=' + query[k] + '&' } else { return } } var jump = query.jump ? (parseInt(query.jump) + 1) : 1; adParam = p + 'ecom_ad&jump=' + jump }; var touch = function(t, data) { data = data || {}; if (t == 'pv') { return } else if (t == 'tel') { t = 'phone' } else if (t == 'chat') { t = 'online' } else if (t == 'map') {} var p = lib.param({ uid: window.guid || 0, cid: window.gcid || 0, type: t }); if (data.phone) { p += '&phone=' + encodeURIComponent(data.phone) } if (adParam) { p += '&' + adParam } lib.touchUrl(log.mb.base + p) }; initAdParam(); return { adParam: adParam, touch: touch } })(); var self = {}; self.canRender = function() { return (log.query.no_conversion_comp != 'yes') }; self.isBottomShow = function() { return (userConfig.global.layout == 'show') }; self.appendStyle = function() { var $style = doc.createElement('style'); $style.type = 'text/css'; try { $style.innerHTML = style } catch (e) { $style.styleSheet.cssText = style } dom.head.appendChild($style) }; self.renderComp = function() { self.isBottomShow() ? R.bottom() : R.hide(); R.side(); R.popup() }; self.reRender = function() { if (R.$b) { lib.removeElem(R.$b.box) } if (R.$hide) { lib.removeElem(R.$hide.box) } self.isBottomShow() ? R.bottom() : R.hide() }; self.loadShare = function() { if (self.loadShareFn) { setTimeout(self.loadShareFn, 10); self.loadShareFn = null } }; self.loadMap = function() { if (self.__loadMap) { return true } lib.loadJs(SELF_CONFIG.map.apiUrl); self.__loadMap = true }; self.init = function() { if (!self.canRender()) { return false } self.appendStyle(); self.renderComp(); E.bindReWin(); log._('pv') }; self.init() })(window, document);
咨询热线 13511906270