(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-identify-consumer"],{"51b9":function(t,n,e){"use strict";e("6a54");var a=e("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,e("d4b5");var i=e("25a6"),o=a(e("5fb9")),s={mixins:[o.default],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 n={name:t.name,idCard:t.idCard};uni.showLoading({title:"加载中"}),t.$Net.request({url:t.$API.addConsumer(),data:{params:JSON.stringify(t.$API.removeObjectEmptyKey(n)),token:t.token},header:{"Content-Type":"application/x-www-form-urlencoded"},method:"get",dataType:"json",success:function(n){setTimeout((function(){uni.hideLoading()}),1e3),uni.showToast({title:n.data.msg,icon:"none"}),1==n.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()}})}}};n.default=s},5392:function(t,n,e){"use strict";e.r(n);var a=e("cd92"),i=e("5d25");for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(o);var s=e("828b"),u=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,"dd04458c",null,!1,a["a"],void 0);n["default"]=u.exports},"5d25":function(t,n,e){"use strict";e.r(n);var a=e("51b9"),i=e.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(o);n["default"]=i.a},cd92:function(t,n,e){"use strict";e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){}));var a=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("v-uni-view",{staticClass:"user",class:[t.isDark?"dark":"",t.$store.state.AppStyle],style:{"background-color":t.isDark?"#1c1c1c":"#f6f6f6","min-height":t.isDark?"100vh":"auto"}},[e("v-uni-view",{staticClass:"header",style:[{height:t.CustomBar+"px"}]},[e("v-uni-view",{staticClass:"cu-bar",class:t.isDark?"dark":"bg-white",style:{height:t.CustomBar+"px","padding-top":t.StatusBar+"px","background-color":t.isDark?"#1c1c1c":"#ffffff"}},[e("v-uni-view",{staticClass:"action",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.back.apply(void 0,arguments)}}},[e("v-uni-text",{staticClass:"cuIcon-back"})],1),e("v-uni-view",{staticClass:"content text-bold",style:[{top:t.StatusBar+"px"}]},[t._v(" 实名认证 ")])],1)],1),e("v-uni-view",{style:[{padding:t.NavBar+5+"px 10px 0px 10px"}]}),e("v-uni-form",[e("v-uni-view",{staticClass:"cu-form-group"},[e("v-uni-view",{staticClass:"title"},[t._v("姓名")]),e("v-uni-input",{attrs:{placeholder:"请输入您的完整姓名",name:"input"},model:{value:t.name,callback:function(n){t.name=n},expression:"name"}})],1),e("v-uni-view",{staticClass:"cu-form-group"},[e("v-uni-view",{staticClass:"title"},[t._v("身份证")]),e("v-uni-input",{attrs:{placeholder:"请输入您的身份证号码",name:"input"},model:{value:t.idCard,callback:function(n){t.idCard=n},expression:"idCard"}})],1),e("v-uni-view",{staticClass:"all-btn margin-top"},[e("v-uni-view",{staticClass:"user-btn flex flex-direction"},[e("v-uni-button",{staticClass:"cu-btn bg-blue margin-tb-sm lg",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.consumer.apply(void 0,arguments)}}},[t._v("提交认证")])],1)],1)],1)],1)},i=[]}}]);