pages-auth-card-auth-card.3955b14d.js 25 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-auth-card-auth-card"],{"176b":function(e,t,i){"use strict";var n,o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"auth-card"},[i("custom-nav",{ref:"ltm",attrs:{noback:"noback",transparent:"transparent",title:" "}}),i("v-uni-view",{staticClass:"content"},[i("v-uni-view",{staticClass:"auth-paper"},[e.src?e._e():i("v-uni-image",{attrs:{src:"../../static/index/my/auth-paper.png"}}),i("v-uni-canvas",{ref:"canvas"}),e.src?i("v-uni-image",{staticClass:"showCan",attrs:{src:e.src}}):e._e()],1)],1)],1)},a=[];i.d(t,"b",function(){return o}),i.d(t,"c",function(){return a}),i.d(t,"a",function(){return n})},"22f3":function(e,t,i){"use strict";(function(t){var n,o=i("288e"),a=o(i("795b"));function r(){var e=!1,i=plus.ios.import("UIApplication"),n=i.sharedApplication(),o=0;if(n.currentUserNotificationSettings){var a=n.currentUserNotificationSettings();o=a.plusGetAttribute("types"),t.log("enabledTypes1:"+o),0==o?t.log("推送权限没有开启"):(e=!0,t.log("已经开启推送功能!")),plus.ios.deleteObject(a)}else o=n.enabledRemoteNotificationTypes(),0==o?t.log("推送权限没有开启!"):(e=!0,t.log("已经开启推送功能!")),t.log("enabledTypes2:"+o);return plus.ios.deleteObject(n),plus.ios.deleteObject(i),e}function l(){var e=!1,i=plus.ios.import("CLLocationManager"),n=i.authorizationStatus();return e=2!=n,t.log("定位权限开启:"+e),plus.ios.deleteObject(i),e}function s(){var e=!1,i=plus.ios.import("AVAudioSession"),n=i.sharedInstance(),o=n.recordPermission();return t.log("permissionStatus:"+o),1684369017==o||1970168948==o?t.log("麦克风权限没有开启"):(e=!0,t.log("麦克风权限已经开启")),plus.ios.deleteObject(i),e}function c(){var e=!1,i=plus.ios.import("AVCaptureDevice"),n=i.authorizationStatusForMediaType("vide");return t.log("authStatus:"+n),3==n?(e=!0,t.log("相机权限已经开启")):t.log("相机权限没有开启"),plus.ios.deleteObject(i),e}function d(){var e=!1,i=plus.ios.import("PHPhotoLibrary"),n=i.authorizationStatus();return t.log("authStatus:"+n),3==n?(e=!0,t.log("相册权限已经开启")):t.log("相册权限没有开启"),plus.ios.deleteObject(i),e}function b(){var e=!1,i=plus.ios.import("CNContactStore"),n=i.authorizationStatusForEntityType(0);return 3==n?(e=!0,t.log("通讯录权限已经开启")):t.log("通讯录权限没有开启"),plus.ios.deleteObject(i),e}function u(){var e=!1,i=plus.ios.import("EKEventStore"),n=i.authorizationStatusForEntityType(0);return 3==n?(e=!0,t.log("日历权限已经开启")):t.log("日历权限没有开启"),plus.ios.deleteObject(i),e}function f(){var e=!1,i=plus.ios.import("EKEventStore"),n=i.authorizationStatusForEntityType(1);return 3==n?(e=!0,t.log("备忘录权限已经开启")):t.log("备忘录权限没有开启"),plus.ios.deleteObject(i),e}function p(e){return new a.default(function(i,n){plus.android.requestPermissions([e],function(e){for(var n=0,o=0;o<e.granted.length;o++){var a=e.granted[o];t.log("已获取的权限:"+a),n=1}for(o=0;o<e.deniedPresent.length;o++){var r=e.deniedPresent[o];t.log("拒绝本次申请的权限:"+r),n=0}for(o=0;o<e.deniedAlways.length;o++){var l=e.deniedAlways[o];t.log("永久拒绝申请的权限:"+l),n=-1}i(n)},function(e){t.log("申请权限错误:"+e.code+" = "+e.message),i({code:e.code,message:e.message})})})}function h(e){return"location"==e?l():"camera"==e?c():"photoLibrary"==e?d():"record"==e?s():"push"==e?r():"contact"==e?b():"calendar"==e?u():"memo"==e&&f()}function w(){if(n){var e=plus.ios.import("UIApplication"),t=e.sharedApplication(),i=plus.ios.import("NSURL"),o=i.URLWithString("app-settings:");t.openURL(o),plus.ios.deleteObject(o),plus.ios.deleteObject(i),plus.ios.deleteObject(t)}else{var a=plus.android.importClass("android.content.Intent"),r=plus.android.importClass("android.provider.Settings"),l=plus.android.importClass("android.net.Uri"),s=plus.android.runtimeMainActivity(),c=new a;c.setAction(r.ACTION_APPLICATION_DETAILS_SETTINGS);var d=l.fromParts("package",s.getPackageName(),null);c.setData(d),s.startActivity(c)}}function g(){if(n){var e=!1,i=plus.ios.import("CLLocationManager");e=i.locationServicesEnabled();return t.log("系统定位开启:"+e),plus.ios.deleteObject(i),e}var o=plus.android.importClass("android.content.Context"),a=plus.android.importClass("android.location.LocationManager"),r=plus.android.runtimeMainActivity(),l=r.getSystemService(o.LOCATION_SERVICE);e=l.isProviderEnabled(a.GPS_PROVIDER);return t.log("系统定位开启:"+e),e}e.exports={judgeIosPermission:h,requestAndroidPermission:p,checkSystemEnableLocation:g,gotoAppPermissionSetting:w}}).call(this,i("5a52")["default"])},"469f":function(e,t,i){i("6c1c"),i("1654"),e.exports=i("7d7b")},"569c":function(e,t,i){"use strict";i.r(t);var n=i("c9eb"),o=i.n(n);for(var a in n)"default"!==a&&function(e){i.d(t,e,function(){return n[e]})}(a);t["default"]=o.a},"5d73":function(e,t,i){e.exports=i("469f")},"6b17":function(e,t,i){t=e.exports=i("2350")(!1),t.push([e.i,'@charset "UTF-8";.app-item[data-v-5eebbe06]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;min-height:%?90?%;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;padding:0 %?30?%;margin-bottom:%?2?%}.app-item.item-space[data-v-5eebbe06]{margin-top:%?10?%}.app-item uni-input[data-v-5eebbe06], .app-item uni-picker[data-v-5eebbe06], .app-item uni-textarea[data-v-5eebbe06]{height:100%;width:%?521?%;font-size:%?26?%;text-align:left;color:#999}.kingkong[data-v-5eebbe06]{height:%?346?%;margin-top:%?10?%}.kingkong uni-navigator[data-v-5eebbe06]{width:25%;height:50%;float:left;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.kingkong uni-navigator uni-image[data-v-5eebbe06]{width:%?88?%;height:%?88?%;margin-top:%?30?%;border-radius:50%}.kingkong uni-navigator uni-text[data-v-5eebbe06]{font-size:%?32?%;margin-top:%?12?%}.big-btn[data-v-5eebbe06]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?630?%;height:%?88?%;font-size:%?34?%;margin:%?88?% auto 0;border-radius:%?44?%;color:#f76454;border:2px solid #f76454}.big-btn.bg[data-v-5eebbe06]{color:#fff;background:#f76454}.small-btn[data-v-5eebbe06]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;padding:0 %?14?%;font-size:%?26?%;margin-left:%?10?%;color:#f76454;height:%?48?%!important;min-width:%?106?%!important;border:%?2?% solid #f76454}.small-btn.dank[data-v-5eebbe06]{color:#999;border-color:#999}.login-btn[data-v-5eebbe06]{-webkit-box-flex:1;-webkit-flex:1;flex:1;width:100%;height:100%;background:#fff}.login-btn uni-navigator[data-v-5eebbe06]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;top:50%;left:50%;width:%?400?%;height:%?88?%;color:#fff;position:fixed;font-size:%?32?%;border-radius:%?10?%;background:#f76454;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ellipsis[data-v-5eebbe06]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.icon-right[data-v-5eebbe06]{margin-right:%?20?%}.border-right[data-v-5eebbe06]{border-right:%?1?% solid #f2f2f2}.level-name[data-v-5eebbe06]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?130?%;height:%?36?%;color:#fff;font-size:%?20?%;border-radius:%?18?%;background:#f76454}.level-name .cuIcon-crownfill[data-v-5eebbe06]{margin-right:%?6?%}.position-center[data-v-5eebbe06]{left:50%;top:50%;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.data-card[data-v-5eebbe06]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:100%;height:%?336?%;position:relative;background:#f2f2f2}.data-card uni-image[data-v-5eebbe06]{z-index:0;width:%?706?%;height:%?316?%}.data-card .data-card-text[data-v-5eebbe06]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.data-card .data-card-text .text[data-v-5eebbe06]{color:#fff;font-size:%?32?%}.data-card .data-card-text .num[data-v-5eebbe06]{color:#fff;font-size:%?70?%;margin-top:%?60?%}.basecolor[data-v-5eebbe06]{color:#f76454}.swiper-nav[data-v-5eebbe06]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:100%;height:%?84?%;color:#666;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;border-bottom:%?1?% solid #f2f2f2}.swiper-nav .item[data-v-5eebbe06]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%}.swiper-nav .item.active[data-v-5eebbe06]{color:#f76454}.swiper-nav .moveBar[data-v-5eebbe06]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;bottom:0;height:%?6?%;position:absolute}.swiper-nav .moveBar > uni-text[data-v-5eebbe06]{width:100%;height:100%;border-radius:%?3?%;background:#f76454}.swiper-area[data-v-5eebbe06]{-webkit-box-flex:1;-webkit-flex:1;flex:1;width:100%}.swiper-area uni-swiper[data-v-5eebbe06]{width:100%;height:100%}.article-header[data-v-5eebbe06]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?120?%;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;border-bottom:%?1?% solid #f2f2f2}.article-header .head-pic[data-v-5eebbe06]{width:%?80?%;height:%?80?%;border-radius:50%}.article-header .name[data-v-5eebbe06]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%;margin-left:%?20?%;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start}.article-header .name .identity[data-v-5eebbe06]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?56?%;height:%?28?%;color:#fff;font-size:%?20?%;margin-left:%?20?%;border-radius:%?8?%;background:#f76454}.article-header .time[data-v-5eebbe06]{font-size:%?24?%;color:#999}.article-header .time.justnow[data-v-5eebbe06]{color:#f76454}.article-footer[data-v-5eebbe06]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?90?%;border-top:%?1?% solid #f2f2f2}.article-footer .footer-item[data-v-5eebbe06]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:%?40?%}.article-footer .footer-item.center[data-v-5eebbe06]{border-left:%?1?% solid #ccc;border-right:%?1?% solid #ccc}.article-footer .footer-item .icon-right[data-v-5eebbe06]{font-size:%?40?%}.article-footer .footer-item .icon-right.fill[data-v-5eebbe06]{color:#f76454}\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 */\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.auth-card[data-v-5eebbe06]{height:100%;box-sizing:border-box;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;background:#f2f2f2}.auth-card .content[data-v-5eebbe06]{-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%;position:relative;box-sizing:border-box}.auth-card .content .auth-paper[data-v-5eebbe06]{width:100%;height:100%;background:#ccc}.auth-card .content .auth-paper uni-image[data-v-5eebbe06]{width:100%;height:100%;z-index:-999;position:absolute}.auth-card .content .auth-paper uni-image.showCan[data-v-5eebbe06]{z-index:9999}.auth-card .content .auth-paper uni-canvas[data-v-5eebbe06]{width:100%;height:100%;position:absolute;z-index:-99;left:0;top:0}.auth-card .content .auth-paper .info[data-v-5eebbe06]{position:absolute;font-size:%?18?%}.auth-card .content .auth-paper .info.name[data-v-5eebbe06]{top:%?396?%;left:%?333?%}.auth-card .content .auth-paper .info.phone[data-v-5eebbe06]{top:%?460?%;left:%?345?%}.auth-card .content .auth-paper .info.code[data-v-5eebbe06]{top:%?752?%;left:%?228?%}.auth-card .content .auth-paper .info.long[data-v-5eebbe06]{top:%?820?%;left:%?228?%}.auth-card .content .save[data-v-5eebbe06], .auth-card .content .show[data-v-5eebbe06]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?315?%;height:%?88?%;color:#fff;font-size:%?34?%;display:-webkit-inline-box;display:-webkit-inline-flex;display:inline-flex;border-radius:%?10?%;margin:%?88?% %?30?% %?0?%;background:#f76454}.auth-card .content .save uni-text[data-v-5eebbe06], .auth-card .content .show uni-text[data-v-5eebbe06]{font-size:%?42?%}',""])},"768b":function(e,t,i){"use strict";i.r(t);var n=i("a745"),o=i.n(n);function a(e){if(o()(e))return e}var r=i("5d73"),l=i.n(r);function s(e,t){var i=[],n=!0,o=!1,a=void 0;try{for(var r,s=l()(e);!(n=(r=s.next()).done);n=!0)if(i.push(r.value),t&&i.length===t)break}catch(c){o=!0,a=c}finally{try{n||null==s["return"]||s["return"]()}finally{if(o)throw a}}return i}function c(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function d(e,t){return a(e)||s(e,t)||c()}i.d(t,"default",function(){return d})},"7d7b":function(e,t,i){var n=i("e4ae"),o=i("7cd6");e.exports=i("584a").getIterator=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return n(t.call(e))}},8568:function(e,t,i){"use strict";i.r(t);var n=i("176b"),o=i("569c");for(var a in o)"default"!==a&&function(e){i.d(t,e,function(){return o[e]})}(a);i("d461");var r,l=i("f0c5"),s=Object(l["a"])(o["default"],n["b"],n["c"],!1,null,"5eebbe06",null,!1,n["a"],r);t["default"]=s.exports},c9eb:function(e,t,i){"use strict";var n=i("288e");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(i("768b")),a=i("22f3"),r=n(i("dca9")),l=i("f5af"),s={data:function(){return{title:"我的授权",drawOver:!1,name:this.$store.state.userinfo.nickname,phone:this.$store.state.userinfo.mobile,canvasWidth:uni.upx2px(750),canvasHeight:uni.upx2px(1323),url:"",code:"",long:"",src:""}},onLoad:function(e){var t=this,i=e.id;uni.showLoading({mask:!0}),(0,l._API_Auth_Code)({id:i||this.$store.state.userinfo.id}).then(function(e){uni.showLoading({mask:!0}),setTimeout(function(){var i=document.getElementsByTagName("canvas")[0],n=i.getContext("2d"),o=document.getElementsByTagName("img")[0],a=uni.getSystemInfoSync(),r=a.windowWidth,l=a.windowHeight,s=r/375,c=l/603;n.drawImage(o,0,0,r,l),n.font="14px Arial",n.fillText(e.data.realname,170*s,212*c),n.fillText(e.data.phone,170*s,240*c),n.font="25px Arial",n.fillText(e.data.level_name,130*s,310*c),n.font="11px Arial",n.fillText(e.data.code,120*s,365*c);var d=t.y=t.$options.filters.getYear(e.data.auth_startime),b=t.m=t.$options.filters.getMonth(e.data.auth_startime),u=t.d=t.$options.filters.getDate(e.data.auth_startime),f=t.y=t.$options.filters.getYear(e.data.auth_endtime),p=t.m=t.$options.filters.getMonth(e.data.auth_endtime),h=t.d=t.$options.filters.getDate(e.data.auth_endtime);n.fillText("".concat(d,"年").concat(b,"月").concat(u,"日 - ").concat(f,"年").concat(p,"月").concat(h,"日"),120*s,395*c),t.src=i.toDataURL("image/png")},333)})},onBackPress:function(){if(uni._SHARE&&uni._SHARE.isVisible())return uni._MASK.hide(),uni._SHARE.hide(),!0},methods:{previewImage:function(){uni.showLoading({mask:!0}),uni.canvasToTempFilePath({canvasId:"canvas"}).then(function(e){var t=(0,o.default)(e,2),i=t[1];uni.hideLoading(),uni.previewImage({urls:[i.tempFilePath]})})},save:function(){var e=this;"iOS"==plus.os.name?(0,a.judgeIosPermission)("photoLibrary")?(uni.showLoading({mask:!0}),uni.canvasToTempFilePath({canvasId:"canvas"}).then(function(e){var t=(0,o.default)(e,2),i=t[1];uni.saveImageToPhotosAlbum({filePath:i.tempFilePath}).then(function(){uni.hideLoading(),uni.toast("保存成功")})})):uni.toast("大卫博士需要获取访问相册的权限,以保证图片能够保存到您的手机相册"):(0,a.requestAndroidPermission)("android.permission.WRITE_EXTERNAL_STORAGE").then(function(t){1===t?(uni.showLoading({mask:!0}),uni.canvasToTempFilePath({canvasId:"canvas"}).then(function(e){var t=(0,o.default)(e,2),i=t[1];uni.saveImageToPhotosAlbum({filePath:i.tempFilePath}).then(function(){uni.hideLoading(),uni.toast("保存成功")})})):e.$refs.ltm.modal("保存失败",["大卫博士需要获取访问相册的权限,以保证图片能够保存到您的手机相册"],"nocancel")})},share:function(){var e=this;this.url?(0,r.default)({type:2,imageUrl:this.url}):(uni.showLoading({mask:!0}),uni.canvasToTempFilePath({canvasId:"canvas",quality:.5}).then(function(t){var i=(0,o.default)(t,2),n=i[1];plus.zip.compressImage({src:n.tempFilePath,dst:"_doc/a.jpg",overwrite:!0,quality:20},function(t){(0,l._API_Auth_Share)({name:"img",filePath:t.target}).then(function(t){200==t.code&&(e.url=t.data.url,(0,r.default)({type:2,imageUrl:e.url}))})})}))}}};t.default=s},d461:function(e,t,i){"use strict";var n=i("ee2b"),o=i.n(n);o.a},dca9:function(e,t,i){"use strict";var n=i("288e");Object.defineProperty(t,"__esModule",{value:!0}),t.default=a,i("28a5");var o=n(i("cebc"));function a(e){var t=4,i=68,n=88,a=750/t,r=plus.screen.resolutionWidth/750,l=plus.screen.resolutionHeight,s=function(e){return r*e+"px"};uni._MASK=new plus.nativeObj.View("MASK",{top:"0px",left:"0px",height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0.3)"}),uni._SHARE=new plus.nativeObj.View("SHARE",{bottom:"0px",left:"0px",height:s(285.5),width:"100%",backgroundColor:"#FFFFFF"}),uni._MASK.addEventListener("click",function(e){uni._MASK.hide(),uni._SHARE.hide()}),uni._SHARE.draw([{tag:"font",id:"SHARECANLEL",text:"取消",textStyles:{size:s(32),align:"center",verticalAlign:"center"},position:{bottom:"0px",left:"0px",width:"100%",height:s(n)}},{tag:"rect",id:"SHARECANLELLINE",rectStyles:{color:"#B2B2B2"},position:{bottom:s(n),left:"0px",width:"100%",height:"1px"}},{tag:"img",id:"sharewx",src:"/static/icon/sharewx.png",position:{left:s((a-i)/2),width:s(i),height:s(i),bottom:s(n+88)}},{tag:"img",id:"sharepyq",src:"/static/icon/sharepyq.png",position:{left:s((a-i)/2+a),width:s(i),height:s(i),bottom:s(n+88)}},{tag:"img",id:"sharemore",src:"/static/icon/sharemore.png",position:{left:s((a-i)/2+2*a),width:s(i),height:s(i),bottom:s(n+88)}},{tag:"font",id:"sharewxtext",text:"分享好友",textStyles:{size:s(28),align:"center",verticalAlign:"center"},position:{bottom:s(n),left:"0px",width:s(a),height:s(88)}},{tag:"font",id:"sharepyqtext",text:"分享朋友圈",textStyles:{size:s(28),align:"center",verticalAlign:"center"},position:{bottom:s(n),left:s(a),width:s(a),height:s(88)}},{tag:"font",id:"sharemoretext",text:"更多",textStyles:{size:s(28),align:"center",verticalAlign:"center"},position:{bottom:s(n),left:s(2*a),width:s(a),height:s(88)}}]),uni._SHARE.addEventListener("click",function(t){t.screenY>l-n*r?(uni._MASK.hide(),uni._SHARE.hide()):t.clientX<=a*r?(plus.nativeUI.showWaiting(),uni.share((0,o.default)({provider:"weixin",scene:"WXSceneSession"},e,{success:function(){plus.nativeUI.toast("分享成功"),uni._MASK.hide(),uni._SHARE.hide()},fail:function(e){var t=e.errMsg.split(",")[0].split(":");plus.nativeUI.toast("分享失败: ".concat(t[t.length-1]))},complete:function(){plus.nativeUI.closeWaiting()}}))):t.clientX>a*r&&t.clientX<=2*a*r?(plus.nativeUI.showWaiting(),uni.share((0,o.default)({provider:"weixin",scene:"WXSenceTimeline"},e,{success:function(){plus.nativeUI.toast("分享成功"),uni._MASK.hide(),uni._SHARE.hide()},fail:function(e){var t=e.errMsg.split(",")[0].split(":");plus.nativeUI.toast("分享失败: ".concat(t[t.length-1]))},complete:function(){plus.nativeUI.closeWaiting()}}))):t.clientX>2*a*r&&t.clientX<=3*a*r&&plus.share.sendWithSystem({content:e.href})}),uni._MASK.show(),uni._SHARE.show()}},ee2b:function(e,t,i){var n=i("6b17");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var o=i("4f06").default;o("15423afa",n,!0,{sourceMap:!1,shadowMode:!1})},f5af:function(e,t,i){"use strict";var n=i("288e");Object.defineProperty(t,"__esModule",{value:!0}),t._API_Proxy_UploadUrls=t._API_Proxy_Upload=t._API_Proxy_Updata=t._API_Auth_Share=t._API_Auth_Code=t._API_ConfireLevel=t._API_SubAuthOver=t._API_SubAuthInfo=t._API_GetUserStatus=t._API_GetUserInfo=void 0;var o=n(i("23aa")),a=function(e){return o.default.get("/user/per_data",e)};t._API_GetUserInfo=a;var r=function(e){return o.default.get("/user/getinfo",e)};t._API_GetUserStatus=r;var l=function(e){return o.default.get("/user/submit_user",e)};t._API_SubAuthInfo=l;var s=function(e){return o.default.get("/user/user_cert",e)};t._API_SubAuthOver=s;var c=function(e){return o.default.get("/user/confirm_level",e)};t._API_ConfireLevel=c;var d=function(e){return o.default.get("/user/auth_code",e)};t._API_Auth_Code=d;var b=function(e){return o.default.uploadFile("/user/auth_share",e)};t._API_Auth_Share=b;var u=function(e){return o.default.get("/proxy/updata",e)};t._API_Proxy_Updata=u;var f=function(e){return o.default.uploadFile("/proxy/upload",e)};t._API_Proxy_Upload=f;var p=function(e){return o.default.post("/proxy/updata_urls",e)};t._API_Proxy_UploadUrls=p}}]);