guhongwei 4 år sedan
förälder
incheckning
4f268d5f67
1 ändrade filer med 24 tillägg och 31 borttagningar
  1. 24 31
      src/views/adminCenter/enterpriseProduct/parts/list.vue

+ 24 - 31
src/views/adminCenter/enterpriseProduct/parts/list.vue

@@ -5,21 +5,26 @@
         <el-col :span="24" class="list" v-for="(item, index) in list" :key="index">
           <p class="textOver">
             <span class="titel">{{ item.name }}</span>
-            <span style="float:right;margin:0 0 0  5px;"> <van-button type="info" size="mini" @click="sussess(item)">审核通过</van-button></span>
-            <span style="float:right;margin:0 0 0  5px;"><van-button type="info" size="mini" @click="fail(item)">审核拒绝</van-button> </span>
+            <span style="float:right;margin:0 0 0  5px;" v-if="item.status == '0'">
+              <van-button type="info" size="mini" @click="sussess(item)">审核通过</van-button>
+            </span>
+            <span style="float:right;margin:0 0 0  5px;" v-if="item.status == '0'">
+              <van-button type="info" size="mini" @click="fail(item)">审核拒绝</van-button>
+            </span>
           </p>
-          <p class="newptwo">
-            <span class="ptwo"><span>类型:</span>{{ item.status == '0' ? '技术' : item.status == '1' ? '产品' : '服务' }}</span>
+          <p class="listInfo">
+            <span>类型:</span><span>{{ item.status == '0' ? '技术' : item.status == '1' ? '产品' : '服务' }}</span>
           </p>
-
-          <p class="newptwo">
-            <span class="ptwo"><span>联系人:</span>{{ item.contact_user }}</span>
+          <p class="listInfo">
+            <span>联系人:</span><span>{{ item.contact_user }}</span>
+          </p>
+          <p class="listInfo">
+            <span>审核状态:</span><span>{{ item.status == '0' ? '待审核' : item.status == '1' ? '审核成功' : item.status == '2' ? '审核拒绝' : '草稿' }}</span>
           </p>
-          <p class="newptwo">
-            <span>审核状态:</span>{{ item.status == '0' ? '待审核' : item.status == '1' ? '审核成功' : item.status == '2' ? '审核拒绝' : '草稿' }}
+          <p class="listInfo">
+            <span>简介:</span><span>{{ item.introduction }}</span>
           </p>
-          <p class="newptwo"><span>简介:</span>{{ item.introduction }}</p></el-col
-        >
+        </el-col>
       </el-col>
     </el-row>
   </div>
@@ -92,28 +97,21 @@ export default {
 }
 .info {
   border-top: 1px solid #f5f5f5;
-
   .list {
     background: #fff;
     padding: 0 10px;
     border-bottom: 1px solid #ccc;
     p {
-      font-size: 14px;
+      font-size: 16px;
       color: #000;
       padding: 5px 0;
     }
-    p:first-child {
-      font-size: 16px;
-    }
-    p:nth-child(2) .ptwo {
-      display: inline-block;
-      width: 50%;
-    }
-    p:nth-child(2) .ptwo span:first-child {
-      color: #ccc;
-    }
-    p:last-child span {
-      color: #ccc;
+    .listInfo {
+      font-size: 14px;
+      color: #000;
+      span:first-child {
+        color: #ccc;
+      }
     }
   }
 }
@@ -122,9 +120,6 @@ export default {
   height: 160px;
   background-color: aqua;
 }
-.newptwo {
-  color: #ccc !important;
-}
 /deep/.van-button--small {
   min-width: 60px;
   height: 30px;
@@ -134,10 +129,8 @@ export default {
 }
 .titel {
   display: inline-block;
-  width: 41%;
-
+  width: 65%;
   overflow: hidden;
   text-overflow: ellipsis;
-  whitewhite-space: nowrap;
 }
 </style>