chunk-0c98cfce.1581560695374.js
3.89 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0c98cfce"],{"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",[t._m(0),i("div",{staticClass:"content clarms"},[3==t.step?[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"+t._s(t.$t("customService.unauth.baseInfoTip"))+" \n\t\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 "+t._s(t.$t("customService.unauth.baseInfoTail"))+"\n\t\t\t\t")])])]:t._e(),t.showModal1?i("clarms-modal-one",{on:{close:function(s){t.showModal1=!1}}}):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",{attrs:{insuredList:t.customerList,cid:t.cid},on:{showModal:t.handleShowModal}})]:t._e()],2)],2)])},n=[function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"navigate"},[e("div",{staticClass:"bg"}),e("div",{staticClass:"cont"},[e("span",{staticClass:"tt"},[t._v("索償申請")])])])}],o=(e("efce"),e("4634"),e("ed8b"),e("7cfd"),e("97a3")),a=e("591a"),c=e("4ec3"),r=e.n(c),u=e("ed0b"),l=e("f664"),d=e("5660"),h=e("2e93"),f=e("6778");function m(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 p(t){for(var s=1;s<arguments.length;s++){var e=null!=arguments[s]?arguments[s]:{};s%2?m(e,!0).forEach((function(s){Object(o["a"])(t,s,e[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):m(e).forEach((function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(e,s))}))}return t}var v={data:function(){return{step:0,showModal1:!1,showModal2:!1,agress:!1,reservationTypes:[],cid:!1,customerList:[]}},components:{ClarmsVerifyForm:h["a"],ClarmsMaterial:f["a"],ClarmsModalOne:l["a"],ClarmsModalTwo:d["a"]},computed:p({},Object(a["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(u["c"])({url:r.a.getCidByLogin,sid:!0,data:s}).then((function(s){s?(t.cid=s,t.checkCid()):t.step=3})).catch((function(s){t.step=1}))},checkCid:function(){var t=this,s={cid:this.cid};Object(u["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){console.log(t),1==t?this.showModal1=!0:2==t&&(this.showModal2=!0)},gotoInformationPage:function(){var t=this.$route.fullPath;this.$router.push({path:"/infomation/improve",query:{c:t,a:1}})},logoutAction:function(){this.sid=!1,this.hadQueryCustomerList=!1,this.customerList=[],this.step=1},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(){}},g=v,b=(e("9367"),e("6691")),C=Object(b["a"])(g,i,n,!1,null,"a765e502",null);s["default"]=C.exports},9367:function(t,s,e){"use strict";var i=e("e480"),n=e.n(i);n.a},e480:function(t,s,e){}}]);