<template>
|
|
<view class="content">
|
|
|
|
<view style="margin: 32rpx auto 0rpx; width: calc(100vw - 64rpx);">
|
|
<view>
|
|
<p style="text-indent: 1em; color: #555; font-size: 30rpx; font-weight: normal; line-height: 1.5;">
|
|
{{notice.context}}
|
|
</p>
|
|
</view>
|
|
<view class="re-empty" v-if="!notice">
|
|
<view>暂无数据</view>
|
|
</view>
|
|
</view>
|
|
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
notice: {}
|
|
}
|
|
},
|
|
onShow() {
|
|
this.loadNotice()
|
|
},
|
|
methods: {
|
|
clickBanner(){ uni.navigateTo({ url: '/pages/login/login' }) },
|
|
loadNotice(){
|
|
this.$httpGet("/api/admin/notice", {}, (res) => {
|
|
console.log('[/admin/notice]', res);
|
|
if(res.data){
|
|
this.notice=res.data
|
|
}
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
page{
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
.head{
|
|
height: 60rpx;
|
|
line-height: 60rpx;
|
|
padding: 0 40rpx;
|
|
background-color: #fff;
|
|
}
|
|
.item-card{
|
|
width: calc(100vw - 60rpx);
|
|
height: calc(236rpx - 60rpx);
|
|
background: #ffffff;
|
|
padding: 30rpx;
|
|
|
|
font-size: 24rpx;
|
|
line-height: 42rpx;
|
|
color: #333333;
|
|
}
|
|
.item-button{
|
|
position: absolute;
|
|
left: 533rpx;
|
|
top: 134.42rpx;
|
|
width: 182rpx;
|
|
height: 52rpx;
|
|
line-height: 52rpx;
|
|
border-radius: 8rpx;
|
|
opacity: 1;
|
|
|
|
box-sizing: border-box;
|
|
border: 2rpx solid #F70303;
|
|
|
|
font-size: 28rpx;
|
|
font-weight: normal;
|
|
|
|
text-align: center;
|
|
letter-spacing: 0px;
|
|
color: #F70303;
|
|
}
|
|
</style>
|