Browse Source

style(student): 格式化登录页面代码

- 使用 ESLint规则格式化了 Vue 组件代码
- 调整了缩进、空格和换行
- 修复了一些小的语法问题
master
liutong 1 year ago
parent
commit
74dce8c807
  1. 34
      pages/student/login/login.vue

34
pages/student/login/login.vue

@ -36,9 +36,9 @@
</template> </template>
<script> <script>
import memberApi from '@/api/member.js'; import memberApi from '@/api/member.js';
export default { export default {
data() { data() {
return { return {
password: true, password: true,
@ -73,8 +73,8 @@
uni.setStorageSync('token', res.data.token); uni.setStorageSync('token', res.data.token);
let userType = res.data.userType let userType = res.data.userType
// userType = 2// // userType = 3//
console.log('用户类型',userType) console.log('用户类型', userType)
uni.setStorageSync('userType', userType); uni.setStorageSync('userType', userType);
uni.setStorageSync('tabBerIndex', 0); uni.setStorageSync('tabBerIndex', 0);
@ -134,42 +134,42 @@
}); });
}, },
} }
} }
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
page { page {
font-weight: normal; font-weight: normal;
} }
.fui-section__title { .fui-section__title {
margin-left: 32rpx; margin-left: 32rpx;
} }
.fui-left__icon { .fui-left__icon {
padding-right: 24rpx; padding-right: 24rpx;
} }
.image-container { .image-container {
margin: auto; margin: auto;
position: relative; position: relative;
width: 150rpx; width: 150rpx;
/* 设置与第一张图片相同的宽度 */ /* 设置与第一张图片相同的宽度 */
height: 150rpx; height: 150rpx;
/* 设置与第一张图片相同的高度 */ /* 设置与第一张图片相同的高度 */
} }
.base-image { .base-image {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.overlay-image { .overlay-image {
position: absolute; position: absolute;
top: 50%; top: 50%;
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
width: 100rpx; width: 100rpx;
height: 100rpx; height: 100rpx;
} }
</style> </style>
Loading…
Cancel
Save