guhongwei 5 éve
szülő
commit
470ae84403
2 módosított fájl, 16 hozzáadás és 9 törlés
  1. 16 5
      src/views/dynamic/dealDetail.vue
  2. 0 4
      src/views/market/contact.vue

+ 16 - 5
src/views/dynamic/dealDetail.vue

@@ -35,9 +35,12 @@
                     <el-col :span="12" class="image">
                       <el-col :span="24" class="user"> 购买人:{{ dealDetails.username }} </el-col>
                       <el-col :span="24" class="images" v-if="dealDetails.pic">
-                        <el-image style="width:100%;height:400px;" :src="dealDetails.pic"></el-image>
+                        <el-image style="width:100%;height:380px;" :src="dealDetails.pic"></el-image>
                       </el-col>
                     </el-col>
+                    <el-col :span="24" class="btn">
+                      <el-button @click.native="$router.push({ path: '/market/contact', query: { id: dealDetails.product_id } })">我要对接</el-button>
+                    </el-col>
                   </el-col>
                 </el-col>
               </el-col>
@@ -203,12 +206,12 @@ export default {
   position: absolute;
   top: 13%;
   left: 13%;
-  height: 490px;
+  height: 515px;
   overflow: hidden;
   width: 73%;
 }
 .main .two .info .infoMess .infoMessInfo .message .content {
-  height: 490px;
+  height: 470px;
   overflow: hidden;
   p:first-child {
     float: left;
@@ -241,7 +244,7 @@ export default {
     text-align: left;
     overflow: hidden;
     text-overflow: ellipsis;
-    -webkit-line-clamp: 12;
+    -webkit-line-clamp: 11;
     word-break: break-all;
     display: -webkit-box;
     -webkit-box-orient: vertical;
@@ -249,7 +252,7 @@ export default {
   }
 }
 .main .two .info .infoMess .infoMessInfo .message .image {
-  height: 490px;
+  height: 470px;
   overflow: hidden;
   .user {
     font-size: 20px;
@@ -257,6 +260,14 @@ export default {
     padding: 20px 0;
   }
 }
+.main .two .info .infoMess .infoMessInfo .message .btn {
+  text-align: center;
+  /deep/.el-button {
+    border-radius: 25px;
+    color: #fff;
+    background: #0f75c2;
+  }
+}
 /deep/.el-step__title {
   font-size: 30px;
 }

+ 0 - 4
src/views/market/contact.vue

@@ -75,7 +75,6 @@ export default {
     if (this.$route.query.id) {
       this.searchInfo();
     }
-    this.test();
   },
   methods: {
     ...mapProduct(['fetch']),
@@ -130,9 +129,6 @@ export default {
       let res = await this.buyProduct(form);
       this.$checkRes(res, '购买申请成功', res.errmsg || '购买申请失败');
     },
-    test() {
-      console.log(this.user.uid);
-    },
   },
   computed: {
     ...mapState(['user']),