From 4a044552ed07e1ca8b66dc69110aa1991a9d345f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E4=BD=B3=E5=AE=87?= <17601616548@163.com> Date: Wed, 28 Aug 2024 18:23:25 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AEunocss?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- h5/main.js | 1 + h5/package.json | 4 ++++ h5/pages/main/index/index.vue | 4 ++-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/h5/main.js b/h5/main.js index 04ab6c3..01d79d4 100644 --- a/h5/main.js +++ b/h5/main.js @@ -4,6 +4,7 @@ import { import * as Pinia from 'pinia'; import App from './App.vue' import $lu from './lu' +import 'uno.css' uni.$lu = $lu export function createApp() { diff --git a/h5/package.json b/h5/package.json index 1b818fb..6cd68c6 100644 --- a/h5/package.json +++ b/h5/package.json @@ -1,5 +1,9 @@ { "dependencies": { "weixin-js-sdk": "^1.6.5" + }, + "devDependencies": { + "unocss": "^0.58.9", + "unocss-preset-weapp": "^0.62.0" } } diff --git a/h5/pages/main/index/index.vue b/h5/pages/main/index/index.vue index bd75e0f..109fda7 100644 --- a/h5/pages/main/index/index.vue +++ b/h5/pages/main/index/index.vue @@ -175,7 +175,7 @@ onShow(() => { if (!!user_box_ref.value) { getLong() - } + } getUserInfo() }) @@ -521,7 +521,7 @@ width: 750rpx; height: 456rpx; position: relative; - z-index: 1; + z-index: 1; margin: 0 auto; }