Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
groupPurchase-miniapp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
彭佳妮(贵阳日报)
groupPurchase-miniapp
Commits
5eeabd26
Commit
5eeabd26
authored
Aug 07, 2024
by
石建新(贵阳日报)
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.platform.xinhuaapp.com/pengjiani/groupPurchase-miniapp
parents
ea7ad69e
0b6b47f8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
23 deletions
+48
-23
FoodDetails.vue
src/Components/index/FoodDetails.vue
+2
-0
index.vue
src/pages/index/index.vue
+46
-0
order.vue
src/pages/order/order.vue
+0
-23
No files found.
src/Components/index/FoodDetails.vue
View file @
5eeabd26
...
...
@@ -144,6 +144,8 @@ const toShop = (id) => {
margin-bottom
:
20rpx
;
.img
{
width
:
32rpx
;
height
:
32rpx
;
flex-shrink
:
0
;
}
.one-text
{
font-size
:
28rpx
;
...
...
src/pages/index/index.vue
View file @
5eeabd26
...
...
@@ -144,6 +144,24 @@
>
没有更多啦~
</view>
<!-- 悬浮按钮 -->
<wd-fab
type=
"error"
position=
"right-bottom"
direction=
"left"
:draggable=
"true"
inactiveIcon=
"a-controlplatform"
>
<view
class=
"custom-button"
@
click=
"go('/pages/ticket/ticket')"
>
<image
class=
"fab-icon"
src=
"@/static/index/coupon.png"
></image>
<text
class=
"fab-text"
>
优惠券
</text>
</view>
<view
class=
"custom-button"
@
click=
"go('/pages/order/order')"
>
<image
class=
"fab-icon"
src=
"@/static/index/order.png"
></image>
<text
class=
"fab-text"
>
订单
</text>
</view>
</wd-fab>
</view>
</
template
>
...
...
@@ -474,6 +492,13 @@ onReachBottom(() => {
}
show
.
value
=
true
;
});
// 前往个人中心
const
go
=
(
url
)
=>
{
xma
.
navigateTo
({
url
,
});
};
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
@@ -804,5 +829,26 @@ page {
}
}
}
.custom-button
{
min-width
:
auto
;
box-sizing
:
border-box
;
gap
:
10rpx
;
margin
:
8rpx
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
.fab-icon
{
width
:
64rpx
;
height
:
64rpx
;
}
.fab-text
{
font-size
:
20rpx
;
color
:
#333
;
}
}
}
</
style
>
src/pages/order/order.vue
View file @
5eeabd26
...
...
@@ -119,15 +119,6 @@
</view>
<Payment
ref=
"PaymentRef"
@
payment=
"payNow"
></Payment>
</view>
<!--
<wd-fab
type=
"error"
position=
"right-bottom"
direction=
"left"
:draggable=
"true"
>
<view
class=
"custom-button"
>
<image
class=
"fab-icon"
src=
"@/static/index/coupon.png"
></image>
</view>
<view
class=
"custom-button"
>
<image
class=
"fab-icon"
src=
"@/static/index/order.png"
></image>
</view>
</wd-fab>
-->
</
template
>
<
script
setup
>
...
...
@@ -615,18 +606,4 @@ page {
}
}
}
.custom-button
{
min-width
:
auto
;
box-sizing
:
border-box
;
width
:
64rpx
;
height
:
64rpx
;
border-radius
:
16px
;
margin
:
8rpx
;
.fab-icon
{
width
:
64rpx
;
height
:
64rpx
;
}
}
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment