bug
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
<div class="album-list__wrapper">
|
||||
<div class="item" v-for="(item, index) in list" :key="index" @click="linkTo('./AlbumDetail?id=' + item.id)">
|
||||
<span v-if="item.photoHasRead === 'NO'">未查看</span>
|
||||
<image src="https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/fa50994a01ff415294729ac6e0623845~tplv-k3u1fbpfcp-no-mark:240:240:240:160.awebp?" />
|
||||
<image src="./../images/icon.png" />
|
||||
<div class="item-bottom">
|
||||
<h2>{{ item.albumName }}</h2>
|
||||
<div class="item-bottom__info">
|
||||
@@ -238,13 +238,17 @@
|
||||
justify-content: space-between;
|
||||
|
||||
.item {
|
||||
display: flex;
|
||||
position: relative;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 328px;
|
||||
height: 328px;
|
||||
margin-top: 32px;
|
||||
box-shadow: 0px 4px 8px 0px rgba(17, 67, 110, 0.1);
|
||||
border-radius: 16px;
|
||||
overflow: hidden;
|
||||
background: #EFF5FA;
|
||||
|
||||
.item-bottom {
|
||||
position: absolute;
|
||||
@@ -317,8 +321,8 @@
|
||||
}
|
||||
|
||||
& > image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -92,7 +92,13 @@
|
||||
},
|
||||
|
||||
mounted () {
|
||||
this.configList = JSON.parse(JSON.stringify(this.config))
|
||||
this.configList = JSON.parse(JSON.stringify(this.config)).map(v => {
|
||||
if (v.fieldType === '7') {
|
||||
v.defaultValue = this.$dayjs().format('YYYY-MM-DD')
|
||||
}
|
||||
|
||||
return v
|
||||
})
|
||||
|
||||
uni.$on('change', e => {
|
||||
this.configList = e
|
||||
|
||||
@@ -80,8 +80,8 @@
|
||||
this.isShowDate = date.status === '1'
|
||||
this.isShowAddress = address.status === '1'
|
||||
this.title = title.defaultValue || '巡查日志'
|
||||
this.weather = weather.defaultValue || '晴转多云'
|
||||
this.address = date.defaultValue || '武汉天地'
|
||||
this.address = uni.getStorageSync('address').address || ''
|
||||
this.weather = uni.getStorageSync('address').weather || ''
|
||||
this.reporter = reporter.defaultValue || ''
|
||||
this.date = date.defaultValue || this.$dayjs(new Date).format('YYYY-MM-DD')
|
||||
this.remark = remark.defaultValue || ''
|
||||
@@ -92,7 +92,19 @@
|
||||
},
|
||||
|
||||
mounted () {
|
||||
this.configList = JSON.parse(JSON.stringify(this.config))
|
||||
this.configList = JSON.parse(JSON.stringify(this.config)).map(v => {
|
||||
if (v.fieldType === '3') {
|
||||
v.defaultValue = uni.getStorageSync('address').address || ''
|
||||
}
|
||||
if (v.fieldType === '2') {
|
||||
v.defaultValue = uni.getStorageSync('address').weather || ''
|
||||
}
|
||||
if (v.fieldType === '7') {
|
||||
v.defaultValue = this.$dayjs().format('YYYY-MM-DD')
|
||||
}
|
||||
|
||||
return v
|
||||
})
|
||||
|
||||
uni.$on('change', e => {
|
||||
this.configList = e
|
||||
|
||||
@@ -103,8 +103,8 @@
|
||||
this.isShowDate = date.status === '1'
|
||||
this.isShowAddress = address.status === '1'
|
||||
|
||||
this.title = title.defaultValue || '巡查日志'
|
||||
this.address = address.defaultValue || '武汉天地'
|
||||
this.title = title.defaultValue || ''
|
||||
this.address = address.defaultValue || ''
|
||||
this.hoster = hoster.defaultValue || ''
|
||||
this.date = date.defaultValue || this.$dayjs(new Date).format('YYYY-MM-DD')
|
||||
this.remark = remark.defaultValue || ''
|
||||
@@ -118,7 +118,13 @@
|
||||
},
|
||||
|
||||
mounted () {
|
||||
this.configList = JSON.parse(JSON.stringify(this.config))
|
||||
this.configList = JSON.parse(JSON.stringify(this.config)).map(v => {
|
||||
if (v.fieldType === '7') {
|
||||
v.defaultValue = this.$dayjs().format('YYYY-MM-DD')
|
||||
}
|
||||
|
||||
return v
|
||||
})
|
||||
|
||||
uni.$on('change', e => {
|
||||
this.configList = e
|
||||
|
||||
@@ -91,7 +91,13 @@
|
||||
},
|
||||
|
||||
mounted () {
|
||||
this.configList = JSON.parse(JSON.stringify(this.config))
|
||||
this.configList = JSON.parse(JSON.stringify(this.config)).map(v => {
|
||||
if (v.fieldType === '7') {
|
||||
v.defaultValue = this.$dayjs().format('YYYY-MM-DD')
|
||||
}
|
||||
|
||||
return v
|
||||
})
|
||||
|
||||
uni.$on('change', e => {
|
||||
this.configList = e
|
||||
|
||||
@@ -22,9 +22,9 @@
|
||||
date: '',
|
||||
time: '',
|
||||
week: '',
|
||||
weather: '晴转多云',
|
||||
weather: '',
|
||||
remark: '',
|
||||
address: '武汉市·绿地蓝海国际A座',
|
||||
address: '',
|
||||
timer: null,
|
||||
configList: [],
|
||||
isShowWeather: false,
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
</div>
|
||||
<div class="bottom">{{ date }} {{ weekCn }}</div>
|
||||
</div>
|
||||
<div class="bottom" v-show="isShowAddress">{{ address }}</div>
|
||||
<div class="bottom" v-if="isShowAddress">{{ address }}</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user