1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <template>
- <view class="page">
- <navbar-line>
- <image src="/static/home_logo.png" mode="widthFix" class="logo"></image>
- </navbar-line>
- <view class="content">
- <rich-text :nodes="rich" class="rich"></rich-text>
- </view>
- </view>
- </template>
- <script>
- import navbarLine from '@/components/navbar-line.vue';
- export default {
- components:{
- navbarLine
- },
- data() {
- return {
- rich:'',
- }
- },
- onLoad() {
- this.getInfo();
- },
- methods: {
- async getInfo(){
- let res = await this.$request('home.company');
- this.rich = this.$tools.replaceDetail(res.data.content)
- },
- }
- }
- </script>
- <style lang="scss">
- page{
- background-color: #fff;
- }
- .logo{
- width: 60rpx;
- height: 60rpx;
- font-family: PingFang SC;
- margin-left: 30rpx;
- position: absolute;
- top: 50%;
- transform: translateY(-50%);
- }
- .content{
- .rich{
- line-height: normal;
- }
- }
-
- </style>
|