Browse Source

stash

NMOSD
kola-web 3 weeks ago
parent
commit
edd8d1ac08
  1. BIN
      .DS_Store
  2. 13
      dist.ps1
  3. BIN
      src/.DS_Store
  4. 1
      src/app.ts
  5. 19
      src/pages/1/index.scss
  6. 40
      src/pages/1/index.ts
  7. 19
      src/pages/1/index.wxml
  8. 5
      src/pages/2/index.scss
  9. 20
      src/pages/2/index.ts
  10. 6
      src/pages/2/index.wxml
  11. 2
      src/pages/3/index.wxml
  12. 17
      src/pages/4/index.ts
  13. 13
      src/pages/4/index.wxml
  14. 26
      src/pages/5/index.scss
  15. 25
      src/pages/5/index.ts
  16. 13
      src/pages/5/index.wxml
  17. 26
      src/pages/6/index.scss
  18. 26
      src/pages/6/index.ts
  19. 13
      src/pages/6/index.wxml
  20. 77
      src/pages/7/index.scss
  21. 38
      src/pages/7/index.ts
  22. 30
      src/pages/7/index.wxml
  23. 8
      typings/index.d.ts

BIN
.DS_Store vendored

Binary file not shown.

13
dist.ps1

@ -1,10 +1,7 @@ @@ -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"

BIN
src/.DS_Store vendored

Binary file not shown.

1
src/app.ts

@ -4,6 +4,7 @@ import page from "@/utils/page"; @@ -4,6 +4,7 @@ import page from "@/utils/page";
App<IAppOption>({
globalData: {
imageUrl: "https://m.wtx.hbraas.com/demo/web/images/",
start: 0,
},
onLaunch() {
Page = page as WechatMiniprogram.Page.Constructor;

19
src/pages/1/index.scss

@ -3,33 +3,24 @@ @@ -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;

40
src/pages/1/index.ts

@ -1,19 +1,15 @@ @@ -1,19 +1,15 @@
const _app = getApp<IAppOption>();
const app = getApp<IAppOption>();
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({ @@ -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({ @@ -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 {};

19
src/pages/1/index.wxml

@ -1,21 +1,16 @@ @@ -1,21 +1,16 @@
<image class="page" mode="widthFix" src="{{imageUrl}}1.png?t={{Timestamp}}" bind:tap="handlePage"></image>
<view class="page-click1" catch:tap="handelTap1"></view>
<view class="page-click2" catch:tap="handelTap2"></view>
<view class="page-click3" catch:tap="handelTap3"></view>
<image wx:if="{{start}}" class="page" mode="widthFix" src="/images/nmosd/09.png"></image>
<image wx:else class="page" mode="widthFix" src="/images/nmosd/010.png"></image>
<view class="{{start ? 'page-click2' : 'page-click1'}}" catch:tap="handelTap1"></view>
<view class="{{start ? 'page-click1' : 'page-click2'}}" catch:tap="handelTap2"></view>
<view class="tabbar">
<image class="tabbar-img" mode="widthFix" src="{{imageUrl}}tabbar1-1.png?t={{Timestamp}}"></image>
<image class="tabbar-img" mode="widthFix" src="/images/nmosd/tabbar1.png"></image>
<view class="tabbar-wrap">
<view class="tabbar-click"></view>
<view class="tabbar-click" catch:tap="handleTabbar2"></view>
<view class="tabbar-click" catch:tap="handleTabbar3"></view>
<view class="tabbar-click" catch:tap="handleTabbar4"></view>
<view class="tabbar-click" catch:tap="handleTabbar5"></view>
</view>
</view>
<image
wx:if="{{float1}}"
class="float1"
mode="widthFix"
src="{{imageUrl}}9.png?t={{Timestamp}}"
catch:tap="handleFloat1"
></image>

5
src/pages/2/index.scss

@ -1,3 +1,8 @@ @@ -1,3 +1,8 @@
.page {
width: 100vw;
min-height: 200vh;
.page-img{
width: 100%;
height: 100%;
}
}

20
src/pages/2/index.ts

@ -1,12 +1,18 @@ @@ -1,12 +1,18 @@
const _app = getApp<IAppOption>();
const app = getApp<IAppOption>();
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();
},
});

6
src/pages/2/index.wxml

@ -1,2 +1,6 @@ @@ -1,2 +1,6 @@
<navigation-bar></navigation-bar>
<image class="page" mode="widthFix" src="{{imageUrl}}8.png?t={{Timestamp}}" bind:tap="handleTap1"></image>
<swiper class="page" current="{{current}}">
<swiper-item>
<image bind:tap="handlePage1" class="page-img" mode="widthFix" src="/images/nmosd/011.png"></image>
</swiper-item>
</swiper>

2
src/pages/3/index.wxml

@ -1,2 +1,2 @@ @@ -1,2 +1,2 @@
<navigation-bar></navigation-bar>
<image class="page" mode="widthFix" src="{{imageUrl}}13.png?t={{Timestamp}}" bind:tap="handleTap1"></image>
<image class="page" mode="widthFix" src="/images/nmosd/013.png" bind:tap="handleTap1"></image>

17
src/pages/4/index.ts

@ -19,11 +19,26 @@ Page({ @@ -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 {};

13
src/pages/4/index.wxml

@ -1,11 +1,12 @@ @@ -1,11 +1,12 @@
<image class="page" mode="widthFix" src="{{imageUrl}}2.png?t={{Timestamp}}" bind:tap="handleTap1"></image>
<view class="page-click" catchtap="handleTap2"></view>
<image class="page" mode="widthFix" src="/images/nmosd/012.png"></image>
<view class="tabbar">
<image class="tabbar-img" mode="widthFix" src="{{imageUrl}}tabbar1-2.png?t={{Timestamp}}"></image>
<image class="tabbar-img" mode="widthFix" src="/images/nmosd/tabbar2.png"></image>
<view class="tabbar-wrap">
<view class="tabbar-click" bind:tap="handleTabbar1"></view>
<view class="tabbar-click" bind:tap="handleTabbar2"></view>
<view class="tabbar-click" bind:tap="handleTabbar3"></view>
<view class="tabbar-click" catch:tap="handleTabbar1"></view>
<view class="tabbar-click"></view>
<view class="tabbar-click" catch:tap="handleTabbar3"></view>
<view class="tabbar-click" catch:tap="handleTabbar4"></view>
<view class="tabbar-click" catch:tap="handleTabbar5"></view>
</view>
</view>

26
src/pages/5/index.scss

@ -1,3 +1,29 @@ @@ -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;
}
}
}

25
src/pages/5/index.ts

@ -6,6 +6,31 @@ Page({ @@ -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 {};

13
src/pages/5/index.wxml

@ -1,2 +1,13 @@ @@ -1,2 +1,13 @@
<navigation-bar></navigation-bar>
<image class="page" mode="widthFix" src="{{imageUrl}}4.png?t={{Timestamp}}" bind:tap="handleTap1"></image>
<image class="page" mode="widthFix" src="/images/nmosd/05.png" bind:tap="handleTap1"></image>
<view class="tabbar">
<image class="tabbar-img" mode="widthFix" src="/images/nmosd/tabbar3.png"></image>
<view class="tabbar-wrap">
<view class="tabbar-click" catch:tap="handleTabbar1"></view>
<view class="tabbar-click" catch:tap="handleTabbar2"></view>
<view class="tabbar-click" catch:tap="handleTabbar3"></view>
<view class="tabbar-click"></view>
<view class="tabbar-click" catch:tap="handleTabbar5"></view>
</view>
</view>

26
src/pages/6/index.scss

@ -1,3 +1,29 @@ @@ -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;
}
}
}

26
src/pages/6/index.ts

@ -6,6 +6,32 @@ Page({ @@ -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 {};

13
src/pages/6/index.wxml

@ -1,2 +1,13 @@ @@ -1,2 +1,13 @@
<navigation-bar></navigation-bar>
<image class="page" mode="widthFix" src="{{imageUrl}}15.png?t={{Timestamp}}" bind:tap="handleTap1"></image>
<image class="page" mode="widthFix" src="/images/nmosd/014.png" bind:tap="handleTap1"></image>
<view class="tabbar">
<image class="tabbar-img" mode="widthFix" src="/images/nmosd/tabbar4.png"></image>
<view class="tabbar-wrap">
<view class="tabbar-click" catch:tap="handleTabbar1"></view>
<view class="tabbar-click" catch:tap="handleTabbar2"></view>
<view class="tabbar-click" catch:tap="handleTabbar3"></view>
<view class="tabbar-click" catch:tap="handleTabbar4"></view>
<view class="tabbar-click"></view>
</view>
</view>

77
src/pages/7/index.scss

@ -1,81 +1,8 @@ @@ -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;
}

38
src/pages/7/index.ts

@ -2,40 +2,30 @@ const _app = getApp<IAppOption>(); @@ -2,40 +2,30 @@ const _app = getApp<IAppOption>();
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();
},
});

