cyywl_server/yudao-ui-app/pages/notice/index.vue

54 lines
721 B
Vue

<template>
<view class="notice">
<view class="item">
{{text}}
</view>
</view>
</template>
<script>
import {
getTenant
} from '../../api/product.js'
import {
setVisit,
getUserInfo
} from '@/api/user.js'
import {
mapGetters
} from "vuex";
export default {
data(){
return {
tanent: {},
text: '',
userInfo: {}
}
},
computed: mapGetters(['tenantId']),
mounted(){
getUserInfo().then(res => {
this.userInfo = res.data
getTenant(this.tenantId).then(res => {
this.tenant = res.data
this.text = res.data.notice
})
})
}
}
</script>
<style>
.notice {
width: 100%;
height: 100%;
.item {
width: 800rpx;
height: 1000rpx;
background: #fff;
}
}
</style>