function _defineProperty(e, t, i) { return t in e ? Object.defineProperty(e, t, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = i, e } var _extends = Object.assign || function (e) { for (var t = 1; t < arguments.length; t++) { var i = arguments[t]; for (var r in i) Object.prototype.hasOwnProperty.call(i, r) && (e[r] = i[r]) } return e }; Vue.prototype.$ELEMENT = { size: "small" }; var apiPrefix = "", DEFAULT_FORM = { type: 2, board_type: "FR-4锛堝叏娉㈢氦锛?, blayer: 2, board_tg: "", units: 1, cross_board: 1, pbnum: 1, layouty: null, layoutx: null, bwidth: null, blength: null, bcount: "", sidedirection: "鏃?, sidewidth: 0, bheight: 1.6, copper: 1, insidecopper: .5, lineweight: 6, vias: .3, color: "缁胯壊", charcolor: "鐧借壊", zfcolorgy:"", cover: "杩囧瓟鐩栨补", spray: "鏈夐搮鍠烽敗", cjh: 1, impendance: 0, impendance_report: 0, beveledge: 0, bankong: 0, blind: 0, test: "鏍峰搧鍏嶈垂娴嬭瘯", testpoint: 0, produce_file: 0, invoice: "涓嶉渶瑕?, delivery_note: "鏃犻渶", report: "", deltime: "", bga: 0, zknum: 0, province: "", city: "", express: "", note: "", label_remark: "", heat_factor: "1.0W", stiffeners: "鏃?, coverlay: "榛勮壊", pcbfile: "", quote_type: 2, email: paramsData.frame.site_email || "", setwidth: 0, setlength: 0 }; window.vm = new Vue({ el: "#main", data: function () { return { dfm: !1, opt_index: 0, opt_type: 1, opt_hash: "", shipRecommend: "", unitsTips: "", cancelComputePrice: null, panelActives: ["宸ヨ壓", "鐗规畩", "鏈嶅姟"], form: _extends({}, DEFAULT_FORM), fileStep: "upload", parser: { analyze_id: "", status: "", result: "", countDown: 10, current: "", data: { items: [], key: "", result: {} }, successTip: !1 }, price: {}, quantity: { options: [], otherValue: null }, testOptions: [{ word: "鏍峰搧鍏嶈垂", real: "鏍峰搧鍏嶈垂娴嬭瘯" }], deltimeOptions: [], province: { options: [], value: 0 }, city: { options: [], value: 0 }, express: { options: [], value: 0 }, loading: { params: !1 }, visible: { priceDetail: !1 }, weight: 0, stiffenersOptions: ["鏃?, "閽㈢墖", "FR4", "PI", "鑳剁焊", "瀵肩數鑳?, "鐢电鑶?], logoutPhoneNumber: null, inputDebounce: null } }, computed: { "鑷姩璁′环瀛楁": function () { var e = ["blayer", "bcount", "units", "cross_board", "board_tg", "layoutx", "layouty", "sidedirection", "sidewidth", "copper", "insidecopper", "bheight", "lineweight", "vias", "color", "charcolor", "cover", "spray", "cjh", "impendance", "impendance_report", "beveledge", "bankong", "produce_file", "invoice", "delivery_note", "report", "zknum", "testpoint", "blind"], t = {}, i = !0, r = !1, o = void 0; try { for (var s, a = e[Symbol.iterator](); !(i = (s = a.next()).done); i = !0) { var n = s.value; t[n] = this.form[n] } } catch (l) { r = !0, o = l } finally { try { !i && a["return"] && a["return"]() } finally { if (r) throw o } } return t }, "闃叉姈瀛楁": function () { var e = ["bwidth", "blength"], t = {}, i = !0, r = !1, o = void 0; try { for (var s, a = e[Symbol.iterator](); !(i = (s = a.next()).done); i = !0) { var n = s.value; t[n] = this.form[n] } } catch (l) { r = !0, o = l } finally { try { !i && a["return"] && a["return"]() } finally { if (r) throw o } } return t }, ljbTestOptions: function () { var e = this, t = void 0; return t = this.area <= 5 ? [{ word: "鐩祴锛堝厤璐癸級", real: "鐩祴" }, { word: "AOI+100%椋為拡娴嬭瘯", real: "鎵归噺椋炴祴" }] : [{ word: "AOI+100%椋為拡娴嬭瘯", real: "鎵归噺椋炴祴" }, { word: "AIO+宸ョ▼娴嬭瘯鏋?, real: "鎵归噺娴嬭瘯鏋舵祴璇? }], this.$nextTick(function () { e.form.test = t[0].real }), t }, area: function () { return this.form.blength * this.form.bwidth * this.form.bcount / 1e4 }, isFR4: function () { return "FR-4锛堝叏娉㈢氦锛? == this.form.board_type }, isFPC: function () { return "FPC" == this.form.board_type }, "is閾濆熀鏉?: function () { return "閾濆熀鏉? == this.form.board_type }, sizeLabel: function () { var e = "鍗曠墖灏哄"; return 3 == this.form.units && (e = "杩炵墖灏哄"), e }, unitName: function () { return 1 == this.form.units ? "鍗曠墖" : "杩炵墖" }, unitNameEn: function () { return 1 == this.form.units ? "Pcs" : "Set" }, setToPcsQuantity: function () { return this.form.layoutx * this.form.layouty * this.form.bcount || 0 }, manualAudit: function () { return !this.isFR4 || 1 == this.form.blind || !this.cross_boardAllowPrice }, cross_boardAllowPrice: function () { return !this.isFR4 || 1 == this.form.units || (this.area >= 3 && this.form.blayer <= 4 || 1 == this.form.cross_board) }, allowComputePrice: function () { return !!(this.isFR4 && this.form.blength && this.form.bwidth && this.form.bcount && this.cross_boardAllowPrice) || (this.dfm = !1, !1) }, visiblePcbSize: function () { return this.form.blength && this.form.bwidth }, productPrice: function () { return (this.price.total - this.price.expressage).toFixed(2) }, customer_limit: function () { return this.form.blayer <= 2 ? 10 : 4 == this.form.blayer ? 5 : 6 == this.form.blayer ? 3 : 0 } }, watch: { "鑷姩璁′环瀛楁": { deep: !0, handler: function (e) { var t = this; this.computePrice(), this.loading.params = !0, setTimeout(function () { t.loading.params = !1 }, 200) } }, "闃叉姈瀛楁": { deep: !0, handler: function () { var e = this; clearTimeout(this.inputDebounce), this.inputDebounce = setTimeout(function () { e.computePrice() }, 250) } }, "form.board_type": { handler: function (e) { "FR-4锛堝叏娉㈢氦锛? != e && (this.form.units = 1), "閾濆熀鏉? == e && (this.form.test = "鎵归噺椋炴祴") } }, "form.bcount": "getExpressOptions", "form.blayer": "getExpressOptions", "form.layoutx": "resetGraphical", "form.layouty": "resetGraphical", "form.bwidth": "resetGraphical", "form.blength": "resetGraphical", "form.color": function () { this.opt_hash = "", this.opt_type = 1 }, "form.deltime": function (e) { for (var t = this.deltimeOptions, i = 0; t[i]; i++)if (t[i].name === e) { this.opt_index = i, this.opt_type = t[i].type, this.opt_hash = t[i].hash, this.form.color = t[i].color, this.form.bcount = t[i].bcount, this.form.bheight = t[i].bheight; break } } }, created: function () { this.init() }, mounted: function () { this.sendPageHeight() }, updated: function () { this.sendPageHeight() }, methods: { sendPageHeight: function () { paramsData.frame.site && paramsData.frame.site_url && top != self && top.postMessage({ type: "setHeight", data: $("#main .c--container").height() }, paramsData.frame.site_url) }, back_smt: function () { top.postMessage('{"type":"back","value":"2"}', paramsData.frame.site_url) }, init: function () { function e(e, t, i) { var r = [], o = !0, s = !1, a = void 0; try { for (var n, l = Object.keys(e)[Symbol.iterator](); !(o = (n = l.next()).done); o = !0) { var u = n.value, c = {}; c[t] = Number(u), c[i] = e[u], r.push(c) } } catch (h) { s = !0, a = h } finally { try { !o && l["return"] && l["return"]() } finally { if (s) throw a } } return r } this.resetPrice(); var t = getUrlParam("orderid"), i = getUrlParam("id"); if (t) this.getResubmitDetail(t, "orderid"); else if (i) this.getResubmitDetail(i, "quoteid"); else { var r = ["width", "length", "count", "layer", "height"], o = !0, s = !1, a = void 0; try { for (var n, l = r[Symbol.iterator](); !(o = (n = l.next()).done); o = !0) { var u = n.value, c = getUrlParam(u); c && c > 0 && (this.form["b" + u] = Number(c)) } } catch (h) { s = !0, a = h } finally { try { !o && l["return"] && l["return"]() } finally { if (s) throw a } } } this.quantity.options = serviceRenderOptions.quantity, this.province.options = e(serviceRenderOptions.province, "id", "name"), this.city.options = e(serviceRenderOptions.city, "region_id", "region_name"), this.express.options = serviceRenderOptions.express, this.province.value = paramsData.province, this.city.value = paramsData.city, this.express.value = paramsData.express }, resetGraphical: function () { vm.unitsTips = ""; var e = vm.form; "smt" == paramsData.frame.site && e.bwidth && e.blength && (e.bwidth < 5 || e.blength < 5) && (e.sidewidth = 5, e.sidedirection = "XY", 2 != e.units && (vm.unitsTips = "鍗曠墖灏哄澶皬锛屽缓璁繛鐗?)), this.computedTypeRules(), this.getExpressOptions() }, computedTypeRules: function () { var e = vm.form; "Y" == e.sidedirection || "XY" == e.sidedirection ? (e.setlength = e.blength * e.layoutx + 2 * e.sidewidth / 10, console.log(e.setlength)) : e.setlength = e.blength * e.layoutx, "X" == e.sidedirection || "XY" == e.sidedirection ? e.setwidth = e.bwidth * e.layouty + 2 * e.sidewidth / 10 : e.setwidth = e.bwidth * e.layouty }, resetForm: function () { this.form = 缁欏璞″睘鎬ц祴鍊糱y鍙︿竴涓璞?{ target: this.form, source: DEFAULT_FORM }), this.deltimeOptions = [] }, resetPrice: function () { var e; this.price = (e = { banfee: 0, zkfee: 0, bankongfee: 0, bgafee: 0, clc: 0, colorfee: 0, copperfee: 0, discount: 0, gch: 0, impendancefee: 0, m: 0, weight: 0, pin: 0, plate: 0, cjfee: 0, sprayfee: 0 }, _defineProperty(e, "colorfee", 0), _defineProperty(e, "testfee", 0), _defineProperty(e, "viasfee", 0), _defineProperty(e, "invoicefee", 0), _defineProperty(e, "extraurgentfee", 0), _defineProperty(e, "expressage", 0), _defineProperty(e, "total", 0), _defineProperty(e, "webpay", 0), _defineProperty(e, "reduce", 0), _defineProperty(e, "origin_webpay", 0), _defineProperty(e, "order_discount_str", ""), _defineProperty(e, "discount_str", ""), _defineProperty(e, "discount_amount", 0), _defineProperty(e, "prod_price", 0), _defineProperty(e, "shipdate", ""), _defineProperty(e, "recvdate", ""), _defineProperty(e, "next_discount", { difference: "", discount: 0 }), _defineProperty(e, "reportfee", 0), _defineProperty(e, "first_order_discount", 0), e), this.dfm = !1 }, resetUpload: function () { var e = this; this.resetForm(), this.resetPrice(), this.$refs.uploader.reset(), setTimeout(function () { e.$message.success("閲嶇疆鎴愬姛") }, 200) }, getResubmitDetail: function (e, t) { this.form = 缁欏璞″睘鎬ц祴鍊糱y鍙︿竴涓璞?{ target: this.form, source: window.serviceQuote || {} }), "orderid" === t && (this.form.orderid = e); var i = ["blayer", "units", "layoutx", "layouty", "sidewidth", "copper", "insidecopper", "bheight", "lineweight", "vias", "cjh", "impendance", "beveledge", "bankong", "fhp", "sh", "fh", "ulmark", "package", "leadtime", "id", "cross_board", "blind"], r = !0, o = !1, s = void 0; try { for (var a, n = i[Symbol.iterator](); !(r = (a = n.next()).done); r = !0) { var l = a.value; void 0 !== this.form[l] && (this.form[l] = Number(this.form[l])) } } catch (u) { o = !0, s = u } finally { try { !r && n["return"] && n["return"]() } finally { if (o) throw s } } }, handleSideChange: function (e) { var t = e.direction, i = e.width; this.form.sidedirection = t, this.form.sidewidth = i, this.computedTypeRules() }, useOtherQuantity: function () { var e = ($(".input-quantity :text"), this.quantity.otherValue); if (e > 0) { if (e % 5 != 0) { this.$message.error("杈撳叆鏁伴噺蹇呴』鏄?鐨勫€嶆暟锛?) } else { var t = 0, t = parseInt(vm.customer_limit), i = parseInt(1e4 * t / (vm.form.bwidth * vm.form.blength)); (vm.form.bcount = e, this.computePrice(), this.$refs.quantitySelect.blur()) } } else this.$message.error("璇疯緭鍏ュ叾瀹冩暟閲?) }, onTestChange: function (e) { this.form.test = e, this.computePrice() }, onUserSelectDeltime: function (e) { this.setDeltime(e), this.computePrice() }, setDeltime: function (e) { this.form.deltime = e; var t = this.deltimeOptions.find(function (t) { return t.name == e }), i = t.color, r = t.bheight; this.form.color = i, this.form.bheight = r }, getExpressOptions: function () { var e = this; this.express.options = []; var t = this.express.value; this.express.value = 0, this.form.type = 2; var i = "/public/ajax_get_express", r = this.buildParams(this.form, { html: 0 }); axios.post(i, r).then(function (i) { for (var r = i.data.list, o = 0; r[o]; o++)if (r[o].shipping_id === t) { e.express.value = t, e.onExpressChange(); break } e.express.options = r }) }, getCityOptions: function () { var e = this; this.city.options = [], this.city.value = null, console.log("鑾峰彇鍩庡競閫夐」锛?); var t = "/public/ajax_get_region", i = { parent_id: this.province.value, html: 0 }; axios.get(t, { params: i }).then(function (t) { e.city.options = t.data.list, e.getExpressOptions() }) }, onProvinceChange: function () { this.getCityOptions() }, onCityChange: function () { this.getExpressOptions() }, onExpressChange: function () { this.form.type = 1, this.computePrice() }, changeAnalyzeFile: function (e, t) { $(t.target).addClass("active").siblings().removeClass("active"), this.parser.current = e, 1 == this.parser.data.items[e].status && this.getAnalyzeFile(e) }, onFileUploadSuccess: function (e) { var t = this, i = e.filePath, r = e.analyze_id; this.form.pcbfile = i, this.fileStep = "parse", this.parser.status = "progress", this.parser.analyze_id = r, r ? this.getAnalyzeFile() : setTimeout(function () { t.$message.error("瑙f瀽澶辫触锛岃绋嶅悗鍒锋柊閲嶈瘯"), t.fileStep = "upload" }, 500) }, getAnalyzeFile: function (e) { var t = this, i = "/ajax/fileAnalyzeResult"; void 0 !== e && (i += "?key=" + e); var r = toWwwFormUrlencoded({ analyze_id: this.parser.analyze_id }), o = setInterval(function () { axios.post(i, r).then(function (e) { var i = e.data.code; if (200 == i) { clearInterval(o), t.parser.data = e.data.data, t.parser.current = e.data.data.key; var r = e.data.data.result; 3 == r.blayer && (r.blayer = 4), t.form = 缁欏璞″睘鎬ц祴鍊糱y鍙︿竴涓璞?{ target: t.form, source: r }), t.parser.status = "completed", t.parser.result = "success" } i < 105 && (clearInterval(o), t.fileStep = "upload", 102 == e.data.code ? t.$alert("鍙傛暟瑙f瀽澶辫触锛屾枃浠跺ぇ銆佺綉缁滄參 銆佹枃浠跺唴鏈夐潪娉曞弬鏁扮瓑閮戒細閫犳垚瑙f瀽澶辫触锛岃鎮ㄦ墜鍔ㄩ€夋嫨鐩稿叧鍙傛暟銆傦紙瑙f瀽澶辫触涓嶅奖鍝嶆偍璁㈠崟鎻愪氦锛?, "閿欒鎻愮ず", { lockScroll: !1, confirmButtonText: "纭畾" }) : t.$alert("鍙傛暟瑙f瀽澶辫触锛屾枃浠跺ぇ銆佺綉缁滄參 銆佹枃浠跺唴鏈夐潪娉曞弬鏁扮瓑閮戒細閫犳垚瑙f瀽澶辫触锛岃鎮ㄦ墜鍔ㄩ€夋嫨鐩稿叧鍙傛暟銆傦紙瑙f瀽澶辫触涓嶅奖鍝嶆偍璁㈠崟鎻愪氦锛?, "閿欒鎻愮ず", { lockScroll: !1, confirmButtonText: "纭畾" })) }) }, 1500) }, buildParams: function (e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, i = e.units, r = e.layoutx, o = e.layouty, s = computePcbSize(e), a = s.length, n = s.width; 2 != i && (r = 1, o = 1), 3 == i && (i = 2); var l = _extends({}, e, { blength: a, bwidth: n, units: i, layoutx: r, layouty: o, province: this.province.value, city: this.city.value ? this.city.value : 0, express: this.express.value ? this.express.value : 0 }, t); return toWwwFormUrlencoded(l) }, computePrice: function () { var e = this; if (this.allowComputePrice) { var t = "/public/ajax_valuation", i = this.buildParams(this.form), r = axios.CancelToken; "function" == typeof this.cancelComputePrice && (this.cancelComputePrice("鍙栨秷涓婁竴娆$殑璇锋眰"), this.cancelComputePrice = null); var o = this; axios.post(t, i, { cancelToken: new r(function (e) { o.cancelComputePrice = e }) }).then(function (t) { if (t.status) { var i = t.data; i.suggest && i.suggest.dfm ? (e.dfm ? i.suggest.dfm.paystyle = e.dfm.paystyle : i.suggest.dfm.paystyle = "web", e.dfm = i.suggest.dfm) : e.dfm = !1, e.price = 缁欏璞″睘鎬ц祴鍊糱y鍙︿竴涓璞?{ target: e.price, source: i }); var r = o.opt_type; if (o.opt_hash != i.suggest.deltime[0].hash || 2 != o.opt_type) if (i.suggest.deltime[o.opt_index] && o.deltime == i.suggest.deltime[o.opt_index].name) o.opt_type = i.suggest.deltime[o.opt_index].type, o.color == i.suggest.deltime[o.opt_index].color && (r = o.opt_type), o.deltime = i.suggest.deltime[o.opt_index].name, o.opt_hash = i.suggest.deltime[o.opt_index].hash; else { o.opt_index = 0; for (var s = 0; s < i.suggest.deltime.length; s++)if (i.deltime == i.suggest.deltime[s].name) { o.opt_index = s; break } o.opt_type = i.suggest.deltime[o.opt_index].type, o.deltime = i.suggest.deltime[o.opt_index].name, o.opt_hash = i.suggest.deltime[o.opt_index].hash, r = o.opt_type } else o.deltime || (o.deltime = i.suggest.deltime[0].name); var a = !1; 2 != r && (o.deltimeOptions = i.suggest.deltime.map(function (e, t) { return 2 == e.type && (a = t), "浜氶粦" == e.color && (e.color = "浜氬厜榛戞补"), t === o.opt_index && (o.color = e.color, o.deltime = e.name), { color: e.color, name: e.name, deltime: e.name, bcount: e.bcount, bheight: e.bheight, type: e.type, fee: e.fee, hash: e.hash } }), o.deltime = i.suggest.deltime[o.opt_index].name), 1 == o.opt_type && "number" == typeof a ? o.shipRecommend = "褰撳墠涓哄喎鍋忓伐鑹猴紝浜ゆ湡闇€椤哄欢" + i.suggest.deltime[0].name + "锛屽缓璁€夋嫨" + i.suggest.deltime[a].color : o.shipRecommend = "", e.setDeltime(i.deltime), e.testOptions = i.suggest.test, e.form.test = i.test } else e.$message.error(t.msg) }) } }, onSubmit: function () { if (this.dfm && "helper" === this.dfm.paystyle) return void window.open("https://dfm.elecfans.com/uploads/software/hqdfm_jj.zip"); var e = this; _hmt.push(["_trackEvent", "绔嬪嵆涓嬪崟", "鐐瑰嚮", "鍦ㄧ嚎涓嬪崟椤甸潰鐐瑰嚮"]); var t = {}; for (var i in this.form) void 0 === this.form[i] ? t[i] = "" : t[i] = this.form[i]; t.express = this.express.value ? this.express.value : 0, t.blayer < 4 && (t.insidecopper = 0); var r = !0; t.blength > 0 && t.bheight > 0 || (this.$message.error("璇疯緭鍏ユ澘瀛愬ぇ灏?), r = !1), t.bcount <= 0 && (this.$message.error("璇疯緭鍏ユ澘瀛愭暟閲?), r = !1), 2 == t.units && t.layoutx < 2 && t.layouty < 2 && (this.$message.error("鎷肩増瑙勫垯闇€瑕佸ぇ浜?x1"), r = !1), "鏃? != t.sidedirection && (t.sidewidth < 3 ? (t.sidewidth = 3, r = !1, this.$message.error("宸ヨ壓杈规鏈€灏?mm")) : 10 * t.sidewidth % 5 != 0 && (r = !1, this.$message.error("宸ヨ壓杈规浠呮敮鎸?.5鐨勫€嶆暟锛屾瘮濡?.5, 4 , 4.5"))), this.logoutPhoneNumber || "logout" != account || (this.$message.error("璇峰~鍐欐墜鏈哄彿"), this.$refs.logoutPhoneNumber.focus(), r = !1); var o = { blayer: t.blayer, units: 0 == t.units ? "鍗曠墖鍑鸿揣" : 2 == t.units ? "鏂囦欢鍐呮槸鍗曠墖锛岄渶鎷肩増" : "鎸夋枃浠跺唴宸叉嫾鐗堣祫鏂欏嚭璐?, bwidth: t.bwidth, blength: t.blength, bcount: t.bcount, bheight: t.bheight, weight: this.price.weight, test: t.test, barea: this.price.m / 1e4, color: t.color, invoice: t.invoice, order_amount: this.price.total, leadtime: t.deltime, province: t.province, city: t.city, is_discount: 1 == this.price.discount, note: t.note, labal_note: t.label_remark, has_activity: !!this.price.discount_amount }; if (r) { var s = "/quote/save"; paramsData.stash_order && (t.site = paramsData.frame.site, t.email = t.email || paramsData.frame.site_email, t.number = paramsData.frame.site_number, s = apiPrefix + "/account/online/stash"), paramsData.frame.site_content && (s += "?content=" + encodeURIComponent(paramsData.frame.site_content)), 1 == paramsData.frame.site_frame && (t.site_frame = paramsData.frame.site_frame, t.site_url = paramsData.frame.site_url, t.site = paramsData.frame.site); var a = toWwwFormUrlencoded(t); axios.post(s, a).then(function (t) { var i = t.data; console.log(i); var r = i.error_msg; if ("successed" == i.status) { var s = i.id, a = i.error_code, n = location.origin + "/order/submit?quoteid=" + s; if (paramsData.frame.site && (n += "&site=" + paramsData.frame.site), paramsData.frame.site_content && (n += "&content=" + encodeURIComponent(paramsData.frame.site_content)), 2 == a) { var l = new LnModal, u = '璇风櫥褰曪紝鍏嶈垂娉ㄥ唽'; return l.login(u, function () { window.location.href = n }, n, { account: vm.logoutPhoneNumber }), !1 } if (a > 0) { var r = i.error_msg; r || (r = "鏈煡閿欒锛岃绋嶅悗閲嶈瘯"), i.suggest ? layer.confirm(r, { icon: 3, btn: ["鍚屾剰鍙樻洿", "涓嶅悓鎰?] }, function (t) { for (var r in i.suggest) vm.form[r] = i.suggest[r]; layer.close(t), e.onSubmit() }) : "undefined" != typeof layer ? layer.alert(r, { icon: 2 }) : alert(r) } else sensors && sensors.track("quotation", o), window.location.href = n } else if (1 == i.status) { if (i.hash) return top.postMessage('{"type":"next","value":"' + i.hash + '"}', paramsData.frame.site_url), !0; window.location.href = i.url } else { if (i.url && i.url.indexOf("/account/login") != -1) { var l = new LnModal, u = '璇风櫥褰曪紝鍏嶈垂娉ㄥ唽'; return l.login(u, function () { account = "login", e.onSubmit() }, paramsData.frame.site_referer, { account: vm.logoutPhoneNumber }), !1 } var r = i.tips ? i.tips : i.info; r || (r = "鏈煡閿欒锛岃绋嶅悗閲嶈瘯"), i.suggest ? layer.confirm(r, { icon: 3, btn: ["鍚屾剰鍙樻洿", "涓嶅悓鎰?] }, function (t) { for (var r in i.suggest) vm.form[r] = i.suggest[r]; layer.close(t), e.onSubmit() }) : layer.alert(r, { icon: 2 }) } })["catch"](function (e) { }) } } } });