1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <template>
- <view class="content">
- <view class="one">
- 活动详情
- </view>
- </view>
- </template>
- <script setup lang="ts">
- import { getCurrentInstance, ref } from 'vue';
- //该依赖已内置不需要单独安装
- import { onLoad } from "@dcloudio/uni-app";
- // 请求接口
- const $api = getCurrentInstance()?.appContext.config.globalProperties.$api;
- // 基本信息
- const config = ref({ logoUrl: '' });
- // 详情信息id
- const id = ref('');
- onLoad(async (options) => {
- id.value = options && options.id
- uni.setNavigationBarTitle({
- title: options && options.name || '活动详情'
- });
- await searchConfig();
- await search();
- })
- // config信息
- const searchConfig = async () => {
- config.value = uni.getStorageSync('config');
- };
- // 查询
- const search = async () => {
- if (id.value) { }
- };
- </script>
- <style lang="scss" scoped>
- .content {
- display: flex;
- flex-direction: column;
- width: 100vw;
- height: 100vh;
- .one {
- padding: 2vw;
- }
- }
- </style>
|