1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-auth-auth"],{"16b1":function(t,e,n){var r=n("5a7d");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var o=n("4f06").default;o("5681a1db",r,!0,{sourceMap:!1,shadowMode:!1})},"2f62":function(t,e,n){"use strict";var r=n("288e");Object.defineProperty(e,"__esModule",{value:!0}),e.authSearch=i,e.authBook=a;var o=r(n("d06c"));function i(t){return(0,o.default)("/user/auth_sel",t,"GET")}function a(t){return(0,o.default)("/user/auth_show",t,"GET")}},"3b8d":function(t,e,n){"use strict";n.r(e),n.d(e,"default",function(){return a});var r=n("795b"),o=n.n(r);function i(t,e,n,r,i,a,u){try{var c=t[a](u),s=c.value}catch(f){return void n(f)}c.done?e(s):o.a.resolve(s).then(r,i)}function a(t){return function(){var e=this,n=arguments;return new o.a(function(r,o){var a=t.apply(e,n);function u(t){i(a,r,o,u,c,"next",t)}function c(t){i(a,r,o,u,c,"throw",t)}u(void 0)})}}},"5a7d":function(t,e,n){e=t.exports=n("2350")(!1),e.push([t.i,".container[data-v-49ab8f32]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;background-image:url(http://api.app.jiuweiyun.cn/public/uploads/select/select_1.jpg);background-size:100% 100%}.canvas[data-v-49ab8f32]{height:100%;width:100%;position:absolute;z-index:999}",""])},7878:function(t,e,n){"use strict";var r=n("288e");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("96cf");var o=r(n("3b8d")),i=n("2f62"),a={data:function(){return{level:""}},onLoad:function(){var t=(0,o.default)(regeneratorRuntime.mark(function t(e){var n,r,o;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(e.phone){t.next=5;break}uni.showToast({title:"参数丢失",icon:"none",duration:2500}),setTimeout(function(){uni.navigateBack({delta:1})},2500),t.next=12;break;case 5:return t.next=7,uni.getStorageSync("info");case 7:n=t.sent,r=n.level,this.level=r,o=e.phone,this.authBook(o);case 12:case"end":return t.stop()}},t,this)}));function e(e){return t.apply(this,arguments)}return e}(),methods:{authBook:function(){var t=(0,o.default)(regeneratorRuntime.mark(function t(e){var n,r,o,a,u,c,s,f,l,h,d,p;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,(0,i.authBook)({phone:e});case 3:n=t.sent,r=n.realname,o=n.phone,a=n.time_start,u=n.time_end,c=n.auth_code,s=uni.getSystemInfoSync(),f=s.windowWidth,l=s.windowHeight,h=f/375,d=l/603,p=uni.createCanvasContext("canvas",this),p.setFontSize(25),p.fillText(this.level,140*h,310*d),p.setFontSize(14),p.fillText(r,170*h,215*d),p.fillText(o,170*h,240*d),p.setFontSize(12),p.fillText(c,120*h,365*d),p.fillText("".concat(this.changeTime(a),"-").concat(this.changeTime(u)),120*h,395*d),this.$nextTick(function(){p.draw()}),t.next=24;break;case 20:t.prev=20,t.t0=t["catch"](0),uni.showToast({title:"获取数据失败",icon:"none",duration:2500}),setTimeout(function(){uni.navigateBack({delta:1})},2500);case 24:case"end":return t.stop()}},t,this,[[0,20]])}));function e(e){return t.apply(this,arguments)}return e}(),changeTime:function(t){var e=new Date(t);return"".concat(e.getFullYear(),"年").concat(e.getMonth()+1,"月").concat(e.getDate(),"日")}}};e.default=a},"8ae1":function(t,e,n){"use strict";var r,o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"container"},[n("v-uni-canvas",{staticClass:"canvas",attrs:{"canvas-id":"canvas"}})],1)},i=[];n.d(e,"b",function(){return o}),n.d(e,"c",function(){return i}),n.d(e,"a",function(){return r})},"96cf":function(t,e){!function(e){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag",s="object"===typeof t,f=e.regeneratorRuntime;if(f)s&&(t.exports=f);else{f=e.regeneratorRuntime=s?t.exports:{},f.wrap=b;var l="suspendedStart",h="suspendedYield",d="executing",p="completed",v={},y={};y[a]=function(){return this};var g=Object.getPrototypeOf,w=g&&g(g(G([])));w&&w!==r&&o.call(w,a)&&(y=w);var m=_.prototype=L.prototype=Object.create(y);k.prototype=m.constructor=_,_.constructor=k,_[c]=k.displayName="GeneratorFunction",f.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===k||"GeneratorFunction"===(e.displayName||e.name))},f.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(m),t},f.awrap=function(t){return{__await:t}},E(T.prototype),T.prototype[u]=function(){return this},f.AsyncIterator=T,f.async=function(t,e,n,r){var o=new T(b(t,e,n,r));return f.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},E(m),m[c]="Generator",m[a]=function(){return this},m.toString=function(){return"[object Generator]"},f.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},f.values=G,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return u.type="throw",u.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),s=o.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:G(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),v}}}function b(t,e,n,r){var o=e&&e.prototype instanceof L?e:L,i=Object.create(o.prototype),a=new F(r||[]);return i._invoke=j(t,n,a),i}function x(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}function L(){}function k(){}function _(){}function E(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function T(t){function e(n,r,i,a){var u=x(t[n],t,r);if("throw"!==u.type){var c=u.arg,s=c.value;return s&&"object"===typeof s&&o.call(s,"__await")?Promise.resolve(s.__await).then(function(t){e("next",t,i,a)},function(t){e("throw",t,i,a)}):Promise.resolve(s).then(function(t){c.value=t,i(c)},function(t){return e("throw",t,i,a)})}a(u.arg)}var n;function r(t,r){function o(){return new Promise(function(n,o){e(t,r,n,o)})}return n=n?n.then(o,o):o()}this._invoke=r}function j(t,e,n){var r=l;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===o)throw i;return N()}n.method=o,n.arg=i;while(1){var a=n.delegate;if(a){var u=O(a,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=x(t,e,n);if("normal"===c.type){if(r=n.done?p:h,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=p,n.method="throw",n.arg=c.arg)}}}function O(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,O(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=x(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,v;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,v):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function G(t){if(t){var e=t[a];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){while(++r<t.length)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return i.next=i}}return{next:N}}function N(){return{value:n,done:!0}}}(function(){return this||"object"===typeof self&&self}()||Function("return this")())},bfd8:function(t,e,n){"use strict";n.r(e);var r=n("7878"),o=n.n(r);for(var i in r)"default"!==i&&function(t){n.d(e,t,function(){return r[t]})}(i);e["default"]=o.a},d06c:function(t,e,n){"use strict";var r=n("288e");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n("795b")),i="http://api.app.jiuweiyun.cn/api",a=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"POST";return t=i+t,uni.showLoading({title:"加载中"}),new o.default(function(r,o){uni.request({url:t,method:n,data:e,success:function(t){uni.hideLoading();var e=t.data,n=e.code,i=e.msg;200===n?r(e.data):(uni.showToast({title:i,icon:"none",duration:2500}),o(e))},fail:function(t){console.log(t),uni.hideLoading(),uni.showToast({title:"网络加载失败",icon:"none",duration:2500}),o(t)}})})},u=a;e.default=u},d7f6:function(t,e,n){"use strict";var r=n("16b1"),o=n.n(r);o.a},f755:function(t,e,n){"use strict";n.r(e);var r=n("8ae1"),o=n("bfd8");for(var i in o)"default"!==i&&function(t){n.d(e,t,function(){return o[t]})}(i);n("d7f6");var a,u=n("f0c5"),c=Object(u["a"])(o["default"],r["b"],r["c"],!1,null,"49ab8f32",null,!1,r["a"],a);e["default"]=c.exports}}]);
|