Parcourir la source

接受 url 中的 workType 参数;

huan-jie il y a 4 ans
Parent
commit
82453aaa35
1 fichiers modifiés avec 9 ajouts et 2 suppressions
  1. 9 2
      components/job/dealSeoIndex.js

+ 9 - 2
components/job/dealSeoIndex.js

@@ -123,6 +123,13 @@ export default class DealSeoData {
         //其他
         page = 1
     }
+
+    // 通过 window.location.search 获取 workType
+    let workType = this.app.context.route.query.workType || ''
+    if (Number(workType) === 1 || Number(workType) === 2) {
+      this.selected.workType = 2
+    }
+
     await this.getList()
     return {
       typeList,
@@ -165,9 +172,9 @@ export default class DealSeoData {
             slug: "yuancheng"
           }, {
             id: 2,
-            name: "全职",
+            name: "驻场",
             value: 2,
-            text: "全职",
+            text: "驻场",
             slug: "zhuchang"
           }
         ]