fix build error
This commit is contained in:
@@ -67,15 +67,9 @@
|
|||||||
"@dcloudio/vite-plugin-uni": "3.0.0-4030620241128001",
|
"@dcloudio/vite-plugin-uni": "3.0.0-4030620241128001",
|
||||||
"@nvwa-app/vite-plugin": "^1.1.1",
|
"@nvwa-app/vite-plugin": "^1.1.1",
|
||||||
"@nvwa-app/uniapp-ci": "^0.1.2",
|
"@nvwa-app/uniapp-ci": "^0.1.2",
|
||||||
"@tailwindcss/postcss": "^4.1.14",
|
"autoprefixer": "^10.4.20",
|
||||||
"@types/whatwg-url": "^13.0.0",
|
"postcss": "^8.4.47",
|
||||||
"@vue/runtime-core": "^3.4.21",
|
"tailwindcss": "^3.4.14",
|
||||||
"@vue/tsconfig": "^0.1.3",
|
"weapp-tailwindcss": "^3.4.0"
|
||||||
"sass": "^1.83.4",
|
|
||||||
"tailwindcss": "^4.1.14",
|
|
||||||
"typescript": "^4.9.4",
|
|
||||||
"vite": "5.2.8",
|
|
||||||
"vue-tsc": "^1.0.24",
|
|
||||||
"weapp-tailwindcss": "^4.4.0"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,2 +1,3 @@
|
|||||||
@import "weapp-tailwindcss/css";
|
@tailwind base;
|
||||||
@source not "dist";
|
@tailwind components;
|
||||||
|
@tailwind utilities;
|
||||||
@@ -60,22 +60,22 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 导航卡片 -->
|
<!-- 导航卡片 -->
|
||||||
<view class="mx-4 mb-6">
|
<view class="mx-4 mb-6">
|
||||||
<view class="grid grid-cols-2 gap-4">
|
<view class="grid grid-cols-2 gap-4">
|
||||||
<view @click="navigateTo('/pages/breeders')" class="bg-white rounded-2xl shadow-lg p-6 flex flex-col items-center cursor-pointer hover:bg-orange-50 transition-colors">
|
<view @click="navigateTo('/pages/breeders')" class="bg-white rounded-2xl shadow-lg p-6 flex flex-col items-center cursor-pointer hover:bg-orange-50 transition-colors">
|
||||||
<text class="text-3xl mb-2">🐈</text>
|
<text class="text-3xl mb-2">🐈</text>
|
||||||
<text class="text-gray-800 font-medium">种公种母介绍</text>
|
<text class="text-gray-800 font-medium">种公种母介绍</text>
|
||||||
</view>
|
</view>
|
||||||
<view @click="navigateTo('/pages/reservation')" class="bg-white rounded-2xl shadow-lg p-6 flex flex-col items-center cursor-pointer hover:bg-orange-50 transition-colors">
|
<view @click="navigateTo('/pages/reservation')" class="bg-white rounded-2xl shadow-lg p-6 flex flex-col items-center cursor-pointer hover:bg-orange-50 transition-colors">
|
||||||
<text class="text-3xl mb-2">📅</text>
|
<text class="text-3xl mb-2">📅</text>
|
||||||
<text class="text-gray-800 font-medium">预约排队</text>
|
<text class="text-gray-800 font-medium">预约排队</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 加载中 -->
|
<!-- 加载中 -->
|
||||||
<view v-else class="flex-1 flex items-center justify-center">
|
<view v-if="!shelter" class="flex-1 flex items-center justify-center">
|
||||||
<view class="flex flex-col items-center">
|
<view class="flex flex-col items-center">
|
||||||
<view class="w-8 h-8 border-4 border-orange-200 border-t-orange-500 rounded-full animate-spin mb-3"></view>
|
<view class="w-8 h-8 border-4 border-orange-200 border-t-orange-500 rounded-full animate-spin mb-3"></view>
|
||||||
<text class="text-gray-600">正在加载猫舍信息...</text>
|
<text class="text-gray-600">正在加载猫舍信息...</text>
|
||||||
|
|||||||
15
apps/cat-mini-app/tailwind.config.js
Normal file
15
apps/cat-mini-app/tailwind.config.js
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
/** @type {import('tailwindcss').Config} */
|
||||||
|
module.exports = {
|
||||||
|
content: [
|
||||||
|
"./src/**/*.{vue,js,ts,jsx,tsx}",
|
||||||
|
"./src/pages/**/*.{vue,js,ts,jsx,tsx}",
|
||||||
|
"./src/components/**/*.{vue,js,ts,jsx,tsx}",
|
||||||
|
],
|
||||||
|
theme: {
|
||||||
|
extend: {},
|
||||||
|
},
|
||||||
|
plugins: [],
|
||||||
|
corePlugins: {
|
||||||
|
preflight: false,
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -1,12 +1,21 @@
|
|||||||
{
|
{
|
||||||
"extends": "@vue/tsconfig/tsconfig.json",
|
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
"target": "esnext",
|
||||||
|
"useDefineForClassFields": true,
|
||||||
|
"module": "esnext",
|
||||||
|
"moduleResolution": "node",
|
||||||
|
"strict": true,
|
||||||
|
"jsx": "preserve",
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
"isolatedModules": true,
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"lib": ["esnext", "dom"],
|
||||||
|
"skipLibCheck": true,
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": ["./src/*"]
|
"@/*": ["./src/*"]
|
||||||
},
|
},
|
||||||
"lib": ["esnext", "dom"],
|
|
||||||
"types": ["@dcloudio/types"],
|
"types": ["@dcloudio/types"],
|
||||||
"noUnusedLocals": false,
|
"noUnusedLocals": false,
|
||||||
"noUnusedParameters": false
|
"noUnusedParameters": false
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { defineConfig, loadEnv } from "vite";
|
import { defineConfig, loadEnv } from "vite";
|
||||||
import uni from "@dcloudio/vite-plugin-uni";
|
import uni from "@dcloudio/vite-plugin-uni";
|
||||||
import { UnifiedViteWeappTailwindcssPlugin } from "weapp-tailwindcss/vite";
|
import { UnifiedViteWeappTailwindcssPlugin } from "weapp-tailwindcss/vite";
|
||||||
import tailwindcss from "@tailwindcss/postcss";
|
import tailwindcss from "tailwindcss";
|
||||||
import nvwaVitePlugin from "@nvwa-app/vite-plugin";
|
import nvwaVitePlugin from "@nvwa-app/vite-plugin";
|
||||||
|
|
||||||
const isH5 = process.env.UNI_PLATFORM === "h5";
|
const isH5 = process.env.UNI_PLATFORM === "h5";
|
||||||
@@ -32,7 +32,8 @@ export default defineConfig(({ mode }) => {
|
|||||||
css: {
|
css: {
|
||||||
postcss: {
|
postcss: {
|
||||||
plugins: [
|
plugins: [
|
||||||
tailwindcss(),
|
require('tailwindcss'),
|
||||||
|
require('autoprefixer'),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
2524
pnpm-lock.yaml
generated
2524
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user