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 @@