77 lines
1.1 KiB
Vue
77 lines
1.1 KiB
Vue
<template>
|
|
<view class="content">
|
|
<view class="container" v-html="lists.content">
|
|
|
|
</view>
|
|
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import request from '../../utils/request'
|
|
export default {
|
|
data() {
|
|
return {
|
|
lists: ''
|
|
|
|
}
|
|
},
|
|
onLoad(options) {
|
|
this.getlsit(options.id)
|
|
},
|
|
onPullDownRefresh() {
|
|
console.log("刷新");
|
|
uni.stopPullDownRefresh()
|
|
},
|
|
onReachBottom() {
|
|
// this.show = true
|
|
setTimeout(() => {
|
|
console.log("加载执行");
|
|
}, 2000)
|
|
},
|
|
|
|
methods: {
|
|
|
|
async getlsit(id) {
|
|
|
|
let res = await request({
|
|
url: '/system/drive/notice/' + id,
|
|
method: 'get'
|
|
})
|
|
console.log(res);
|
|
this.lists = res.data
|
|
},
|
|
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> |