chunk-0a4fc9c1.1582776549147.js
4.24 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0a4fc9c1"],{"54b4":function(t,s,e){},6685:function(t,s,e){"use strict";var i=e("54b4"),a=e.n(i);a.a},"7b5f":function(t,s,e){"use strict";e.r(s);var i=function(){var t=this,s=t.$createElement,i=t._self._c||s;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:e("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(s){t.showModal1=!1},toContact:t.cacheData}}):t._e(),t.showModal2?i("clarms-modal-two",{on:{close:function(s){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=(e("efce"),e("4634"),e("ed8b"),e("7cfd"),e("97a3")),n=e("591a"),c=e("4ec3"),r=e.n(c),l=e("ed0b"),u=e("f664"),d=e("5660"),h=e("2e93"),f=e("6778"),m=e("d192"),p=e("79c3");function v(t,s){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);s&&(i=i.filter((function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable}))),e.push.apply(e,i)}return e}function C(t){for(var s=1;s<arguments.length;s++){var e=null!=arguments[s]?arguments[s]:{};s%2?v(e,!0).forEach((function(s){Object(o["a"])(t,s,e[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):v(e).forEach((function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(e,s))}))}return t}var g={data:function(){return{step:0,showModal1:!1,showModal2:!1,agress:!1,reservationTypes:[],cid:"",customerList:[],modelType:"1",modalVisiable:!0}},components:{ClarmsVerifyForm:h["a"],ClarmsMaterial:f["a"],ClarmsModalOne:u["a"],ClarmsModalTwo:d["a"],ModalComp:p["a"],Modal2Comp:m["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");else{var t=sessionStorage.getItem("clarmsRequestCid");t?(this.cid=t,this.checkCid()):this.step=1}},loadCidIfLogin:function(){var t=this,s={sid:this.userInfo.sid};Object(l["c"])({url:r.a.getCidByLogin,sid:!0,data:s}).then((function(s){s?-1==s?(t.customerList=[],t.step=2):(t.cid=s,t.checkCid()):t.step=3})).catch((function(s){t.step=1}))},checkCid:function(){var t=this,s={cid:this.cid};Object(l["c"])({url:r.a.clarmsCustomerList,data:s}).then((function(s){sessionStorage.removeItem("clarmsRequestCid"),s&&(t.customerList=s.insuredInfoList,t.step=2)})).catch((function(s){sessionStorage.removeItem("clarmsRequestCid"),t.step=1}))},handleInsuredInfo:function(t){this.cid=t.cid,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=g,w=(e("6685"),e("6691")),y=Object(w["a"])(b,i,a,!1,null,"0081cbf7",null);s["default"]=y.exports}}]);