-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ba331e4
commit e6cf87b
Showing
6 changed files
with
136 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,20 @@ | ||
<!--index.wxml--> | ||
<view class="carte"> | ||
carte | ||
<scroll-view class="carteWrap"> | ||
<view class="carteBtns"></view> | ||
<view class="carteList"></view> | ||
<view class="copyRight">金风凝香 提供技术支持</view> | ||
</scroll-view> | ||
<view class="carteMenusMask {{showMenu ? 'showMenuMask' : ''}}" data-close="{{true}}" bindtap='openMenus'></view> | ||
<view class="carteMenus {{showMenu ? 'showMenu' : ''}}"> | ||
<view class="menuList"></view> | ||
<view class="openMenus" bindtap='openMenus'> | ||
<image src="../../assets/openMenusIcon.svg"></image> | ||
<text>菜单</text> | ||
</view> | ||
</view> | ||
<view class="basket"> | ||
<image src="../../assets/cart.svg"></image> | ||
<text>购物车</text> | ||
</view> | ||
</view> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,101 @@ | ||
/**index.wxss**/ | ||
page{ | ||
height:100%; | ||
|
||
page { | ||
height: 100%; | ||
} | ||
|
||
.carte { | ||
background: #dbd1de; | ||
position: relative; | ||
height: 100%; | ||
} | ||
|
||
.carteWrap { | ||
} | ||
|
||
.carteMenusMask { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
z-index: 9; | ||
background: rgba(0, 0, 0, 0.65); | ||
transition: all 0.3s; | ||
opacity: 0; | ||
} | ||
|
||
.showMenuMask { | ||
opacity: 1; | ||
} | ||
|
||
.carteMenus { | ||
position: absolute; | ||
left: 0; | ||
top: 0; | ||
bottom: 0; | ||
z-index: 10; | ||
} | ||
|
||
.carteMenus .menuList { | ||
background: #e3e2e2; | ||
width: 0; | ||
height: 100%; | ||
transition: all 0.3s; | ||
} | ||
|
||
.showMenu .menuList { | ||
width: 290rpx; | ||
} | ||
|
||
.carteMenus .openMenus { | ||
background: #e3e2e2; | ||
width: 60rpx; | ||
height: 100rpx; | ||
padding-right: 15rpx; | ||
position: absolute; | ||
top: 50%; | ||
right: -74rpx; | ||
transform: translateY(-50%); | ||
border-top-right-radius: 50%; | ||
border-bottom-right-radius: 50%; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.carteMenus .openMenus image { | ||
width: 35rpx; | ||
height: 35rpx; | ||
} | ||
|
||
.carteMenus .openMenus text { | ||
font-size: 22rpx; | ||
color: #8e8c8f; | ||
} | ||
|
||
.basket { | ||
border-radius: 63rpx; | ||
border: solid 5rpx #fff; | ||
background: rgba(220, 80, 50, 1); | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
width: 116rpx; | ||
height: 116rpx; | ||
position: fixed; | ||
bottom: 40rpx; | ||
right: 30rpx; | ||
} | ||
|
||
.basket image { | ||
width: 42rpx; | ||
height: 42rpx; | ||
} | ||
|
||
.basket text { | ||
font-size: 24rpx; | ||
color: #fff; | ||
} | ||
.carte{ | ||
height:100%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters