Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-05-14 17:01:34 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a19a40c8dbf6eb5eb9053f9ae3a9f4e80e5fe8da
a19a40c8
1 parent
9ca70411
✨ feat: 所有头像新增默认图片
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
34 additions
and
11 deletions
src/assets/images/que-touxiang@2x.png
src/components/AuditVideoCard/index.vue
src/components/CommentList/index.vue
src/components/DonateBook/index.vue
src/components/VideoCard/index.vue
src/views/client/personIndex.vue
src/views/client/videoDetail.vue
src/views/client/videoDetailComment.vue
src/views/me/callMe.vue
src/views/me/followList.vue
src/views/me/index.vue
src/views/me/message.vue
src/assets/images/que-touxiang@2x.png
0 → 100644
View file @
a19a40c
4.61 KB
src/components/AuditVideoCard/index.vue
View file @
a19a40c
...
...
@@ -11,7 +11,8 @@
<div class="video-bar">
<van-row>
<van-col span="12" @click="goTo">
<van-image round width="2rem" height="2rem" style="vertical-align: middle;" :src="item.avatar" />
<van-image v-if="item.avatar" round width="2rem" height="2rem" style="vertical-align: middle;" :src="item.avatar" />
<van-image v-else round width="2rem" height="2rem" style="vertical-align: middle;" :src="icon_avatar" />
<span style="font-size: 1.05rem;vertical-align: middle;">{{ item.name }}</span>
</van-col>
<van-col span="12">
...
...
@@ -51,6 +52,7 @@
import icon_dianzan1 from '@images/icon-dianzan01@2x.png'
import icon_dianzan2 from '@images/icon-dianzan02@2x.png'
import icon_liuyan from '@images/icon-liuyan@2x.png'
import icon_avatar from '@images/que-touxiang@2x.png'
import icon_refuse from '@images/icon-jujue@2x.png'
import icon_apply from '@images/icon-shenhe@2x.png'
...
...
src/components/CommentList/index.vue
View file @
a19a40c
...
...
@@ -26,7 +26,8 @@
<div class="comment-wrapper">
<van-row style="font-size: 0.9rem;">
<van-col span="4">
<van-image round width="3rem" height="3rem" :src="item.avatar" />
<van-image v-if="item.avatar" round width="3rem" height="3rem" :src="item.avatar" />
<van-image v-else round width="3rem" height="3rem" :src="icon_avatar" />
</van-col>
<van-col span="14">
<p>{{ item.name }}</p>
...
...
@@ -58,6 +59,7 @@ import CommentBox from '@/components/CommentBox/index.vue'
import icon_x from '@images/x.png'
import icon_y from '@images/y.png'
import icon_avatar from '@images/que-touxiang@2x.png'
import axios from '@/utils/axios';
import _ from 'lodash'
...
...
src/components/DonateBook/index.vue
View file @
a19a40c
...
...
@@ -5,7 +5,8 @@
<van-row>
<van-col>
<div class="donate-book">
<van-image width="80" height="80" :src="item.avatar" />
<van-image v-if="item.avatar" width="80" height="80" :src="item.avatar" />
<van-image v-else width="80" height="80" :src="icon_avatar" />
</div>
</van-col>
<van-col>
...
...
@@ -51,6 +52,7 @@
<script setup>
import Cookies from 'js-cookie'
import icon_avatar from '@images/que-touxiang@2x.png'
import MyButton from '@/components/MyButton/index.vue'
import { ref, reactive, onMounted } from 'vue'
...
...
src/components/VideoCard/index.vue
View file @
a19a40c
...
...
@@ -5,7 +5,8 @@
<div class="video-bar">
<van-row>
<van-col span="12" @click="goTo">
<van-image round width="2rem" height="2rem" style="vertical-align: middle;" :src="item.avatar" />
<van-image v-if="item.avatar" round width="2rem" height="2rem" style="vertical-align: middle;" :src="item.avatar" />
<van-image v-else round width="2rem" height="2rem" style="vertical-align: middle;" :src="icon_avatar" />
<span style="font-size: 1.05rem;vertical-align: middle;">{{ item.name }}</span>
</van-col>
<van-col span="12">
...
...
@@ -40,6 +41,7 @@
import icon_dianzan1 from '@images/icon-dianzan01@2x.png'
import icon_dianzan2 from '@images/icon-dianzan02@2x.png'
import icon_liuyan from '@images/icon-liuyan@2x.png'
import icon_avatar from '@images/que-touxiang@2x.png'
import { ref, reactive, onMounted } from 'vue'
import 'mui-player/dist/mui-player.min.css'
...
...
src/views/client/personIndex.vue
View file @
a19a40c
...
...
@@ -4,7 +4,8 @@
<div class="info">
<van-row>
<van-col>
<van-image round width="50" height="50" :src="userInfo.avatar" style="padding-right: 1rem;" />
<van-image v-if="userInfo.avatar" round width="50" height="50" :src="userInfo.avatar" style="padding-right: 1rem;" />
<van-image v-else round width="50" height="50" :src="icon_avatar" style="padding-right: 1rem;" />
</van-col>
<van-col class="text-wrapper" span="18">
<div>
...
...
@@ -57,6 +58,7 @@ import { mainStore } from '@/store'
import { storeToRefs } from 'pinia'
import VideoCard from '@/components/VideoCard/index.vue'
import icon_avatar from '@images/que-touxiang@2x.png'
import { ref, onActivated, onMounted } from 'vue'
import { useRoute, useRouter, onBeforeRouteLeave } from 'vue-router'
...
...
src/views/client/videoDetail.vue
View file @
a19a40c
...
...
@@ -3,7 +3,8 @@
<div @click="getUserInfo" class="detail-header">
<van-row>
<van-col span="4">
<van-image round width="3rem" height="3rem" :src="videoInfo.avatar" />
<van-image v-if="videoInfo.avatar" round width="3rem" height="3rem" :src="videoInfo.avatar" />
<van-image v-else round width="3rem" height="3rem" :src="icon_avatar" />
</van-col>
<van-col style="line-height: 3rem;">
<div class="name-info">{{ videoInfo.name }}</div>
...
...
@@ -37,6 +38,7 @@
<script setup>
import { mainStore } from '@/store'
import { storeToRefs } from 'pinia'
import icon_avatar from '@images/que-touxiang@2x.png'
import VideoDetail from '@/components/VideoDetail/index.vue'
import { ref, reactive, onMounted, watch } from 'vue'
...
...
src/views/client/videoDetailComment.vue
View file @
a19a40c
...
...
@@ -5,7 +5,8 @@
<div class="comment-wrapper">
<van-row style="font-size: 0.9rem;">
<van-col span="4">
<van-image round width="3rem" height="3rem" :src="item.avatar" />
<van-image v-if="item.avatar" round width="3rem" height="3rem" :src="item.avatar" />
<van-image v-else round width="3rem" height="3rem" :src="icon_avatar" />
</van-col>
<van-col span="14">
<p>{{ item.name }}</p>
...
...
@@ -58,6 +59,7 @@ import { mainStore } from '@/store'
import CommentList from '@/components/CommentList/index.vue'
import CommentBox from '@/components/CommentBox/index.vue'
import NoticeOverlay from '@/components/NoticeOverlay/index.vue'
import icon_avatar from '@images/que-touxiang@2x.png'
import { ref, reactive, onMounted } from 'vue'
import { useRoute, useRouter } from 'vue-router'
...
...
src/views/me/callMe.vue
View file @
a19a40c
...
...
@@ -3,7 +3,8 @@
<div class="comment-wrapper">
<van-row style="font-size: 0.9rem;">
<van-col span="4">
<van-image round width="3rem" height="3rem" :src="item.avatar" />
<van-image v-if="item.avatar" round width="3rem" height="3rem" :src="item.avatar" />
<van-image v-else round width="3rem" height="3rem" :src="icon_avatar" />
</van-col>
<van-col span="16">
<p>{{ item.name }}</p>
...
...
@@ -53,6 +54,7 @@
// import icon_player from '@images/bofang@2x.png'
import CommentBox from '@/components/CommentBox/index.vue'
import NoticeOverlay from '@/components/NoticeOverlay/index.vue'
import icon_avatar from '@images/que-touxiang@2x.png'
import { ref, reactive, onActivated } from 'vue'
import { useRoute, useRouter, onBeforeRouteLeave } from 'vue-router'
...
...
src/views/me/followList.vue
View file @
a19a40c
...
...
@@ -4,7 +4,8 @@
<div @click="getUserInfo(item)" class="info van-hairline--bottom">
<van-row>
<van-col>
<van-image round width="50" height="50" :src="item.avatar" style="padding-right: 1rem;" />
<van-image v-if="item.avatar" round width="50" height="50" :src="item.avatar" style="padding-right: 1rem;" />
<van-image v-else round width="50" height="50" :src="icon_avatar" style="padding-right: 1rem;" />
</van-col>
<van-col class="text-wrapper" span="18">
<div>
...
...
@@ -25,6 +26,7 @@ import { ref, reactive, onMounted } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import axios from '@/utils/axios';
import { Toast } from 'vant';
import icon_avatar from '@images/que-touxiang@2x.png'
const $router = useRouter();
...
...
src/views/me/index.vue
View file @
a19a40c
...
...
@@ -4,7 +4,8 @@
<div class="info">
<van-row>
<van-col>
<van-image @click="handleUser('EDIT')" round width="50" height="50" :src="userInfo.avatar" style="padding-right: 1rem;" />
<van-image v-if="userInfo.avatar" @click="handleUser('EDIT')" round width="50" height="50" :src="userInfo.avatar" style="padding-right: 1rem;" />
<van-image v-else @click="handleUser('EDIT')" round width="50" height="50" :src="icon_avatar" style="padding-right: 1rem;" />
</van-col>
<van-col class="text-wrapper" span="18">
<div>
...
...
@@ -68,6 +69,8 @@
</template>
<script setup>
import icon_avatar from '@images/que-touxiang@2x.png'
import MyButton from '@/components/MyButton/index.vue'
import { ref, reactive, onMounted } from 'vue'
...
...
src/views/me/message.vue
View file @
a19a40c
...
...
@@ -4,7 +4,8 @@
<div class="comment-wrapper">
<van-row style="font-size: 0.9rem;">
<van-col span="4">
<van-image round width="3rem" height="3rem" :src="item.avatar" />
<van-image v-if="item.avatar" round width="3rem" height="3rem" :src="item.avatar" />
<van-image v-else round width="3rem" height="3rem" :src="icon_avatar" />
</van-col>
<van-col span="15">
<p>{{ item.name }}</p>
...
...
@@ -44,6 +45,7 @@
<script setup>
import icon_player from '@images/bofang@2x.png'
import icon_avatar from '@images/que-touxiang@2x.png'
import { ref, reactive, onMounted, onActivated } from 'vue'
import { useRoute, useRouter, onBeforeRouteLeave } from 'vue-router'
...
...
Please
register
or
login
to post a comment