| 123 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-login-login"],{1362:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,".content[data-v-788d2596]{display:flex;flex-direction:column;justify-content:center}.header[data-v-788d2596]{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-788d2596]{width:%?161?%;height:%?161?%;border-radius:50%}.list[data-v-788d2596]{display:flex;flex-direction:column;padding-top:%?50?%;padding-left:%?70?%;padding-right:%?70?%}.list-call[data-v-788d2596]{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-788d2596]{width:%?40?%;height:%?40?%}.list-call .sl-input[data-v-788d2596]{flex:1;text-align:left;font-size:%?32?%;margin-left:%?16?%}.button-login[data-v-788d2596]{color:#fff;font-size:%?34?%;width:%?470?%;height:%?100?%;background:linear-gradient(-90deg,#4bc45d,#bce29e);box-shadow:%?0?% %?0?% %?13?% %?0?% rgba(164,217,228,.2);border-radius:%?50?%;line-height:%?100?%;text-align:center;margin-left:auto;margin-right:auto;margin-top:%?100?%}.button-login1[data-v-788d2596]{color:#fff;font-size:%?34?%;width:%?470?%;height:%?80?%;background:linear-gradient(-90deg,#4bc45d,#bce29e);box-shadow:%?0?% %?0?% %?13?% %?0?% rgba(164,217,228,.2);border-radius:%?50?%;line-height:%?80?%;text-align:center;margin-left:auto;margin-right:auto;margin-top:%?30?%;color:#fff}.button-hover[data-v-788d2596]{background:linear-gradient(-90deg,rgba(63,205,235,.8),rgba(188,226,158,.8))}.agreenment[data-v-788d2596]{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?%}.agreenment uni-text[data-v-788d2596]{font-size:%?24?%;margin-left:%?15?%;margin-right:%?15?%}",""]),t.exports=e},1663: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 1==t.idfd?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.mobile,callback:function(e){t.mobile=e},expression:"mobile"}})],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:"true"},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1)],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()}}},[i("v-uni-text",{staticStyle:{"font-size":"40upx"}},[t._v("登录")])],1),i("v-uni-view",{staticClass:"agreenment"},[i("v-uni-navigator",{attrs:{url:"reg","open-type":"navigate"}},[t._v("注册账户")])],1)],1):t._e()},r=[]},"18a6":function(t,e,n){"use strict";var i=n("fefb"),r=n.n(i);r.a},"1da1":function(t,e,n){"use strict";function i(t,e,n,i,r,o,a){try{var c=t[o](a),s=c.value}catch(u){return void n(u)}c.done?e(s):Promise.resolve(s).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,o){var a=t.apply(e,n);function c(t){i(a,r,o,c,s,"next",t)}function s(t){i(a,r,o,c,s,"throw",t)}c(void 0)}))}},n("d3b7")},"45bc":function(t,e,n){"use strict";n.r(e);var i=n("88cc"),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=r.a},5124:function(t,e,n){"use strict";n.r(e);var i=n("1663"),r=n("45bc");for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);n("18a6");var a=n("f0c5"),c=Object(a["a"])(r["default"],i["b"],i["c"],!1,null,"788d2596",null,!1,i["a"],void 0);e["default"]=c.exports},"88cc":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=i(n("c7eb")),o=i(n("3835")),a=i(n("1da1"));n("ac1f"),n("466d"),n("c975"),n("e9c4");var c={data:function(){return{mobile:"",password:"",openid:"",unionid:"",userinfowx:"",idfd:1,fxpid:0}},onLoad:function(t){t.fxpid&&(this.fxpid=t.fxpid,t.fxpid>0&&uni.setStorage({key:"fxpid",data:t.fxpid}));var e=window.navigator.userAgent.toLowerCase();"micromessenger"==e.match(/MicroMessenger/i)&&(this.idfd=0,window.open(this.configs.webUrl+"/login.php","_self"))},methods:{dyxx:function(){},bindLogin:function(){var t=this;return(0,a.default)((0,r.default)().mark((function e(){var n,i,a,c,s,u,l;return(0,r.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t,t.mobile){e.next=5;break}return uni.showToast({title:"手机号不能为空",icon:"none"}),t.userfocus=!0,e.abrupt("return",!1);case 5:if(t.password){e.next=9;break}return uni.showToast({title:"密码不能为空",icon:"none"}),t.paswfocus=!0,e.abrupt("return",!1);case 9:return n={account:t.mobile,password:t.password},t.openid&&(n.openid=t.openid),e.next=13,t.$httpas.get("/api/user/login",n);case 13:if(i=e.sent,a=(0,o.default)(i,2),c=a[0],s=a[1],t.$httpas.errorCheck(c,s)){e.next=19;break}return e.abrupt("return");case 19:1===s.data.code?(s.data.data.userinfo.avatar?(u=s.data.data.userinfo.avatar,l=-1!=u.indexOf("data:image")?"":-1!=u.indexOf("http")?s.data.data.userinfo.avatar:t.configs.imgUrl+s.data.data.userinfo.avatar):l="",uni.setStorage({key:"avatar",data:l}),uni.setStorage({key:"userinfo",data:s.data.data.userinfo}),uni.setStorage({key:"config",data:s.data.data.config}),uni.showModal({title:"温馨提示",content:s.data.msg,showCancel:!1,confirmText:"确定",success:function(t){t.confirm?uni.navigateBack():t.cancel}})):uni.showToast({title:s.data.msg,icon:"none"});case 20:case"end":return e.stop()}}),e)})))()},getUserInfo1:function(){var t=this;uni.getUserProfile({desc:"Wexin",success:function(e){console.log(e),t.userinfowx=e.userInfo,t.wxlogin()},fail:function(t){console.log(t)}})},getuserinfo:function(){uni.showLoading({title:"授权中..."});var t=this;wx.login({success:function(e){if(e.code){e.code;wx.getUserInfo({success:function(e){t.userinfowx=e.userInfo,t.wxlogin()},fail:function(t){}})}}})},wxlogin:function(){var t=this,e=(this.userinfowx,this);uni.login({timeout:1e4,provider:"weixin",success:function(n){uni.hideLoading(),uni.request({url:t.configs.webUrl+"/api/user/getOpenid",method:"GET",data:{code:n.code},success:function(t){1==t.data.code?(e.openid=t.data.data.openid,e.unionid=t.data.data.unionid,uni.showModal({title:"温馨提示",content:"授权成功",showCancel:!1,confirmText:"确定",success:function(n){n.confirm?(console.log(t.data.msg),"登录成功"==t.data.msg?e.logins(t.data.data):e.opsdd(t.data.data)):n.cancel}})):uni.showModal({title:"温馨提示",content:JSON.stringify(t.data),showCancel:!1,confirmText:"确定",success:function(t){t.confirm||t.cancel}})},fail:function(t){console.log(t),uni.hideLoading()}})},fail:function(t){uni.hideLoading()}})},logins:function(t){if(t.userinfo.avatar){var e=t.userinfo.avatar;if(-1!=e.indexOf("data:image"))var n="";else n=-1!=e.indexOf("http")?t.userinfo.avatar:this.configs.imgUrl+t.userinfo.avatar}else n="";uni.setStorage({key:"avatar",data:n}),uni.setStorage({key:"userinfo",data:t.userinfo}),uni.setStorage({key:"config",data:t.config}),this.fxpid>0?uni.switchTab({url:"/pages/client/member/index"}):uni.navigateBack()},opsdd:function(t){this.userinfowx.openid=this.openid,uni.setStorage({key:"userinfowx",data:this.userinfowx});var e="/pages/login/loginwxxcx?fxpid="+this.fxpid;t.dltel&&(e="/pages/login/loginwxxcx?dltel="+t.dltel+"&fxpid="+this.fxpid),uni.navigateTo({url:e})},onGetPhoneNumber:function(t){var e=this;if(!this.openid)return uni.showModal({title:"温馨提示",content:"请先授权",showCancel:!1,confirmText:"确定",success:function(t){}}),!1;uni.login({timeout:1e4,provider:"weixin",success:function(n){console.log(n),console.log("onGetPhoneNumber",t),uni.request({url:e.configs.webUrl+"/api/user/getphone",method:"GET",data:{openid:e.openid,userinfowx:e.userinfowx,code:n.code,iv:t.detail.iv,encryptedData:t.detail.encryptedData},success:function(t){console.log(t.data),uni.showModal({title:"温馨提示",content:JSON.stringify(t.data),showCancel:!1,confirmText:"确定",success:function(t){t.confirm||t.cancel}})},fail:function(t){console.log(t)}})},fail:function(t){}})}}};e.default=c},c7eb:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
- e.default=function(){return t};var t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.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(T){l=function(t,e,n){return t[e]=n}}function d(t,e,n,i){var r=e&&e.prototype instanceof g?e:g,a=Object.create(r.prototype),c=new j(i||[]);return o(a,"_invoke",{value:k(t,n,c)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(T){return{type:"throw",arg:T}}}t.wrap=d;var h={};function g(){}function p(){}function v(){}var w={};l(w,c,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(C([])));y&&y!==n&&r.call(y,c)&&(w=y);var x=v.prototype=g.prototype=Object.create(w);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){var n;o(this,"_invoke",{value:function(o,a){function c(){return new e((function(n,c){(function n(o,a,c,s){var u=f(t[o],t,a);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,c,s)}),(function(t){n("throw",t,c,s)})):e.resolve(d).then((function(t){l.value=t,c(l)}),(function(t){return n("throw",t,c,s)}))}s(u.arg)})(o,a,n,c)}))}return n=n?n.then(c,c):c()}})}function k(t,e,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return S()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var c=_(a,n);if(c){if(c===h)continue;return c}}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 s=f(t,e,n);if("normal"===s.type){if(i=n.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(i="completed",n.method="throw",n.arg=s.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 o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function O(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 E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function C(t){if(t){var e=t[c];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:S}}function S(){return{value:void 0,done:!0}}return p.prototype=v,o(x,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:p,configurable:!0}),p.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},b(L.prototype),l(L.prototype,s,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new L(d(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(x),l(x,u,"Generator"),l(x,c,(function(){return this})),l(x,"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=C,j.prototype={constructor:j,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(E),!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 a.type="throw",a.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 o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.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 o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):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),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),E(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;E(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:C(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"))},dc6a:function(t,e,n){t.exports=n.p+"static/img/logo.256d7ad8.png"},fefb:function(t,e,n){var i=n("1362");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("4f06").default;r("59236773",i,!0,{sourceMap:!1,shadowMode:!1})}}]);
|