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