30
src/pages/7/index.wxml

@ -1,15 +1,15 @@ @@ -1,15 +1,15 @@
<image class="page" mode="widthFix" src="{{imageUrl}}3.png?t={{Timestamp}}"></image>
<view class="page-click1" bind:tap="handelTap1"></view>
<view class="page-click2" bind:tap="handelTap2"></view>
<view class="page-click3" bind:tap="handelTap3"></view>
<view class="tabbar">
<image class="tabbar-img" mode="widthFix" src="{{imageUrl}}tabbar1-3.png?t={{Timestamp}}"></image>
<view class="tabbar-wrap">
<view class="tabbar-click" bind:tap="handleTabbar1"></view>
<view class="tabbar-click" bind:tap="handleTabbar2"></view>
<view class="tabbar-click"></view>
</view>
</view>
<image wx:if="{{float1}}" class="float1" mode="widthFix" src="{{imageUrl}}12.png?t={{Timestamp}}" bind:tap="handleFloat1"></image>
<navigation-bar></navigation-bar>
<swiper class="page" current="{{current}}">
<swiper-item>
<image bind:tap="handlePage1" class="page-img" mode="widthFix" src="/images/nmosd/02.png"></image>
</swiper-item>
<swiper-item>
<image bind:tap="handlePage2" class="page-img" mode="widthFix" src="/images/nmosd/07.png"></image>
</swiper-item>
<swiper-item>
<image bind:tap="handlePage3" class="page-img" mode="widthFix" src="/images/nmosd/08.png"></image>
</swiper-item>
<swiper-item>
<image bind:tap="handlePage4" class="page-img" mode="widthFix" src="/images/nmosd/03.png"></image>
</swiper-item>
</swiper>

8
typings/index.d.ts vendored

@ -2,7 +2,9 @@ @@ -2,7 +2,9 @@
interface IAppOption {
globalData: {
userInfo?: WechatMiniprogram.UserInfo,
}
userInfoReadyCallback?: WechatMiniprogram.GetUserInfoSuccessCallback,
userInfo?: WechatMiniprogram.UserInfo;
imageUrl: string;
start: 0 | 1;
};
userInfoReadyCallback?: WechatMiniprogram.GetUserInfoSuccessCallback;
}
Loading…
Cancel
Save