pages-login-reg.c98f8eae.js 16 KB

123
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-login-reg"],{1476:function(t,e,n){var i=n("c6eb");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("4f06").default;r("01e0afb2",i,!0,{sourceMap:!1,shadowMode:!1})},"14fb":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"content"},[i("v-uni-view",{staticClass:"header"},[i("v-uni-image",{attrs:{src:n("dc6a")}})],1),i("v-uni-view",{staticClass:"list"},[i("v-uni-view",{staticClass:"list-call"},[i("v-uni-image",{staticClass:"img",attrs:{src:"/static/shilu-login/1.png"}}),i("v-uni-input",{staticClass:"sl-input",attrs:{type:"number",maxlength:"11",placeholder:"手机号"},model:{value:t.phone,callback:function(e){t.phone=e},expression:"phone"}})],1),i("v-uni-view",{staticClass:"list-call"},[i("v-uni-image",{staticClass:"img",attrs:{src:"/static/shilu-login/2.png"}}),i("v-uni-input",{staticClass:"sl-input",attrs:{type:"text",maxlength:"32",placeholder:"登录密码",password:!t.showPassword},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}}),i("v-uni-image",{staticClass:"img",attrs:{src:t.showPassword?"/static/shilu-login/op.png":"/static/shilu-login/cl.png"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.display.apply(void 0,arguments)}}})],1),i("v-uni-view",{staticClass:"list-call"},[i("v-uni-image",{staticClass:"img",attrs:{src:"/static/shilu-login/3.png"}}),i("v-uni-input",{staticClass:"sl-input",attrs:{type:"number",maxlength:"4",placeholder:"验证码"},model:{value:t.code,callback:function(e){t.code=e},expression:"code"}}),i("v-uni-view",{staticClass:"yzm",class:{yzms:t.second>0},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getcode.apply(void 0,arguments)}}},[t._v(t._s(t.yanzhengma))])],1),1==t.iskq?i("v-uni-view",{staticClass:"list-call"},[i("v-uni-image",{staticClass:"img",attrs:{src:"/static/shilu-login/4.png"}}),i("v-uni-input",{staticClass:"sl-input",attrs:{type:"text",maxlength:"12",placeholder:"邀请码 没有留空"},model:{value:t.invitation,callback:function(e){t.invitation=e},expression:"invitation"}})],1):t._e()],1),i("v-uni-view",{staticClass:"button-login",attrs:{"hover-class":"button-hover"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.bindLogin.apply(void 0,arguments)}}},[i("v-uni-text",{staticStyle:{"font-size":"40upx"}},[t._v("注册")])],1),i("v-uni-view",{staticClass:"agreement"},[i("v-uni-image",{attrs:{src:1==t.agreement?"/static/shilu-login/ty1.png":"/static/shilu-login/ty0.png"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.agreementSuccess.apply(void 0,arguments)}}}),i("v-uni-text",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.agreementSuccess.apply(void 0,arguments)}}},[t._v("同意")]),i("v-uni-navigator",{attrs:{"open-type":"navigate"}},[t._v("《软件用户协议》")])],1)],1)},r=[]},"1da1":function(t,e,n){"use strict";function i(t,e,n,i,r,a,o){try{var s=t[a](o),c=s.value}catch(u){return void n(u)}s.done?e(c):Promise.resolve(c).then(i,r)}n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var o=t.apply(e,n);function s(t){i(o,r,a,s,c,"next",t)}function c(t){i(o,r,a,s,c,"throw",t)}s(void 0)}))}},n("d3b7")},"22fa":function(t,e,n){"use strict";n.r(e);var i=n("d194"),r=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=r.a},"7f85":function(t,e,n){"use strict";n.r(e);var i=n("14fb"),r=n("22fa");for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);n("fe77");var o=n("f0c5"),s=Object(o["a"])(r["default"],i["b"],i["c"],!1,null,"034b41ec",null,!1,i["a"],void 0);e["default"]=s.exports},c6eb:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,".content[data-v-034b41ec]{display:flex;flex-direction:column;justify-content:center}.header[data-v-034b41ec]{width:%?161?%;height:%?161?%;background:#3fcdeb;box-shadow:%?0?% %?12?% %?13?% %?0?% rgba(63,205,235,.47);border-radius:50%;margin-top:%?30?%;margin-left:auto;margin-right:auto}.header uni-image[data-v-034b41ec]{width:%?161?%;height:%?161?%;border-radius:50%}.list[data-v-034b41ec]{display:flex;flex-direction:column;padding-top:%?50?%;padding-left:%?70?%;padding-right:%?70?%}.list-call[data-v-034b41ec]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;height:%?100?%;color:#333;border-bottom:.5px solid #e2e2e2}.list-call .img[data-v-034b41ec]{width:%?40?%;height:%?40?%}.list-call .sl-input[data-v-034b41ec]{flex:1;text-align:left;font-size:%?32?%;margin-left:%?16?%}.yzm[data-v-034b41ec]{color:#ff7d13;font-size:%?24?%;line-height:%?64?%;padding-left:%?10?%;padding-right:%?10?%;width:auto;height:%?64?%;border:%?1?% solid #ffa800;border-radius:%?50?%}.yzms[data-v-034b41ec]{color:#999!important;border:%?1?% solid #999}.button-login[data-v-034b41ec]{color:#fff;font-size:%?34?%;width:%?470?%;height:%?100?%;line-height:%?100?%;background:linear-gradient(-90deg,#4bc45d,#bce29e);box-shadow:%?0?% %?0?% %?13?% %?0?% rgba(164,217,228,.2);border-radius:%?50?%;text-align:center;margin-left:auto;margin-right:auto;margin-top:%?100?%}.button-hover[data-v-034b41ec]{background:linear-gradient(-90deg,rgba(63,205,235,.8),rgba(188,226,158,.8))}.agreement[data-v-034b41ec]{display:flex;flex-direction:row;justify-content:center;align-items:center;font-size:%?30?%;margin-top:%?80?%;color:#ffa800;text-align:center;height:%?40?%;line-height:%?40?%}.agreement uni-image[data-v-034b41ec]{width:%?40?%;height:%?40?%}",""]),t.exports=e},c7eb:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){
  2. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  3. e.default=function(){return t};var t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(P){l=function(t,e,n){return t[e]=n}}function d(t,e,n,i){var r=e&&e.prototype instanceof p?e:p,o=Object.create(r.prototype),s=new S(i||[]);return a(o,"_invoke",{value:L(t,n,s)}),o}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(P){return{type:"throw",arg:P}}}t.wrap=d;var h={};function p(){}function v(){}function g(){}var m={};l(m,s,(function(){return this}));var y=Object.getPrototypeOf,w=y&&y(y(j([])));w&&w!==n&&r.call(w,s)&&(m=w);var b=g.prototype=p.prototype=Object.create(m);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){var n;a(this,"_invoke",{value:function(a,o){function s(){return new e((function(n,s){(function n(a,o,s,c){var u=f(t[a],t,o);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==(0,i.default)(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,s,c)}),(function(t){n("throw",t,s,c)})):e.resolve(d).then((function(t){l.value=t,s(l)}),(function(t){return n("throw",t,s,c)}))}c(u.arg)})(a,o,n,s)}))}return n=n?n.then(s,s):s()}})}function L(t,e,n){var i="suspendedStart";return function(r,a){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw a;return O()}for(n.method=r,n.arg=a;;){var o=n.delegate;if(o){var s=_(o,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var c=f(t,e,n);if("normal"===c.type){if(i=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i="completed",n.method="throw",n.arg=c.arg)}}}function _(t,e){var n=e.method,i=t.iterator[n];if(void 0===i)return e.delegate=null,"throw"===n&&t.iterator["return"]&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var r=f(i,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,h;var a=r.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function E(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function j(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:O}}function O(){return{value:void 0,done:!0}}return v.prototype=g,a(b,"constructor",{value:g,configurable:!0}),a(g,"constructor",{value:v,configurable:!0}),v.displayName=l(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},x(k.prototype),l(k.prototype,c,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,i,r,a){void 0===a&&(a=Promise);var o=new k(d(e,n,i,r),a);return t.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},x(b),l(b,u,"Generator"),l(b,s,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},t.values=j,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,i){return o.type="throw",o.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(o)},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),h},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),C(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;C(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:j(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t},n("7a82"),n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("b636"),n("944a"),n("0c47"),n("23dc"),n("3410"),n("d9e2"),n("d401"),n("14d9"),n("159b"),n("131a"),n("26e9"),n("fb6a");var i=function(t){return t&&t.__esModule?t:{default:t}}(n("53ca"))},d194:function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a,o=i(n("ade3")),s=i(n("c7eb")),c=i(n("3835")),u=i(n("1da1")),l=(r={onLoad:function(t){if(t.uid)this.invitation=t.uid;else{var e=uni.getStorageSync("fxpid");e&&(this.invitation=e)}this.getList()},onUnload:function(){clearInterval(a),this.second=0},data:function(){return{phone:"",password:"",code:"",invitation:"",agreement:!0,showPassword:!1,second:0,iskq:0}},computed:{yanzhengma:function(){return 0==this.second?"获取验证码":this.second<10?"重新获取0"+this.second:"重新获取"+this.second}}},(0,o.default)(r,"onUnload",(function(){this.clear()})),(0,o.default)(r,"methods",{clear:function(){clearInterval(a),a=null,this.second=0},display:function(){this.showPassword=!this.showPassword},agreementSuccess:function(){this.agreement=!this.agreement},getcode:function(){var t=this;return(0,u.default)((0,s.default)().mark((function e(){var n,i,r,o,u;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(11==t.phone.length){e.next=3;break}return uni.showToast({icon:"none",title:"手机号不正确"}),e.abrupt("return");case 3:if(!(t.second>0)){e.next=5;break}return e.abrupt("return");case 5:return t.second=60,a=setInterval((function(){(void 0).second--,0==(void 0).second&&(void 0).clear()}),1e3),n={phone:t.phone},e.next=10,t.$httpas.post("/api/ems/index",n);case 10:if(i=e.sent,r=(0,c.default)(i,2),o=r[0],u=r[1],t.$httpas.errorCheck(o,u)){e.next=16;break}return e.abrupt("return");case 16:console.log(u.data.ok),console.log(u.data.data),1==u.data.ok?(uni.setStorage({key:"yzmss",data:u.data.data}),uni.showToast({title:u.data.msg,icon:"none"})):uni.showToast({title:u.data.msg,icon:"none"});case 19:case"end":return e.stop()}}),e)})))()},bindLogin:function(){if(0!=this.agreement)if(11==this.phone.length)if(this.password.length<6)uni.showToast({icon:"none",title:"密码不正确"});else if(4==this.code.length){var t=uni.getStorageSync("yzmss");if(1*this.code!=1*t)return uni.showToast({title:"短信验证码错误",icon:"none"}),!1;this.zc()}else uni.showToast({icon:"none",title:"验证码不正确"});else uni.showToast({icon:"none",title:"手机号不正确"});else uni.showToast({icon:"none",title:"请先阅读《软件用户协议》"})},zc:function(){var t=this;return(0,u.default)((0,s.default)().mark((function e(){var n,i,r,a,o;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t,n={mobile:t.phone,username:t.phone,password:t.password,pid:t.invitation},t.openid&&(n.openid=t.openid,n.nickName=t.nickName,n.avatarUrl=t.avatarUrl),e.next=5,t.$httpas.post("/api/user/reg",n);case 5:if(i=e.sent,r=(0,c.default)(i,2),a=r[0],o=r[1],t.$httpas.errorCheck(a,o)){e.next=11;break}return e.abrupt("return");case 11:1===o.data.code?uni.showModal({title:"",content:o.data.msg,showCancel:!1,confirmText:"确定",success:function(t){t.confirm?uni.navigateBack():t.cancel}}):uni.showToast({title:o.data.msg,icon:"none"});case 12:case"end":return e.stop()}}),e)})))()},getList:function(){var t=this,e={};e.limit=15,e.ishot=2,uni.request({url:this.configs.webUrl+"/api/video/lists",data:e,success:function(e){uni.setStorage({key:"config",data:e.data.config}),uni.getStorageSync("config").iskq&&(t.iskq=uni.getStorageSync("config").iskq)},fail:function(t,e){}})}}),r);e.default=l},dc6a:function(t,e,n){t.exports=n.p+"static/img/logo.256d7ad8.png"},fe77:function(t,e,n){"use strict";var i=n("1476"),r=n.n(i);r.a}}]);