From edd8d1ac081339d78dbbef3b1180aedbeb587c31 Mon Sep 17 00:00:00 2001 From: kola-web Date: Wed, 20 May 2026 22:00:10 +0800 Subject: [PATCH] stash --- .DS_Store | Bin 0 -> 10244 bytes dist.ps1 | 13 ++++----- src/.DS_Store | Bin 0 -> 10244 bytes src/app.ts | 1 + src/pages/1/index.scss | 19 ++++-------- src/pages/1/index.ts | 40 ++++++++++++++----------- src/pages/1/index.wxml | 19 +++++------- src/pages/2/index.scss | 7 ++++- src/pages/2/index.ts | 20 ++++++++----- src/pages/2/index.wxml | 6 +++- src/pages/3/index.wxml | 2 +- src/pages/4/index.ts | 17 ++++++++++- src/pages/4/index.wxml | 13 +++++---- src/pages/5/index.scss | 26 +++++++++++++++++ src/pages/5/index.ts | 25 ++++++++++++++++ src/pages/5/index.wxml | 13 ++++++++- src/pages/6/index.scss | 26 +++++++++++++++++ src/pages/6/index.ts | 26 +++++++++++++++++ src/pages/6/index.wxml | 13 ++++++++- src/pages/7/index.scss | 77 ++----------------------------------------------- src/pages/7/index.ts | 38 +++++++++--------------- src/pages/7/index.wxml | 30 +++++++++---------- typings/index.d.ts | 10 ++++--- 23 files changed, 253 insertions(+), 188 deletions(-) create mode 100644 .DS_Store create mode 100644 src/.DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..8a619894b7f744a96c13c3e24ef2923a88780412 GIT binary patch literal 10244 zcmeHMU2GIp6uxI#=nNg~w6ul7K!+|WKdrPykb=r~w+Q{SrQ6c&?=rhPEn}xMWoEXe z)@q}X7*Jo-h??kw#vd@gAnJn}#6Mn46e|hgfkdMw1`JOoB*u7V?rd8Y(D-6Botw-( z_ndproju?E&fU2)gb)a&l2wFAgb)@lM+!VvHz-cOb6r;$&$0j|pg*xj;+hdh?SuHp zb)$WQkARPWkARPWkARQBe*ppf&vpu%OQm1?2>1y22+Sbh><C!8>9Abw|78jSG5mic0EEz&m_^cW3ZUDB#{5 z=a<~!1cFrhwU2<0!1V|?X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FL zUNhP=cnEk1cnEk1cnEk1{2LI!?`)^A1yp*qhk%EGhrlcX&i)|b<4Av6PE+Y_9ayIXAUj0 z7opEGOdA&;=beN5b=HsL-Y#4s-LmHP4V&+7xVQPf&KZ}Xr99tu_Duz?ZOH^Hk^v8`%73_gGl;UoA0zJjme8<>Ib;R0NQU*Iys zFgZ*vQ^r&<60?$7$K1i}V49d_riE!`x|ty+!Dvj1#xR?1LsZYy%s95P(=ENPGDmKZ zZqm-Coy{$+oBj*wc9wnxl;ZBc^44`V8|&{0%+ipuHbd083E*=6s!VY?@A4v>ub7JB z@)f+)jY*;G&rZZlf(rRg;<64^#Y!J93G*;*sCwIKRP!)ps9IGmNdkkJO4Zsri5GG( z58b2}H&vqwX=Te+o)>a4Be@w7+0L)v8#qoN?n{D=IE|BEe}n0N!SgfZJo$lKB$tur z1t35vtU_*YfO_P03$!7(cR?p|dk`Y92e4*?GW4*?GW4}qHrfgBo)iqu)QjbO4 literal 0 HcmV?d00001 diff --git a/src/app.ts b/src/app.ts index d5566f9..922c714 100644 --- a/src/app.ts +++ b/src/app.ts @@ -4,6 +4,7 @@ import page from "@/utils/page"; App({ globalData: { imageUrl: "https://m.wtx.hbraas.com/demo/web/images/", + start: 0, }, onLaunch() { Page = page as WechatMiniprogram.Page.Constructor; diff --git a/src/pages/1/index.scss b/src/pages/1/index.scss index 75b44bd..7f81ee7 100644 --- a/src/pages/1/index.scss +++ b/src/pages/1/index.scss @@ -3,33 +3,24 @@ } .page-click1 { position: absolute; - top: 500rpx; + top: 163rpx; left: 0; z-index: 1; width: 750rpx; - height: 200rpx; + height: 430rpx; background-color: transparent; } - .page-click2 { position: absolute; - top: 1080rpx; - left: 0; - z-index: 1; - width: 750rpx; - height: 500rpx; - background-color: transparent; -} -.page-click3 { - position: fixed; - top: 708rpx; + top: 600rpx; left: 0; z-index: 1; width: 750rpx; - height: 360rpx; + height: 430rpx; background-color: transparent; } + .tabbar { position: fixed; bottom: 0; diff --git a/src/pages/1/index.ts b/src/pages/1/index.ts index ab8971a..7a36e70 100644 --- a/src/pages/1/index.ts +++ b/src/pages/1/index.ts @@ -1,19 +1,15 @@ -const _app = getApp(); +const app = getApp(); Page({ - data: { - float1: true, - float2: false, - float3: false, - }, + data: {}, onLoad() { this.setData({ - float1: wx.getStorageSync("1float1") !== "1", + start: app.globalData.start, }); }, - handlePage() { - wx.navigateTo({ - url: "/pages/5/index", + onShow() { + this.setData({ + start: app.globalData.start, }); }, handelTap1() { @@ -23,12 +19,7 @@ Page({ }, handelTap2() { wx.navigateTo({ - url: "/pages/8/index", - }); - }, - handelTap3() { - wx.navigateTo({ - url: "/pages/4/index", + url: "/pages/3/index", }); }, handleFloat1() { @@ -37,16 +28,31 @@ Page({ }); wx.setStorageSync("1float1", "1"); }, + handleTabbar1() { + wx.reLaunch({ + url: "/pages/1/index", + }); + }, handleTabbar2() { wx.reLaunch({ url: "/pages/4/index", }); }, handleTabbar3() { - wx.reLaunch({ + wx.navigateTo({ url: "/pages/7/index", }); }, + handleTabbar4() { + wx.reLaunch({ + url: "/pages/5/index", + }); + }, + handleTabbar5() { + wx.reLaunch({ + url: "/pages/6/index", + }); + }, }); export {}; diff --git a/src/pages/1/index.wxml b/src/pages/1/index.wxml index afbf1c4..512647c 100644 --- a/src/pages/1/index.wxml +++ b/src/pages/1/index.wxml @@ -1,21 +1,16 @@ - - - - + + + + - + + + - diff --git a/src/pages/2/index.scss b/src/pages/2/index.scss index afaaaa9..6bf1742 100644 --- a/src/pages/2/index.scss +++ b/src/pages/2/index.scss @@ -1,3 +1,8 @@ -.page{ +.page { width: 100vw; + min-height: 200vh; + .page-img{ + width: 100%; + height: 100%; + } } diff --git a/src/pages/2/index.ts b/src/pages/2/index.ts index 5d926b7..361b6f3 100644 --- a/src/pages/2/index.ts +++ b/src/pages/2/index.ts @@ -1,12 +1,18 @@ -const _app = getApp(); +const app = getApp(); Page({ - data: {}, - onLoad() {}, - handleTap1() { - wx.navigateTo({ - url: "/pages/3/index", - }); + data: { + current: 0, + page1: true, + page2: false, + page3: false, + page4: false, + }, + onLoad() { + app.globalData.start = 1; + }, + handlePage1() { + wx.navigateBack(); }, }); diff --git a/src/pages/2/index.wxml b/src/pages/2/index.wxml index 9cddfbb..4344c5e 100644 --- a/src/pages/2/index.wxml +++ b/src/pages/2/index.wxml @@ -1,2 +1,6 @@ - + + + + + diff --git a/src/pages/3/index.wxml b/src/pages/3/index.wxml index 97f0ac7..404c277 100644 --- a/src/pages/3/index.wxml +++ b/src/pages/3/index.wxml @@ -1,2 +1,2 @@ - + diff --git a/src/pages/4/index.ts b/src/pages/4/index.ts index cf8c286..3932821 100644 --- a/src/pages/4/index.ts +++ b/src/pages/4/index.ts @@ -19,11 +19,26 @@ Page({ url: "/pages/1/index", }); }, - handleTabbar3() { + handleTabbar2() { wx.reLaunch({ + url: "/pages/4/index", + }); + }, + handleTabbar3() { + wx.navigateTo({ url: "/pages/7/index", }); }, + handleTabbar4() { + wx.reLaunch({ + url: "/pages/5/index", + }); + }, + handleTabbar5() { + wx.reLaunch({ + url: "/pages/6/index", + }); + }, }); export {}; diff --git a/src/pages/4/index.wxml b/src/pages/4/index.wxml index b83dfb7..ee74918 100644 --- a/src/pages/4/index.wxml +++ b/src/pages/4/index.wxml @@ -1,11 +1,12 @@ - - + - + - - - + + + + + diff --git a/src/pages/5/index.scss b/src/pages/5/index.scss index afaaaa9..61eadab 100644 --- a/src/pages/5/index.scss +++ b/src/pages/5/index.scss @@ -1,3 +1,29 @@ .page{ width: 100vw; } + +.tabbar { + position: fixed; + bottom: 0; + left: 0; + width: 100vw; + padding-bottom: 20rpx; + background-color: #fff; + .tabbar-img { + width: 100%; + } + .tabbar-wrap { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + display: flex; + justify-content: space-between; + align-items: center; + .tabbar-click { + flex: 1; + height: 160rpx; + } + } +} diff --git a/src/pages/5/index.ts b/src/pages/5/index.ts index 7cf179c..38291e4 100644 --- a/src/pages/5/index.ts +++ b/src/pages/5/index.ts @@ -6,6 +6,31 @@ Page({ handleTap1() { wx.navigateBack(); }, + handleTabbar1() { + wx.reLaunch({ + url: "/pages/1/index", + }); + }, + handleTabbar2() { + wx.reLaunch({ + url: "/pages/4/index", + }); + }, + handleTabbar3() { + wx.navigateTo({ + url: "/pages/7/index", + }); + }, + handleTabbar4() { + wx.reLaunch({ + url: "/pages/5/index", + }); + }, + handleTabbar5() { + wx.reLaunch({ + url: "/pages/6/index", + }); + }, }); export {}; diff --git a/src/pages/5/index.wxml b/src/pages/5/index.wxml index ada852d..d6588c2 100644 --- a/src/pages/5/index.wxml +++ b/src/pages/5/index.wxml @@ -1,2 +1,13 @@ - + + + + + + + + + + + + diff --git a/src/pages/6/index.scss b/src/pages/6/index.scss index afaaaa9..61eadab 100644 --- a/src/pages/6/index.scss +++ b/src/pages/6/index.scss @@ -1,3 +1,29 @@ .page{ width: 100vw; } + +.tabbar { + position: fixed; + bottom: 0; + left: 0; + width: 100vw; + padding-bottom: 20rpx; + background-color: #fff; + .tabbar-img { + width: 100%; + } + .tabbar-wrap { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + display: flex; + justify-content: space-between; + align-items: center; + .tabbar-click { + flex: 1; + height: 160rpx; + } + } +} diff --git a/src/pages/6/index.ts b/src/pages/6/index.ts index 7cf179c..1f48398 100644 --- a/src/pages/6/index.ts +++ b/src/pages/6/index.ts @@ -6,6 +6,32 @@ Page({ handleTap1() { wx.navigateBack(); }, + + handleTabbar1() { + wx.reLaunch({ + url: "/pages/1/index", + }); + }, + handleTabbar2() { + wx.reLaunch({ + url: "/pages/4/index", + }); + }, + handleTabbar3() { + wx.navigateTo({ + url: "/pages/7/index", + }); + }, + handleTabbar4() { + wx.reLaunch({ + url: "/pages/5/index", + }); + }, + handleTabbar5() { + wx.reLaunch({ + url: "/pages/6/index", + }); + }, }); export {}; diff --git a/src/pages/6/index.wxml b/src/pages/6/index.wxml index db9da65..f783705 100644 --- a/src/pages/6/index.wxml +++ b/src/pages/6/index.wxml @@ -1,2 +1,13 @@ - + + + + + + + + + + + + diff --git a/src/pages/7/index.scss b/src/pages/7/index.scss index 97be24b..6bf1742 100644 --- a/src/pages/7/index.scss +++ b/src/pages/7/index.scss @@ -1,81 +1,8 @@ .page { width: 100vw; -} -.page-click1 { - position: fixed; - top: 380rpx; - left: 0; - z-index: 1; - width: 750rpx; - height: 200rpx; - background-color: transparent; -} - -.page-click2 { - position: fixed; - top: 640rpx; - left: 0; - z-index: 1; - width: 750rpx; - height: 170rpx; - background-color: transparent; -} -.page-click3 { - position: fixed; - top: 830rpx; - left: 0; - z-index: 1; - width: 750rpx; - height: 170rpx; - background-color: transparent; -} - -.tabbar { - position: fixed; - bottom: 0; - left: 0; - width: 100vw; - padding-bottom: 20rpx; - background-color: #fff; - .tabbar-img { - width: 100%; - } - .tabbar-wrap { - position: absolute; - top: 0; - left: 0; + min-height: 200vh; + .page-img{ width: 100%; height: 100%; - display: flex; - justify-content: space-between; - align-items: center; - .tabbar-click { - flex: 1; - height: 160rpx; - } } } - -.float1 { - position: fixed; - bottom: 0; - left: 0; - z-index: 2; - width: 100vw; -} - -.float2 { - position: fixed; - bottom: 0; - left: 0; - z-index: 2; - width: 100vw; -} - -.float3 { - position: fixed; - bottom: 0; - left: 0; - z-index: 2; - width: 100vw; -} diff --git a/src/pages/7/index.ts b/src/pages/7/index.ts index befbf58..7cb73c1 100644 --- a/src/pages/7/index.ts +++ b/src/pages/7/index.ts @@ -2,40 +2,30 @@ const _app = getApp(); Page({ data: { - float1: false, - float2: false, - float3: false, + current: 0, + page1: true, + page2: false, + page3: false, + page4: false, }, onLoad() {}, - handelTap1() { + handlePage1() { this.setData({ - float1: true, + current: 1, }); }, - handelTap2() { - wx.reLaunch({ - url:'/pages/9/index' - }) - }, - handelTap3() { - wx.reLaunch({ - url:'/pages/18/index' - }) - }, - handleFloat1() { + handlePage2() { this.setData({ - float1: false, + current: 2, }); }, - handleTabbar1() { - wx.reLaunch({ - url: "/pages/1/index", + handlePage3() { + this.setData({ + current: 3, }); }, - handleTabbar2() { - wx.reLaunch({ - url: "/pages/4/index", - }); + handlePage4() { + wx.navigateBack(); }, }); diff --git a/src/pages/7/index.wxml b/src/pages/7/index.wxml index eadd2ec..366c112 100644 --- a/src/pages/7/index.wxml +++ b/src/pages/7/index.wxml @@ -1,15 +1,15 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + diff --git a/typings/index.d.ts b/typings/index.d.ts index 3ee60c8..4683528 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -2,7 +2,9 @@ interface IAppOption { globalData: { - userInfo?: WechatMiniprogram.UserInfo, - } - userInfoReadyCallback?: WechatMiniprogram.GetUserInfoSuccessCallback, -} \ No newline at end of file + userInfo?: WechatMiniprogram.UserInfo; + imageUrl: string; + start: 0 | 1; + }; + userInfoReadyCallback?: WechatMiniprogram.GetUserInfoSuccessCallback; +}