chunk-594359dc.1590636010633.js 4.68 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-594359dc"],{"7b5f":function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"page page-clarms"},[i("div",{staticClass:"navigate"},[i("div",{staticClass:"bg"}),i("div",{staticClass:"cont"},[i("span",{staticClass:"tt"},[t._v(t._s(t.$t("clarms.title")))])])]),3==t.step?i("div",{staticClass:"content"},[i("div",{staticClass:"alert"},[i("img",{staticClass:"icon",attrs:{src:s("a164"),alt:""}}),i("div",{staticClass:"txt"},[t._v("\n\t\t\t\t"+t._s(t.$t("customService.unauth.baseInfoTip"))+" \n\t\t\t\t"),i("span",{staticClass:"pointer btn",on:{click:t.gotoInformationPage}},[t._v(t._s(t.$t("customService.unauth.infoBtn")))]),t._v("\n\t\t\t\t "+t._s(t.$t("customService.unauth.baseInfoTail"))+"\n\t\t\t")])])]):i("div",{staticClass:"content clarms"},[i("div",{staticClass:"clarms-cont"},[t.showModal1?i("clarms-modal-one",{attrs:{type:t.modelType},on:{close:function(e){t.showModal1=!1},toContact:t.cacheData}}):t._e(),t.showModal2?i("clarms-modal-two",{on:{close:function(e){t.showModal2=!1}}}):t._e(),i("div",{staticClass:"mobile-margin"},[1==t.step?[i("clarms-verify-form",{on:{insuredInfoList:t.handleInsuredInfo}})]:t._e(),2==t.step?[i("clarms-material",{ref:"material",attrs:{insuredList:t.customerList,cid:t.cid},on:{showModal:t.handleShowModal}})]:t._e()],2)],1)])])},a=[],o=(s("5ab2"),s("6d57"),s("e10e"),s("cc57"),s("ac9f")),n=s("8876"),c=s("4ec3"),r=s.n(c),l=s("ed0b"),u=s("f664"),d=s("5660"),m=s("2e93"),h=s("6778"),f=s("d192"),p=s("79c3");function g(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function C(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?g(Object(s),!0).forEach((function(e){Object(o["a"])(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):g(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}var v={data:function(){return{step:0,showModal1:!1,showModal2:!1,agress:!1,reservationTypes:[],cid:"",customerList:[],modelType:"1",modalVisiable:!0,cacheCid:6e5}},components:{ClarmsVerifyForm:m["a"],ClarmsMaterial:h["a"],ClarmsModalOne:u["a"],ClarmsModalTwo:d["a"],ModalComp:p["a"],Modal2Comp:f["a"]},computed:C({},Object(n["c"])({userInfo:function(t){return t.userInfo}}),{i18n:function(){return this.$i18n.messages&&this.$i18n.locale?this.$i18n.messages[this.$i18n.locale]:{}}}),methods:{initData:function(){if(this.userInfo&&this.userInfo.name)this.loadCidIfLogin(),sessionStorage.removeItem("clarmsRequestCid"),sessionStorage.removeItem("clarmsRequestCidExpireAt");else{var t=sessionStorage.getItem("clarmsRequestCid"),e=sessionStorage.getItem("clarmsRequestCidExpireAt");t?e&&e>(new Date).getTime()?(sessionStorage.setItem("clarmsRequestCidExpireAt",(new Date).getTime()+this.cacheCid),this.cid=t,this.checkCid()):(sessionStorage.removeItem("clarmsRequestCid"),sessionStorage.removeItem("clarmsRequestCidExpireAt"),this.step=1):this.step=1}},loadCidIfLogin:function(){var t=this,e={sid:this.userInfo.sid};Object(l["c"])({url:r.a.getCidByLogin,sid:!0,data:e}).then((function(e){e?-1==e?(t.customerList=[],t.step=2):(t.cid=e,t.checkCid()):t.step=3})).catch((function(e){t.step=1}))},checkCid:function(){var t=this,e={cid:this.cid};Object(l["c"])({url:r.a.clarmsCustomerList,data:e}).then((function(e){sessionStorage.removeItem("clarmsRequestCid"),e&&(t.customerList=e.insuredInfoList,t.step=2)})).catch((function(e){sessionStorage.removeItem("clarmsRequestCid"),t.step=1}))},handleInsuredInfo:function(t){this.cid=t.cid,sessionStorage.setItem("clarmsRequestCidExpireAt",(new Date).getTime()+this.cacheCid),this.customerList=t.list,this.step=2},handleShowModal:function(t){1==t.action?(this.modelType=t.type,this.showModal1=!0):2==t.action&&(this.showModal2=!0)},gotoInformationPage:function(){var t=this.$route.fullPath;this.$router.push({path:"/infomation/improve",query:{c:t,a:1}})},cacheData:function(){var t=this.$refs["material"];t&&t.cacheData()},logoutAction:function(){this.sid=!1,this.hadQueryCustomerList=!1,this.customerList=[],this.step=1;var t=this.$refs["material"];t&&t.clearCache()},loginAction:function(){this.sid=!1,this.hadQueryCustomerList=!1,this.customerList=[]}},watch:{userInfo:function(t){t&&t.name?this.loginAction():this.logoutAction()}},mounted:function(){this.initData()},created:function(){}},b=v,w=(s("c1fb"),s("623f")),I=Object(w["a"])(b,i,a,!1,null,"0e29a78a",null);e["default"]=I.exports},c1fb:function(t,e,s){"use strict";var i=s("d3bb"),a=s.n(i);a.a},d3bb:function(t,e,s){}}]);