2023-05-25 18:12:05 +08:00
|
|
|
<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'
|
2023-06-01 11:24:27 +08:00
|
|
|
import {
|
|
|
|
mapGetters
|
|
|
|
} from "vuex";
|
2023-05-25 18:12:05 +08:00
|
|
|
export default {
|
|
|
|
data(){
|
|
|
|
return {
|
|
|
|
tanent: {},
|
|
|
|
text: '',
|
|
|
|
userInfo: {}
|
|
|
|
}
|
|
|
|
},
|
2023-06-01 11:24:27 +08:00
|
|
|
computed: mapGetters(['tenantId']),
|
2023-05-25 18:12:05 +08:00
|
|
|
mounted(){
|
|
|
|
getUserInfo().then(res => {
|
|
|
|
this.userInfo = res.data
|
2023-06-01 11:24:27 +08:00
|
|
|
getTenant(this.tenantId).then(res => {
|
2023-05-25 18:12:05 +08:00
|
|
|
this.tenant = res.data
|
|
|
|
this.text = res.data.notice
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.notice {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
.item {
|
|
|
|
width: 800rpx;
|
|
|
|
height: 1000rpx;
|
|
|
|
background: #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|