(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/identify/identify"],{"0a2d":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("2f62");function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c={data:function(){return{card_name:"",idcard:"",front_url:"",back_url:""}},methods:{loadPicture:function(e){var n=this;t.chooseImage({count:1,sizeType:["original","compressed"],success:function(r){console.log(r),t.uploadFile({url:n.$api.upload.file,filePath:r.tempFilePaths[0],name:"file",formData:{file:r},success:function(r){var o=JSON.parse(r.data);0===o.code&&(t.showToast({icon:"success",title:"上传成功",duration:1e3}),0===e?n.front_url=o.data.url:1===e&&(n.back_url=o.data.url))},fail:function(){console.log("上传失败")}})},fail:function(t){console.log(t)}})},doAuth:function(){var e=this;if(this.card_name&&this.idcard)if(this.front_url&&this.back_url){var n={card_name:this.card_name,idcard:this.idcard,card_front_url:this.front_url,card_back_url:this.back_url};this.$showLoading({text:"正在认证，请稍后"});this.$request({url:this.$api.user.doAuth,method:"post",data:n}).then((function(e){1!==e.code?t.showModal({title:"提示：验证通过",content:"点击确定立即返回结算页面",showCancel:!1,success:function(e){e.confirm&&t.navigateBack({delta:1})}}):t.showModal({title:"提示：验证未通过",content:e.msg,showCancel:!1,success:function(t){}})})).catch((function(t){console.log(t)})).finally((function(){e.$hideLoading()}))}else t.showToast({icon:"error",title:"请上传照片",duration:1e3});else t.showToast({icon:"error",title:"请检查输入内容",duration:1e3})}},computed:i(i(i(i({},(0,r.mapState)({tabBarHeight:function(t){return t.gConfig.tabBarHeight},iphoneHeight:function(t){return t.gConfig.iphoneHeight},iphone:function(t){return t.gConfig.iphone}})),(0,r.mapGetters)("iPhoneX",{BotHeight:"getBotHeight",getEmpty:"getEmpty"})),(0,r.mapGetters)("mallConfig",{getTheme:"getTheme"})),(0,r.mapGetters)({userInfo:"user/info"}))};e.default=c}).call(this,n("543d")["default"])},1730:function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return r}));var o=function(){var t=this,e=t.$createElement;t._self._c},i=[]},"18db":function(t,e,n){"use strict";n.r(e);var r=n("0a2d"),o=n.n(r);for(var i in r)"default"!==i&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e["default"]=o.a},"23a3":function(t,e,n){},7378:function(t,e,n){"use strict";n.r(e);var r=n("1730"),o=n("18db");for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("ef42");var a,c=n("f0c5"),u=Object(c["a"])(o["default"],r["b"],r["c"],!1,null,"9c4bc24a",null,!1,r["a"],a);e["default"]=u.exports},e464:function(t,e,n){"use strict";(function(t){n("2d0a");r(n("66fd"));var e=r(n("7378"));function r(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},ef42:function(t,e,n){"use strict";var r=n("23a3"),o=n.n(r);o.a}},[["e464","common/runtime","common/vendor"]]]);