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.

1 line
6.3 KiB

8 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-login-login"],{"50b6":function(t,e,i){var n=i("c5b0");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("d537b972",n,!0,{sourceMap:!1,shadowMode:!1})},"7e912":function(t,e,i){"use strict";i.r(e);var n=i("fd6e"),a=i("86de");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("830d");var s=i("828b"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"576b1fef",null,!1,n["a"],void 0);e["default"]=c.exports},"830d":function(t,e,i){"use strict";var n=i("50b6"),a=i.n(n);a.a},"86de":function(t,e,i){"use strict";i.r(e);var n=i("c600"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},c5b0:function(t,e,i){var n=i("c86c");e=n(!1),e.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/* 文章场景相关 */.bg[data-v-576b1fef]{width:100vw;height:100vh;background-image:url(https://static.ticket.sz-trip.com/tourGuide/images/login/bg.png);background-size:100% 100%;padding-top:%?428?%}.title-img[data-v-576b1fef]{display:block;margin:auto;width:%?336.67?%;height:%?54?%}.item[data-v-576b1fef]{width:%?587?%;height:%?80?%;background:#fff;border-radius:%?40?%;margin:%?32?% auto 0;padding:0 %?26?%}.item .icon[data-v-576b1fef]{width:%?26.67?%;height:%?26.67?%;margin-right:%?12?%}.item uni-input[data-v-576b1fef]{flex:1;font-weight:500;font-size:%?25?%;color:#000}.item uni-input[data-v-576b1fef]::-webkit-input-placeholder{color:#ababab}.item uni-input[data-v-576b1fef]::placeholder{color:#ababab}.item .code-img[data-v-576b1fef]{width:%?153?%;height:%?55?%;margin-left:%?10?%}.item .eye-img[data-v-576b1fef]{width:%?26.67?%;height:%?26.67?%;margin-left:%?10?%}.btn[data-v-576b1fef]{width:%?547?%;line-height:%?80?%;background:#96684f;border-radius:%?40?%;margin:%?100?% auto 0;font-weight:700;font-size:%?35?%;color:#fff;text-align:center}',""]),t.exports=e},c600:function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("4626"),i("5ac7"),i("5c47");var n={data:function(){return{form:{username:"",captchaCodeId:"",captchaCode:"",password:""},showPassword:!0,codeImg:"",minHeight:0}},onReady:function(){},mounted:function(){var t=this;this.$nextTick((function(){setTimeout((function(){t.setScreen()}),1e3)}))},onShow:function(){this.getCodeImg()},methods:{getCodeImg:function(){var t=this;this.Post({},"/api/Merchants/get_graphic").then((function(e){t.codeImg=e.data.code,t.form.captchaCodeId=e.data.id}))},login:function(){var t=this;this.Post(this.form,"/api/Merchants/login_member").then((function(e){1==e.code?(t.$store.commit("changeUserInfo",e.data),t.$store.state.user.toPath.includes("user/user")?uni.switchTab({url:t.$store.state.user.toPath}):uni.switchTab({url:"/pages/index/index"})):t.getCodeImg()}))},setScreen:function(){var t=this,e=!1;try{t.minHeight=document.getElementById("login-bg").clientHeight,e=!0}catch(n){e=!1}if(!e){var i=uni.createSelectorQuery().in(this);i.select("#login-bg").boundingClientRect((function(e){t.minHeight=e.h