Commit 9260039a authored by gengchunlei's avatar gengchunlei

小程序 领取记录顶部title判断

parent 79d87846
......@@ -5,8 +5,8 @@
@refresh="onRefresh"
:disabled="isRefreshDisable"
>
<mt-header title="领取记录">
<div slot="left" @click="goBack">
<mt-header :title="showNav() ? '领取记录' : ''">
<div slot="left" @click="goBack" :style="{display: showNav() ? 'block': 'none'}">
<mt-button icon="back"></mt-button>
</div>
<div slot="right" @click="toLossReport" v-if="!lossVisible">
......@@ -214,6 +214,7 @@
export default {
name: "collectRecords",
components: {NoData},
inject:['showNav'],
data() {
return {
loading: false,
......@@ -258,7 +259,12 @@
}
}
},
mounted() {
created() {
if (!this.showNav()) {
document.title = '领取记录'
}
},
mounted() {
this.$nextTick(() => {
const notlist = this.$refs.notLoss
notlist.addEventListener('scroll', () => {
......
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