panhui 4 年之前
父節點
當前提交
b8c11ec794

二進制
src/main/nine-space/src/assets/info_icon_paimaixilie.png


+ 1 - 0
src/main/nine-space/src/components/asset/assetInfo.vue

@@ -134,6 +134,7 @@ export default {
         display: flex;
         // justify-content: space-between;
         align-items: center;
+        margin-top: 9px;
         .van-image {
             border-radius: 100px;
         }

+ 3 - 1
src/main/nine-space/src/views/Discover.vue

@@ -60,7 +60,7 @@
                 }"
             >
                 <template v-slot:icon>
-                    <img class="grid-img" src="../assets/svgs/info_icon_paimaixilie.svg" />
+                    <img class="grid-img" src="../assets/info_icon_paimaixilie.png" />
                 </template>
             </van-grid-item>
         </van-grid>
@@ -255,6 +255,8 @@ export default {
 }
 .grid-img {
     display: block;
+    width: 38px;
+    height: 38px;
 }
 .van-grid {
     margin-top: 12px;

+ 5 - 12
src/main/nine-space/src/views/asset/Detail.vue

@@ -64,28 +64,19 @@
                     <div class="text2">铸造者</div>
                 </template>
             </van-cell>
-            <van-cell
-                is-link
-                class="creator"
-                :to="{
-                    path: '/creatorDetail',
-                    query: {
-                        id: info.minterId
-                    }
-                }"
-            >
+            <van-cell class="creator">
                 <template #icon>
                     <van-image
                         width="40"
                         height="40"
                         class="user-img"
-                        :src="info.minterAvatar"
+                        :src="userInfo.avatar || require('../../assets/svgs/img_default_photo.svg')"
                         fit="cover"
                         radius="100"
                     />
                 </template>
                 <template #title>
-                    <div class="text1 van-ellipsis">{{ info.minter }}</div>
+                    <div class="text1 van-ellipsis">{{ userInfo.nickname }}</div>
                     <div class="text2">持有者</div>
                 </template>
             </van-cell>
@@ -143,6 +134,7 @@ import 'swiper/swiper-bundle.min.css';
 import SwiperCore, { Pagination } from 'swiper';
 import Post from '../../components/Post.vue';
 import asset from '../../mixins/asset';
+import { mapState } from 'vuex';
 
 // install Swiper modules
 SwiperCore.use([Pagination]);
@@ -164,6 +156,7 @@ export default {
         };
     },
     computed: {
+        ...mapState(['userInfo']),
         banners() {
             return this.info.pic || [];
         },