Browse Source

qs init

demo-qs
kola-web 10 hours ago
parent
commit
1930338350
  1. 2
      project.config.json
  2. BIN
      src/images/qs/1.png
  3. BIN
      src/images/qs/10.png
  4. BIN
      src/images/qs/11.png
  5. BIN
      src/images/qs/12.png
  6. BIN
      src/images/qs/13.png
  7. BIN
      src/images/qs/14.png
  8. BIN
      src/images/qs/2.png
  9. BIN
      src/images/qs/3.png
  10. BIN
      src/images/qs/4.png
  11. BIN
      src/images/qs/5.png
  12. BIN
      src/images/qs/6.png
  13. BIN
      src/images/qs/7.png
  14. BIN
      src/images/qs/8.png
  15. BIN
      src/images/qs/9.png
  16. BIN
      src/images/qs/tabbar1.png
  17. BIN
      src/images/qs/tabbar2.png
  18. BIN
      src/images/qs/tabbar3.png
  19. BIN
      src/images/qs/tabbar4.png
  20. 46
      src/pages/1/index.scss
  21. 15
      src/pages/1/index.ts
  22. 16
      src/pages/1/index.wxml
  23. 35
      src/pages/2/index.scss
  24. 18
      src/pages/2/index.ts
  25. 12
      src/pages/2/index.wxml
  26. 35
      src/pages/3/index.scss
  27. 28
      src/pages/3/index.ts
  28. 12
      src/pages/3/index.wxml
  29. 19
      src/pages/4/index.ts
  30. 13
      src/pages/4/index.wxml
  31. 44
      src/pages/5/index.scss
  32. 35
      src/pages/5/index.ts
  33. 25
      src/pages/5/index.wxml
  34. 28
      src/pages/6/index.scss
  35. 16
      src/pages/6/index.ts
  36. 14
      src/pages/6/index.wxml
  37. 43
      src/pages/7/index.scss
  38. 24
      src/pages/7/index.ts
  39. 20
      src/pages/7/index.wxml
  40. 2
      src/pages/8/index.wxml

2
project.config.json

@ -73,5 +73,5 @@
], ],
"include": [] "include": []
}, },
"appid": "wx1e025040096c7e1d" "appid": "wx96104303877e3fd9"
} }

BIN
src/images/qs/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

BIN
src/images/qs/10.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 790 KiB

BIN
src/images/qs/11.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 987 KiB

BIN
src/images/qs/12.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 793 KiB

BIN
src/images/qs/13.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 286 KiB

BIN
src/images/qs/14.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 469 KiB

BIN
src/images/qs/2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 775 KiB

BIN
src/images/qs/3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 509 KiB

BIN
src/images/qs/4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 659 KiB

BIN
src/images/qs/5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 699 KiB

BIN
src/images/qs/6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 543 KiB

BIN
src/images/qs/7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 459 KiB

BIN
src/images/qs/8.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 703 KiB

BIN
src/images/qs/9.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 777 KiB

BIN
src/images/qs/tabbar1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
src/images/qs/tabbar2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
src/images/qs/tabbar3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
src/images/qs/tabbar4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

46
src/pages/1/index.scss

@ -1,32 +1,33 @@
.page { .page {
width: 100vw; width: 100vw;
margin-bottom: 80px;
} }
.page-click1 { .page-click1 {
position: absolute; position: absolute;
top: 500rpx; top: 676rpx;
left: 0; left: 0;
z-index: 1; z-index: 1;
width: 750rpx; width: 50vw;
height: 200rpx; height: 336rpx;
background-color: transparent; background-color: transparent;
} }
.page-click2 { .page-click2 {
position: absolute; position: absolute;
top: 1080rpx; top: 676rpx;
left: 0; right: 0;
z-index: 1; z-index: 1;
width: 750rpx; width: 50vw;
height: 500rpx; height: 336rpx;
background-color: transparent; background-color: transparent;
} }
.page-click3 { .page-click3 {
position: fixed; position: absolute;
top: 708rpx; top: 1270rpx;
left: 0; left: 0;
z-index: 1; z-index: 1;
width: 750rpx; width: 100vw;
height: 360rpx; height: 180rpx;
background-color: transparent; background-color: transparent;
} }
@ -57,26 +58,3 @@
} }
} }
.float1 {
position: fixed;
bottom: 0;
left: 0;
z-index: 3;
width: 100vw;
}
.float2 {
position: fixed;
bottom: 0;
left: 0;
z-index: 3;
width: 100vw;
}
.float3 {
position: fixed;
bottom: 0;
left: 0;
z-index: 3;
width: 100vw;
}

15
src/pages/1/index.ts

