From 621f1d2f40da0e959f1c4c0fce3cbbeb58049d4d Mon Sep 17 00:00:00 2001 From: xingyy <373639591@qq.com> Date: Fri, 15 Dec 2023 19:02:04 +0800 Subject: [PATCH] submit --- src/components/custom-title/index.vue | 19 +++ src/main.ts | 8 +- src/pages.json | 12 ++ src/pages/blind-box/index.vue | 108 ++++++++++++++++++ src/pages/home/index.vue | 74 +++++++++++- src/pages/mine/index.vue | 4 +- src/static/bg.png | Bin 2260800 -> 0 bytes src/static/logo.png | Bin 4114 -> 0 bytes src/static/tbys@3x.png | Bin 0 -> 846 bytes src/static/{zx303@3x (1).png => zx303@3x.png} | Bin src/store/index.js | 10 ++ 11 files changed, 222 insertions(+), 13 deletions(-) create mode 100644 src/pages/blind-box/index.vue delete mode 100644 src/static/bg.png delete mode 100644 src/static/logo.png create mode 100644 src/static/tbys@3x.png rename src/static/{zx303@3x (1).png => zx303@3x.png} (100%) create mode 100644 src/store/index.js diff --git a/src/components/custom-title/index.vue b/src/components/custom-title/index.vue index 94efbe79..ab0f9474 100644 --- a/src/components/custom-title/index.vue +++ b/src/components/custom-title/index.vue @@ -1,5 +1,8 @@ @@ -13,6 +16,11 @@ const rpxToPx=(rpx)=>{ } const titleTop=ref(0) const titleHeight=ref(0) +const goBack=()=>{ + uni.navigateBack({ + delta: 1 + }); +} const getMenuButtonBoundingClientRect=()=> { // #ifdef MP-WEIXIN const menuButtonInfo = uni.getMenuButtonBoundingClientRect(); @@ -49,6 +57,17 @@ const back = () => { overflow: hidden; width:100vw; background-image: url("https://cdns.fontree.cn/fonchain-main/prod/image/1833/avatar/6f9f30f6-9383-4ae6-872c-4e6795eaa25f.png"); + .wrap2{ + left: 42rpx; + bottom: 26rpx; + position: absolute; + width: 18rpx; + height: 34rpx; + image{ + width: 100%; + height: 100%; + } + } .wrap1{ font-size: 34rpx; color: #fff; diff --git a/src/main.ts b/src/main.ts index b47b9ded..09ac8164 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,18 +1,18 @@ import { createSSRApp } from "vue"; -import * as Pinia from "pinia"; import tmui from "./tmui"; import App from "./App.vue"; - +import { createPinia } from 'pinia' import customTitle from "./components/custom-title/index.vue"; import uniTransition from "@/components/uni-transition/uni-transition.vue"; export function createApp() { const app = createSSRApp(App); - + const pinia = createPinia() + app.use(pinia) app.component("customTitle", customTitle); app.component("uniTransition", uniTransition); app.use(tmui, { shareDisable: false } as Tmui.tmuiConfig); return { app, - Pinia, + pinia }; } diff --git a/src/pages.json b/src/pages.json index 1c8d3a98..b74f1910 100644 --- a/src/pages.json +++ b/src/pages.json @@ -18,6 +18,18 @@ } } }, + { + "path": "pages/blind-box/index", + "style": { + + "navigationStyle": "custom", + "navigationBarTitleText": "", + "enablePullDownRefresh": false, + "app-plus": { + "titleNView": false // 禁用原生导航 + } + } + }, { "path": "pages/home/index", "style": { diff --git a/src/pages/blind-box/index.vue b/src/pages/blind-box/index.vue new file mode 100644 index 00000000..9262dd76 --- /dev/null +++ b/src/pages/blind-box/index.vue @@ -0,0 +1,108 @@ + + + diff --git a/src/pages/home/index.vue b/src/pages/home/index.vue index 24a7e3de..b20934d6 100644 --- a/src/pages/home/index.vue +++ b/src/pages/home/index.vue @@ -1,6 +1,15 @@