feat: demo里面的文件使用 demo layout,除非是自定义导航栏
This commit is contained in:
parent
f9b436721c
commit
70990288c4
@ -1,5 +1,6 @@
|
|||||||
<route lang="json5">
|
<route lang="json5">
|
||||||
{
|
{
|
||||||
|
layout: 'demo',
|
||||||
style: { navigationBarTitleText: '动态时钟' },
|
style: { navigationBarTitleText: '动态时钟' },
|
||||||
}
|
}
|
||||||
</route>
|
</route>
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
<route lang="json5">
|
|
||||||
{
|
|
||||||
style: { navigationBarTitleText: 'easycom 自动导入' },
|
|
||||||
}
|
|
||||||
</route>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<view class="m-4">
|
|
||||||
<fly-header></fly-header>
|
|
||||||
<fly-content :line="30"></fly-content>
|
|
||||||
</view>
|
|
||||||
</template>
|
|
@ -1,3 +1,10 @@
|
|||||||
|
<route lang="json5">
|
||||||
|
{
|
||||||
|
layout: 'demo',
|
||||||
|
style: { navigationBarTitleText: '图片压缩' },
|
||||||
|
}
|
||||||
|
</route>
|
||||||
|
|
||||||
<template lang="">
|
<template lang="">
|
||||||
<view class="m-4 text-center">
|
<view class="m-4 text-center">
|
||||||
<view class="mb-2 text-orange-500">
|
<view class="mb-2 text-orange-500">
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<route lang="json5">
|
<route lang="json5">
|
||||||
{
|
{
|
||||||
|
layout: 'demo',
|
||||||
style: { navigationBarTitleText: '九宫格抽奖' },
|
style: { navigationBarTitleText: '九宫格抽奖' },
|
||||||
}
|
}
|
||||||
</route>
|
</route>
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
<route lang="json5">
|
<route lang="json5">
|
||||||
{
|
{
|
||||||
|
layout: 'demo',
|
||||||
style: { navigationBarTitleText: '大转盘抽奖' },
|
style: { navigationBarTitleText: '大转盘抽奖' },
|
||||||
}
|
}
|
||||||
</route>
|
</route>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<view class="text-center">
|
<view class="text-center">
|
||||||
<view class="container">
|
<view class="container">
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<route lang="json5">
|
<route lang="json5">
|
||||||
{
|
{
|
||||||
|
layout: 'demo',
|
||||||
style: { navigationBarTitleText: '九宫格抽奖' },
|
style: { navigationBarTitleText: '九宫格抽奖' },
|
||||||
}
|
}
|
||||||
</route>
|
</route>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<route lang="json5">
|
<route lang="json5">
|
||||||
{
|
{
|
||||||
|
layout: 'demo',
|
||||||
style: { navigationBarTitleText: '大转盘抽奖' },
|
style: { navigationBarTitleText: '大转盘抽奖' },
|
||||||
}
|
}
|
||||||
</route>
|
</route>
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
<route lang="json5">
|
<route lang="json5">
|
||||||
{
|
{
|
||||||
|
layout: 'demo',
|
||||||
style: { navigationBarTitleText: '微信分享' },
|
style: { navigationBarTitleText: '微信分享' },
|
||||||
}
|
}
|
||||||
</route>
|
</route>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<view class="m-10 text-center">
|
|
||||||
<view class="text-green">微信分享页</view>
|
<view class="text-green">微信分享页</view>
|
||||||
<view class="text-green-500">请在微信小程序中体验,或者开发者工具</view>
|
<view class="text-green-500">请在微信小程序中体验,或者开发者工具</view>
|
||||||
<view>1) 默认是不激活”发送给朋友“和”分享到朋友圈“的,如下图</view>
|
<view>1) 默认是不激活”发送给朋友“和”分享到朋友圈“的,如下图</view>
|
||||||
@ -18,7 +18,6 @@
|
|||||||
src="https://cip-shopping-page-0eysug01066a9e-1302818703.tcloudbaseapp.com/fly/wx-share/wx-share-after.png"
|
src="https://cip-shopping-page-0eysug01066a9e-1302818703.tcloudbaseapp.com/fly/wx-share/wx-share-after.png"
|
||||||
mode="widthFix"
|
mode="widthFix"
|
||||||
/>
|
/>
|
||||||
</view>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<route lang="json5">
|
<route lang="json5">
|
||||||
{
|
{
|
||||||
layout: 'display',
|
layout: 'demo',
|
||||||
style: { navigationBarTitleText: 'pinia+持久化' },
|
style: { navigationBarTitleText: 'pinia+持久化' },
|
||||||
}
|
}
|
||||||
</route>
|
</route>
|
||||||
|
@ -1,23 +1,26 @@
|
|||||||
<route lang="json5">
|
<route lang="json5">
|
||||||
{
|
{
|
||||||
|
layout: 'demo',
|
||||||
style: { navigationBarTitleText: 'request请求+请求拦截' },
|
style: { navigationBarTitleText: 'request请求+请求拦截' },
|
||||||
}
|
}
|
||||||
</route>
|
</route>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
<button @click="handleRequest">请求</button>
|
<button @click="handleRequest" type="primary" class="w-20">请求</button>
|
||||||
|
<view class="mt-4">{{ result }}</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { http } from '@/utils/http'
|
import { http } from '@/utils/http'
|
||||||
import { UserItem } from '@/typings'
|
|
||||||
|
|
||||||
const handleRequest = () => {
|
const result = ref()
|
||||||
const res = http<UserItem[]>({
|
const handleRequest = async () => {
|
||||||
url: '/getUserList',
|
const res = await http<string>({
|
||||||
|
url: '/foo',
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
})
|
})
|
||||||
console.log(res)
|
console.log(res)
|
||||||
|
result.value = res
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<route lang="json5">
|
<route lang="json5">
|
||||||
{
|
{
|
||||||
|
layout: 'demo',
|
||||||
style: { navigationBarTitleText: 'UniUI Icons 使用' },
|
style: { navigationBarTitleText: 'UniUI Icons 使用' },
|
||||||
}
|
}
|
||||||
</route>
|
</route>
|
||||||
@ -9,7 +10,7 @@
|
|||||||
<uni-icons type="contact" size="30"></uni-icons>
|
<uni-icons type="contact" size="30"></uni-icons>
|
||||||
<uni-icons type="contact" size="30" color="red"></uni-icons>
|
<uni-icons type="contact" size="30" color="red"></uni-icons>
|
||||||
<view class="text-blue-300"
|
<view class="text-blue-300"
|
||||||
>注意在微信小程序中,不支持改颜色,即设置了颜色也会变成默认的#333</view
|
>注意在微信小程序中,不支持改颜色,即设置了颜色也会变成默认的#333, BUG</view
|
||||||
>
|
>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<route lang="json5">
|
<route lang="json5">
|
||||||
{
|
{
|
||||||
|
layout: 'demo',
|
||||||
style: { navigationBarTitleText: 'UniUI 使用' },
|
style: { navigationBarTitleText: 'UniUI 使用' },
|
||||||
}
|
}
|
||||||
</route>
|
</route>
|
||||||
@ -8,5 +9,6 @@
|
|||||||
<uni-card>
|
<uni-card>
|
||||||
<text>这是一个基础卡片示例,内容较少,此示例展示了一个没有任何属性不带阴影的卡片。</text>
|
<text>这是一个基础卡片示例,内容较少,此示例展示了一个没有任何属性不带阴影的卡片。</text>
|
||||||
</uni-card>
|
</uni-card>
|
||||||
<uni-badge text="1"></uni-badge>
|
<view>微信里面下面的 uni-badge 显示不出来,BUG</view>
|
||||||
|
<uni-badge text="99"></uni-badge>
|
||||||
</template>
|
</template>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<route lang="json5">
|
<route lang="json5">
|
||||||
{
|
{
|
||||||
|
layout: 'demo',
|
||||||
style: { navigationBarTitleText: 'UnoCss Icons 使用' },
|
style: { navigationBarTitleText: 'UnoCss Icons 使用' },
|
||||||
}
|
}
|
||||||
</route>
|
</route>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<route lang="json5">
|
<route lang="json5">
|
||||||
{
|
{
|
||||||
|
layout: 'demo',
|
||||||
style: { navigationBarTitleText: 'UnoCss 使用' },
|
style: { navigationBarTitleText: 'UnoCss 使用' },
|
||||||
}
|
}
|
||||||
</route>
|
</route>
|
||||||
|
@ -10,7 +10,7 @@ type Data<T> = {
|
|||||||
|
|
||||||
// 请求基地址
|
// 请求基地址
|
||||||
const baseURL = import.meta.env.VITE_SERVER_BASEURL
|
const baseURL = import.meta.env.VITE_SERVER_BASEURL
|
||||||
console.log(import.meta.env)
|
// console.log(import.meta.env)
|
||||||
|
|
||||||
// 拦截器配置
|
// 拦截器配置
|
||||||
const httpInterceptor = {
|
const httpInterceptor = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user