暖心人
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

84 lines
1.9 KiB

<template>
</template>
<script>
import {
imghost
} from '@/config/host.js'
import HeaderNav from '@/components/HeaderNav/Index.vue';
import FooterNav from '@/components/FooterNav/Index.vue';
import RightNav from '@/components/RightNav/Index.vue';
import MzButton from '@/components/MzButton/Index.vue';
import api from '@/utils/functions.js';
export default {
components: {
},
data() {
return {
title: 'Hello',
loading: true,
staticImage: {
},
user: {
avatar: imghost + '/static/image/banner.png',
nickname: '清晨的风',
coupons: 221,
id: 88685,
},
isTop: false,
lists:[
{
id:1,
thumb:'img',
title:'全市公安机关夏季治安打击整治“彭安行动”新闻发布会召开',
desc:'需要您带一点猫砂上门,谢谢',
time:'2023/06/16',
is_new:true
},{
id:2,
thumb:'img',
title:'全市公安机关夏季治安打击整治“彭安行动”新闻发布会召开',
desc:'需要您带一点猫砂上门,谢谢',
time:'2023/06/16',
is_new:true
},{
id:3,
thumb:'img',
title:'全市公安机关夏季治安打击整治“彭安行动”新闻发布会召开',
desc:'需要您带一点猫砂上门,谢谢',
time:'2023/06/16',
is_new:false
},
]
}
},
onLoad() {
},
methods: {
chatDetail(item){
wx.navigateTo({
url:'/pages/ChatDetail/index?id='+item.id
});
}
},
onPageScroll(res) {
if(res.scrollTop <= 20){
uni.$emit('isTop', true);
}else{
uni.$emit('isTop', false);
}
},
created() {
// this.pagePadding = (api.navHeight().navPaddingTop +
// api.navHeight().navHeight + (api.navHeight().headerPadding * 2))
}
}
</script>
<style lang="scss">
@import '@/pages/Index/components/ChatPage/components/index.scss';
</style>