@ -23,7 +23,7 @@ Page({
}, },
handelTap2() { handelTap2() {
wx.navigateTo({ wx.navigateTo({
url: "/pages/8/index", url: "/pages/3/index",
}); });
}, },
handelTap3() { handelTap3() {
@ -31,18 +31,17 @@ Page({
url: "/pages/4/index", url: "/pages/4/index",
}); });
}, },
handleFloat1() { handleTabbar2() {
this.setData({ wx.reLaunch({
float1: false, url: "/pages/5/index",
}); });
wx.setStorageSync("1float1", "1");
}, },
handleTabbar2() { handleTabbar4() {
wx.reLaunch({ wx.reLaunch({
url: "/pages/4/index", url: "/pages/6/index",
}); });
}, },
handleTabbar3() { handleTabbar5() {
wx.reLaunch({ wx.reLaunch({
url: "/pages/7/index", url: "/pages/7/index",
}); });

16
src/pages/1/index.wxml

@ -1,21 +1,15 @@
<image class="page" mode="widthFix" src="{{imageUrl}}1.png?t={{Timestamp}}" bind:tap="handlePage"></image> <image class="page" mode="widthFix" src="/images/qs/1.png" bind:tap="handlePage"></image>
<view class="page-click1" catch:tap="handelTap1"></view> <view class="page-click1" catch:tap="handelTap1"></view>
<view class="page-click2" catch:tap="handelTap2"></view> <view class="page-click2" catch:tap="handelTap2"></view>
<view class="page-click3" catch:tap="handelTap3"></view> <view class="page-click3" catch:tap="handelTap3"></view>
<view class="tabbar"> <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/qs/tabbar1.png"></image>
<view class="tabbar-wrap"> <view class="tabbar-wrap">
<view class="tabbar-click"></view> <view class="tabbar-click"></view>
<view class="tabbar-click" catch:tap="handleTabbar2"></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="handleTabbar4"></view>
<view class="tabbar-click" catch:tap="handleTabbar5"></view>
</view> </view>
</view> </view>
<image
wx:if="{{float1}}"
class="float1"
mode="widthFix"
src="{{imageUrl}}9.png?t={{Timestamp}}"
catch:tap="handleFloat1"
></image>

35
src/pages/2/index.scss

@ -1,3 +1,38 @@
page {
padding-bottom: 100rpx;
}
.page { .page {
width: 100vw; width: 100vw;
min-height: 100vh;
padding-bottom: 150rpx;
.page-img {
width: 100vw;
}
}
.tabbar {
position: fixed;
bottom: 0;
left: 0;
z-index: 2;
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;
}
}
} }

18
src/pages/2/index.ts

@ -1,13 +1,23 @@
const _app = getApp<IAppOption>(); const _app = getApp<IAppOption>();
Page({ Page({
data: {}, data: {
current: 0,
},
onLoad() {}, onLoad() {},
handleTap1() { handlePage1() {
wx.navigateTo({ this.setData({
url: "/pages/3/index", current: 1,
});
},
handlePage2() {
this.setData({
current: 2,
}); });
}, },
handlePage3() {
wx.navigateBack();
},
}); });
export {}; export {};

12
src/pages/2/index.wxml

@ -1,2 +1,12 @@
<navigation-bar></navigation-bar> <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 class="swiper-item1">
<image bind:tap="handlePage1" class="page-img" mode="widthFix" src="/images/qs/2.png"></image>
</swiper-item>
<swiper-item>
<image bind:tap="handlePage2" class="page-img" mode="widthFix" src="/images/qs/3.png"></image>
</swiper-item>
<swiper-item>
<image bind:tap="handlePage3" class="page-img" mode="widthFix" src="/images/qs/4.png"></image>
</swiper-item>
</swiper>

35
src/pages/3/index.scss

@ -1,3 +1,38 @@
page {
padding-bottom: 100rpx;
}
.page { .page {
width: 100vw; width: 100vw;
min-height: 100vh;
padding-bottom: 150rpx;
.page-img {
width: 100vw;
}
}
.tabbar {
position: fixed;
bottom: 0;
left: 0;
z-index: 2;
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;
}
}
} }

28
src/pages/3/index.ts

@ -1,11 +1,31 @@
const _app = getApp<IAppOption>(); const _app = getApp<IAppOption>();
Page({ Page({
data: {}, data: {
current: 0,
},
onLoad() {}, onLoad() {},
handleTap1() { handlePage1() {
wx.navigateTo({ this.setData({
url: "/pages/1/index", current: 1,
});
},
handlePage2() {
this.setData({
current: 2,
});
},
handlePage3() {
wx.navigateBack();
},
handleTabbar1() {
wx.reLaunch({
url: "/pages/11/index",
});
},
handleTabbar3() {
wx.reLaunch({
url: "/pages/22/index",
}); });
}, },
}); });

12
src/pages/3/index.wxml

