Browse Source

refactor(student): 优化学生端页面样式和功能

- 为多个页面添加 scoped 样式,提高样式 specificity
- 更新部分页面的样式定义,使用 less 语法
- 在登录页面添加用户类型日志输出,便于调试
- 修复作业列表页面的样式问题
- 优化忘记密码页面的样式结构
master
liutong 1 year ago
parent
commit
81faa9c837
  1. 2
      pages/market/clue/index.vue
  2. 1
      pages/student/index/index.vue
  3. 2
      pages/student/index/job_list.vue
  4. 2
      pages/student/login/forgot.vue
  5. 5
      pages/student/login/login.vue

2
pages/market/clue/index.vue

@ -367,7 +367,7 @@
} }
</script> </script>
<style> <style lang="less" scoped>
.assemble{ .assemble{
width: 100%; width: 100%;
height: 100vh; height: 100vh;

1
pages/student/index/index.vue

@ -211,6 +211,7 @@
url: '/pages/student/index/physical_examination' url: '/pages/student/index/physical_examination'
}) })
}, },
//
jobList(){ jobList(){
uni.navigateTo({ uni.navigateTo({
url: '/pages/student/index/job_list' url: '/pages/student/index/job_list'

2
pages/student/index/job_list.vue

@ -55,7 +55,7 @@
} }
</script> </script>
<style> <style lang="less" scoped>
.main_box{ .main_box{
width: 100%; width: 100%;
height: 100vh; height: 100vh;

2
pages/student/login/forgot.vue

@ -66,7 +66,7 @@
} }
</script> </script>
<style> <style lang="less" scoped>
page { page {
font-weight: normal; font-weight: normal;
} }

5
pages/student/login/login.vue

@ -73,7 +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)
uni.setStorageSync('userType', userType); uni.setStorageSync('userType', userType);
uni.setStorageSync('tabBerIndex', 0); uni.setStorageSync('tabBerIndex', 0);
@ -136,7 +137,7 @@
} }
</script> </script>
<style> <style lang="less" scoped>
page { page {
font-weight: normal; font-weight: normal;
} }

Loading…
Cancel
Save