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.
2 lines
36 KiB
2 lines
36 KiB
/*! For license information please see camera.js.LICENSE.txt */
|
|
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=40)}([function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function r(t){return e.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports={".permissions_box":{"":{paddingTop:["50rpx",0,0,0],paddingRight:["30rpx",0,0,0],paddingBottom:["50rpx",0,0,0],paddingLeft:["30rpx",0,0,0],fontSize:["30rpx",0,0,0],lineHeight:["50rpx",0,0,0],backgroundColor:["#ffffff",0,0,0]}},"@VERSION":2}},function(e,t,r){"use strict";function n(e,t,r,n,o,i,a,u,s,c){var l,d="function"==typeof e?e.options:e;if(s){d.components||(d.components={});var f=Object.prototype.hasOwnProperty;for(var p in s)f.call(s,p)&&!f.call(d.components,p)&&(d.components[p]=s[p])}if(c&&("function"==typeof c.beforeCreate&&(c.beforeCreate=[c.beforeCreate]),(c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(d.mixins||(d.mixins=[])).push(c)),t&&(d.render=t,d.staticRenderFns=r,d._compiled=!0),n&&(d.functional=!0),i&&(d._scopeId="data-v-"+i),a?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},d._ssrRegister=l):o&&(l=u?function(){o.call(this,this.$root.$options.shadowRoot)}:o),l)if(d.functional){d._injectStyles=l;var h=d.render;d.render=function(e,t){return l.call(t),h(e,t)}}else{var m=d.beforeCreate;d.beforeCreate=m?[].concat(m,l):[l]}return{exports:e,options:d}}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";function n(e){var t=Object.prototype.toString.call(e);return t.substring(8,t.length-1)}function o(){return"string"==typeof __channelId__&&__channelId__}function i(e,t){switch(n(t)){case"Function":return"function() { [native code] }";default:return t}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var a=t.shift();if(o())return t.push(t.pop().replace("at ","uni-app:///")),console[a].apply(console,t);var u=t.map((function(e){var t=Object.prototype.toString.call(e).toLowerCase();if("[object object]"===t||"[object array]"===t)try{e="---BEGIN:JSON---"+JSON.stringify(e,i)+"---END:JSON---"}catch(r){e=t}else if(null===e)e="---NULL---";else if(void 0===e)e="---UNDEFINED---";else{var r=n(e).toUpperCase();e="NUMBER"===r||"BOOLEAN"===r?"---BEGIN:"+r+"---"+e+"---END:"+r+"---":String(e)}return e})),s="";if(u.length>1){var c=u.pop();s=u.join("---COMMA---"),0===c.indexOf(" at ")?s+=c:s+="---COMMA---"+c}else s=u[0];console[a](s)},t.log=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];console[e].apply(console,r)}},function(e,t,r){var n=r(1),o=r(29)();e.exports=o;try{regeneratorRuntime=o}catch(e){"object"===("undefined"==typeof globalThis?"undefined":n(globalThis))?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}},function(e,t){function r(e,t,r,n,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void r(e)}u.done?t(s):Promise.resolve(s).then(n,o)}e.exports=function(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function u(e){r(a,o,i,u,s,"next",e)}function s(e){r(a,o,i,u,s,"throw",e)}u(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},,function(e,t,r){"use strict";var n=r(22),o=r(12),i=r(3);var a=Object(i.a)(o.default,n.b,n.c,!1,null,null,"7103b60a",!1,n.a,void 0);(function(e){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style),Vue.prototype.__merge_style?Vue.prototype.__merge_style(r(36).default,this.options.style):Object.assign(this.options.style,r(36).default)}).call(a),t.default=a.exports},,function(e,t,r){var n=r(11);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(1).default,o=r(31);e.exports=function(e){var t=o(e,"string");return"symbol"==n(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";var n=r(13),o=r.n(n);t.default=o.a},function(e,t,r){"use strict";(function(e){var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(5)),i=n(r(1)),a=n(r(6)),u=n(r(41)),s=n(r(30)),c={1:["\u5411\u53f3\u8f6c\u5934","turn_right.gif","turn_right.wav"],2:["\u5411\u5de6\u8f6c\u5934","turn_left.gif","turn_left.wav"],3:["\u5f20\u5634\u52a8\u4f5c","open_mouth.gif","open_mouth.wav"],4:["\u7728\u773c\u52a8\u4f5c","open_eyes.gif","open_eyes.wav"]},l=uni.createInnerAudioContext();l.onPlay((function(){e("log","\u97f3\u9891\u5f00\u59cb\u64ad\u653e"," at pages/users/renzheng/camera.nvue:46")})),l.onError((function(t){e("log",t.errMsg," at pages/users/renzheng/camera.nvue:49"),e("log",t.errCode," at pages/users/renzheng/camera.nvue:50")}));var d=weex.requireModule("animation"),f={data:function(){return{curAction:{step:0,tip:"",image:"pic_front.png"},restSec:0,enableAudio:!0,timer:null,maskColor:"#fff",isTimeout:!1,commands:[],winWidth:0,winHeight:0,idCard:"",realName:""}},onLoad:function(t){this.realName=decodeURIComponent(t.realName),this.idCard=t.idCard,e("log",t," at pages/users/renzheng/camera.nvue:77"),this.winWidth=uni.getSystemInfoSync().windowWidth,this.winHeight=uni.getSystemInfoSync().windowHeight},onReady:function(){e("log","\u9875\u9762\u521d\u6b21\u6e32\u67d3\u5b8c\u6210"," at pages/users/renzheng/camera.nvue:82"),this.initAliveDetect()},onBackPress:function(){this.$refs.aliveDetect.stopDetect()},onUnload:function(){e("log","\u9875\u9762\u5378\u8f7d"," at pages/users/renzheng/camera.nvue:89"),null==l||l.paused||(l.pause(),l.stop(),l.destroy(),(0,u.default)("innerAudioContext")),this.timer&&clearInterval(this.timer)},methods:{initAliveDetect:function(){var e=this;this.timer&&clearInterval(this.timer),this.curAction={step:0,tip:"",image:"pic_front.png"},this.$refs.aliveDetect.init({businessID:"043948b2576b41dc9d23d14b4e500b7a",timeout:60,isDebug:!0},this.handleCheck),this.$refs.aliveDetect.startDetect(),this.restSec=60,this.timer=setInterval((function(){e.restSec<=0?(clearInterval(e.timer),e.timer=null):e.restSec=e.restSec-1}),1e3),d.transition(this.$refs.leftCircle,{styles:{transform:"rotate(135deg)"},duration:15e3,timingFunction:"linear",needLayout:!1,delay:15e3}),d.transition(this.$refs.rightCircle,{styles:{transform:"rotate(225deg)"},duration:15e3,timingFunction:"linear",needLayout:!1,delay:0})},toReg:function(t){var r=this;return(0,a.default)(o.default.mark((function n(){var i;return o.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,s.default.realNameAuth({userId:uni.getStorageSync("userInfo").id,realName:r.realName,idCard:r.idCard,token:t});case 2:i=n.sent,e("log",{userId:uni.getStorageSync("userInfo").id,realName:r.realName,idCard:r.idCard,token:t}," at pages/users/renzheng/camera.nvue:150"),e("log",i," at pages/users/renzheng/camera.nvue:156"),200==i.code?(uni.showToast({title:"\u63d0\u4ea4\u6210\u529f"}),setTimeout((function(){uni.navigateBack({delta:2})}),2e3)):uni.showToast({icon:"none",position:"bottom",title:i.msg});case 6:case"end":return n.stop()}}),n)})))()},handleCheck:function(t){var r=this;if("object"===(0,i.default)(t)){var n=t.method,o=t.data;if("onReady"==n){var a=o.initResult;e("log",a?"\u5f15\u64ce\u521d\u59cb\u5316\u6210\u529f":"\u5f15\u64ce\u521d\u59cb\u5316\u5931\u8d25"," at pages/users/renzheng/camera.nvue:185")}else if("onConfig"==n){for(var u=[],s=0;s<o.actions.length;s++)u.push(parseInt(o.actions[s]));this.commands=u}else if("onChecking"==n){var l=o.currentStep+"";if(Object.keys(c).includes(l)&&l!==this.curAction.type){var d=c[l];this.curAction={step:this.curAction.step+1,type:l,tip:d[0],image:d[1]},this.playAudioIfEnable(d[2])}}else{if("onChecked"==n)return e("log",o," at pages/users/renzheng/camera.nvue:211"),this.toReg(o.token),clearInterval(this.timer),void(this.timer=null);"onError"==n?uni.showToast({icon:"none",position:"bottom",title:o.message}):"overTime"==n&&(clearInterval(this.timer),this.timer=null,uni.showModal({title:"\u68c0\u6d4b\u8d85\u65f6",content:"\u8bf7\u5728\u89c4\u5b9a\u65f6\u95f4\u5185\u5b8c\u6210\u52a8\u4f5c",cancelText:"\u8fd4\u56de\u4e0a\u4e00\u9875",confirmText:"\u91cd\u8bd5",success:function(e){e.confirm?r.initAliveDetect():uni.navigateBack()},fail:function(){uni.navigateBack()}}))}}},playAudioIfEnable:function(e){this.enableAudio&&(l.src="/static/shibie/audio/".concat(e),l.play())},toggleAudioSwitch:function(){this.enableAudio=!this.enableAudio},handleImgLoad:function(){var e=this;setTimeout((function(){e.maskColor="transparent"}),120)}}};t.default=f}).call(this,r(4).default)},function(e,t){e.exports={".yd-check":{"":{backgroundColor:["#ffffff",0,0,16]}},".check-preview":{"":{alignItems:["center",0,0,17],justifyContent:["center",0,0,17],position:["relative",0,0,17]}},".check-preview__content":{"":{width:["504rpx",0,0,18],height:["672rpx",0,0,18],marginTop:["20rpx",0,0,18],position:["relative",0,0,18],overflow:["hidden",0,0,18]}},".check-preview__mask":{"":{width:["504rpx",0,0,19],height:["672rpx",0,0,19],position:["absolute",0,0,19],top:[0,0,0,19],left:[0,0,0,19],zIndex:[55,0,0,19],transitionProperty:["backgroundColor",0,0,19],transitionDuration:[300,0,0,19],transitionTimingFunction:["ease",0,0,19],transitionDelay:[0,0,0,19],backgroundColor:["#ffffff",0,0,19]}},".check-preview__camera":{"":{width:["504rpx",0,0,20],height:["672rpx",0,0,20],borderRadius:[50,0,0,20],marginTop:["20rpx",0,0,20],overflow:["hidden",0,0,20]}},".check-preview__audio":{"":{position:["absolute",0,0,21],top:[0,0,0,21],right:["40rpx",0,0,21],width:["48rpx",0,0,21],height:["48rpx",0,0,21]}},".check-preview__switch":{"":{width:["48rpx",0,0,22],height:["48rpx",0,0,22]}},".check-preview__timer":{"":{position:["absolute",0,0,23],top:["80rpx",0,0,23],right:["40rpx",0,0,23],width:["60rpx",0,0,23],height:["60rpx",0,0,23],lineHeight:["60rpx",0,0,23],color:["#222222",0,0,23],fontSize:["26rpx",0,0,23],justifyContent:["center",0,0,23],alignItems:["center",0,0,23]}},".txt":{".check-preview__timer ":{fontSize:["26rpx",0,1,24],color:["#000000",0,1,24]}},".progress-timer__right":{"":{width:["30rpx",0,0,25],height:["60rpx",0,0,25],position:["absolute",0,0,25],top:[0,0,0,25],overflow:["hidden",0,0,25],right:[0,0,0,26]}},".progress-timer__left":{"":{width:["30rpx",0,0,25],height:["60rpx",0,0,25],position:["absolute",0,0,25],top:[0,0,0,25],overflow:["hidden",0,0,25],left:[0,0,0,27]}},".progress-timer__circle":{"":{width:["60rpx",0,0,28],height:["60rpx",0,0,28],borderStyle:["solid",0,0,28],borderWidth:["6rpx",0,0,28],borderColor:["#000000",0,0,28],borderRadius:[50,0,0,28],position:["absolute",0,0,28],top:[0,0,0,28]}},".progress-timer__circle--right":{"":{borderRightColor:["#cccccc",0,0,29],borderTopColor:["#cccccc",0,0,29],right:[0,0,0,29],transform:["rotate(45deg)",0,0,29]}},".progress-timer__circle--left":{"":{borderLeftColor:["#cccccc",0,0,30],borderTopColor:["#cccccc",0,0,30],left:[0,0,0,30],transform:["rotate(-45deg)",0,0,30]}},".check-process":{"":{paddingTop:["90rpx",0,0,31],justifyContent:["center",0,0,31],alignItems:["center",0,0,31]}},".check-process__tip":{"":{opacity:[.85,0,0,32],fontSize:["40rpx",0,0,32],color:["#000000",0,0,32],textAlign:["center",0,0,32],lineHeight:["56rpx",0,0,32],height:["56rpx",0,0,32]}},".check-process__img":{"":{width:["280rpx",0,0,33],height:["280rpx",0,0,33],marginTop:["8rpx",0,0,33],textAlign:["center",0,0,33]}},".check-steps":{"":{flexDirection:["row",0,0,34],justifyContent:["space-around",0,0,34],alignItems:["center",0,0,34],width:["240rpx",0,0,34],marginTop:["32rpx",0,0,34]}},".check-steps__item":{"":{fontSize:["0",0,0,35],width:["20rpx",0,0,35],height:["20rpx",0,0,35],backgroundColor:["#DDE3EF",0,0,35],borderRadius:[50,0,0,35]}},".check-steps__item--active":{"":{width:["40rpx",0,0,36],height:["40rpx",0,0,36],backgroundColor:["#000000",0,0,36],justifyContent:["center",0,0,36]}},".check-steps__text":{"":{color:["#FFFFFF",0,0,37],lineHeight:["40rpx",0,0,37],fontSize:["28rpx",0,0,37],textAlign:["center",0,0,37]}},"@VERSION":2}},,,,,,,,function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return o})),r.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("scroll-view",{staticStyle:{flexDirection:"column"},attrs:{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true"}},[r("view",{staticClass:["yd-check"],style:{width:e.winWidth+"px",height:e.winHeight+"px"}},[r("view",{staticClass:["check-preview"]},[r("view",{staticClass:["check-preview__content"]},[r("camera_preview",{ref:"aliveDetect",staticClass:["check-preview__camera"]}),r("u-image",{staticClass:["check-preview__mask"],style:{backgroundColor:e.maskColor},attrs:{src:"/static/shibie/alive_mask@3x.png"},on:{load:e.handleImgLoad}})],1),r("view",{staticClass:["check-preview__audio"],on:{click:e.toggleAudioSwitch}},[r("u-image",{staticClass:["check-preview__switch"],attrs:{src:e.enableAudio?"/static/shibie/audio_open@3x.png":"/static/shibie/audio_close@3x.png"}})],1),r("view",{staticClass:["check-preview__timer","progress-timer"]},[r("u-text",{staticClass:["txt"],appendAsTree:!0,attrs:{append:"tree"}},[e._v(e._s(e.restSec))]),r("view",{staticClass:["progress-timer__right"]},[r("view",{ref:"rightCircle",staticClass:["progress-timer__circle","progress-timer__circle--right"]})]),r("view",{staticClass:["progress-timer__left"]},[r("view",{ref:"leftCircle",staticClass:["progress-timer__circle","progress-timer__circle--left"]})])])]),r("view",{staticClass:["check-process"]},[r("view",{staticClass:["check-process__tip"]},[r("u-text",[e._v(e._s(e.curAction.tip))])]),r("u-image",{staticClass:["check-process__img"],attrs:{src:"/static/shibie/"+e.curAction.image}}),r("view",{staticClass:["check-steps"]},e._l(e.commands,(function(t,n){return r("view",{key:n,class:["check-steps__item",e.curAction.step===n?"check-steps__item--active":""]},[e.curAction.step===n?r("u-text",{staticClass:["check-steps__text"],appendAsTree:!0,attrs:{append:"tree"}},[e._v(e._s(n+1))]):e._e()])})),0)],1)])])},o=[]},,,,function(e,t,r){Vue.prototype.__$appStyle__={},Vue.prototype.__merge_style&&Vue.prototype.__merge_style(r(27).default,Vue.prototype.__$appStyle__)},function(e,t,r){"use strict";r.r(t);var n=r(2),o=r.n(n);for(var i in n)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(i);t.default=o.a},function(e,t){if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(e){var t=this.constructor;return this.then((function(r){return t.resolve(e()).then((function(){return r}))}),(function(r){return t.resolve(e()).then((function(){throw r}))}))}),"undefined"!=typeof uni&&uni&&uni.requireGlobal){var r=uni.requireGlobal();ArrayBuffer=r.ArrayBuffer,Int8Array=r.Int8Array,Uint8Array=r.Uint8Array,Uint8ClampedArray=r.Uint8ClampedArray,Int16Array=r.Int16Array,Uint16Array=r.Uint16Array,Int32Array=r.Int32Array,Uint32Array=r.Uint32Array,Float32Array=r.Float32Array,Float64Array=r.Float64Array,BigInt64Array=r.BigInt64Array,BigUint64Array=r.BigUint64Array}},function(e,t,r){var n=r(1).default;function o(){"use strict";e.exports=o=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},i=Object.prototype,a=i.hasOwnProperty,u=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",d=s.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(t){f=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof _?t:_,i=Object.create(o.prototype),a=new j(n||[]);return u(i,"_invoke",{value:A(e,r,a)}),i}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=p;var m="suspendedStart",g="executing",v="completed",y={};function _(){}function x(){}function b(){}var w={};f(w,c,(function(){return this}));var C=Object.getPrototypeOf,q=C&&C(C(E([])));q&&q!==i&&a.call(q,c)&&(w=q);var k=b.prototype=_.prototype=Object.create(w);function L(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(o,i,u,s){var c=h(e[o],e,i);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==n(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,u,s)}),(function(e){r("throw",e,u,s)})):t.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return r("throw",e,u,s)}))}s(c.arg)}var o;u(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function A(e,r,n){var o=m;return function(i,a){if(o===g)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var s=O(u,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===m)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=g;var c=h(e,r,n);if("normal"===c.type){if(o=n.done?v:"suspendedYield",c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=v,n.method="throw",n.arg=c.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function E(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(a.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(n(e)+" is not iterable")}return x.prototype=b,u(k,"constructor",{value:b,configurable:!0}),u(b,"constructor",{value:x,configurable:!0}),x.displayName=f(b,d,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,f(e,d,"GeneratorFunction")),e.prototype=Object.create(k),e},r.awrap=function(e){return{__await:e}},L(S.prototype),f(S.prototype,l,(function(){return this})),r.AsyncIterator=S,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var a=new S(p(e,t,n,o),i);return r.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},L(k),f(k,d,"Generator"),f(k,c,(function(){return this})),f(k,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=E,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:E(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,i=n(r(5)),a=n(r(10)),u=n(r(6)),s=r(32),c=(o={costDescription:function(e){return(0,s.request)({url:"api/costDescription",method:"get",data:e})},userSpeedDating:function(e){return(0,s.request)({url:"api/user/userSpeedDating",method:"post",data:e})},sameCitySpeedDating:function(e){return(0,s.request)({url:"api/user/sameCitySpeedDating",method:"post",data:e})},giftGiving:function(e){return(0,s.request)({url:"api/user/giftGiving",method:"post",data:e})}},(0,a.default)(o,"giftGiving",(function(e){return(0,s.request)({url:"api/user/giftGiving",method:"post",data:e})})),(0,a.default)(o,"giftList",(function(e){return(0,s.request)({url:"api/giftList",method:"post",data:e})})),(0,a.default)(o,"createPoster",(function(e){return(0,s.request)({url:"api/user/createPoster",method:"post",data:e})})),(0,a.default)(o,"wxAppOneKeyLogin",(function(e){return(0,s.request)({url:"api/wxpublic/wxAppOneKeyLogin",method:"post",data:e})})),(0,a.default)(o,"findChatList",(function(e){return(0,s.request)({url:"api/user/findChatList",method:"post",data:e})})),(0,a.default)(o,"cityList",(function(e){return(0,s.request)({url:"api/cityList",method:"get",data:e})})),(0,a.default)(o,"cleanAllMsg",(function(e){return(0,s.request)({url:"api/user/cleanAllMsg",method:"post",data:e})})),(0,a.default)(o,"cleanOneMsg",(function(e){return(0,s.request)({url:"api/user/cleanOneMsg",method:"post",data:e})})),(0,a.default)(o,"dashaCount",(function(e){return(0,s.request)({url:"api/user/dashaCount",method:"post",data:e})})),(0,a.default)(o,"refundOrder",(function(e){return(0,s.request)({url:"api/user/refundOrder",method:"post",data:e})})),(0,a.default)(o,"acceptOrder",(function(e){return(0,s.request)({url:"api/user/acceptOrder",method:"post",data:e})})),(0,a.default)(o,"serviceOrder",(function(e){return(0,s.request)({url:"api/user/serviceOrder",method:"post",data:e})})),(0,a.default)(o,"serviceCompleteOrder",(function(e){return(0,s.request)({url:"api/user/serviceCompleteOrder",method:"post",data:e})})),(0,a.default)(o,"deleteOrder",(function(e){return(0,s.request)({url:"api/user/deleteOrder",method:"post",data:e})})),(0,a.default)(o,"cancelOrder",(function(e){return(0,s.request)({url:"api/user/cancelOrder",method:"post",data:e})})),(0,a.default)(o,"orderDetail",(function(e){return(0,s.request)({url:"api/user/orderDetail",method:"post",data:e})})),(0,a.default)(o,"orderList",(function(e){return(0,s.request)({url:"api/user/orderList",method:"post",data:e})})),(0,a.default)(o,"trackUpload",(function(e){return(0,s.request)({url:"api/user/trackUpload",method:"post",data:e})})),(0,a.default)(o,"findFrindList",(function(e){return(0,s.request)({url:"api/user/findFrindList",method:"post",data:e})})),(0,a.default)(o,"systemNoticeList",(function(e){return(0,s.request)({url:"api/systemNoticeList",method:"post",data:e})})),(0,a.default)(o,"urbanCooperation",(function(e){return(0,s.request)({url:"api/user/urbanCooperation",method:"post",data:e})})),(0,a.default)(o,"feedback",(function(e){return(0,s.request)({url:"api/user/feedback",method:"post",data:e})})),(0,a.default)(o,"feedbackList",(function(e){return(0,s.request)({url:"api/user/feedbackList",method:"post",data:e})})),(0,a.default)(o,"helpCenter",(function(e){return(0,s.request)({url:"api/helpCenter",method:"get",data:e})})),(0,a.default)(o,"closeTeenageMode",(function(e){return(0,u.default)(i.default.mark((function t(){return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,s.request)({url:"api/user/closeTeenageMode",method:"post",data:e}));case 1:case"end":return t.stop()}}),t)})))()})),(0,a.default)(o,"openTeenageMode",(function(e){return(0,u.default)(i.default.mark((function t(){return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,s.request)({url:"api/user/openTeenageMode",method:"post",data:e}));case 1:case"end":return t.stop()}}),t)})))()})),(0,a.default)(o,"cancelAccount",(function(e){return(0,u.default)(i.default.mark((function t(){return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,s.request)({url:"api/user/cancelAccount",method:"post",data:e}));case 1:case"end":return t.stop()}}),t)})))()})),(0,a.default)(o,"privacyConfig",(function(e){return(0,u.default)(i.default.mark((function t(){return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,s.request)({url:"api/user/privacyConfig",method:"post",data:e}));case 1:case"end":return t.stop()}}),t)})))()})),(0,a.default)(o,"addOrRemoveBlacklist",(function(e){return(0,u.default)(i.default.mark((function t(){return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,s.request)({url:"api/user/addOrRemoveBlacklist",method:"post",data:e}));case 1:case"end":return t.stop()}}),t)})))()})),(0,a.default)(o,"myTeam",(function(e){return(0,u.default)(i.default.mark((function t(){return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,s.request)({url:"api/user/myTeam",method:"post",data:e}));case 1:case"end":return t.stop()}}),t)})))()})),(0,a.default)(o,"taskList",(function(e){return(0,u.default)(i.default.mark((function t(){return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,s.request)({url:"api/user/taskList",method:"post",data:e}));case 1:case"end":return t.stop()}}),t)})))()})),(0,a.default)(o,"editSitter",(function(e){return(0,s.request)({url:"api/user/editSitter",method:"post",data:e})})),(0,a.default)(o,"sitterRegister",(function(e){return(0,s.request)({url:"api/user/sitterRegister",method:"post",data:e})})),(0,a.default)(o,"sellerUserList",(function(e){return(0,s.request)({url:"api/user/sellerUserList",method:"post",data:e})})),(0,a.default)(o,"userRecordList",(function(e){return(0,s.request)({url:"api/user/userRecordList",method:"post",data:e})})),(0,a.default)(o,"mealsetRechargeCreateOrder",(function(e){return(0,s.request)({url:"api/user/mealsetRechargeCreateOrder",method:"post",data:e})})),(0,a.default)(o,"mealsetList",(function(e){return(0,s.request)({url:"api/mealsetList",method:"post",data:e})})),(0,a.default)(o,"withdrawal",(function(e){return(0,s.request)({url:"api/user/withdrawal",method:"post",data:e})})),(0,a.default)(o,"userWallet",(function(e){return(0,s.request)({url:"api/user/userWallet",method:"post",data:e})})),(0,a.default)(o,"sitterList",(function(e){return(0,s.request)({url:"api/sitterList",method:"post",data:e})})),(0,a.default)(o,"friendList",(function(e){return(0,s.request)({url:"api/user/friendList",method:"post",data:e})})),(0,a.default)(o,"findZegoToken",(function(e){return(0,s.request)({url:"api/user/findZegoToken",method:"post",data:e})})),(0,a.default)(o,"preCreateOrder",(function(e){return(0,s.request)({url:"api/user/preCreateOrder",method:"post",data:e})})),(0,a.default)(o,"membershipBenefits",(function(e){return(0,s.request)({url:"api/user/membershipBenefits",method:"post",data:e})})),(0,a.default)(o,"careOrCancel",(function(e){return(0,s.request)({url:"api/user/careOrCancel",method:"post",data:e})})),(0,a.default)(o,"findOtherUserInfo",(function(e){return(0,s.request)({url:"api/user/findOtherUserInfo",method:"post",data:e})})),(0,a.default)(o,"nearbyCustomerList",(function(e){return(0,s.request)({url:"api/user/nearbyCustomerList",method:"post",data:e})})),(0,a.default)(o,"customerRecommendList",(function(e){return(0,s.request)({url:"api/user/customerRecommendList",method:"post",data:e})})),(0,a.default)(o,"socialConsumption",(function(e){return(0,s.request)({url:"api/user/socialConsumption",method:"post",data:e})})),(0,a.default)(o,"chat",(function(e){return(0,s.request)({url:"api/user/chat",method:"post",data:e})})),(0,a.default)(o,"userBalance",(function(e){return(0,s.request)({url:"api/user/userBalance",method:"post",data:e})})),(0,a.default)(o,"setAccostDefault",(function(e){return(0,s.request)({url:"api/user/setAccostDefault",method:"post",data:e})})),(0,a.default)(o,"findAccost",(function(e){return(0,s.request)({url:"api/user/findAccost",method:"post",data:e})})),(0,a.default)(o,"report",(function(e){return(0,s.request)({url:"api/user/report",method:"post",data:e})})),(0,a.default)(o,"zan",(function(e){return(0,s.request)({url:"api/user/zan",method:"post",data:e})})),(0,a.default)(o,"commentReply",(function(e){return(0,s.request)({url:"api/user/commentReply",method:"post",data:e})})),(0,a.default)(o,"articleDetail",(function(e){return(0,s.request)({url:"api/user/articleDetail",method:"post",data:e})})),(0,a.default)(o,"userArticleList",(function(e){return(0,s.request)({url:"api/user/userArticleList",method:"post",data:e})})),(0,a.default)(o,"userArticleList",(function(e){return(0,s.request)({url:"api/user/userArticleList",method:"post",data:e})})),(0,a.default)(o,"userSellerServiceList",(function(e){return(0,s.request)({url:"api/user/userSellerServiceList",method:"post",data:e})})),(0,a.default)(o,"paymentOrder",(function(e){return(0,s.request)({url:"api/user/paymentOrder",method:"get",data:e})})),(0,a.default)(o,"memberCreateOrder",(function(e){return(0,s.request)({url:"api/user/memberCreateOrder",method:"post",data:e})})),(0,a.default)(o,"getConfigData",(function(e){return(0,s.request)({url:"api/getConfigData",method:"get",data:e})})),(0,a.default)(o,"memberList",(function(e){return(0,s.request)({url:"api/memberList",method:"get",data:e})})),(0,a.default)(o,"sign",(function(e){return(0,s.request)({url:"api/user/sign",method:"post",data:e})})),(0,a.default)(o,"articleDetailt",(function(e){return(0,s.request)({url:"api/user/articleDetailt",method:"post",data:e})})),(0,a.default)(o,"publishArticle",(function(e){return(0,s.request)({url:"api/user/publishArticle",method:"post",data:e})})),(0,a.default)(o,"articleList",(function(e){return(0,s.request)({url:"api/user/articleList",method:"post",data:e})})),(0,a.default)(o,"myAlbums",(function(e){return(0,s.request)({url:"api/user/myAlbums",method:"post",data:e})})),(0,a.default)(o,"editUser",(function(e){return(0,s.request)({url:"api/user/editUser",method:"post",data:e})})),(0,a.default)(o,"voiceSign",(function(e){return(0,s.request)({url:"api/user/voiceSign",method:"post",data:e})})),(0,a.default)(o,"getDictDataByType",(function(e){return(0,s.request)({url:"api/getDictDataByType",method:"get",data:e})})),(0,a.default)(o,"detectLivingFace",(function(e){return(0,s.request)({url:"api/user/detectLivingFace",method:"post",data:e})})),(0,a.default)(o,"realNameAuth",(function(e){return(0,s.request)({url:"api/user/realNameAuth",method:"post",data:e})})),(0,a.default)(o,"phoneAuth",(function(e){return(0,s.request)({url:"api/user/phoneAuth",method:"post",data:e})})),(0,a.default)(o,"findUserInfo",(function(e){return(0,s.request)({url:"api/user/findUserInfo",method:"post",data:e})})),(0,a.default)(o,"forgetPsw",(function(e){return(0,s.request)({url:"api/forgetPsw",method:"post",data:e})})),(0,a.default)(o,"sendSmsCode",(function(e){return(0,s.request)({url:"api/sendSmsCode",method:"post",data:e})})),(0,a.default)(o,"toLogin",(function(e){return(0,s.request)({url:"api/loginByCode",method:"post",data:e})})),(0,a.default)(o,"regByCode",(function(e){return(0,s.request)({url:"api/regByCode",method:"post",data:e})})),(0,a.default)(o,"loginForPsw",(function(e){return(0,s.request)({url:"/api/loginForPsw",method:"post",data:e})})),(0,a.default)(o,"registerEditUser",(function(e){return(0,s.request)({url:"api/user/registerEditUser",method:"post",data:e})})),(0,a.default)(o,"getMemberInfo",(function(e){return(0,s.request)({url:"api/user/getinfo",method:"post",data:e})})),o);t.default=c},function(e,t,r){var n=r(1).default;e.exports=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";(function(e){var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.request=function(t){return new Promise((function(r,n){var o=i+"/prod-api/"+t.url;uni.request({url:o,data:t.data,method:t.method,header:{token:uni.getStorageSync("userInfo").token,"Content-type":"application/json",deviceSn:uni.getStorageSync("deviceSn")},success:function(o){200==o.data.code||-1==o.data.code?(e("log",t," at api/request.js:19"),e("log","\u8fd4\u56de\u7ed3\u679c\uff1a"+JSON.stringify(o.data)," at api/request.js:20"),r(o.data)):401==o.data.code?uni.showModal({title:"\u6e29\u99a8\u63d0\u793a",content:"\u5f53\u524d\u8d26\u53f7\u5df2\u8fc7\u671f\uff0c\u662f\u5426\u91cd\u65b0\u767b\u5f55",confirmColor:"#05754D",success:function(e){uni.removeStorageSync("userInfo"),uni.navigateTo({url:"/pages/login/login"})}}):(n(o.data),uni.showToast({icon:"none",title:o.data.msg,duration:3e3}))},fail:function(e){n(e)},complete:function(){}})}))};var o=n(r(33)),i="https://api.lyiyuan.cn";o.default.prototype.$baseUrl=i}).call(this,r(4).default)},function(e,t){e.exports=Vue},,,function(e,t,r){"use strict";r.r(t);var n=r(14),o=r.n(n);for(var i in n)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(i);t.default=o.a},,,,function(e,t,r){"use strict";r.r(t);r(26),r(28);var n=r(8);n.default.mpType="page",n.default.route="pages/users/renzheng/camera",n.default.el="#root",new Vue(n.default)},function(e,t){e.exports=function(e){throw new TypeError('"'+e+'" is read-only')},e.exports.__esModule=!0,e.exports.default=e.exports}]); |