@ -1,2 +1,12 @@
<navigation-bar></navigation-bar> <navigation-bar></navigation-bar>
<image class="page" mode="widthFix" src="{{imageUrl}}13.png?t={{Timestamp}}" bind:tap="handleTap1"></image> <swiper class="page" current="{{current}}">
<swiper-item class="swiper-item1">
<image bind:tap="handlePage1" class="page-img" mode="widthFix" src="/images/qs/5.png"></image>
</swiper-item>
<swiper-item>
<image bind:tap="handlePage2" class="page-img" mode="widthFix" src="/images/qs/6.png"></image>
</swiper-item>
<swiper-item>
<image bind:tap="handlePage3" class="page-img" mode="widthFix" src="/images/qs/7.png"></image>
</swiper-item>
</swiper>

19
src/pages/4/index.ts

@ -5,24 +5,7 @@ Page({
onLoad() {}, onLoad() {},
handleTap1() { handleTap1() {
wx.navigateTo({ wx.navigateBack();
url: "/pages/5/index",
});
},
handleTap2() {
wx.navigateTo({
url: "/pages/6/index",
});
},
handleTabbar1() {
wx.reLaunch({
url: "/pages/1/index",
});
},
handleTabbar3() {
wx.reLaunch({
url: "/pages/7/index",
});
}, },
}); });

13
src/pages/4/index.wxml

@ -1,11 +1,2 @@
<image class="page" mode="widthFix" src="{{imageUrl}}2.png?t={{Timestamp}}" bind:tap="handleTap1"></image> <navigation-bar></navigation-bar>
<view class="page-click" catchtap="handleTap2"></view> <image class="page" mode="widthFix" src="/images/qs/8.png" bind:tap="handleTap1"></image>
<view class="tabbar">
<image class="tabbar-img" mode="widthFix" src="{{imageUrl}}tabbar1-2.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" bind:tap="handleTabbar3"></view>
</view>
</view>

44
src/pages/5/index.scss

@ -1,3 +1,47 @@
page {
padding-bottom: 100rpx;
}
.page { .page {
width: 100vw; width: 100vw;
min-height: 100vh;
padding-bottom: 150rpx;
.page-img {
width: 100vw;
}
}
.page-click1 {
position: absolute;
top: 176rpx;
right: 0;
z-index: 1;
width: 50vw;
height: 96rpx;
background-color: transparent;
}
.tabbar {
position: fixed;
bottom: 0;
left: 0;
z-index: 2;
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;
}
}
} }

35
src/pages/5/index.ts

@ -1,10 +1,39 @@
const _app = getApp<IAppOption>(); const _app = getApp<IAppOption>();
Page({ Page({
data: {}, data: {
current: 0,
},
onLoad() {}, onLoad() {},
handleTap1() { handlePage1() {
wx.navigateBack(); this.setData({
current: 1,
});
},
handlePage2() {
this.setData({
current: 2,
});
},
handelTap1() {
wx.navigateTo({
url: "/pages/4/index",
});
},
handleTabbar1() {
wx.reLaunch({
url: "/pages/1/index",
});
},
handleTabbar4() {
wx.reLaunch({
url: "/pages/6/index",
});
},
handleTabbar5() {
wx.reLaunch({
url: "/pages/7/index",
});
}, },
}); });

25
src/pages/5/index.wxml

@ -1,2 +1,25 @@
<navigation-bar></navigation-bar> <navigation-bar></navigation-bar>
<image class="page" mode="widthFix" src="{{imageUrl}}4.png?t={{Timestamp}}" bind:tap="handleTap1"></image> <swiper class="page" current="{{current}}">
<swiper-item class="swiper-item1">
<image bind:tap="handlePage1" class="page-img" mode="widthFix" src="/images/qs/9.png"></image>
</swiper-item>
<swiper-item>
<image bind:tap="handlePage2" class="page-img" mode="widthFix" src="/images/qs/10.png"></image>
</swiper-item>
<swiper-item>
<image class="page-img" mode="widthFix" src="/images/qs/11.png"></image>
</swiper-item>
</swiper>
<view class="page-click1" catch:tap="handelTap1"></view>
<view class="tabbar">
<image class="tabbar-img" mode="widthFix" src="/images/qs/tabbar2.png"></image>
<view class="tabbar-wrap">
<view class="tabbar-click" catch:tap="handleTabbar1"></view>
<view class="tabbar-click"></view>
<view class="tabbar-click"></view>
<view class="tabbar-click" catch:tap="handleTabbar4"></view>
<view class="tabbar-click" catch:tap="handleTabbar5"></view>
</view>
</view>

28
src/pages/6/index.scss

@ -1,3 +1,31 @@
.page { .page {
width: 100vw; width: 100vw;
margin-bottom: 80px;
}
.tabbar {
position: fixed;
bottom: 0;
left: 0;
z-index: 2;
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;
}
}
} }

