Browse Source

Merge branch '2xinfeng-dev' of www.gitinn.com:proginn/proginn-frontend into dev

xinfeng 6 years ago
parent
commit
b104717c13
3 changed files with 16 additions and 6 deletions
  1. 1 1
      components/kaifain/dealSeoIndex.js
  2. 12 2
      pages/job/_post/_id.vue
  3. 3 3
      pages/kaifain/index.vue

+ 1 - 1
components/kaifain/dealSeoIndex.js

@@ -38,7 +38,7 @@ export default class DealSeoData {
         //kaifain路由匹配进入
         try {
           let match = params.pathMatch || ''
-          let list = match.split('/')
+          let list = match.split('/').map(item => item.toLocaleLowerCase())
           list.length = Math.min(list.length, 3) //防止url超出
           let keys = Object.keys(typeList)
           //3 * 3 * n的循环 n < 100

+ 12 - 2
pages/job/_post/_id.vue

@@ -135,7 +135,8 @@
           skills: []
         },
         showConfirm: false,
-        firstTip: true
+        firstTip: true,
+        showConfirmWord: ""
       }
     },
     asyncData({ app }) {
@@ -257,6 +258,14 @@
           location.href = 'proginn://login'
           return
         }
+        let { realname_re } = this.$store.state.userinfo
+        realname_re = Number(realname_re)
+        //未签约,弹出提示
+        if (realname_re !== 2) {
+          this.showConfirm = true
+          this.showConfirmWord = "发起沟通"
+          return
+        }
         let checkAns = await this.dealTips("沟通")
         if (!checkAns) {
           return
@@ -277,7 +286,6 @@
         if (!(Number(applicationState) === 0)) {
           return
         }
-        //未签约,弹出提示
         if (!await this.checkLogin(true)) {
           return
         }
@@ -287,8 +295,10 @@
         }
         let { realname_re } = this.$store.state.userinfo
         realname_re = Number(realname_re)
+        //未签约,弹出提示
         if (realname_re !== 2) {
           this.showConfirm = true
+          this.showConfirmWord = "投递简历"
           return
         }
 

+ 3 - 3
pages/kaifain/index.vue

@@ -35,12 +35,12 @@
           </div>
         </div>
         <div class="listArea">
-          <div class="sTitle">解决方案</div>
+          <h1 class="sTitle">{{head.h1 || '解决方案'}}</h1>
           <div class="list" v-loading="loading">
             <nuxt-link class="cell"
               v-for="item in dataList"
               :key="item.id"
-              :to="`/kaifain/s/${item.id}`"
+              :to="`/kaifain/s/${item.id}.html`"
               target="_blank"
               :title="item.name"
             >
@@ -115,7 +115,7 @@
           <nuxt-link class="cell"
             v-for="item in dataList"
             :key="item.id"
-            :to="`/kaifain/s/${item.id}`"
+            :to="`/kaifain/s/${item.id}.html`"
             target="_blank"
           >
             <div class="bodyCont">