xuqiang há 4 anos atrás
pai
commit
20176bbb8c

+ 8 - 7
src/main/pc-space/src/views/AssetDetail.vue

@@ -321,12 +321,10 @@
                                     </div>
                                 </template>
                             </el-table-column>
-                            <el-table-column prop="operation" label="持有方" width="305">
-                                <template slot-scope="scope">
-                                    <div style="font-size: 14px">
-                                        {{ scope.row.owner }}
-                                    </div>
-                                </template>
+                            <el-table-column prop="nickname" label="持有方" width="305">
+                                <div style="font-size: 14px">
+                                    {{ userInfo.nickname }}
+                                </div>
                             </el-table-column>
                             <el-table-column prop="createdAt" label="时间">
                                 <template slot-scope="scope">
@@ -1193,7 +1191,7 @@ export default {
             width: 520px;
             background: #1c1e26;
             border-radius: 8px;
-            margin-top: 20px;
+            margin: 30px 0;
             .works1 {
                 width: 24px;
                 height: 24px;
@@ -1504,6 +1502,9 @@ export default {
         /deep/ .el-table__row {
             color: #ffffff;
         }
+        /deep/ .cell {
+            font-size: 12px;
+        }
         /deep/ .el-table td,
         .el-table th.is-leaf {
             border-bottom: 1px solid #2b2e3e;

+ 16 - 10
src/main/pc-space/src/views/CollectionDetail.vue

@@ -28,12 +28,12 @@
                 </div>
                 <div class="content">
                     <el-collapse v-model="activeNames" :accordion="false">
-                        <el-collapse-item name="6" v-if="info.tokenId">
+                        <el-collapse-item name="6">
                             <template slot="title">
                                 <img class="imgs" src="../assets/icon-lianshangxinxi.png" alt="" />
                                 <span>链上信息</span>
                             </template>
-                            <div class="info-hash">
+                            <div class="info-hash" v-if="info.tokenId">
                                 <div class="hash-con">
                                     <div class="text1">Hash地址</div>
                                     <div class="hash-right">
@@ -65,6 +65,9 @@
                                     </div>
                                 </div>
                             </div>
+                            <div style="padding-left: 0" v-else class="info5">
+                                <div class="del">铸造者未设置链上信息</div>
+                            </div>
                         </el-collapse-item>
                     </el-collapse>
                 </div>
@@ -295,12 +298,10 @@
                                     </div>
                                 </template>
                             </el-table-column>
-                            <el-table-column prop="operation" label="持有方" width="305">
-                                <template slot-scope="scope">
-                                    <div style="font-size: 14px">
-                                        {{ scope.row.owner }}
-                                    </div>
-                                </template>
+                            <el-table-column prop="nickname" label="持有方" width="305">
+                                <div style="font-size: 14px">
+                                    {{ userInfo.nickname }}
+                                </div>
                             </el-table-column>
                             <el-table-column prop="createdAt" label="时间">
                                 <template slot-scope="scope">
@@ -343,6 +344,7 @@ import product from '../mixins/product';
 import 'swiper/css/swiper.css';
 import LikeButton from '../components/LikeButton.vue';
 import CollectionInfo from '../components/CollectionInfo.vue';
+import { mapState } from 'vuex';
 import Submit from './Submit.vue';
 import Share from '../components/Share.vue';
 export default {
@@ -390,7 +392,8 @@ export default {
             return list.map(item => {
                 return this.getImg(this.changeImgs(item.pic));
             });
-        }
+        },
+        ...mapState(['userInfo'])
     },
     mounted() {
         this.getDetail();
@@ -568,7 +571,7 @@ export default {
             height: 44px;
             background: #1c1e26;
             border-radius: 8px;
-            margin-top: 20px;
+            margin: 30px 0;
             .works1 {
                 width: 24px;
                 height: 24px;
@@ -935,6 +938,9 @@ export default {
         /deep/ .el-table__row {
             color: #ffffff;
         }
+        /deep/ .cell {
+            font-size: 12px;
+        }
         /deep/ .el-table td,
         .el-table th.is-leaf {
             border-bottom: 1px solid #2b2e3e;