(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-identify-consumer"],{"1a19":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"user",class:t.$store.state.AppStyle,staticStyle:{"background-color":"#f6f6f6"}},[n("v-uni-view",{staticClass:"header",style:[{height:t.CustomBar+"px"}]},[n("v-uni-view",{staticClass:"cu-bar bg-white",style:{height:t.CustomBar+"px","padding-top":t.StatusBar+"px"}},[n("v-uni-view",{staticClass:"action",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.back.apply(void 0,arguments)}}},[n("v-uni-text",{staticClass:"cuIcon-back"})],1),n("v-uni-view",{staticClass:"content text-bold",style:[{top:t.StatusBar+"px"}]},[t._v("实名认证")])],1)],1),n("v-uni-view",{style:[{padding:t.NavBar+5+"px 10px 0px 10px"}]}),n("v-uni-form",[n("v-uni-view",{staticClass:"cu-form-group"},[n("v-uni-view",{staticClass:"title"},[t._v("姓名")]),n("v-uni-input",{attrs:{placeholder:"请输入您的完整姓名",name:"input"},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}})],1),n("v-uni-view",{staticClass:"cu-form-group"},[n("v-uni-view",{staticClass:"title"},[t._v("身份证")]),n("v-uni-input",{attrs:{placeholder:"请输入您的身份证号码",name:"input"},model:{value:t.idCard,callback:function(e){t.idCard=e},expression:"idCard"}})],1),n("v-uni-view",{staticClass:"all-btn margin-top"},[n("v-uni-view",{staticClass:"user-btn flex flex-direction"},[n("v-uni-button",{staticClass:"cu-btn bg-blue margin-tb-sm lg",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.consumer.apply(void 0,arguments)}}},[t._v("提交认证")])],1)],1)],1)],1)},a=[]},"2e54":function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("d4b5");var i=n("95d0"),a={data:function(){return{StatusBar:this.StatusBar,CustomBar:this.CustomBar,NavBar:this.StatusBar+this.CustomBar,AppStyle:this.$store.state.AppStyle,uid:0,userInfo:"",token:"",idCard:"",name:""}},onPullDownRefresh:function(){},onShow:function(){i.localStorage.getItem("token")&&(this.token=i.localStorage.getItem("token")),this.getCacheInfo()},onLoad:function(){},methods:{back:function(){uni.navigateBack({delta:1})},getCacheInfo:function(){if(i.localStorage.getItem("userinfo")){var t=JSON.parse(i.localStorage.getItem("userinfo"));this.uid=t.uid,this.userInfo=t}},consumer:function(){var t=this;if(""==t.name||""==t.idCard)return uni.showToast({title:"请完成表单输入",icon:"none"}),!1;var e={name:t.name,idCard:t.idCard};uni.showLoading({title:"加载中"}),t.$Net.request({url:t.$API.addConsumer(),data:{params:JSON.stringify(t.$API.removeObjectEmptyKey(e)),token:t.token},header:{"Content-Type":"application/x-www-form-urlencoded"},method:"get",dataType:"json",success:function(e){setTimeout((function(){uni.hideLoading()}),1e3),uni.showToast({title:e.data.msg,icon:"none"}),1==e.data.code&&(uni.showToast({title:"提交成功！",icon:"none"}),setTimeout((function(){t.back()}),1e3))},fail:function(t){setTimeout((function(){uni.hideLoading()}),1e3),uni.showToast({title:"网络开小差了哦",icon:"none"}),uni.stopPullDownRefresh()}})}}};e.default=a},"3e16":function(t,e,n){"use strict";n.r(e);var i=n("2e54"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},"934e":function(t,e,n){"use strict";n.r(e);var i=n("1a19"),a=n("3e16");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);var s=n("828b"),u=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"3975782a",null,!1,i["a"],void 0);e["default"]=u.exports}}]);