51 lines
656 B
Vue
51 lines
656 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'
|
||
|
export default {
|
||
|
data(){
|
||
|
return {
|
||
|
tanent: {},
|
||
|
text: '',
|
||
|
userInfo: {}
|
||
|
}
|
||
|
},
|
||
|
mounted(){
|
||
|
getUserInfo().then(res => {
|
||
|
this.userInfo = res.data
|
||
|
console.log(res.data)
|
||
|
getTenant(153).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>
|