Browse Source

[新增] 供应商和食堂默认头像

master
邓平艺 5 years ago
parent
commit
05ccbd31e3
  1. 4
      canteen/pages/index/index.vue
  2. BIN
      canteen/static/images/default_avatar.png
  3. 5
      supplier/pages/index/index.vue
  4. BIN
      supplier/static/images/default_avatar.png

4
canteen/pages/index/index.vue

@ -1,10 +1,10 @@
<template>
<view>
<view class="lf-row-center lf-flex-column head" v-if="$isRight(canteen)">
<image :src="canteen.avatar"></image>
<image :src="canteen.avatar" v-if="canteen.avatar"></image>
<image src="../../static/images/default_avatar.png" v-else></image>
<view class="lf-m-t-20 lf-font-32 lf-font-bold lf-color-black">{{ canteen.name }}</view>
<view class="lf-font-28 lf-color-555 lf-m-t-10">{{ canteen.role }}</view>
</view>
<view class="list">
<view class="lf-row-between list-item" hover-class="lf-opacity" v-for="(item, index) in block_list"

BIN
canteen/static/images/default_avatar.png

After

Width: 400  |  Height: 400  |  Size: 21 KiB

5
supplier/pages/index/index.vue

@ -1,7 +1,8 @@
<template>
<view>
<view class="lf-row-center lf-flex-column head">
<image :src="supplier.avatar"></image>
<view class="lf-row-center lf-flex-column head" v-if="$isRight(supplier)">
<image :src="supplier.avatar" v-if="supplier.avatar"></image>
<image src="../../static/images/default_avatar.png" v-else></image>
<view class="lf-m-t-20 lf-font-32 lf-font-bold lf-color-black">{{ supplier.name }}</view>
<view class="lf-font-28 lf-color-555 lf-m-t-10">{{ supplier.role }}</view>
</view>

BIN
supplier/static/images/default_avatar.png

After

Width: 400  |  Height: 400  |  Size: 21 KiB

Loading…
Cancel
Save