<template>
    <view class="container">
        <!-- 详情 -->
        <view class="cooperativeImgBox">
            <image :src="loadImgSrc('/snbj.png')" class="cooperativeImg"></image>
        </view>
        <view class="itemBox">
            <view class="item">
                <span>
                    {{ details.textDetails }}
                </span>
            </view>
        </view>
    </view>
</template>

<script>
    import { listServer, getServer, delServer, addServer, updateServer } from '@/api/highFrequencyService/highFrequencyService';
    export default {
        data() {
            return {
                details: {
                    titleName: "-",
                    textDetails: "-",
                }
            }
        }
        /**
         * 生命周期函数--监听页面加载
         */,
        onLoad(options) {
            this.getServer(options.id, options.type);
        },
        methods: {
            /** 详情 */
            getServer(id, type) {
                getServer(id, type).then(response => {
                    let details = response.data;
                    this.details = details;
                    wx.setNavigationBarTitle({
                        title: details.titleName
                    })
                });
            },
        }
    };
</script>
<style>
    @import './details.css';
</style>
