pages-public-login.5833b1a1.js 8.5 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-public-login"],{1631:function(t,i,e){"use strict";var n=e("7f26"),o=e.n(n);o.a},"5a7b":function(t,i,e){"use strict";e.d(i,"b",(function(){return o})),e.d(i,"c",(function(){return a})),e.d(i,"a",(function(){return n}));var n={navbar:e("cbc9").default},o=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",[e("navbar",{attrs:{scroll:t.scrollNum,iSimmersive:!0,title:"",onBack:t.onBack}}),"app"!=t.platform.type&&"h5"!=t.platform.type||t.platform.isWechat?t._e():e("v-uni-view",{staticClass:"app"},[e("v-uni-view",{staticClass:"top"},[e("v-uni-view",[t._v("泰誉凡")]),e("v-uni-view",[t._v("会员登录")])],1),e("v-uni-view",{staticClass:"theform"},[e("v-uni-form",{on:{submit:function(i){arguments[0]=i=t.$handleEvent(i),t.onSubmit.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"fields-box"},[e("v-uni-view",{staticClass:"field-box iconfont"},[e("v-uni-input",{staticClass:"uni-input",attrs:{type:"text",name:"phone",value:"18026740326",placeholder:"用户名/邮箱/手机号"}})],1),e("v-uni-view",{staticClass:"field-box iconfont"},[e("v-uni-input",{staticClass:"uni-input",attrs:{type:"password",name:"password",value:"admin888",placeholder:"密码"}})],1)],1),e("v-uni-view",{staticClass:"btn"},[e("v-uni-button",{attrs:{disabled:t.isSubmit,"form-type":"submit"}},[t._v("登录")])],1)],1),e("v-uni-view",{staticClass:"tips-box clear"},[e("v-uni-view",[e("v-uni-navigator",{attrs:{url:"register","hover-class":"none"}},[t._v("用户注册")])],1),e("v-uni-view",[e("v-uni-navigator",{attrs:{url:"forget","hover-class":"none"}},[t._v("忘记密码")])],1)],1)],1)],1),"h5"==t.platform.type&&t.platform.isWechat?e("v-uni-view",{staticClass:"login-wrap"},[e("v-uni-view",{staticClass:"logo"},[t.static?e("v-uni-image",{attrs:{src:t.static+"app/a3mall.png"}}):t._e()],1),e("v-uni-view",{staticClass:"wechat-title"},[t._v("微信授权登录")]),e("v-uni-view",{staticClass:"wechat-desc"},[t._v("获得您的公开信息(昵称、头像等),以便为您提供更好的服务")]),e("v-uni-view",{staticClass:"wechat-login-btn",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.onWechatLogin.apply(void 0,arguments)}}},[t._v("授权登录")]),e("v-uni-view",{staticClass:"wechat-go-home",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.onGoHome.apply(void 0,arguments)}}},[t._v("暂不登录")])],1):t._e(),t.isSubmit?e("loading",{attrs:{layer:!0}}):t._e()],1)},a=[]},"6b29":function(t,i,e){"use strict";var n=e("4ea4");Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var o=n(e("4a45")),a=(e("b1b1"),n(e("cbc9"))),s=e("c8af"),r={components:{loading:o.default,navbar:a.default},data:function(){return{static:"",scrollNum:0,isSubmit:!1,platform:"app"}},onLoad:function(){this.static=this.$static,this.platform=this.$utils.platformAgent()},onShow:function(){var t=this;"h5"==this.platform.type&&this.platform.isWechat&&void 0!=this.$route.query.code&&this.$route.query.code.length&&(this.isSubmit=!0,this.$http.wxLogin({source:1,code:this.$route.query.code,state:this.$route.query.state}).then((function(i){i.status?(t.$store.commit("UPDATEUSERS",i.data),t.$utils.switchTab("ucenter/index")):t.$utils.msg(i.info),t.isSubmit=!1})).catch((function(i){t.isSubmit=!1,t.$utils.msg("请求失败,请稍后在试")})))},onPageScroll:function(t){this.scrollNum=t.scrollTop},methods:{onBack:function(){this.$utils.switchTab("index/index")},onWechatLogin:function(){var t=this;(0,s.login)().catch((function(i){t.$utils.msg(i)}))},onGoHome:function(){this.$utils.switchTab("index/index")},onSubmit:function(t){var i=this,e=t.detail.value;return this.isSubmit=!0,""==e.phone?(this.isSubmit=!1,void this.$utils.msg("请填写帐号!")):""==e.password?(this.isSubmit=!1,void this.$utils.msg("请填写密码!")):void this.$http.sendLogin({username:e.phone,password:e.password}).then((function(t){t.status?(i.$store.commit("UPDATEUSERS",t.data),i.$utils.switchTab("ucenter/index")):i.$utils.msg(t.info),i.isSubmit=!1})).catch((function(t){i.isSubmit=!1,i.$utils.msg("连接网络错误,请检查网络是否连接!")}))}}};i.default=r},"6d11":function(t,i,e){"use strict";e.r(i);var n=e("5a7b"),o=e("6d5e");for(var a in o)"default"!==a&&function(t){e.d(i,t,(function(){return o[t]}))}(a);e("1631");var s,r=e("f0c5"),l=Object(r["a"])(o["default"],n["b"],n["c"],!1,null,"052e4422",null,!1,n["a"],s);i["default"]=l.exports},"6d5e":function(t,i,e){"use strict";e.r(i);var n=e("6b29"),o=e.n(n);for(var a in n)"default"!==a&&function(t){e.d(i,t,(function(){return n[t]}))}(a);i["default"]=o.a},"7f26":function(t,i,e){var n=e("d6ca");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=e("4f06").default;o("5afff3f5",n,!0,{sourceMap:!1,shadowMode:!1})},d6ca:function(t,i,e){var n=e("24fb"),o=e("1de5"),a=e("facc");i=n(!1);var s=o(a);i.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.login-wrap .logo[data-v-052e4422]{text-align:center;padding-top:%?180?%}.login-wrap .logo uni-image[data-v-052e4422]{width:%?180?%;height:%?180?%}.login-wrap .wechat-title[data-v-052e4422]{font-size:%?35?%;font-weight:500;color:#333;margin-top:%?64?%;text-align:center}.login-wrap .wechat-desc[data-v-052e4422]{font-size:%?28?%;font-weight:500;color:#999;margin-top:%?24?%;text-align:center;padding:%?10?% %?50?%}.login-wrap .wechat-login-btn[data-v-052e4422]{height:%?80?%;line-height:%?80?%;color:#fff;background-color:#33a7ff;text-align:center;border-radius:%?50?%;margin:%?50?%;font-size:%?32?%}.login-wrap .wechat-go-home[data-v-052e4422]{text-align:center;font-size:%?30?%;color:#666}.top[data-v-052e4422]{background-color:initial;width:100%;height:%?386?%;position:relative;z-index:1;background-image:url('+s+');background-repeat:no-repeat;background-size:100%}.top uni-view[data-v-052e4422]{z-index:2;position:absolute}.top uni-view[data-v-052e4422]:nth-child(1){top:%?90?%;font-size:%?72?%;color:#fff;width:100%;text-align:center}.top uni-view[data-v-052e4422]:nth-child(1)::after{position:absolute;content:" ";background-color:#7a91dc;height:1px;width:%?210?%;top:%?120?%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.top uni-view[data-v-052e4422]:nth-child(2){top:%?225?%;font-size:%?49?%;color:#fff000;text-align:center;width:100%}.top uni-image[data-v-052e4422]{width:100%;height:%?386?%}.theform[data-v-052e4422]{width:%?590?%;margin:%?70?% auto 0 auto}.theform .fields-box[data-v-052e4422]{width:100%;border:1px solid #d2cdcd;overflow:hidden;border-radius:%?10?%}.theform .fields-box .field-box[data-v-052e4422]{width:100%;height:%?100?%;position:relative;font-size:%?40?%}.theform .fields-box .field-box[data-v-052e4422]:first-child{border-bottom:1px solid #d2cdcd}.theform .fields-box .field-box uni-input[data-v-052e4422]{width:100%;height:%?100?%;line-height:%?100?%;text-indent:%?100?%;font-size:%?29?%;color:#888}.theform .fields-box .field-box[data-v-052e4422]:nth-child(1):before{content:"\\e61b";color:#bfbfbf;position:absolute;left:%?30?%;top:%?28?%}.theform .fields-box .field-box[data-v-052e4422]:nth-child(2):before{content:"\\e61a";color:#bfbfbf;position:absolute;left:%?30?%;top:%?28?%}.theform .btn[data-v-052e4422]{width:100%;margin-top:%?48?%}.theform .btn uni-button[data-v-052e4422]{color:#fff;background-color:#1b43c4;border:1px solid #1b43c4;border-radius:%?10?%;font-size:%?33?%;height:%?100?%;line-height:%?100?%;text-align:center}.theform .tips-box[data-v-052e4422]{width:100%;font-size:%?28?%;color:#888;margin-top:%?45?%}.theform .tips-box uni-view[data-v-052e4422]{width:50%;float:left}.theform .tips-box uni-view[data-v-052e4422]:last-child{text-align:right}',""]),t.exports=i}}]);