连云港陪玩陪聊
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.
 
 
 
 
 
 
chunwan/unpackage/dist/build/web/static/js/pages-users-renzheng-shimin...

1 lines
5.6 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-renzheng-shiming"],{"04d3":function(t,e,n){"use strict";var i=n("5b29"),a=n.n(i);a.a},"0de5":function(t,e,n){"use strict";n.r(e);var i=n("77a1"),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},1037: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=[]},"21cd":function(t,e,n){"use strict";n.r(e);var i=n("1037"),a=n("0de5");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("04d3");var r=n("828b"),d=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"328b54b9",null,!1,i["a"],void 0);e["default"]=d.exports},"4b87":function(t,e,n){var i=n("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.phone[data-v-328b54b9]{padding:%?25?%;overflow:hidden}.phone .title[data-v-328b54b9]{color:#222;font-weight:500;font-size:%?30?%}.phone .tips[data-v-328b54b9]{font-weight:500;font-size:%?24?%;color:#999;margin-top:%?20?%}.phone-fd[data-v-328b54b9]{width:100%;position:fixed;left:0;bottom:%?50?%;z-index:22}.phone-fd .btn[data-v-328b54b9]{width:%?700?%;line-height:%?98?%;background:linear-gradient(0deg,#000,#3d3b38);border-radius:%?98?%;font-weight:400;font-size:%?34?%;text-align:center;color:#fff;margin:0 auto}.phone-bd[data-v-328b54b9]{width:100%;overflow:hidden;background:#fff;padding:0 %?30?%;box-sizing:border-box;border-radius:%?20?%;margin-top:%?30?%}.phone-bd .item[data-v-328b54b9]{display:flex;align-items:center;border-top:1px solid #eaeaea;padding:%?50?% 0 %?30?%}.phone-bd .item[data-v-328b54b9]:first-child{border-top-color:#fff}.phone-bd .item uni-input[data-v-328b54b9]{flex:1;font-weight:400;font-size:%?30?%;color:#333;margin-left:%?30?%}.phone-bd .item .code[data-v-328b54b9]{width:%?170?%;line-height:%?60?%;background:#000;border-radius:%?60?%;text-align:center;font-weight:500;font-size:%?26?%;color:#fff}',""]),t.exports=e},"5b29":function(t,e,n){var i=n("4b87");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("967d").default;a("7551bdd5",i,!0,{sourceMap:!1,shadowMode:!1})},"77a1":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}}]);