|
@@ -1,8 +1,8 @@
|
|
|
<template>
|
|
|
- <view class="login-model">
|
|
|
+ <view class="login-page">
|
|
|
<view class="com-model">
|
|
|
<view class="top-box">
|
|
|
- <image class="pic" src="/static/images/底纹.png"></image>
|
|
|
+ <image class="pic" src="/static/images/shade.png"></image>
|
|
|
<text class="title-top">你好,</text>
|
|
|
<text class="title-buttom">欢迎使用追踪方法学系统</text>
|
|
|
</view>
|
|
@@ -57,6 +57,8 @@
|
|
|
uni.setStorageSync('permissions', data.permissions);
|
|
|
uni.setStorageSync('token', data.token);
|
|
|
uni.setStorageSync('nowPermission', data.nowPermission);
|
|
|
+ uni.setStorageSync('id', data.id);
|
|
|
+ uni.setStorageSync('name', data.name);
|
|
|
this.rolToTarget(data.nowPermission)
|
|
|
}
|
|
|
});
|
|
@@ -84,48 +86,53 @@
|
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
- .pic{
|
|
|
- height: 281.25rpx;
|
|
|
- width: 430rpx;
|
|
|
- float: right;
|
|
|
- }
|
|
|
- .title-top{
|
|
|
- height: 45rpx;
|
|
|
- font-size: 45rpx;
|
|
|
- font-weight: bold;
|
|
|
- margin-top: 250rpx;
|
|
|
- margin-left: 62.5rpx;
|
|
|
- font-family: SourceHanSansCN-Bold, SourceHanSansCN;
|
|
|
- color: #2E2F33;
|
|
|
- float: left;
|
|
|
- }
|
|
|
- .title-buttom{
|
|
|
- height: 45rpx;
|
|
|
- font-size: 45rpx;
|
|
|
- font-family: SourceHanSansCN-Bold, SourceHanSansCN;
|
|
|
- font-weight: bold;
|
|
|
- color: #2E2F33;
|
|
|
- float: left;
|
|
|
- margin-left: 62.5rpx;
|
|
|
- margin-top: 40rpx;
|
|
|
- }
|
|
|
- .main-content{
|
|
|
- margin-top: 37.5rpx;
|
|
|
- float: left;
|
|
|
- }
|
|
|
- .uni-input-box{
|
|
|
- width: 625rpx;
|
|
|
- float: left;
|
|
|
- margin-left: 62.5rpx;
|
|
|
- margin-top: 62.5rpx;
|
|
|
- font-size: 30rpx;
|
|
|
- padding-bottom: 25rpx;
|
|
|
- border-bottom:1.25rpx solid #E6EAF2 ;
|
|
|
- }
|
|
|
- .login-button{
|
|
|
- float: left;
|
|
|
- margin-left: 62.5rpx;
|
|
|
- margin-top: 62.5rpx;
|
|
|
- background-color: #A3B1CC;
|
|
|
- }
|
|
|
+ .login-page {
|
|
|
+ height: 100%;
|
|
|
+ background-color: #FFFFFF;
|
|
|
+
|
|
|
+ .pic{
|
|
|
+ height: 281.25rpx;
|
|
|
+ width: 430rpx;
|
|
|
+ float: right;
|
|
|
+ }
|
|
|
+ .title-top{
|
|
|
+ height: 45rpx;
|
|
|
+ font-size: 45rpx;
|
|
|
+ font-weight: bold;
|
|
|
+ margin-top: 250rpx;
|
|
|
+ margin-left: 62.5rpx;
|
|
|
+ font-family: SourceHanSansCN-Bold, SourceHanSansCN;
|
|
|
+ color: #2E2F33;
|
|
|
+ float: left;
|
|
|
+ }
|
|
|
+ .title-buttom{
|
|
|
+ height: 45rpx;
|
|
|
+ font-size: 45rpx;
|
|
|
+ font-family: SourceHanSansCN-Bold, SourceHanSansCN;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #2E2F33;
|
|
|
+ float: left;
|
|
|
+ margin-left: 62.5rpx;
|
|
|
+ margin-top: 40rpx;
|
|
|
+ }
|
|
|
+ .main-content{
|
|
|
+ margin-top: 37.5rpx;
|
|
|
+ float: left;
|
|
|
+ }
|
|
|
+ .uni-input-box{
|
|
|
+ width: 625rpx;
|
|
|
+ float: left;
|
|
|
+ margin-left: 62.5rpx;
|
|
|
+ margin-top: 62.5rpx;
|
|
|
+ font-size: 30rpx;
|
|
|
+ padding-bottom: 25rpx;
|
|
|
+ border-bottom:1.25rpx solid #E6EAF2 ;
|
|
|
+ }
|
|
|
+ .login-button{
|
|
|
+ float: left;
|
|
|
+ margin-left: 62.5rpx;
|
|
|
+ margin-top: 62.5rpx;
|
|
|
+ background-color: #A3B1CC;
|
|
|
+ }
|
|
|
+ }
|
|
|
</style>
|