pages-login-login.83897a89.js
11.1 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-login-login"],{"1de5":function(t,n,e){"use strict";t.exports=function(t,n){return n||(n={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),n.hash&&(t+=n.hash),/["'() \t\n]/.test(t)||n.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},"3ee0":function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;e("d193");var i={data:function(){return{value:"",type:"password",passwordIcon:!0,border:!0,account:"",password:"",show:!0,clientInfo:{},clientid:"",userID:"",token:uni.getStorageSync("token")||""}},onLoad:function(){console.log("clientInfo"+JSON.stringify(this.clientInfo))},onShow:function(){this.token=uni.getStorageSync("token")||"",""!=this.token&&null!=this.token&&uni.navigateTo({url:"../index/index"})},methods:{goTabIndex:function(){var t=this,n=this;console.log(n.account),""!=n.account&&null!=n.account?""!=n.password&&null!=n.password?uni.request({url:this.apiUrl+"/api/inspection/staff/login",data:{account:n.account,password:n.password,clientid:n.clientid},success:function(n){var e=n.data.data,i=n.data.code;if(1===i){var o=function(t){uni.getLocation({type:"gcj02",accuracy:"best",isHighAccuracy:!0,highAccuracyExpireTime:2e4,success:function(n){console.log("坐标钻互刷等哈说",n),uni.request({url:"https://www.ynzhsk.cn/api/inspection/staff/report_lanlnt",header:{token:t},data:{lat:n.longitude,lng:n.latitude},method:"POST"})}})},a=n.data.data.userinfo.token;t.userID=n.data.data.staff.mobile;var s=n.data.data.admin_group_id;console.log("login admin_group_id:"+s),console.log("login userID:"+t.userID),uni.setStorageSync("admin_group_id",s),uni.setStorageSync("userID",t.userID),console.log("login admin_group_id:"+uni.getStorageSync("admin_group_id")),console.log("login userID:"+uni.getStorageSync("userID")),o(a);var r=setInterval(o,6e4,a);uni.setStorage({key:"uploadIntervalId",data:r}),uni.setStorageSync("token",a),uni.setStorageSync("userdata",e),uni.switchTab({url:"../index/index"})}else t.$refs.uToast.show({title:n.data.msg||"服务器异常",type:"error"})},fail:function(t){console.log("fail::::::"+JSON.stringify(t))}}):n.$refs.uToast.show({title:"密码不能为空",type:"error"}):n.$refs.uToast.show({title:"账号不能为空",type:"error"})}}};n.default=i},5825:function(t,n,e){"use strict";e.r(n);var i=e("6329"),o=e.n(i);for(var a in i)"default"!==a&&function(t){e.d(n,t,(function(){return i[t]}))}(a);n["default"]=o.a},6329:function(t,n,e){"use strict";e("c975"),e("a9e3"),e("b64b"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i={name:"u-toast",props:{zIndex:{type:[Number,String],default:""}},data:function(){return{isShow:!1,timer:null,config:{params:{},title:"",type:"",duration:2e3,isTab:!1,url:"",icon:!0,position:"center",callback:null,back:!1},tmpConfig:{}}},computed:{iconName:function(){if(["error","warning","success","info"].indexOf(this.tmpConfig.type)>=0&&this.tmpConfig.icon){var t=this.$u.type2icon(this.tmpConfig.type);return t}},uZIndex:function(){return this.isShow?this.zIndex?this.zIndex:this.$u.zIndex.toast:"999999"}},methods:{show:function(t){var n=this;this.tmpConfig=this.$u.deepMerge(this.config,t),this.timer&&(clearTimeout(this.timer),this.timer=null),this.isShow=!0,this.timer=setTimeout((function(){n.isShow=!1,clearTimeout(n.timer),n.timer=null,"function"===typeof n.tmpConfig.callback&&n.tmpConfig.callback(),n.timeEnd()}),this.tmpConfig.duration)},hide:function(){this.isShow=!1,this.timer&&(clearTimeout(this.timer),this.timer=null)},timeEnd:function(){if(this.tmpConfig.url){if("/"!=this.tmpConfig.url[0]&&(this.tmpConfig.url="/"+this.tmpConfig.url),Object.keys(this.tmpConfig.params).length){var t="";/.*\/.*\?.*=.*/.test(this.tmpConfig.url)?(t=this.$u.queryParams(this.tmpConfig.params,!1),this.tmpConfig.url=this.tmpConfig.url+"&"+t):(t=this.$u.queryParams(this.tmpConfig.params),this.tmpConfig.url+=t)}this.tmpConfig.isTab?uni.switchTab({url:this.tmpConfig.url}):uni.navigateTo({url:this.tmpConfig.url})}else this.tmpConfig.back&&this.$u.route({type:"back"})}}};n.default=i},6592:function(t,n,e){"use strict";e.r(n);var i=e("d092"),o=e("70cc");for(var a in o)"default"!==a&&function(t){e.d(n,t,(function(){return o[t]}))}(a);e("a905");var s,r=e("f0c5"),u=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,"6be9ba10",null,!1,i["a"],s);n["default"]=u.exports},"70cc":function(t,n,e){"use strict";e.r(n);var i=e("3ee0"),o=e.n(i);for(var a in i)"default"!==a&&function(t){e.d(n,t,(function(){return i[t]}))}(a);n["default"]=o.a},"99eb":function(t,n,e){var i=e("f114");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=e("4f06").default;o("19dddd00",i,!0,{sourceMap:!1,shadowMode:!1})},a905:function(t,n,e){"use strict";var i=e("99eb"),o=e.n(i);o.a},b249:function(t,n,e){var i=e("d0fa");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=e("4f06").default;o("56d1b77c",i,!0,{sourceMap:!1,shadowMode:!1})},cff7:function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return i}));var i={uIcon:e("b934").default},o=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("v-uni-view",{staticClass:"u-toast",class:[t.isShow?"u-show":"","u-type-"+t.tmpConfig.type,"u-position-"+t.tmpConfig.position],style:{zIndex:t.uZIndex}},[e("v-uni-view",{staticClass:"u-icon-wrap"},[t.tmpConfig.icon?e("u-icon",{staticClass:"u-icon",attrs:{name:t.iconName,size:30,color:t.tmpConfig.type}}):t._e()],1),e("v-uni-text",{staticClass:"u-text"},[t._v(t._s(t.tmpConfig.title))])],1)},a=[]},d092:function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return i}));var i={uToast:e("d983").default},o=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("v-uni-view",[e("u-toast",{ref:"uToast",staticClass:"toast"}),e("v-uni-view",{staticClass:"zhu"},[e("v-uni-view",{staticClass:"tp"}),e("v-uni-view",{},[e("v-uni-view",{staticClass:"srk"},[e("v-uni-view",{staticClass:"wz"},[t._v("登录账号")]),e("v-uni-input",{staticClass:"kuan",attrs:{type:"text",placeholder:"请输入账号"},model:{value:t.account,callback:function(n){t.account=n},expression:"account"}})],1),e("v-uni-view",{staticClass:"srk"},[e("v-uni-view",{staticClass:"wz"},[t._v("登录密码")]),e("v-uni-input",{staticClass:"kuan",attrs:{type:"password",placeholder:"请输入密码"},model:{value:t.password,callback:function(n){t.password=n},expression:"password"}})],1)],1),e("v-uni-view",{},[e("v-uni-button",{staticClass:"anniu",attrs:{type:"default"},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.goTabIndex.apply(void 0,arguments)}}},[t._v("登录")])],1)],1)],1)},a=[]},d0fa:function(t,n,e){var i=e("24fb");n=i(!1),n.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/* 文章场景相关 */.u-toast[data-v-9764c8b0]{position:fixed;z-index:-1;transition:opacity .3s;text-align:center;color:#fff;border-radius:%?8?%;background:#585858;display:flex;flex-direction:row;align-items:center;justify-content:center;font-size:%?28?%;opacity:0;pointer-events:none;padding:%?18?% %?40?%}.u-toast.u-show[data-v-9764c8b0]{opacity:1}.u-icon[data-v-9764c8b0]{margin-right:%?10?%;display:flex;flex-direction:row;align-items:center;line-height:normal}.u-position-center[data-v-9764c8b0]{left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);max-width:70%}.u-position-top[data-v-9764c8b0]{left:50%;top:20%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.u-position-bottom[data-v-9764c8b0]{left:50%;bottom:20%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.u-type-primary[data-v-9764c8b0]{color:#2979ff;background-color:#ecf5ff;border:1px solid #d7eafe}.u-type-success[data-v-9764c8b0]{color:#19be6b;background-color:#dbf1e1;border:1px solid #bef5c8}.u-type-error[data-v-9764c8b0]{color:#fa3534;background-color:#fef0f0;border:1px solid #fde2e2}.u-type-warning[data-v-9764c8b0]{color:#f90;background-color:#fdf6ec;border:1px solid #faecd8}.u-type-info[data-v-9764c8b0]{color:#909399;background-color:#f4f4f5;border:1px solid #ebeef5}.u-type-default[data-v-9764c8b0]{color:#fff;background-color:#585858}',""]),t.exports=n},d983:function(t,n,e){"use strict";e.r(n);var i=e("cff7"),o=e("5825");for(var a in o)"default"!==a&&function(t){e.d(n,t,(function(){return o[t]}))}(a);e("efe8");var s,r=e("f0c5"),u=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,"9764c8b0",null,!1,i["a"],s);n["default"]=u.exports},ebe7:function(t,n,e){t.exports=e.p+"static/img/login1.91b22fbd.png"},efe8:function(t,n,e){"use strict";var i=e("b249"),o=e.n(i);o.a},f114:function(t,n,e){var i=e("24fb"),o=e("1de5"),a=e("ebe7");n=i(!1);var s=o(a);n.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/* 文章场景相关 */.zhu[data-v-6be9ba10]{width:%?620?%;margin:auto}.tp[data-v-6be9ba10]{width:%?190?%;height:%?220?%;background:url('+s+");background-repeat:no-repeat;background-size:%?190?% %?220?%;margin-top:%?120?%}.kuan[data-v-6be9ba10]{border:none;border-bottom:%?1?% solid #ededed!important;color:#333;margin:%?30?% %?0?%;font-size:%?30?%}.wz[data-v-6be9ba10]{color:#bfbfbf;font-size:%?30?%}.srk[data-v-6be9ba10]{margin:%?80?% %?0?%}.anniu[data-v-6be9ba10]{height:%?100?%;color:#fff;background-color:#4988fd;border-radius:%?120?%;font-size:%?40?%}.radio_box[data-v-6be9ba10]{margin-top:%?150?%}",""]),t.exports=n}}]);