徐总多门店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
16 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-18b58bf3"],{1521:function(t,e,r){},"2bd8":function(t,e,r){},"3dda":function(t,e){},"433f":function(t,e,r){t.exports=r.p+"view_admin/img/sw.95ce5637.jpg"},"43c7":function(t,e,r){"use strict";r("1521")},"59da":function(t,e,r){t.exports=r.p+"view_admin/img/logo-dark.50571f26.png"},d666:function(t,e,r){"use strict";r.r(e);var n=r("42e3"),i=r("3dda"),o=r.n(i),a=r("d708"),s=r("c276"),c=r("d044"),u=r.n(c);function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */f=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var o=e&&e.prototype instanceof w?e:w,a=Object.create(o.prototype),s=new O(n||[]);return i(a,"_invoke",{value:S(t,r,s)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",m="suspendedYield",v="executing",y="completed",g={};function w(){}function b(){}function x(){}var _={};u(_,a,(function(){return this}));var k=Object.getPrototypeOf,C=k&&k(k(K([])));C&&C!==r&&n.call(C,a)&&(_=C);var I=x.prototype=w.prototype=Object.create(_);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(i,o,a,s){var c=p(t[i],t,o);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==l(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function S(e,r,n){var i=d;return function(o,a){if(i===v)throw Error("Generator is already running");if(i===y){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=$(s,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=v;var u=p(e,r,n);if("normal"===u.type){if(i=n.done?y:m,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function $(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,$(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function K(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(l(e)+" is not iterable")}return b.prototype=x,i(I,"constructor",{value:x,configurable:!0}),i(x,"constructor",{value:b,configurable:!0}),b.displayName=u(x,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,u(t,c,"GeneratorFunction")),t.prototype=Object.create(I),t},e.awrap=function(t){return{__await:t}},L(E.prototype),u(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new E(h(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(I),u(I,c,"Generator"),u(I,a,(function(){return this})),u(I,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=K,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;T(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:K(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function h(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function p(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){h(o,n,i,a,s,"next",t)}function s(t){h(o,n,i,a,s,"throw",t)}a(void 0)}))}}var d={mixins:[o.a],data:function(){return{roterPre:a.a.roterPre,fullWidth:document.documentElement.clientWidth,swiperOption:{pagination:".swiper-pagination",autoplay:!0},modals:!1,autoLogin:!0,copyrightContext:"",copyrightImage:"",imgcode:"",formInline:{username:"",password:"",code:""},ruleInline:{username:[{required:!0,message:"请输入客服账号",trigger:"blur"}],password:[{required:!0,message:"请输入客服密码",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}]},errorNum:0,jigsaw:null,login_logo:"",swiperList:[],defaultSwiperList:r("433f"),loginType:0,codeKey:"",scanTime:"",rxpired:!1,isMobile:!1,version:"",isScan:!1,timeNum:0}},created:function(){var t=this;Object(n.p)().then((function(e){t.version=e.data.version,e.data.site_name&&(document.title=e.data.site_name)})),this.isMobile=this.$store.state.admin.layout.isMobile;var e=this;top!=window&&(top.location.href=location.href),document.onkeydown=function(t){"login"===e.$route.name&&13===window.event.keyCode&&e.handleSubmit("formInline")},window.addEventListener("resize",this.handleResize),this.getKefuCopy()},watch:{fullWidth:function(t){if(!this.timer){this.screenWidth=t,this.timer=!0;var e=this;setTimeout((function(){e.timer=!1}),400)}},$route:function(t){this.captchas()}},mounted:function(){this.captchas()},methods:{getKefuCopy:function(){var t=this;Object(n.q)().then((function(e){t.copyrightContext=e.data.copyrightContext,t.copyrightImage=e.data.copyrightImage||r("59da")}))},bindScan:function(){this.isScan||(this.isScan=!0,this.getSanCodeKey()),this.loginType=1},creatQrCode:function(){var t="".concat(window.location.protocol,"//").concat(window.location.host,"/pages/users/scan_login/index?key=").concat(this.codeKey);new u.a(this.$refs.qrCodeUrl,{text:t,width:160,height:160,colorDark:"#000000",colorLight:"#ffffff",correctLevel:u.a.CorrectLevel.H})},closeModel:function(){var t=this,e=this.$Message.loading({content:"登录中...",duration:0});Object(n.a)({account:this.formInline.username,password:this.formInline.password,imgcode:this.formInline.code}).then(function(){var r=p(f().mark((function r(n){var i;return f().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e(),i=t.getExpiresTime(n.data.exp_time),s.a.cookies.setKefu("uuid",n.data.kefuInfo.uid,{expires:i}),s.a.cookies.setKefu("token",n.data.token,{expires:i}),s.a.cookies.setKefu("expires_time",n.data.exp_time,{expires:i}),s.a.cookies.setKefu("kefuInfo",n.data.kefuInfo,{expires:i}),r.next=8,t.$store.dispatch("admin/db/database",{user:!0});case 8:if(r.sent,!t.$store.state.admin.layout.isMobile){r.next=13;break}return r.abrupt("return",t.$router.replace({path:t.$route.query.redirect||"".concat(a.a.routePreKF,"/mobile_list")}));case 13:return r.abrupt("return",t.$router.replace({path:t.$route.query.redirect||"".concat(a.a.routePreKF,"/pc_list")}));case 14:case"end":return r.stop()}}),r)})));return function(t){return r.apply(this,arguments)}}()).catch((function(r){e();var n=void 0===r?{}:r;t.errorNum++,t.captchas(),t.$Message.error(n.msg||"登录失败"),t.jigsaw&&t.jigsaw.reset()}))},getExpiresTime:function(t){var e=Math.round(new Date/1e3);return parseFloat(parseFloat(parseFloat((t-e)/60)/60)/24)},closefail:function(){this.jigsaw&&this.jigsaw.reset(),this.$Message.error("校验错误")},handleResize:function(t){this.fullWidth=document.documentElement.clientWidth},captchas:function(){this.imgcode=a.a.apiBaseURL+"/captcha_pro?"+Date.parse(new Date)},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){t&&e.closeModel()}))},getSanCodeKey:function(){var t=this;Object(n.m)().then((function(e){t.codeKey=e.data.key,t.creatQrCode(),t.scanTime=setInterval((function(){t.timeNum++,t.timeNum>=60?(t.timeNum=0,window.clearInterval(t.scanTime),t.rxpired=!0):t.getScanStatus()}),1e3)})).catch((function(e){t.timeNum=0,window.clearInterval(t.scanTime),t.rxpired=!0,t.$Message.error(e.msg)}))},getScanStatus:function(){var t=this;Object(n.K)(this.codeKey).then(function(){var e=p(f().mark((function e(r){var n;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0==r.data.status&&(t.timeNum=0,window.clearInterval(t.scanTime),t.rxpired=!0),r.data.status,3!=r.data.status){e.next=17;break}return window.clearInterval(t.scanTime),n=t.getExpiresTime(r.data.exp_time),s.a.cookies.setKefu("uid",r.data.kefuInfo.uid,{expires:n}),s.a.cookies.setKefu("token",r.data.token,{expires:n}),s.a.cookies.setKefu("expires_time",r.data.exp_time,{expires:n}),s.a.cookies.setKefu("kefuInfo",JSON.stringify(r.data.kefuInfo),{expires:n}),e.next=11,t.$store.dispatch("admin/db/database",{user:!0});case 11:if(e.sent,!t.$store.state.admin.layout.isMobile){e.next=16;break}return e.abrupt("return",t.$router.replace({path:t.$route.query.redirect||"".concat(a.a.routePreKF,"/mobile_list")}));case 16:return e.abrupt("return",t.$router.replace({path:t.$route.query.redirect||"".concat(a.a.routePreKF,"/pc_list")}));case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Modal.error({title:"提示",content:e.msg}),t.timeNum=0,window.clearInterval(t.scanTime),t.rxpired=!0}))},bindRefresh:function(){this.$refs.qrCodeUrl.innerHTML="",this.rxpired=!1,this.getSanCodeKey()}},beforeCreate:function(){},beforeDestroy:function(){this.timeNum=0,this.$refs.qrCodeUrl.innerHTML="",window.clearInterval(this.scanTime),window.removeEventListener("resize",this.handleResize)}},m=(r("d7ce"),r("43c7"),r("2877")),v=Object(m.a)(d,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"wrapper-box"},[e("div",{staticClass:"page-account kf"},[e("div",{staticClass:"content"},[e("img",{attrs:{src:t.copyrightImage,alt:""}}),t._m(0)]),e("img",{staticClass:"copyImg",attrs:{src:t.copyrightImage,alt:""}}),e("div",{staticClass:"container",class:[t.fullWidth>768?"containerSamll":"containerBig"]},[e("div",{staticClass:"index_from page-account-container"},[e("div",{style:{display:t.loginType?"none":"block"}},[t._m(1),e("Form",{ref:"formInline",attrs:{model:t.formInline,rules:t.ruleInline},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleSubmit("formInline")}}},[e("FormItem",{attrs:{prop:"username"}},[e("Input",{attrs:{type:"text",placeholder:"请输入客服账号",size:"large"},model:{value:t.formInline.username,callback:function(e){t.$set(t.formInline,"username",e)},expression:"formInline.username"}})],1),e("FormItem",{attrs:{prop:"password"}},[e("Input",{attrs:{type:"password",placeholder:"请输入客服密码",size:"large"},model:{value:t.formInline.password,callback:function(e){t.$set(t.formInline,"password",e)},expression:"formInline.password"}})],1),e("FormItem",[e("Button",{staticClass:"btn",attrs:{type:"primary",long:"",size:"large"},on:{click:function(e){return t.handleSubmit("formInline")}}},[t._v(t._s(t.$t("page.login.submit"))+"\n ")])],1)],1),t.isMobile?t._e():e("div",{staticClass:"qh_box",on:{click:t.bindScan}},[e("span",{staticClass:"iconfont iconerweima2"})])],1),e("div",{style:{display:t.loginType?"block":"none"}},[t._m(2),e("div",{staticClass:"code-box"},[e("div",{ref:"qrCodeUrl",staticClass:"qrcode"}),e("div",{directives:[{name:"show",rawName:"v-show",value:t.rxpired,expression:"rxpired"}],staticClass:"rxpired-box"},[e("p",[t._v("已过期")]),e("Button",{attrs:{type:"primary"},on:{click:t.bindRefresh}},[t._v("点击刷新")])],1)]),e("div",{staticClass:"qh_box",on:{click:function(e){t.loginType=0}}},[e("span",{staticClass:"iconfont iconzhanghaomima"})])])])])]),t.copyrightContext?e("div",{staticClass:"foot-box"},[t._v(t._s(t.copyrightContext))]):e("div",{staticClass:"foot-box"},[t._v("Copyright © 2014-2024 "),e("a",{staticClass:"infoUrl",attrs:{href:"https://www.RENZHOU.com",target:"_blank"}},[t._v(t._s(t.version))])])])}),[function(){var t=this._self._c;return t("div",{staticClass:"desc"},[t("p",{staticClass:"tit"},[this._v("让客户服务如此简单")]),t("p",{staticClass:"kefu"},[this._v("专业客服系统"),t("br"),this._v("助力企业打造一流的服务体验")])])},function(){var t=this._self._c;return t("div",{staticClass:"page-account-top"},[t("div",{staticClass:"page-account-top-logo"},[this._v("客服登录")])])},function(){var t=this._self._c;return t("div",{staticClass:"page-account-top"},[t("div",{staticClass:"page-account-top-logo"},[this._v("微信扫码登录")])])}],!1,null,"8eff8156",null);e.default=v.exports},d7ce:function(t,e,r){"use strict";r("2bd8")}}]);