Skip to content

Commit

Permalink
fix: link
Browse files Browse the repository at this point in the history
  • Loading branch information
zixuan1986 committed Aug 24, 2023
1 parent e678389 commit 9c669cc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
10 changes: 6 additions & 4 deletions src/components/body/item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@
<i class="u-mark u-mark--pay" v-if="!!~~item.price_type && !!item.price_count">付费</i>
<div class="m-op">
<div class="u-title">{{ item.title }}</div>
<a class="u-author" :href="authorLink(item.user_id)" @click.stop="onAuthorClick">
作者: {{ !item.original ? item.author_name || "匿名" : author }}
</a>

<a class="u-author" v-if="item.user_id" :href="authorLink(item.user_id)" @click.stop="onAuthorClick">
作者: {{ item.author_name || "匿名" }}
</a>
<span class="u-author" v-else> 作者: {{ item.author_name || "匿名" }}</span>
</div>
</a>
</template>

<script>
<script>
import { authorLink, getThumbnail } from "@jx3box/jx3box-common/js/utils";
export default {
name: "item",
Expand Down
5 changes: 3 additions & 2 deletions src/components/face/item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@

<div class="m-op">
<div class="u-title">{{ item.title }}</div>
<a class="u-author" :href="authorLink(item.user_id)" @click.stop="onAuthorClick">
作者:{{ !item.original ? item.author_name || "匿名" : author }}
<a class="u-author" v-if="item.user_id" :href="authorLink(item.user_id)" @click.stop="onAuthorClick">
作者:{{ item.author_name || "匿名" }}
</a>
<span class="u-author" v-else> 作者:{{ item.author_name || "匿名" }}</span>
</div>
</a>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/views/body/Single.vue
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ export default {
const { body_type, client, display_name } = this.post;
getRandomFaceAndBody({ body_type, client, limit: 8 }).then((res) => {
const { pvxbody, faceList } = res.data.data;
this.pvxbody = { ...pvxbody, author_name: display_name };
this.pvxbody = pvxbody;
this.faceList = faceList || [];
});
},
Expand Down
2 changes: 1 addition & 1 deletion src/views/face/Single.vue
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ export default {
const { body_type, client, display_name } = this.post;
getRandomFaceAndBody({ body_type, client, limit: 8 }).then((res) => {
const { face, pvxbodyList } = res.data.data;
this.face = { ...face, author_name: display_name };
this.face = face;
this.pvxbodyList = pvxbodyList || [];
});
},
Expand Down

0 comments on commit 9c669cc

Please sign in to comment.