|
|
@@ -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 || [];
|
|
|
},
|