142 lines
3.2 KiB
Vue
142 lines
3.2 KiB
Vue
<template>
|
|
<tpx-layout>
|
|
<template v-slot:body>
|
|
<scroll-view :scroll-y="true" @scrolltolower="onScrollBottom()" class="pos-abt-all"
|
|
>
|
|
<view class="pgb-cont">
|
|
<!-- 列表数据 -->
|
|
<!-- -->
|
|
<view>
|
|
<view v-for="(item) in dataList" class="blcok-white radius-20 mb-20" style="margin-top: 0;"
|
|
@click="handleTODetail(item)"
|
|
>
|
|
<u-text :text="'各国邮政新规'" size="30" :bold="true" lines="1"></u-text>
|
|
|
|
<u-row class="mt-20">
|
|
<view class="pr-10">
|
|
<u-text :text="'根据萨尔瓦多邮政通知,为了使萨尔瓦多邮政能在邮件抵达时,致电或'" size="28" color="#999" lines="2"></u-text>
|
|
</view>
|
|
<u-image height="100" width="150"></u-image>
|
|
</u-row>
|
|
<view class="mt-20">
|
|
<u-row justify="between">
|
|
<u-row>
|
|
<u-icon name="thumb-up" size="38" color="#999"></u-icon>
|
|
<u-text margin="0 0 0 10rpx" size="26" :text="66" color="#999"></u-text>
|
|
</u-row>
|
|
<view>
|
|
<u-text :text="'2012-10-11 10:22'" size="26" color="#999"></u-text>
|
|
</view>
|
|
</u-row>
|
|
</view>
|
|
|
|
</view>
|
|
</view>
|
|
|
|
<!-- 加载更多 -->
|
|
<u-loadmore icon-size="28" font-size="28" margin-top="30" v-if="showLoadMore || loadedAll"
|
|
:status="loadedAll ? 'nomore' : 'loading'" />
|
|
|
|
<!-- 空数据页 -->
|
|
<view v-if="dataList.length == 0" style="padding-top: 100rpx;">
|
|
<u-empty text="无数据" :icon="getCdnUrl('kong.png')" textSize="28" width="86" height="97">
|
|
</u-empty>
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
</template>
|
|
|
|
</tpx-layout>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
import getCdnUrl from "@/common/getCdnUrl"
|
|
import { goto, goBack, setClipboardData, confirmModal, showLoading } from "@/common/untool"
|
|
|
|
export default {
|
|
props: {
|
|
// hasLeftWin: {
|
|
// type: Boolean
|
|
// }
|
|
},
|
|
computed: {
|
|
|
|
},
|
|
data() {
|
|
return {
|
|
searchParam: {
|
|
keyword: '',
|
|
},
|
|
queryOption: {},
|
|
dataList: [
|
|
{},{},{},{},{},{},{},{}
|
|
],
|
|
showLoadMore: false,
|
|
loadedAll: false
|
|
}
|
|
},
|
|
onShareAppMessage() {
|
|
return {
|
|
// title: '',
|
|
// path: 'TODO'
|
|
}
|
|
},
|
|
onLoad(queryOption) {
|
|
this.queryOption = queryOption
|
|
this.searchParam.tabType = queryOption.tab || tabList[0].val
|
|
this.initData();
|
|
},
|
|
onUnload() {
|
|
},
|
|
methods: {
|
|
getCdnUrl,
|
|
initData(){
|
|
// showLoading()
|
|
setTimeout(() => {
|
|
uni.stopPullDownRefresh();
|
|
}, 300);
|
|
},
|
|
setListData() {
|
|
|
|
},
|
|
|
|
onScrollBottom() {
|
|
console.log("onScrollBottom");
|
|
if (this.loadedAll) {
|
|
return;
|
|
}
|
|
this.showLoadMore = true;
|
|
setTimeout(() => {
|
|
this.setListData();
|
|
}, 300);
|
|
},
|
|
handleSearchMoreBtn(){
|
|
if(!this.showLoadMore) {
|
|
// 回显更多条件
|
|
Object.keys(this.tmpSearchParam).map(t=> {
|
|
this.tmpSearchParam[t] = this.searchParam[t] || ''
|
|
})
|
|
}
|
|
this.showSearchMore = !this.showSearchMore
|
|
},
|
|
handleTODetail(item={}) {
|
|
goto(`service/articledetail?id=${item.id}`)
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
@import '@/common/uni-nvue.scss';
|
|
page {
|
|
background-color: #F6F6F6;
|
|
height: 100% !important;
|
|
}
|
|
|
|
</style>
|
|
<style scoped lang="scss">
|
|
.pgb-cont{
|
|
padding: 30rpx;
|
|
}
|
|
</style> |