You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
5.6 KiB
1 line
5.6 KiB
3 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-renzheng-shiming"],{3850:function(t,e,n){var i=n("dfe6");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("967d").default;a("f881bd78",i,!0,{sourceMap:!1,shadowMode:!1})},"39f7":function(t,e,n){"use strict";var i=n("3850"),a=n.n(i);a.a},"4e22":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:"phone"},[n("v-uni-view",{staticClass:"titlle"},[t._v("身份证:")]),n("v-uni-view",{staticClass:"phone-bd"},[n("v-uni-view",{staticClass:"item"},[n("v-uni-view",{staticClass:"txt"},[t._v("姓名")]),n("v-uni-input",{attrs:{placeholder:"请输入本人姓名",type:"text"},model:{value:t.realName,callback:function(e){t.realName=e},expression:"realName"}})],1),n("v-uni-view",{staticClass:"item"},[n("v-uni-view",{staticClass:"txt"},[t._v("证件号")]),n("v-uni-input",{attrs:{maxlength:"18",placeholder:"请输入18位居民身份证号码",type:"text"},model:{value:t.idCard,callback:function(e){t.idCard=e},expression:"idCard"}})],1)],1),n("v-uni-view",{staticClass:"phone-fd"},[n("v-uni-view",{staticClass:"btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toNext.apply(void 0,arguments)}}},[t._v("确定")])],1)],1)},a=[]},5031:function(t,e,n){"use strict";n.r(e);var i=n("4e22"),a=n("fb57");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("39f7");var r=n("828b"),s=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"328b54b9",null,!1,i["a"],void 0);e["default"]=s.exports},dc71:function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("2634")),o=i(n("2fdc")),r={data:function(){return{realName:"",idCard:""}},mounted:function(){var t=this;uni.$on("uAvatarCropper",(function(e){var n=t;uni.uploadFile({url:n.$baseUrl+"/prod-api/common/upload",filePath:e,name:"file",complete:function(t){if(200==t.statusCode){var e=JSON.parse(t.data),i=e.code,a=(e.fileName,e.url);e.msg;200==i?(uni.showToast({title:"上传成功"}),n.toReg(a)):uni.showToast({icon:"error",title:"上传失败"})}else uni.showToast({icon:"error",title:"上传失败"})}})}))},methods:{toNext:function(){this.realName?this.idCard?this.$u.route({url:"/uni_modules/vk-uview-ui/components/u-avatar-cropper/u-avatar-shiming",params:{destWidth:700,rectWidth:300,fileType:"jpg"}}):uni.showToast({icon:"none",position:"bottom",title:"身份证号码不能为空!"}):uni.showToast({icon:"none",position:"bottom",title:"姓名不能为空!"})},toReg:function(t){var e=this;return(0,o.default)((0,a.default)().mark((function n(){var i,o,r;return(0,a.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.$api.realNameAuth({userId:uni.getStorageSync("userInfo").id,realName:e.realName,idCard:e.idCard,avatar:t});case 2:i=n.sent,o=i.code,i.data,r=i.msg,200==o?(uni.showToast({title:"提交成功"}),setTimeout((function(){uni.navigateBack({delta:1})}),2e3)):uni.showToast({icon:"none",position:"bottom",title:r});case 7:case"end":return n.stop()}}),n)})))()}}};e.default=r},dfe6:function(t,e,n){var i=n("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 impo
|