83 lines
1.4 KiB
Vue
83 lines
1.4 KiB
Vue
|
<template>
|
||
|
<view class="content">
|
||
|
<view class="container">
|
||
|
<view class="box_" v-for="(item,index) in lists" :key="index" @click="jgDetail(item.id)">
|
||
|
<view class="">{{item.title}}</view>
|
||
|
<view class="">{{item.createTime}}</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
|
||
|
</view>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
import request from '../../utils/request'
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
lists: []
|
||
|
}
|
||
|
},
|
||
|
onShow() {
|
||
|
this.getlsit()
|
||
|
},
|
||
|
onPullDownRefresh() {
|
||
|
console.log("刷新");
|
||
|
uni.stopPullDownRefresh()
|
||
|
},
|
||
|
onReachBottom() {
|
||
|
// this.show = true
|
||
|
setTimeout(() => {
|
||
|
console.log("加载执行");
|
||
|
}, 2000)
|
||
|
},
|
||
|
|
||
|
methods: {
|
||
|
|
||
|
async getlsit() {
|
||
|
let res = await request({
|
||
|
url: '/system/drive/notice/applist?noticeType=2',
|
||
|
method: 'get'
|
||
|
})
|
||
|
console.log(res);
|
||
|
this.lists = res.data
|
||
|
},
|
||
|
jgDetail(id) {
|
||
|
uni.navigateTo({
|
||
|
url: '/pages/teacher/jgDetail?id=' + id
|
||
|
})
|
||
|
},
|
||
|
goback() {
|
||
|
uni.navigateBack()
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style scoped lang="scss">
|
||
|
.content {
|
||
|
width: 100%;
|
||
|
background: #f4f5f6;
|
||
|
height: 100vh;
|
||
|
}
|
||
|
|
||
|
.container {
|
||
|
width: 100%;
|
||
|
background: #f4f5f6;
|
||
|
box-sizing: border-box;
|
||
|
padding-top: 5px;
|
||
|
|
||
|
}
|
||
|
|
||
|
.box_ {
|
||
|
width: 95%;
|
||
|
margin: 15px auto;
|
||
|
border-radius: 8px;
|
||
|
background: #fff;
|
||
|
box-sizing: border-box;
|
||
|
padding: 15px;
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
justify-content: space-between;
|
||
|
}
|
||
|
</style>
|