1 line
7.5 KiB
JavaScript
1 line
7.5 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-90bd08e4"],{3960:function(t,s,i){"use strict";i.r(s);var e=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"result"},[e("c-title",{attrs:{hide:!1,text:"person"==t.show?"个人认证结果":"企业认证结果"}}),"person"==t.show&&"SUCCESS"==t.person.status?e("div",{staticClass:"content"},[e("img",{staticClass:"img",attrs:{src:i("c314"),alt:""}}),e("p",{staticStyle:{"font-weight":"bold"}},[t._v("您本次的个人认证已通过")]),e("div",{staticClass:"btn-box"},[e("div",{staticClass:"btn-item"},[e("p",{staticStyle:{margin:"0.8rem 0 3rem"}},[t._v("如果您是公司法定代表人,需要进行企业认证。")]),e("div",{staticClass:"btn",staticStyle:{width:"80%"},on:{click:function(s){return t.toSign(1)}}},[t._v("企业认证")])])]),e("div",{staticClass:"btn-box"},[e("div",{staticClass:"btn",staticStyle:{width:"80%",color:"#377aff",background:"#fff",border:"1px solid #377aff"},on:{click:function(s){return t.toSign("home")}}},[t._v("返回合同列表")])])]):t._e(),"person"==t.show&&"SUCCESSFUL"==t.person.status?e("div",{staticClass:"content"},[e("img",{staticClass:"img",attrs:{src:i("c314"),alt:""}}),e("p",{staticStyle:{"font-weight":"bold"}},[t._v("您本次的个人认证已通过")]),e("div",{staticClass:"btn-box"},[e("div",{staticClass:"btn-item"},[e("p",{staticStyle:{margin:"0.8rem 0 3rem"}},[t._v("如果您是公司法定代表人,需要进行企业认证。")]),e("div",{staticClass:"btn",staticStyle:{width:"80%"},on:{click:function(s){return t.toSign(1)}}},[t._v("企业认证")])])]),e("div",{staticClass:"btn-box"},[e("div",{staticClass:"btn",staticStyle:{width:"80%",color:"#377aff",background:"#fff",border:"1px solid #377aff"},on:{click:function(s){return t.toSign("home")}}},[t._v("返回合同列表")])])]):t._e(),"person"!=t.show||"FAIL"!=t.person.status&&"ING"!=t.person.status?t._e():e("div",{staticClass:"content"},[e("img",{staticClass:"img",attrs:{src:i("5c20"),alt:""}}),e("p",{staticStyle:{"font-weight":"bold"}},[t._v("您本次的个人认证未通过")]),t._v(" "),e("p",{staticStyle:{"font-size":"13px","margin-top":"0.4rem"}},[t._v("请核对信息后继续认证")])]),"person"==t.show&&"FAIL"==t.person.status?e("div",{staticClass:"btn",on:{click:function(s){return t.toSign()}}},[t._v("进行个人认证")]):t._e(),"company"==t.show&&"99"==t.company.status_code?e("div",{staticClass:"content"},[e("img",{staticClass:"img",attrs:{src:i("c314"),alt:""}}),e("p",[t._v("您本次的企业认证已经通过")])]):t._e(),"company"==t.show&&"99"==t.company.status_code?e("div",{staticClass:"btn",staticStyle:{width:"80%",color:"#377aff",background:"#fff",border:"1px solid #377aff"},on:{click:function(s){return t.toSign("home")}}},[t._v("返回合同列表")]):t._e(),"company"==t.show&&"-1"==t.company.status_code?e("div",{staticClass:"content"},[e("img",{staticClass:"img",attrs:{src:i("5c20"),alt:""}}),t._m(0)]):t._e(),"company"==t.show&&"-1"==t.company.status_code?e("div",{staticClass:"btn",on:{click:function(s){return t.toSign(1)}}},[t._v("进行企业认证")]):t._e(),"company"==t.show&&"1"==t.company.status_code?e("div",{staticClass:"content"},[e("img",{staticClass:"img",attrs:{src:i("5da4"),alt:""}}),e("p",[t._v("您本次的企业认证信息正在审核 "),e("br"),t._v("如有疑问,请联系 "),e("a",{staticClass:"phone",attrs:{href:"tel:"+t.company.contact_tel}},[t._v(t._s(t.company.contact_tel))])])]):t._e(),"company"==t.show&&"1"==t.company.status_code?e("div",{staticClass:"btn",staticStyle:{width:"80%",color:"#377aff",background:"#fff",border:"1px solid #377aff"},on:{click:function(s){return t.toSign("home")}}},[t._v("返回合同列表")]):t._e()],1)},a=[function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("p",[t._v("您本次的企业认证未通过, "),i("br"),t._v("请核对信息后继续认证。")])}],n=(i("e7e5"),i("d399")),o=(i("14d9"),i("6968")),c={data:function(){return{timer:null,show:"",company:{},person:{},flow_id:"",face_flow_id:"",isMinApp:!1}},activated:function(){this.show=this.$route.params.show,this.flow_id="",this.face_flow_id="",this.timer&&clearInterval(this.timer),1==this.fun.getKey("isMinApp")&&(this.isMinApp=!0),"company"==this.show?this.isMinApp?wx.miniProgram.redirectTo({url:"/packageH/signIndexPlu/identifyResult/identifyResult?show=company"}):this.getCompanyData():this.isMinApp?wx.miniProgram.redirectTo({url:"/packageH/signIndexPlu/identifyResult/identifyResult?show=person"}):1==this.$route.query.auth_company?this.person={status:"SUCCESSFUL"}:this.checkPerson()},methods:{toSign:function(t){1==t?this.$router.push(this.fun.getUrl("signCompanyPlu")):"home"==t?this.$router.push(this.fun.getUrl("contractListPlu")):this.$router.push(this.fun.getUrl("personBankPlu"))},checkPerson:function(){var t=this;$http.get("plugin.shop-esign.frontend.person.get-person-info",{},"...").then((function(s){1===s.result&&s.data.info?1==s.data.info.status?t.person={status:"SUCCESS"}:1==s.data.info.has_face?(t.face_flow_id=s.data.info.face_flow_id,t.flow_id=s.data.info.flow_id,t.checkResult()):t.getPersonData():t.person={status:"FAIL"}}),(function(s){t.$dialog.alert(s.msg)}))},checkResult:function(){var t=this;$http.get("plugin.shop-esign.frontend.person.auth-face-result",{flow_id:this.flow_id,face_flow_id:this.face_flow_id},"...").then((function(s){1===s.result?t.person=s.data:t.person={status:"FAIL"}}),(function(s){t.$dialog.alert(s.msg)}))},getPersonData:function(){var t=this;$http.get("plugin.shop-esign.frontend.person.check-person-approve",{},"...").then((function(s){1===s.result?(t.person=s.data,"99"==t.person.status_code?t.person={status:"SUCCESS"}:t.person={status:"FAIL"}):Object(n["a"])(s.msg)}),(function(s){t.$dialog.alert(s.msg)}))},getCompanyData:function(){var t=this;$http.get("plugin.shop-esign.frontend.company.check-company-approve").then((function(s){1===s.result&&(t.company=s.data,"1"==t.company.status_code?t.timer||(t.timer=setInterval((function(){t.getCompanyData()}),3e4)):(t.timer&&clearInterval(t.timer),setTimeout((function(){t.$router.push(t.fun.getUrl("contractListPlu"))}),3e3)))})).catch((function(t){}))}},components:{cTitle:o["a"]}},r=c,l=(i("da17b"),i("2877")),f=Object(l["a"])(r,e,a,!1,null,"517f3022",null);s["default"]=f.exports},"5c20":function(t,s,i){t.exports=i.p+"static/app/img/yht_failed@2x.48ec79fd.png"},"5da4":function(t,s,i){t.exports=i.p+"static/app/img/yht_checked@2x.e426d3bc.png"},6844:function(t,s,i){var e=i("24fb");s=e(!1),s.push([t.i,".result[data-v-517f3022]{background:#fff;height:100vh}.img[data-v-517f3022]{width:12rem;height:12rem;margin:40px auto}.btn[data-v-517f3022]{margin:20px auto;color:#fff;width:18.75rem;height:2.25rem;line-height:2.25rem;background-image:-webkit-gradient(linear,left bottom,left top,from(#377aff),to(#679aff));background-image:-webkit-linear-gradient(bottom,#377aff,#679aff);background-image:linear-gradient(0deg,#377aff,#679aff);border-radius:20px}.phone[data-v-517f3022]{color:#0655fe}.btn-box[data-v-517f3022]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin:1rem;font-size:13px}.btn-box .btn-item[data-v-517f3022]{padding:.5rem .3rem;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;background-color:#f9fbff;border-radius:10px}.btn-box .btn-item img[data-v-517f3022]{width:4rem;height:4rem}",""]),t.exports=s},"813f":function(t,s,i){var e=i("6844");e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var a=i("499e").default;a("2968d073",e,!0,{sourceMap:!1,shadowMode:!1})},c314:function(t,s,i){t.exports=i.p+"static/app/img/yht_success@2x.8d768d31.png"},da17b:function(t,s,i){"use strict";i("813f")}}]); |