diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..8a61989 Binary files /dev/null and b/.DS_Store differ diff --git a/dist.ps1 b/dist.ps1 index dc79b8f..1cff97d 100644 --- a/dist.ps1 +++ b/dist.ps1 @@ -1,10 +1,7 @@ -# Change to the src/images directory, or exit if the directory doesn't exist -Set-Location -Path ./src/images/ -ErrorAction Stop - -# Add all files to svn, including ignored files and forced additions +#!/bin/bash +cd ./src/images/ || exit svn add . --no-ignore --force +svn ci -m "版本更新" +ssh 39.106.86.127 "cd /data/wwwroot/default/wutian_xueyoubing_b/demo && svn up && exit" +exit -# Commit the changes with a message -svn ci -m "update" - -ssh hb127 "cd /data/wwwroot/default/wutian_xueyoubing_b/demo && svn up && exit" diff --git a/src/.DS_Store b/src/.DS_Store new file mode 100644 index 0000000..98b24a3 Binary files /dev/null and b/src/.DS_Store differ 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; +}