70 lines
1.6 KiB
Vue
70 lines
1.6 KiB
Vue
<template>
|
|
<view>
|
|
<z-paging :language="$i18n.locale" ref="paging" v-model="list" @query="queryList" :pageSize="20"
|
|
:style="'background-color: '+theme.bg+';color: '+theme.text">
|
|
<!-- 下拉刷新 -->
|
|
<custom-refresher slot="refresher" slot-scope="{refresherStatus}" :status="refresherStatus">
|
|
</custom-refresher>
|
|
<!-- 头部 -->
|
|
<myNav slot="top" :title="i18n.task.text18"></myNav>
|
|
<!-- 身体 -->
|
|
<view class="width-750">
|
|
<!-- 表头 -->
|
|
<view class="height-100 flex align-center justify-between padding-w-30 font-30 bold-font ">
|
|
<text>{{i18n.orderRecord.text1}}</text>
|
|
<text>{{i18n.task.text19}}</text>
|
|
</view>
|
|
<!-- 单一列表 -->
|
|
<view v-for="(item,index) in list" :key="index"
|
|
class="height-100 flex align-center justify-between padding-w-30 font-26 margin-b-2">
|
|
<text>{{item.addtime}}</text>
|
|
<text>{{item.name}}</text>
|
|
</view>
|
|
<!-- 空盒子 -->
|
|
<view class="height-40"></view>
|
|
</view>
|
|
</z-paging>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
list: [],
|
|
theme: '',
|
|
}
|
|
},
|
|
computed: {
|
|
i18n() {
|
|
return this.$t('message');
|
|
}
|
|
},
|
|
onShow() {
|
|
if (uni.getStorageSync("theme") == "dark") {
|
|
this.theme = this.$store.state.darkTheme
|
|
} else {
|
|
this.theme = this.$store.state.lightTheme
|
|
}
|
|
},
|
|
methods: {
|
|
queryList(pageNo, pageSize) {
|
|
setTimeout(() => {
|
|
this.post('/index/box_log', {
|
|
page: pageNo,
|
|
page_num: pageSize
|
|
}).then(res => {
|
|
if (res.code == 1) {
|
|
console.log(res)
|
|
this.$refs.paging.complete(res.data.data);
|
|
}
|
|
})
|
|
}, 500)
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
</style>
|