Browse Source

修改头像和切换工种刷新

aaa 3 years ago
parent
commit
bb71768628

+ 1 - 1
src/views/home/index.vue

@@ -112,7 +112,7 @@ export default {
     initFun() {
       this.engineeringWorkList = [
         { text: "桥隧工", value: "QiaoSuiGong" },
-        { text: "桥梁工", value: "QiaoLiangGong" },
+        { text: "测量工", value: "CeLiangGong" },
         { text: "线路工", value: "XianLuGong" }
       ];
       this.engineeringWorkChooseValue = this.engineeringWorkList[0].value;

+ 9 - 1
src/views/home/learn/page-learn-child.vue

@@ -90,7 +90,15 @@ export default {
   mounted() {
     this.getChildList();
   },
-  watch: {},
+  watch: {
+    // 监听:工种
+    chooseEngneeringWork(value) {
+      console.log(value.value);
+      if (value.value) {
+        this.getContentList(); // 查询:考试的场次列表信息
+      }
+    }
+  },
   methods: {
     //   查询子目录
     getChildList() {

+ 4 - 3
src/views/home/person/rank.vue

@@ -21,7 +21,7 @@
                   contentItemTopRowChild: true,
                   contentItemTopRowOne: index === 0,
                   contentItemTopRowTwo: index === 1,
-                  contentItemTopRowThree: index === 2
+                  contentItemTopRowThree: index === 2,
                 }"
                 v-for="(item, index) in rankListTopThree"
                 :key="index"
@@ -227,8 +227,8 @@ export default {
   }
   .contentItemDiv {
     .userHeaderImg {
-      width: 2.5rem;
-      height: 2.5rem;
+      width: 1.5rem;
+      height: 1.5rem;
       margin-right: 0.5rem;
     }
     .contentBox {
@@ -241,6 +241,7 @@ export default {
       justify-content: space-between;
       align-items: center;
       .userOrderNum {
+        width: 1rem;
         color: #333;
         margin-right: 0.5rem;
       }