(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5cef32dd"],{"2ca0":function(e,t,r){"use strict";var n=r("23e7"),a=r("06cf").f,o=r("50c4"),i=r("5a34"),s=r("1d80"),c=r("ab13"),u=r("c430"),l="".startsWith,d=Math.min,h=c("startsWith"),f=!u&&!h&&!!function(){var e=a(String.prototype,"startsWith");return e&&!e.writable}();n({target:"String",proto:!0,forced:!f&&!h},{startsWith:function(e){var t=String(s(this));i(e);var r=o(d(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return l?l.call(t,n,r):t.slice(r,r+n.length)===n}})},"498a":function(e,t,r){"use strict";var n=r("23e7"),a=r("58a8").trim,o=r("c8d2");n({target:"String",proto:!0,forced:o("trim")},{trim:function(){return a(this)}})},5530:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));r("a4d3"),r("4de4"),r("4160"),r("e439"),r("dbb4"),r("b64b"),r("159b");var n=r("ade3");function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){Object(n["a"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}},5899:function(e,t){e.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},"58a8":function(e,t,r){var n=r("1d80"),a=r("5899"),o="["+a+"]",i=RegExp("^"+o+o+"*"),s=RegExp(o+o+"*$"),c=function(e){return function(t){var r=String(n(t));return 1&e&&(r=r.replace(i,"")),2&e&&(r=r.replace(s,"")),r}};e.exports={start:c(1),end:c(2),trim:c(3)}},"62fe":function(e,t,r){"use strict";r("d81d"),r("ac1f"),r("1276"),r("96cf");var n=r("1da1"),a=r("5530"),o=r("4360"),i=r("466f"),s=r("1694"),c=r("2b0e"),u={formatOrderData:function(e,t){var r=e.Type,n=e.List,s=e.Url,c=o["a"].state.homeQueryInfo,u=c.qid,l=c.h;u&&(u=u.split(",")[0]);var d=[],h=void 0,f=!1;switch(r){case 0:d=n.map((function(e){return{Customer:e.Customer,CustomerPhone:e.CustomerPhone,InstallAddress:e.InstallAddress,Qty:e.Qty,State:e.State,Contrtcode:e.Contrtcode,Type:r,Url:s,List:e.List.map((function(r){if(u&&r.Qid===u&&(h=Object(a["a"])({},e)),t&&r.Web3dViewUrl){var n=i["a"].getUrlParameter(r.Web3dViewUrl),o=n.h;o===t&&(f=!0)}return{Code:r.Code,Customer:r.Cusname,CustomerPhone:r.Ordermobilephoe,IsConfirm:r.IsConfirm,ProductType:r.ProductType,Shopname:r.Shopname,Qid:r.Qid,Web3dViewUrl:r.Web3dviewUrl||r.Web3dViewUrl}}))}}));break;case 1:d=n.map((function(e){return{Customer:e.Customer,CustomerPhone:e.CustomerPhone,InstallAddress:e.InstallAddress,Qty:e.Qty,State:e.State,Type:r,Url:s,List:e.List.map((function(r){if(u&&r.Qid===u&&(h=Object(a["a"])({},e)),t&&r.Web3dViewUrl){var n=i["a"].getUrlParameter(r.Web3dViewUrl),o=n.h;o===t&&(f=!0)}return{Code:r.Code,Customer:r.Customer,CustomerPhone:r.CustomerPhone,IsConfirm:r.IsConfirm,ProductType:r.ProductType,Shopname:r.ShopName,Qid:r.Qid,Web3dViewUrl:r.Web3dViewUrl}}))}}));break;case 2:d=n.map((function(e){return{Customer:e.Customer,CustomerPhone:e.CustomerPhone,InstallAddress:e.InstallAddress,Qty:e.Qty,State:e.State,Type:r,Url:s,List:e.List.map((function(r){if(l&&r.HouseId===l&&(h=Object(a["a"])({},e)),t&&r.Web3dViewUrl){var n=i["a"].getUrlParameter(r.Web3dViewUrl),o=n.h;o===t&&(f=!0)}return{Code:r.Code,Customer:r.Customer,CustomerPhone:r.CustomerPhone,IsConfirm:r.IsConfirm,ProductType:r.OrderType,Shopname:r.ShopName,HouseId:r.HouseId,Web3dViewUrl:r.Web3dViewUrl,LockNum:r.LockNum,ProjectNum:r.ProjectNum}}))}}));break}return{targetOrders:h,orderList:d,isUsersDiagram:f}},checkOrderCategroy:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t,r,n){var u,l,d,h,f,m,p,v,g,b,C,$,y,I,w,P,k;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return u=r.phone,l=r.email,d=o["a"].state.homeQueryInfo,h=d.h,f=d.api,m=d.qid,p=n||h||null,v={url:t,params:{url:"".concat(c["a"].prototype.$QLY_API,"/api/hgsoftapi.aspx?method=checkordercategroy")},data:{phone:u,email:l,houseid:p,url:f,qid:m}},e.next=6,s["a"].post(v);case 6:if(g=e.sent,!g.Result||!g.Data.Model){e.next=23;break}b=g.Data,C=b.Model,$=b.Type,y={},I="",w=C.Web3dViewUrl||C.Web3dviewUrl,w&&(P=i["a"].getUrlParameter(w),k=P.h,I=k),e.t0=$,e.next=0===e.t0?16:1===e.t0?18:2===e.t0?20:22;break;case 16:return y={Customer:C.Customer,CustomerPhone:C.CustomerPhone,InstallAddress:C.InstallAddress,HouseId:I},e.abrupt("break",22);case 18:return y={Customer:C.Customer,CustomerPhone:C.CustomerPhone,InstallAddress:C.InstallAddress,HouseId:I},e.abrupt("break",22);case 20:return y={Customer:C.Customer,CustomerPhone:C.CustomerPhone,InstallAddress:C.InstallAddress,HouseId:C.HouseId||I,LockNum:C.LockNum,ProjectNum:C.ProjectNum},e.abrupt("break",22);case 22:g.Model=Object(a["a"])({},y);case 23:return e.abrupt("return",g);case 24:case"end":return e.stop()}}),e)})));function t(t,r,n){return e.apply(this,arguments)}return t}()};t["a"]=u},"8a79":function(e,t,r){"use strict";var n=r("23e7"),a=r("06cf").f,o=r("50c4"),i=r("5a34"),s=r("1d80"),c=r("ab13"),u=r("c430"),l="".endsWith,d=Math.min,h=c("endsWith"),f=!u&&!h&&!!function(){var e=a(String.prototype,"endsWith");return e&&!e.writable}();n({target:"String",proto:!0,forced:!f&&!h},{endsWith:function(e){var t=String(s(this));i(e);var r=arguments.length>1?arguments[1]:void 0,n=o(t.length),a=void 0===r?n:d(o(r),n),c=String(e);return l?l.call(t,c,a):t.slice(a-c.length,a)===c}})},be89:function(e,t,r){},c8d2:function(e,t,r){var n=r("d039"),a=r("5899"),o="​᠎";e.exports=function(e){return n((function(){return!!a[e]()||o[e]()!=o||a[e].name!==e}))}},dbb4:function(e,t,r){var n=r("23e7"),a=r("83ab"),o=r("56ef"),i=r("fc6a"),s=r("06cf"),c=r("8418");n({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(e){var t,r,n=i(e),a=s.f,u=o(n),l={},d=0;while(u.length>d)r=a(n,t=u[d++]),void 0!==r&&c(l,t,r);return l}})},dc3f:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"login"},[r("div",{staticClass:"login-wrapper"},[r("header"),r("main",[r("div",{staticClass:"iconWrapper"},[r("i",{class:["iconfont","en"===e.languageKey?"iconEmail":"iconshoujidenglu"],attrs:{languageKey:""}})]),r("p",{staticClass:"tips"},[e._v(e._s(e.$t("info.318")))]),r("div",{staticClass:"btn-wrapper"},[r("van-button",{staticClass:"active_btn",on:{click:function(t){e.showActionSheet=!0}}},[e._v(e._s("en"===e.languageKey?e.$t("info.361"):e.$t("info.319")))]),r("van-button",{on:{click:function(t){return e.$router.go(-1)}}},[e._v(e._s(e.$t("info.320")))])],1),r("div",{staticClass:"user-agreement"},[r("van-checkbox",{attrs:{shape:"square"},model:{value:e.checkedGreement,callback:function(t){e.checkedGreement=t},expression:"checkedGreement"}},[e._v(" "+e._s(e.$t("info.321"))+" "),r("span",{on:{click:function(e){e.stopPropagation()}}},[e._v(e._s(e.$t("info.322")))]),e._v(e._s(e.$t("info.323"))+" "),r("span",{on:{click:function(e){e.stopPropagation()}}},[e._v(e._s(e.$t("info.324")))])])],1)]),r("footer",{on:{click:function(t){return e.$router.go(-1)}}},[e._v(e._s(e.$t("info.325")))]),r("van-action-sheet",{attrs:{closeable:!1},model:{value:e.showActionSheet,callback:function(t){e.showActionSheet=t},expression:"showActionSheet"}},[r("div",{staticClass:"content"},[r("div",{staticClass:"top_wrapper"},[r("div",{staticClass:"close"},[r("i",{staticClass:"iconfont iconguanbi",on:{click:function(t){e.showActionSheet=!1}}})]),r("div",{staticClass:"title"},[e._v(e._s("en"===e.languageKey?e.$t("info.361"):e.$t("info.326")))]),r("div",{staticClass:"form"},[r("div",{staticClass:"phone"},[r("div",{staticClass:"label"},[e._v(e._s("en"===e.languageKey?e.$t("info.362"):e.$t("info.221")))]),"en"===e.languageKey?r("div",{staticClass:"input_wrapper"},[r("van-field",{attrs:{placeholder:e.$t("info.364"),clearable:""},model:{value:e.email,callback:function(t){e.email=t},expression:"email"}})],1):r("div",{staticClass:"input_wrapper"},[r("van-dropdown-menu",[r("van-dropdown-item",{attrs:{options:e.phoneOption},model:{value:e.dropdownValue,callback:function(t){e.dropdownValue=t},expression:"dropdownValue"}})],1),r("div",{staticClass:"line"}),r("van-field",{attrs:{placeholder:e.$t("info.327"),clearable:""},model:{value:e.phone,callback:function(t){e.phone=t},expression:"phone"}})],1)]),r("div",{staticClass:"verification_code"},[r("div",{staticClass:"label"},[e._v(e._s(e.$t("info.328")))]),r("div",{staticClass:"input_wrapper"},[r("van-field",{staticClass:"code",attrs:{center:"",placeholder:e.$t("info.329"),clearable:""},scopedSlots:e._u([{key:"button",fn:function(){return["en"===e.languageKey?r("van-button",{class:{timing:e.isStartCountdown},on:{click:e.sendEmailVerificationCode}},[e._v(" "+e._s(e.emailButtonText)+" ")]):r("van-button",{class:{timing:e.isStartCountdown},on:{click:e.sendVerificationCode}},[e._v(" "+e._s(e.codeButtonText)+" ")])]},proxy:!0}]),model:{value:e.code,callback:function(t){e.code=t},expression:"code"}})],1)])]),r("div",{staticClass:"btn_wrapper"},[r("van-button",{on:{click:e.loginIn}},[e._v(e._s(e.$t("info.182")))])],1)]),r("div",{staticClass:"dowm_wrapper"},[e._v(" "+e._s(e.$t("info.330"))+" ")])])])],1)])},a=[],o=(r("99af"),r("caad"),r("b0c0"),r("ac1f"),r("8a79"),r("2532"),r("5319"),r("1276"),r("2ca0"),r("498a"),r("96cf"),r("1da1")),i=r("3835"),s=r("5530"),c=r("2f62"),u=r("e04d"),l=r("62fe"),d={name:"login",data:function(){return{checkedGreement:!0,showActionSheet:!1,dropdownValue:0,phoneOption:[{text:"+86",value:0}],phone:"",code:"",codeButtonText:this.$t("info.331"),isStartCountdown:!1,myInterval:void 0,myTimeout1:void 0,specialRouteList:["orderDetail","orderDetail2","orders"],languageKey:"zh",email:"",emailButtonText:this.$t("info.363")}},beforeDestroy:function(){this.myTimeout1&&clearTimeout(this.myTimeout1)},mounted:function(){var e="en";this.languageKey=e},methods:Object(s["a"])(Object(s["a"])({},Object(c["b"])(["saveLoginInfo"])),{},{sendEmailVerificationCode:function(){var e=this;if(this.email){this.email=this.email.trim();var t=this.validateEmail(this.email);if(t){var r=!1,n={url:this.$Api1Proxy,params:{url:"".concat(this.$QLY_API,"/api/Hgsoftapi.aspx?method=getemailverifycode&email=").concat(this.email,"&debug=").concat(r)}},a={message:this.$t("info.332")};this.$Api.get(n,a).then((function(t){t.Result?(r&&(e.code=t.Message.split(e.$t("info.333"))[1]),e.startCountdown(119),e.$toast.success(e.$t("info.334"))):e.$toast(t.Message)}))}else this.$toast(this.$t("info.365"))}else this.$toast.fail(this.$t("info.364"))},validateEmail:function(e){if(!e||"string"!==typeof e)return!1;var t=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;if(!t.test(e))return!1;var r=e.split("@"),n=Object(i["a"])(r,2),a=n[0],o=n[1];return!(a&&(!o||o.startsWith(".")||o.endsWith(".")))},sendVerificationCode:function(){var e=this;if(this.phone){this.phone=this.phone.trim();var t=this.validatePhoneNumber(this.phone);if(t){var r="false",n=!1,a="true"===r?"AI":"HG",o={url:this.$Api1Proxy,params:{url:"".concat(this.$QLY_API,"/api/hgsoftapi.aspx?method=getverifycode&phone=").concat(this.phone,"&projecttype=").concat(a,"&debug=").concat(n)}},i={message:this.$t("info.332")};this.$Api.get(o,i).then((function(t){t.Result?(n&&(e.code=t.Message.split(e.$t("info.333"))[1]),e.startCountdown(59),e.$toast.success(e.$t("info.334"))):e.$toast(t.Message)}))}else this.$toast(this.$t("info.338"))}else this.$toast.fail(this.$t("info.327"))},loginIn:function(){var e=this;if("en"===this.languageKey){if(!this.email)return void this.$toast.fail(this.$t("info.364"))}else if(!this.phone)return void this.$toast.fail(this.$t("info.327"));var t="en"===this.languageKey?this.validateEmail(this.email):this.validatePhoneNumber(this.phone);if(t)if(this.code){var r="";r="en"===this.languageKey?"".concat(this.$QLY_API,"/api/Hgsoftapi.aspx?method=loginemailverify&email=").concat(this.email,"&code=").concat(this.code):"".concat(this.$QLY_API,"/api/hgsoftapi.aspx?method=loginverify&phone=").concat(this.phone,"&code=").concat(this.code);var n={url:this.$Api1Proxy,params:{url:r}},a={message:this.$t("info.335")};this.$Api.get(n,a).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(r){var n,a,o,s,c,u,l,d,h,f,m,p,v,g,b,C,$;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r.Result){t.next=3;break}return e.$toast(r.Message),t.abrupt("return");case 3:if(n=r.Data,a=n.Model,o=n.RoleType,s={phone:e.phone,email:e.email,isLoggedIn:!0,loginTime:new Date,houseId:null===a||void 0===a?void 0:a.HouseId,roleType:o},c=e.$store.state.targetRouteInfo.name,a&&a.HouseId){t.next=17;break}if(e.loginSuccessPublic(s),!e.specialRouteList.includes(c)){t.next=11;break}return e.navToTargetRoute(),t.abrupt("return");case 11:if(!o){t.next=15;break}return e.$store.commit("IS_INIT_WX_CONFIG",!1),e.$router.replace({name:"myOrder"}),t.abrupt("return");case 15:return e.$router.replace({name:"me"}),t.abrupt("return");case 17:return t.prev=17,u=a.LockNum,l=a.ProjectNum,d=a.HouseId,h=a.Web3dViewUrl,f=e.$AZT_API,h&&(m=h.split("#"),p=Object(i["a"])(m,1),v=p[0],f=v),g={url:"".concat(f,"/data/House_").concat(d,"/house.json")},t.next=24,e.$Api.get(g);case 24:if(b=t.sent,C=b.LockNum,$=b.ProjectNum,u=u||C,l=l||$,u||l){t.next=35;break}if(e.loginSuccessPublic(s),!e.specialRouteList.includes(c)){t.next=33;break}return e.navToTargetRoute(),t.abrupt("return");case 33:return e.$router.replace({name:"me"}),t.abrupt("return");case 35:s.lockNum=u,s.projectNum=l,e.checkHouseIdByOrderList(s),t.next=51;break;case 40:if(t.prev=40,t.t0=t["catch"](17),e.loginSuccessPublic(s),!e.specialRouteList.includes(c)){t.next=46;break}return e.navToTargetRoute(),t.abrupt("return");case 46:if(!o){t.next=50;break}return e.$store.commit("IS_INIT_WX_CONFIG",!1),e.$router.replace({name:"myOrder"}),t.abrupt("return");case 50:e.$router.replace({name:"me"});case 51:case"end":return t.stop()}}),t,null,[[17,40]])})));return function(e){return t.apply(this,arguments)}}())}else this.$toast.fail(this.$t("info.329"));else this.$toast(this.$t("en"===this.languageKey?"info.365":"info.338"))},loginSuccessPublic:function(e){this.myInterval&&clearInterval(this.myInterval),Object(u["c"])("hg-user","loginInfo",e),this.saveLoginInfo(e),this.$toast.success(this.$t("info.336"))},retrieveCodeAgain:function(){this.myInterval&&clearInterval(this.myInterval),this.code="",this.codeButtonText=this.$t("info.331"),this.isStartCountdown=!1},navToTargetRoute:function(){var e=this.$store.state.targetRouteInfo,t=e.name,r=e.params;this.$store.dispatch("saveTargetRouteInfo",{}),this.$router.replace({name:t,params:r})},checkHouseIdByOrderList:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var r,n,a,o,i,c,d,h,f,m,p,v,g;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r={phone:this.phone,email:this.email},e.next=3,l["a"].checkOrderCategroy(this.$Api1Proxy,r);case 3:if(n=e.sent,n.Result){e.next=9;break}return this.loginSuccessPublic(t),this.$store.commit("IS_INIT_WX_CONFIG",!1),this.$router.replace({name:"myOrder"}),e.abrupt("return");case 9:if(this.loginSuccessPublic(t),a=n.Data,o=a.State,i=a.Model,c=o?Object(s["a"])({},i):void 0,d=this.$store.state.targetRouteInfo.name,"orderDetail"!==d&&"orderDetail2"!==d||c||(c=Object(s["a"])({},i)),!c){e.next=27;break}if(h=c,f=h.Customer,m=h.CustomerPhone,p=h.InstallAddress,v=h.LockNum,g=h.ProjectNum,v=v||t.lockNum,g=g||t.ProjectNum,this.$store.commit("UPDATE_SHARE_INFO",""),this.$store.commit("TARGET_ORDER_INFO",{Customer:f,CustomerPhone:m,InstallAddress:p,LockNum:v,ProjectNum:g}),Object(u["c"])("hg-user","targetOrderInfo",{Customer:f,CustomerPhone:m,InstallAddress:p,LockNum:v,ProjectNum:g}),!this.specialRouteList.includes(d)){e.next=24;break}return this.navToTargetRoute(),e.abrupt("return");case 24:this.$router.replace({name:"home"}),e.next=29;break;case 27:this.$store.commit("IS_INIT_WX_CONFIG",!1),this.$router.replace({name:"myOrder"});case 29:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),startCountdown:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:59;this.isStartCountdown=!0,this.myInterval=setInterval((function(){if(!t)return"en"===e.languageKey?e.emailButtonText=e.$t("info.363"):e.codeButtonText=e.$t("info.331"),e.isStartCountdown=!1,void clearInterval(e.myInterval);var r="en"===e.languageKey?"emailButtonText":"codeButtonText";e[r]=e.$t("info.337",{seconds:t}),t--}),1e3)},validatePhoneNumber:function(e){var t=/^1[3-9]\d{9}$/;return!!t.test(e)}})},h=d,f=(r("e685"),r("2877")),m=Object(f["a"])(h,n,a,!1,null,"2f3d2f72",null);t["default"]=m.exports},e439:function(e,t,r){var n=r("23e7"),a=r("d039"),o=r("fc6a"),i=r("06cf").f,s=r("83ab"),c=a((function(){i(1)})),u=!s||c;n({target:"Object",stat:!0,forced:u,sham:!s},{getOwnPropertyDescriptor:function(e,t){return i(o(e),t)}})},e685:function(e,t,r){"use strict";r("be89")}}]);