78 lines
2.9 KiB
Vue
78 lines
2.9 KiB
Vue
<template>
|
|
<view>
|
|
<!-- 状态栏 -->
|
|
<status-nav :titleVal="'用户足迹'" :statusTitle="true"></status-nav>
|
|
<!-- 自定义二级分类 -->
|
|
<!-- 列表 -->
|
|
<view :style="{paddingTop: statusHNH+'px'}" class="pad-zy30">
|
|
<view class="radius20 fon28 col3 mar-sx20">
|
|
<view class="disac">
|
|
<view class="disjbac width100 radius10 pad-zy20 xialak bacf">
|
|
<input class="fon28" type="text" value="" placeholder="请输入姓名/电话查找" placeholder-style="color: #B3B3B3;" />
|
|
</view>
|
|
<view class="flexs tc mar-z30 colf radius10 customer-btn" :style="{background:publicColor}">搜索</view>
|
|
</view>
|
|
</view>
|
|
<!-- 列表 -->
|
|
<view class="bacf radius10 pad20 mar-x20 fon28" v-for="(item,index) in dataList" :key="index">
|
|
<view style="color: #B3B3B3;">{{item.time}}</view>
|
|
<view class="mar-s20">
|
|
<text class="bold col3">{{item.name}}</text>
|
|
<text style="color: #B3B3B3;">查看了</text>
|
|
<text class="bold col3">【{{item.title}}】</text>
|
|
<text style="color: #B3B3B3;">{{item.zwhat}}</text>
|
|
</view>
|
|
</view>
|
|
<!-- 返回顶部 -->
|
|
<!-- <back-top :showTop="showTop" @backTop="backTop"></back-top> -->
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
statusHNH:uni.getStorageSync('statusHNH'),
|
|
publicColor:uni.getStorageSync('publicColor'),//主题颜色
|
|
dataList:[
|
|
{name:'恒美小姐姐',title:'秃顶如何治疗',time:'2021-07-15 20:26:16',zwhat:'日记'},
|
|
{name:'恒美小姐姐',title:'秃顶如何治疗',time:'2021-07-15 20:26:16',zwhat:'日记'},
|
|
{name:'恒美小姐姐',title:'秃顶如何治疗',time:'2021-07-15 20:26:16',zwhat:'日记'},
|
|
{name:'恒美小姐姐',title:'秃顶如何治疗',time:'2021-07-15 20:26:16',zwhat:'日记'},
|
|
{name:'恒美小姐姐',title:'秃顶如何治疗',time:'2021-07-15 20:26:16',zwhat:'案例'},
|
|
{name:'恒美小姐姐',title:'秃顶如何治疗',time:'2021-07-15 20:26:16',zwhat:'案例'},
|
|
{name:'恒美小姐姐',title:'秃顶如何治疗',time:'2021-07-15 20:26:16',zwhat:'案例'},
|
|
{name:'恒美小姐姐',title:'秃顶如何治疗',time:'2021-07-15 20:26:16',zwhat:'案例'},
|
|
{name:'恒美小姐姐',title:'秃顶如何治疗',time:'2021-07-15 20:26:16',zwhat:'案例'},
|
|
{name:'恒美小姐姐',title:'秃顶如何治疗',time:'2021-07-15 20:26:16',zwhat:'案例'},
|
|
],
|
|
showTop:false,
|
|
}
|
|
},
|
|
onPageScroll(e) {
|
|
e.scrollTop > 360 ? this.showTop = true : this.showTop = false
|
|
},
|
|
onReachBottom() {//触底事件
|
|
for (let i = 0; i < 4; i++) {
|
|
let obj = {name:'恒美小姐姐',title:'秃顶如何治疗',time:'2021-07-15 20:26:16',zwhat:'案例'}
|
|
this.dataList.push(obj)
|
|
}
|
|
},
|
|
onLoad() {
|
|
|
|
},
|
|
methods: {
|
|
backTop(){//回到顶部事件
|
|
uni.pageScrollTo({
|
|
scrollTop: 0,
|
|
duration: 300
|
|
});
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
</style>
|