16
src/pages/6/index.ts

@ -3,8 +3,20 @@ const _app = getApp<IAppOption>();
Page({ Page({
data: {}, data: {},
onLoad() {}, onLoad() {},
handleTap1() { handleTabbar1() {
wx.navigateBack(); wx.reLaunch({
url: "/pages/1/index",
});
},
handleTabbar2() {
wx.reLaunch({
url: "/pages/5/index",
});
},
handleTabbar5() {
wx.reLaunch({
url: "/pages/7/index",
});
}, },
}); });

14
src/pages/6/index.wxml

@ -1,2 +1,12 @@
<navigation-bar></navigation-bar> <image class="page" mode="widthFix" src="/images/qs/12.png"></image>
<image class="page" mode="widthFix" src="{{imageUrl}}15.png?t={{Timestamp}}" bind:tap="handleTap1"></image>
<view class="tabbar">
<image class="tabbar-img" mode="widthFix" src="/images/qs/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"></view>
<view class="tabbar-click"></view>
<view class="tabbar-click" catch:tap="handleTabbar5"></view>
</view>
</view>

43
src/pages/7/index.scss

@ -3,7 +3,7 @@
} }
.page-click1 { .page-click1 {
position: fixed; position: fixed;
top: 380rpx; top: 388rpx;
left: 0; left: 0;
z-index: 1; z-index: 1;
width: 750rpx; width: 750rpx;
@ -11,24 +11,6 @@
background-color: transparent; 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 { .tabbar {
position: fixed; position: fixed;
@ -56,26 +38,3 @@
} }
} }
.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;
}

24
src/pages/7/index.ts

@ -8,23 +8,8 @@ Page({
}, },
onLoad() {}, onLoad() {},
handelTap1() { handelTap1() {
this.setData({ wx.navigateTo({
float1: true, url: "/pages/8/index",
});
},
handelTap2() {
wx.reLaunch({
url:'/pages/9/index'
})
},
handelTap3() {
wx.reLaunch({
url:'/pages/18/index'
})
},
handleFloat1() {
this.setData({
float1: false,
}); });
}, },
handleTabbar1() { handleTabbar1() {
@ -37,6 +22,11 @@ Page({
url: "/pages/4/index", url: "/pages/4/index",
}); });
}, },
handleTabbar4() {
wx.reLaunch({
url: "/pages/6/index",
});
},
}); });
export {}; export {};

20
src/pages/7/index.wxml

@ -1,15 +1,21 @@
<image class="page" mode="widthFix" src="{{imageUrl}}3.png?t={{Timestamp}}"></image> <image class="page" mode="widthFix" src="/images/qs/13.png"></image>
<view class="page-click1" bind:tap="handelTap1"></view> <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"> <view class="tabbar">
<image class="tabbar-img" mode="widthFix" src="{{imageUrl}}tabbar1-3.png?t={{Timestamp}}"></image> <image class="tabbar-img" mode="widthFix" src="/images/qs/tabbar4.png"></image>
<view class="tabbar-wrap"> <view class="tabbar-wrap">
<view class="tabbar-click" bind:tap="handleTabbar1"></view> <view class="tabbar-click" catch:tap="handleTabbar1"></view>
<view class="tabbar-click" bind:tap="handleTabbar2"></view> <view class="tabbar-click" catch:tap="handleTabbar2"></view>
<view class="tabbar-click"></view>
<view class="tabbar-click" catch:tap="handleTabbar4"></view>
<view class="tabbar-click"></view> <view class="tabbar-click"></view>
</view> </view>
</view> </view>
<image wx:if="{{float1}}" class="float1" mode="widthFix" src="{{imageUrl}}12.png?t={{Timestamp}}" bind:tap="handleFloat1"></image> <image
wx:if="{{float1}}"
class="float1"
mode="widthFix"
src="{{imageUrl}}12.png?t={{Timestamp}}"
bind:tap="handleFloat1"
></image>

2
src/pages/8/index.wxml

@ -1,4 +1,4 @@
<navigation-bar></navigation-bar> <navigation-bar></navigation-bar>
<image class="page" mode="widthFix" src="{{imageUrl}}6.png?t={{Timestamp}}" bind:tap="handleTap1"></image> <image class="page" mode="widthFix" src="/images/qs/14.png" bind:tap="handleTap1"></image>
<image wx:if="{{float1}}" class="float1" mode="widthFix" src="{{imageUrl}}11.png?t={{Timestamp}}" bind:tap="handleFloat1"></image> <image wx:if="{{float1}}" class="float1" mode="widthFix" src="{{imageUrl}}11.png?t={{Timestamp}}" bind:tap="handleFloat1"></image>

Loading…
Cancel
Save