xinfeng 5 gadi atpakaļ
vecāks
revīzija
3ca36c0806

+ 32 - 13
assets/css/otherpage/kaifain/myKaifain.scss

@@ -113,23 +113,42 @@
               }
             }
           }
-          .companyInfo {
+          .bottomArea {
+            width: 100%;
             display: flex;
+            justify-content: space-between;
             align-items: center;
-            margin-bottom: pxtovw(12);
-            .companyImg {
-              img {
-                width: pxtovw(12);
-                height: pxtovw(12);
+            .companyInfo {
+              display: flex;
+              align-items: center;
+              margin-bottom: pxtovw(12);
+              .companyImg {
+                img {
+                  width: pxtovw(12);
+                  height: pxtovw(12);
+                }
+              }
+              .companyName {
+                margin-left: pxtovw(5);
+                height:pxtovw(17);
+                font-size:pxtovw(12);
+                font-weight:400;
+                color:rgba(153,153,153,1);
+                line-height:pxtovw(17);
               }
             }
-            .companyName {
-              margin-left: pxtovw(5);
-              height:pxtovw(17);
-              font-size:pxtovw(12);
-              font-weight:400;
-              color:rgba(153,153,153,1);
-              line-height:pxtovw(17);
+            .status {
+              height: pxtovw(24);
+              border: pxtovw(1) solid #308eff;
+              border-radius: pxtovw(1);
+              box-sizing: content-box;
+              line-height: pxtovw(24.1);
+              font-size: pxtovw(12);
+              font-weight: 500;
+              text-align: center;
+              color: #308eff;
+              transform-origin: right center;
+              transform: scale(0.83);
             }
           }
 

+ 16 - 8
pages/otherpage/kaifain/myKaifain.vue

@@ -40,13 +40,19 @@
                 <div class="desc">{{item.description}}</div>
               </div>
             </div>
-            <div class="companyInfo">
-              <div class="companyImg">
-                <img :src="item.companyInfo.logo" onerror="this.src='https://stacdn.proginn.com/image/uCenter/company_logo.png'"
-                  alt="">
+            <div class="bottomArea">
+              <div class="companyInfo">
+                <div class="companyImg">
+                  <img :src="item.companyInfo.logo" onerror="this.src='https://stacdn.proginn.com/image/uCenter/company_logo.png'"
+                    alt="">
+                </div>
+                <div class="companyName">湖南无限创新网络科技有限公司</div>
+              </div>
+              <div class="status" v-if="Number(item.status) !== 2">
+                <p>{{item.status_name}}</p>
               </div>
-              <div class="companyName">湖南无限创新网络科技有限公司</div>
             </div>
+
             <div class="detailInfo">
               <div class="baseInfoNoSelected" v-if="showDetailIndex !== index" >
                 <div class="leftBase">
@@ -76,11 +82,12 @@
                       基本数据
                     </div>
                     <div class="dataDetail">
-                      <div class="dataCell" @click="jumpTo('/otherpage/kaifain/myKaifainData/collected')">
+                      <div class="dataCell"
+                        @click="jumpTo('/otherpage/kaifain/myKaifainData/collected?providerId='+item.id)">
                         <p class="nums">{{item.data.base.collectCount || 0}}</p>
                         <p class="ww">收藏量</p>
                       </div>
-                      <div class="dataCell" @click="jumpTo('/otherpage/kaifain/myKaifainData/viewed')">
+                      <div class="dataCell" @click="jumpTo('/otherpage/kaifain/myKaifainData/viewed?providerId='+item.id)">
                         <p class="nums">{{item.data.base.pv || 0}}</p>
                         <p class="ww">浏览量(PV)</p>
                       </div>
@@ -92,7 +99,7 @@
                       <div class="vipTips">企业会员专享权益</div>
                     </div>
                     <div class="dataDetail">
-                      <div class="dataCell" @click="jumpTo('/otherpage/kaifain/myKaifainData/asked')">
+                      <div class="dataCell" @click="jumpTo('/otherpage/kaifain/myKaifainData/asked?providerId='+item.id)">
                         <p class="nums">{{item.data.senior.contact || 0}}</p>
                         <p class="ww">咨询次数</p>
                       </div>
@@ -256,6 +263,7 @@
         this.getList()
       },
       jumpTo(url) {
+        url = url + '?providerId='
         location.href = url
       },
       showDetail(index) {

+ 4 - 1
pages/otherpage/kaifain/myKaifainData/_type.vue

@@ -98,6 +98,7 @@
     data() {
       return {
         Type,
+        providerId: -1,
         page: {
           page: 1,
           total: 0,
@@ -109,12 +110,13 @@
         loading: false, //web端列表首次加载loading todo true
         refreshing: false,
         firstLoading: false, //移动端加载loading
-        isLoading: false //控制防止一次没响应,重复请求接口
+        isLoading: false, //控制防止一次没响应,重复请求接口
       }
     },
     watch: {},
     computed: {},
     async created() {
+      this.providerId = this.$route.query.providerId
       this.checkLogin()
       this.getList()
     },
@@ -127,6 +129,7 @@
         }
         let data = {
           ...page,
+          providerId: this.providerId,
           type: selectedTypeIndex
         }
         this.loading = true

+ 5 - 0
pages/otherpage/kaifain/viewHistory.vue

@@ -17,6 +17,7 @@
         <div
           class="cell"
           v-for="(item, index) in dataList" :key="'dataList' + index"
+          @click="jumpToKaifain(item)"
         >
           <div class="cellContent">
             <div class="topInfo">
@@ -164,6 +165,10 @@
         console.log('onLoad')
         this.getList()
       },
+      jumpToKaifain(item) {
+        const {provider: {id, hash_id} = {}} = item
+        location.href = `/kaifain/s/${id}.html`
+      }
     }
   }
 </script>

+ 8 - 8
plugins/seoRouter.js

@@ -30,43 +30,43 @@ const extendRoutes = (routes, resolve) => {
   /*** 技术圈SEO sd改动 start **/
   //合集
   routes.unshift({
-    name: 'jishuinCollected',
+    name: 'jishuinCollectedC',
     path: '/c/:id',
     component: resolve(__dirname, '../pages/user/collect_article/_id/_type.vue')
   })
   routes.unshift({
-    name: 'jishuinCollected',
+    name: 'jishuinCollectedCID',
     path: '/c/:id/:type',
     component: resolve(__dirname, '../pages/user/collect_article/_id/_type.vue')
   })
   routes.unshift({
-    name: 'jishuinCollected',
+    name: 'jishuinCollectedC1',
     path: '/jishuin/c/:id',
     component: resolve(__dirname, '../pages/user/collect_article/_id/_type.vue')
   })
   routes.unshift({
-    name: 'jishuinCollected',
+    name: 'jishuinCollectedCID1',
     path: '/jishuin/c/:id/:type',
     component: resolve(__dirname, '../pages/user/collect_article/_id/_type.vue')
   })
   //用户
   routes.unshift({
-    name: 'jishuinUser',
+    name: 'jishuinUserU',
     path: '/u/:id',
     component: resolve(__dirname, '../pages/user/_id/_type.vue')
   })
   routes.unshift({
-    name: 'jishuinUser',
+    name: 'jishuinUserUID',
     path: '/u/:id/:type',
     component: resolve(__dirname, '../pages/user/_id/_type.vue')
   })
   routes.unshift({
-    name: 'jishuinUser',
+    name: 'jishuinUserU1',
     path: '/jishuin/u/:id',
     component: resolve(__dirname, '../pages/user/_id/_type.vue')
   })
   routes.unshift({
-    name: 'jishuinUser',
+    name: 'jishuinUserUID1',
     path: '/jishuin/u/:id/:type',
     component: resolve(__dirname, '../pages/user/_id/_type.vue')
   })