12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <template>
- <view class="content">
- 教师详情
- </view>
- </template>
- <script setup lang="ts">
- import { inject, computed, ref } from 'vue';
- //该依赖已内置不需要单独安装
- import { onLoad } from "@dcloudio/uni-app";
- // 请求接口
- const $api = inject('$api');
- const id = ref('');
- // 基本信息
- const config = ref({ logo: [], file: [] });
- const info = ref({});
- // user
- const user = computed(() => {
- return uni.getStorageSync('user');
- })
- onLoad(async (options) => {
- id.value = options && options.id
- await searchConfig();
- await searchOther();
- await search();
- });
- // config信息
- const searchConfig = async () => {
- config.value = uni.getStorageSync('config');
- };
- // 其他查询信息
- const searchOther = async () => { };
- // 查询
- const search = async () => { };
- </script>
- <style lang="scss" scoped>
- .content {
- display: flex;
- flex-direction: column;
- min-height: 100vh;
- background-color: var(--f1Color);
- }
- </style>
|