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; }