Commit c97c4213 authored by 郭铭瑶's avatar 郭铭瑶 🤘

修改照片显示

parent 6611055f
......@@ -17,9 +17,9 @@ export default {
@font-face
font-family DIN
src url(./assets/font/DIN-Medium.otf)
@font-face
font-family Hei
src url(./assets/font/Hei.ttf)
// @font-face
// font-family Hei
// src url(./assets/font/Hei.ttf)
@font-face
font-family Pangmenzhengdao
src url(./assets/font/pangmenzhengdao.ttf)
......
// $font-yahei = Microsoft YaHei UI, 'Avenir', Helvetica, Arial, sans-serif
$font-pang = Pangmenzhengdao, 'Avenir', Helvetica, Arial, sans-serif
$hei = Hei, 'Avenir', Helvetica, Arial, sans-serif
// $hei = Hei, 'Avenir', Helvetica, Arial, sans-serif
$font-din = DIN, 'Avenir', Helvetica, Arial, sans-serif
$color-map(opacity = 0.3)
rgba(91, 213, 255, opacity)
......
......@@ -5,7 +5,7 @@
<i-col class="col" v-for="(col, key) in row" :key="key" :span="col.width" :offset="col.offset || 0">
<div :style="`text-align: ${col.align || 'right'}; width:${labelWidth}rem;`">{{col.label}}</div>
<!-- <img v-if="col.type == 'img' && model[key]" @click="handleView(model[key])" :src="model[key]"/> -->
<template v-if="col.type == 'img' && model[key]">
<template v-if="col.type == 'img' && (model[key] || model['done_photo'])">
<img style="margin-right:1rem;" v-for="img in model[key].split(',')" v-if="img" :key="img" :src="img" @click="handleView(img)"/>
<img style="margin-right:1rem;" v-if="model['done_photo']" :src="model['done_photo']" @click="handleView(model['done_photo'])"/>
</template>
......
......@@ -25,7 +25,7 @@
</template>
</template>
<template v-if="col.type == 'icon'">
<img v-if="row[col.key]" style="width:1rem;height:1rem;" src="@/assets/images/file.png"/>
<img v-if="row[col.key] || row['done_photo']" style="width:1rem;height:1rem;" src="@/assets/images/file.png"/>
</template>
<div v-else :style="`text-align: ${col.align || 'left'};color: ${row['color'] || ''} `">
{{col.format ? col.format(row[col.key]) : (row[col.key] || '暂无')}}
......
......@@ -112,7 +112,7 @@ export default {
position relative
background-size cover
background-position center
font-family $hei
// font-family $hei
.weather
z-index 100
position absolute
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment