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 lines
5.0 KiB
1 lines
5.0 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-renzheng-zhenren"],{"2c67":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"phone"},[n("v-uni-view",{staticClass:"phone-bd"},[n("v-uni-view",{staticClass:"item"},[1==e.userInfo.faceFlag?n("v-uni-image",{attrs:{src:"/static/renzheng-shibai.png"}}):n("v-uni-image",{attrs:{src:"/static/renzheng-zhong.png"}})],1)],1),n("v-uni-view",{staticClass:"title"},[e._v("请拍照")]),n("v-uni-view",{staticClass:"tips"},[n("v-uni-text",[e._v("提示:真人认证我们会比对实名认证的活体采集与头像\\n信息是否匹配,若匹配,认证通过;\\n若不匹配,认证失败")])],1),n("v-uni-view",{staticClass:"phone-fd"},[n("v-uni-view",{staticClass:"btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toNext.apply(void 0,arguments)}}},[e._v("上传头像")])],1)],1)},a=[]},"47b7":function(e,t,n){var i=n("9aee");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=n("967d").default;a("602abe73",i,!0,{sourceMap:!1,shadowMode:!1})},"9aee":function(e,t,n){var i=n("c86c");t=i(!1),t.push([e.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/* 文章场景相关 */uni-page-body[data-v-3e549e88]{background-color:#fff}body.?%PAGE?%[data-v-3e549e88]{background-color:#fff}.phone[data-v-3e549e88]{padding:%?25?%;overflow:hidden}.phone-fd[data-v-3e549e88]{width:100%;position:fixed;left:0;bottom:%?50?%;z-index:22}.phone-fd .btn[data-v-3e549e88]{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 .title[data-v-3e549e88]{color:#222;font-weight:500;font-size:%?30?%;text-align:center;margin-top:%?30?%}.phone .tips[data-v-3e549e88]{font-weight:500;font-size:%?24?%;color:#999;text-align:center;margin-top:%?20?%;line-height:%?50?%}.phone-bd[data-v-3e549e88]{padding-top:%?140?%;text-align:center}.phone-bd uni-image[data-v-3e549e88]{width:%?353?%;height:%?252?%}',""]),e.exports=t},b324:function(e,t,n){"use strict";var i=n("47b7"),a=n.n(i);a.a},d443:function(e,t,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n("2634")),o=i(n("2fdc")),r={data:function(){return{userInfo:{}}},onReady:function(){var e=this;uni.$on("uAvatarCropper",(function(t){var n=e;uni.uploadFile({url:n.$baseUrl+"/prod-api/api/user/uploadOSSFile",filePath:t,name:"file",formData:{userId:uni.getStorageSync("userInfo").id},complete:function(e){if(200==e.statusCode){var t=JSON.parse(e.data),i=t.code,a=t.data;t.msg;200==i?(uni.showToast({title:"上传成功"}),n.toReg(a)):uni.showToast({icon:"error",title:"上传失败"})}else uni.showToast({icon:"error",title:"上传失败"})}})}))},methods:{toNext:function(){this.$u.route({url:"/uni_modules/vk-uview-ui/components/u-avatar-cropper/u-avatar-shiming",params:{destWidth:700,rectWidth:300,fileType:"jpg"}})},toReg:function(e){var t=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,t.$api.detectLivingFace({userId:uni.getStorageSync("userInfo").id,faceImage:e});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)})))()}}};t.default=r},ec37:function(e,t,n){"use strict";n.r(t);var i=n("d443"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=a.a},ef9e:function(e,t,n){"use strict";n.r(t);var i=n("2c67"),a=n("ec37");for(var o in a)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("b324");var r=n("828b"),s=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"3e549e88",null,!1,i["a"],void 0);t["default"]=s.exports}}]); |