(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0280a0f8"],{"0813":function(t,e,r){"use strict";var a=r("d8c0"),n=r.n(a);n.a},"21c2":function(t,e,r){"use strict";var a=r("93f6"),n=r.n(a);n.a},"32a8":function(t,e,r){"use strict";r.d(e,"f",(function(){return n})),r.d(e,"o",(function(){return i})),r.d(e,"g",(function(){return o})),r.d(e,"c",(function(){return s})),r.d(e,"b",(function(){return c})),r.d(e,"a",(function(){return u})),r.d(e,"l",(function(){return d})),r.d(e,"j",(function(){return l})),r.d(e,"p",(function(){return m})),r.d(e,"q",(function(){return f})),r.d(e,"k",(function(){return p})),r.d(e,"e",(function(){return g})),r.d(e,"d",(function(){return v})),r.d(e,"v",(function(){return h})),r.d(e,"u",(function(){return b})),r.d(e,"w",(function(){return O})),r.d(e,"r",(function(){return y})),r.d(e,"s",(function(){return _})),r.d(e,"h",(function(){return w})),r.d(e,"t",(function(){return j})),r.d(e,"i",(function(){return C})),r.d(e,"x",(function(){return F})),r.d(e,"m",(function(){return J})),r.d(e,"n",(function(){return S}));r("e13e");var a=r("40ec");function n(t){return Object(a["a"])({url:"/api-agent/grow/detail",method:"get",params:t})}function i(t){return Object(a["a"])({url:"/api-agent/grow/user/update",method:"post",data:JSON.stringify(t)})}function o(t){return Object(a["a"])({url:"/api-agent/grow/gift/detail/list",method:"get",params:t})}function s(t){return Object(a["a"])({url:"/api-agent/agent/grow/gift/card/mobile/add",method:"post",data:JSON.stringify(t)})}function c(t){return Object(a["a"])({url:"/api-agent/agent/grow/gift/card/car/detail",method:"get",params:t})}function u(t){return Object(a["a"])({url:"/api-agent/agent/grow/gift/card/car/add",method:"post",data:JSON.stringify(t)})}function d(t){return Object(a["a"])({url:"/api-agent/grow/gift/record/integral",method:"post",data:JSON.stringify(t)})}function l(t){return Object(a["a"])({url:"/api-agent/grow/gift/vms/list",method:"get",params:t})}function m(t){return Object(a["a"])({url:"/api-agent/grow/gift/vms/image/save",method:"post",data:JSON.stringify(t)})}function f(t){return Object(a["a"])({url:"/api-agent/grow/gift/vms/cancel",method:"post",data:JSON.stringify(t)})}function p(t){return Object(a["a"])({url:"/api-agent/grow/gift/vms/detail",method:"get",params:t})}function g(t){return Object(a["a"])({url:"/api-agent/grow/gift/vms/comment/detail",method:"get",params:t})}function v(t){return Object(a["a"])({url:"/api-agent/grow/gift/vms/comment/save",method:"post",data:JSON.stringify(t)})}function h(t){return Object(a["a"])({url:"/api-agent/agent/grow/gift/card/study/recharge",method:"POST",data:JSON.stringify(t)})}function b(t){return Object(a["a"])({url:"/api-agent/agent/grow/gift/card/platform/detail",method:"get",params:t})}function O(t){return Object(a["a"])({url:"/api-agent/grow/user/birthday",method:"POST",data:JSON.stringify(t)})}function y(t){return Object(a["a"])({url:"/api-agent/grow/gift01/update",method:"POST",data:JSON.stringify(t)})}function _(t){return Object(a["a"])({url:"/api-agent/grow/gift/record/accident",method:"POST",data:JSON.stringify(t)})}function w(t){return Object(a["a"])({url:"/api-agent/grow/gift/record/insurance/detail",method:"get",params:t})}function j(t){return Object(a["a"])({url:"/api-agent/grow/gift/record/medical",method:"POST",data:JSON.stringify(t)})}function C(t){return Object(a["a"])({url:"/api-agent/grow/gift/record/physical",method:"post",data:JSON.stringify(t)})}function F(t){return Object(a["a"])({url:"/api-agent/grow/wx/confirm",method:"post",data:JSON.stringify(t)})}function J(t){return Object(a["a"])({url:"/api-agent/grow/gift/kf/save",method:"post",data:JSON.stringify(t)})}function S(t){return Object(a["a"])({url:"/api-agent/grow/gift/record/maize",method:"post",data:JSON.stringify(t)})}},"93f6":function(t,e,r){},bb71:function(t,e,r){"use strict";r.r(e);var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"page"},[r("div",{staticClass:"yiwaiPage"},[r("section",{staticClass:"pageMain"},[r("div",{staticClass:"img"},[r("div",{staticClass:"text"},[t._v("\n 当前额度\n "),r("span",{staticClass:"money"},[t._v(t._s(t.money))])]),r("div",{staticClass:"text bot"},[t._v("为您撑起意外伤害的保护伞")])])]),this.user.growCode==this.$route.query.growCode&&"wait"!==t.user.status?r("div",{staticClass:"userInfoBox"},[r("div",{staticClass:"tit"},[t._v("请输入被保人信息")]),r("ul",[r("li",[t._m(0),r("input",{directives:[{name:"model",rawName:"v-model",value:t.postForm.name,expression:"postForm.name"}],staticClass:"input",attrs:{type:"text",placeholder:"请输入您的姓名"},domProps:{value:t.postForm.name},on:{input:function(e){e.target.composing||t.$set(t.postForm,"name",e.target.value)}}})]),r("li",[t._m(1),r("select",{directives:[{name:"model",rawName:"v-model",value:t.postForm.sex,expression:"postForm.sex"}],staticClass:"select",attrs:{placeholder:"请选择您的性别"},on:{change:function(e){var r=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.$set(t.postForm,"sex",e.target.multiple?r:r[0])}}},[r("option",{attrs:{value:"男"}},[t._v("男")]),r("option",{attrs:{value:"女"}},[t._v("女")])])]),r("li",{staticClass:"left"},[t._m(2),r("input",{directives:[{name:"model",rawName:"v-model",value:t.postForm.mobile,expression:"postForm.mobile"}],staticClass:"input",attrs:{type:"number",placeholder:"请输入您的手机号"},domProps:{value:t.postForm.mobile},on:{input:function(e){e.target.composing||t.$set(t.postForm,"mobile",e.target.value)}}})]),r("li",{staticClass:"left"},[t._m(3),r("input",{directives:[{name:"model",rawName:"v-model",value:t.postForm.idcard,expression:"postForm.idcard"}],staticClass:"input",attrs:{type:"text",placeholder:"请输入您的证件号码"},domProps:{value:t.postForm.idcard},on:{input:function(e){e.target.composing||t.$set(t.postForm,"idcard",e.target.value)}}})])]),"wait"==t.status?r("div",{staticClass:"bt",on:{click:t.saveAccident}},[t._v("确认投保")]):t._e()]):t._e(),t._m(4)])])},n=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("span",{staticClass:"left"},[r("b",{staticClass:"red"},[t._v("*")]),r("span",[t._v("姓名")])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("span",{staticClass:"left"},[r("b",{staticClass:"red"},[t._v("*")]),r("span",[t._v("性别")])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("span",[r("b",{staticClass:"red"},[t._v("*")]),r("span",[t._v("手机号")])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("span",[r("b",{staticClass:"red"},[t._v("*")]),r("span",[t._v("证件号码")])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"remark"},[r("div",{staticClass:"title"},[t._v("领取须知")]),r("div",{staticClass:"text"},[r("p",[t._v("1、根据团体保险的相关要求,经销商需要分批进行集中投保。")]),r("p",[t._v("2、公司每年会安排多次投保,届时将在 APP 内进行通知。")]),r("p",[t._v("3、投保通道开启后,请您在规定的时间内完成投保操作。")]),r("p",[t._v("\n 4、投保成功后,需等待保险公司完成核保录单等工作,正式起保后可查询保单(即保单生效)。\n ")]),r("p",[t._v("5、如何查询保单,请咨询唯蜜星球的在线客服。")]),r("p",[t._v("\n 6、您可拨打平安保险客服电话\n 400-883-3663,咨询该产品相关保障及申请理赔。\n ")]),r("p",[t._v("7、投保流程:")]),r("p",[t._v("(1)点击页面中的【立即投保】,进入投保页面。")]),r("p",[t._v("(2)确认投保页面中的个人身份信息,点击【确认投保】。")])])])}],i=(r("7f7f"),r("c0d6")),o=r("76a0"),s=r("e925"),c=r("32a8"),u={name:"insureYiwai",data:function(){return{year:null,growCode:"",status:this.$route.query.status?this.$route.query.status:"",user:i["a"].state.user,postForm:{name:"",sex:"女",mobile:"",idcard:"",isYibao:"否"},money:0}},created:function(){this.growCode=this.$route.query.growCode},mounted:function(){switch(this.year=this.$route.query.year,this.$route.query.growCode){case"HJ1100":this.money="10万";break;case"HJ1000":this.money="10万";break;case"BJ1000":this.money="20万";break;case"HJ900":this.money="30万";break;case"BJ900":this.money="60万";break;case"ZS900":this.money="60万";break;default:return Object(o["Toast"])("未获取到当前额度")}this.user.growCode==this.$route.query.growCode&&"wait"!==this.$route.query.status&&this.getInsuranceDetail()},methods:{saveAccident:function(){var t=this;return this.postForm.name?this.postForm.mobile?(this.postForm.mobile=(this.postForm.mobile+"").trim(),Object(s["b"])(this.postForm.mobile)?(this.postForm.idcard=(this.postForm.idcard+"").trim(),this.postForm.idcard?Object(s["a"])(this.postForm.idcard)?(this.postForm.year=this.year,o["Indicator"].open(),void Object(c["s"])(this.postForm).then((function(e){return console.log(e),o["Indicator"].close(),0!=e.resp_code?Object(o["Toast"])(e.resp_msg):(Object(o["Toast"])("提交成功"),t.getInsuranceDetail())})).catch((function(t){console.log(t),o["Indicator"].close()}))):Object(o["Toast"])("请输入正确的身份证号!"):Object(o["Toast"])("请输入身份证号!")):Object(o["Toast"])("请输入正确的手机号!")):Object(o["Toast"])("请输入手机号!"):Object(o["Toast"])("请输入真实姓名!")},getInsuranceDetail:function(){var t=this;o["Indicator"].open();var e={giftCode:this.$route.query.giftCode,year:this.$route.query.year};Object(c["h"])(e).then((function(e){if(console.log(e),o["Indicator"].close(),0!=e.resp_code)return Object(o["Toast"])(e.resp_msg);t.status=e.datas.status;var r=e.datas.remark;r&&(t.postForm=JSON.parse(r))})).catch((function(t){console.log(t),o["Indicator"].close()}))}}},d=u,l=(r("21c2"),r("0813"),r("2877")),m=Object(l["a"])(d,a,n,!1,null,"14a497ed",null);e["default"]=m.exports},d8c0:function(t,e,r){},e925:function(t,e,r){"use strict";function a(t){var e=/^[1][3,4,5,6,7,8,9][0-9]{9}$/;return e.test(t)}function n(t){var e=/(^\d{15}$)|(^\d{17}(\d|X)$)/;return!1!==e.test(t)}r.d(e,"b",(function(){return a})),r.d(e,"a",(function(){return n}))}}]);