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
a22e20c1
Commit
a22e20c1
authored
Aug 15, 2024
by
zhangjinyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
悬浮菜单
parent
0b313973
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
59 additions
and
16 deletions
+59
-16
fab.vue
src/Components/fab/fab.vue
+48
-6
RuralTravel.vue
src/pages/assistingAgriculture/RuralTravel/RuralTravel.vue
+1
-1
building.vue
src/pages/assistingAgriculture/index/building.vue
+3
-3
index.vue
src/pages/assistingAgriculture/index/index.vue
+1
-1
presale.vue
src/pages/assistingAgriculture/index/presale.vue
+4
-3
loading.vue
src/pages/index/loading.vue
+2
-2
gwc.png
src/static/index/gwc.png
+0
-0
No files found.
src/Components/fab/fab.vue
View file @
a22e20c1
...
...
@@ -7,18 +7,57 @@
: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
v-if=
"position === '0'"
class=
"outer-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>
</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
v-if=
"position === '1'"
class=
"outer-view"
>
<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>
</view>
<!-- 预售主页 -->
<view
v-if=
"position === '2'"
class=
"outer-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>
<view
class=
"custom-button"
@
click=
"go('/pages/assistingAgriculture/cart/cart')"
>
<image
class=
"fab-icon"
src=
"../../static/index/gwc.png"
></image>
<text
class=
"fab-text"
>
购物车
</text>
</view>
</view>
<!-- 旅居主页 -->
<view
v-if=
"position === '3'"
class=
"outer-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>
</view>
</wd-fab>
</
template
>
<
script
setup
>
const
props
=
defineProps
({
// 悬浮按钮
position
:
{
type
:
String
,
default
:
'1'
,
},
cartCount
:
{
type
:
Number
,
default
:
0
,
},
});
// 前往个人中心
const
go
=
(
url
)
=>
{
xma
.
navigateTo
({
...
...
@@ -28,6 +67,9 @@ const go = (url) => {
</
script
>
<
style
lang=
"scss"
scoped
>
.outer-view
{
display
:
flex
;
}
.custom-button
{
min-width
:
auto
;
box-sizing
:
border-box
;
...
...
src/pages/assistingAgriculture/RuralTravel/RuralTravel.vue
View file @
a22e20c1
...
...
@@ -190,7 +190,7 @@
</view>
</view>
</view>
<fab
/>
<fab
position=
"3"
/>
</view>
</
template
>
...
...
src/pages/assistingAgriculture/index/building.vue
View file @
a22e20c1
...
...
@@ -134,7 +134,7 @@
</view>
</view>
<!-- 购物车悬浮按钮 -->
<view
class=
"cart-floating"
@
tap=
"toCart"
>
<
!--
<
view
class=
"cart-floating"
@
tap=
"toCart"
>
<wd-badge
:modelValue=
"subscript"
>
<img
class=
"shop-car"
...
...
@@ -142,8 +142,8 @@
style=
"width: 40rpx; height: 40rpx"
/>
</wd-badge>
</view>
<fab
/>
</view>
-->
<fab
position=
"2"
/>
</view>
</
template
>
...
...
src/pages/assistingAgriculture/index/index.vue
View file @
a22e20c1
...
...
@@ -74,7 +74,7 @@
</view>
</view>
</view>
<fab
/>
<fab
position=
"0"
/>
</view>
</
template
>
...
...
src/pages/assistingAgriculture/index/presale.vue
View file @
a22e20c1
...
...
@@ -128,7 +128,7 @@
</view>
</view>
<!-- 购物车悬浮按钮 -->
<view
class=
"cart-floating"
@
tap=
"toCart"
>
<
!--
<
view
class=
"cart-floating"
@
tap=
"toCart"
>
<wd-badge
:modelValue=
"subscript"
>
<img
class=
"shop-car"
...
...
@@ -136,7 +136,8 @@
style=
"width: 40rpx; height: 40rpx"
/>
</wd-badge>
</view>
</view>
-->
<fab
position=
"2"
/>
</
template
>
<
script
setup
>
...
...
@@ -150,7 +151,7 @@ import {
getStrictSelection
,
}
from
'../../../api/assistingAgriculture/building'
;
import
{
getshoppingCartList
}
from
'@/api/packageDetail'
;
import
fab
from
'../../../components/fab/fab.vue'
;
const
swiperList
=
ref
([]);
const
current
=
ref
(
0
);
// 轮播图数据
...
...
src/pages/index/loading.vue
View file @
a22e20c1
...
...
@@ -10,8 +10,8 @@ import { getTokenUser } from '../../api/index';
import
{
getToken
}
from
'../../utils/auth'
;
onLoad
(
async
(
options
)
=>
{
await
signIn
();
//
if (!getToken()) await signIn2();
//
await signIn();
if
(
!
getToken
())
await
signIn2
();
const
{
type
}
=
options
;
switch
(
type
)
{
case
'0'
:
...
...
src/static/index/gwc.png
0 → 100644
View file @
a22e20c1
1.76 KB
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