Commit 9260039a authored by gengchunlei's avatar gengchunlei

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

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